mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-02 12:53:10 +00:00
chore: TWN + mock ordinal verification
This commit is contained in:
parent
41351ebab1
commit
254884bb71
@ -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,
|
||||
|
||||
@ -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 {
|
||||
/**
|
||||
|
||||
@ -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]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user