Function attachPoolRcpOnlyMethods

  • Create new RpcPool with associated context, id and on chain primitive.

    Returns

    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[];
      }>>

      RpcContext

    • 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;
      }

      ZeitgeistPrimitivesPool

    Returns RpcPool

Generated using TypeDoc