chore: TWN + mock ordinal verification

This commit is contained in:
Danish Arora 2025-07-16 16:32:11 +05:30
parent 41351ebab1
commit 254884bb71
No known key found for this signature in database
GPG Key ID: 1C6EF37CDAE1426E
4 changed files with 11 additions and 8 deletions

View File

@ -150,8 +150,10 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
description: "Checking your wallet for Ordinal Operators..."
});
const response = await ordinalApi.getOperatorDetails(currentUser.address);
const hasOperators = response.has_operators;
//TODO: revert when the API is ready
// const response = await ordinalApi.getOperatorDetails(currentUser.address);
// const hasOperators = response.has_operators;
const hasOperators = true;
const updatedUser = {
...currentUser,

View File

@ -1,6 +1,6 @@
import { OrdinalApiResponse } from './types';
const BASE_URL = 'https://exit-test-567058b69f45.herokuapp.com/api/operators/wallet';
const BASE_URL = 'https://dashboard.logos.co/api/operators/wallet';
export class OrdinalAPI {
/**

View File

@ -8,13 +8,14 @@ export const CONTENT_TOPICS: Record<MessageType, string> = {
[MessageType.CELL]: '/opchan/1/cell/proto',
[MessageType.POST]: '/opchan/1/post/proto',
[MessageType.COMMENT]: '/opchan/1/comment/proto',
[MessageType.VOTE]: '/opchan/1/vote/proto'
[MessageType.VOTE]: '/opchan/1/vote/proto',
[MessageType.MODERATE]: '/opchan/1/moderate/proto'
};
export const NETWORK_CONFIG: NetworkConfig = {
// contentTopics: Object.values(CONTENT_TOPICS),
clusterId: 42,
shards: [0]
clusterId: 1,
shards: [0,1,2,3,4,5,6,7]
}
/**

View File

@ -39,10 +39,10 @@ class MessageManager {
public static async create(): Promise<MessageManager> {
const node = await createLightNode({
defaultBootstrap: false,
defaultBootstrap: true,
networkConfig: NETWORK_CONFIG,
autoStart: true,
bootstrapPeers: BOOTSTRAP_NODES[42],
// bootstrapPeers: BOOTSTRAP_NODES[42],
});
return new MessageManager(node);