mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-03 13:23:08 +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..."
|
description: "Checking your wallet for Ordinal Operators..."
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await ordinalApi.getOperatorDetails(currentUser.address);
|
//TODO: revert when the API is ready
|
||||||
const hasOperators = response.has_operators;
|
// const response = await ordinalApi.getOperatorDetails(currentUser.address);
|
||||||
|
// const hasOperators = response.has_operators;
|
||||||
|
const hasOperators = true;
|
||||||
|
|
||||||
const updatedUser = {
|
const updatedUser = {
|
||||||
...currentUser,
|
...currentUser,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { OrdinalApiResponse } from './types';
|
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 {
|
export class OrdinalAPI {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -8,13 +8,14 @@ export const CONTENT_TOPICS: Record<MessageType, string> = {
|
|||||||
[MessageType.CELL]: '/opchan/1/cell/proto',
|
[MessageType.CELL]: '/opchan/1/cell/proto',
|
||||||
[MessageType.POST]: '/opchan/1/post/proto',
|
[MessageType.POST]: '/opchan/1/post/proto',
|
||||||
[MessageType.COMMENT]: '/opchan/1/comment/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 = {
|
export const NETWORK_CONFIG: NetworkConfig = {
|
||||||
// contentTopics: Object.values(CONTENT_TOPICS),
|
// contentTopics: Object.values(CONTENT_TOPICS),
|
||||||
clusterId: 42,
|
clusterId: 1,
|
||||||
shards: [0]
|
shards: [0,1,2,3,4,5,6,7]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -39,10 +39,10 @@ class MessageManager {
|
|||||||
|
|
||||||
public static async create(): Promise<MessageManager> {
|
public static async create(): Promise<MessageManager> {
|
||||||
const node = await createLightNode({
|
const node = await createLightNode({
|
||||||
defaultBootstrap: false,
|
defaultBootstrap: true,
|
||||||
networkConfig: NETWORK_CONFIG,
|
networkConfig: NETWORK_CONFIG,
|
||||||
autoStart: true,
|
autoStart: true,
|
||||||
bootstrapPeers: BOOTSTRAP_NODES[42],
|
// bootstrapPeers: BOOTSTRAP_NODES[42],
|
||||||
});
|
});
|
||||||
|
|
||||||
return new MessageManager(node);
|
return new MessageManager(node);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user