- Preparing search index...
- The search index is not available
sdk-v2
Function attachPoolRcpOnlyMethods
- attachPoolRcpOnlyMethods(ctx: RpcContext<MetadataStorage<{
__meta: "markets";
categories: undefined | ({ name: string; img?: string | undefined; ticker?: string | undefined; color?: string | undefined; })[];
confidentialId: undefined | string;
description: string;
img: undefined | string;
question: string;
scalarType: undefined | "number" | "date";
slug: string;
tags: undefined | string[];
}>>, primitive: ZeitgeistPrimitivesPool | {
__typename?: "Pool";
accountId?: null | string;
baseAsset: string;
createdAt: any;
id: string;
marketId: number;
poolId: number;
poolStatus: string;
scoringRule: string;
swapFee: string;
totalSubsidy: string;
totalWeight: string;
volume: any;
weights: (null | {
__typename?: "Weight";
assetId: string;
len: any;
})[];
ztgQty: any;
}): RpcPool
-
Parameters
-
ctx: RpcContext<MetadataStorage<{
__meta: "markets";
categories: undefined | ({ name: string; img?: string | undefined; ticker?: string | undefined; color?: string | undefined; })[];
confidentialId: undefined | string;
description: string;
img: undefined | string;
question: string;
scalarType: undefined | "number" | "date";
slug: string;
tags: undefined | string[];
}>>
-
primitive: ZeitgeistPrimitivesPool | {
__typename?: "Pool";
accountId?: null | string;
baseAsset: string;
createdAt: any;
id: string;
marketId: number;
poolId: number;
poolStatus: string;
scoringRule: string;
swapFee: string;
totalSubsidy: string;
totalWeight: string;
volume: any;
weights: (null | {
__typename?: "Weight";
assetId: string;
len: any;
})[];
ztgQty: any;
}
Create new RpcPool with associated context, id and on chain primitive.
Returns
RpcPool