Function attachPoolMethods

  • Type Parameters

    • C extends Context<MS>

    • MS extends 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[];
      }, MS> = 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[];
      }>

    Parameters

    • ctx: C
    • 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;
      }

    Returns Data<C, C extends RpcContext<MS> ? RpcPool : never, C extends IndexerContext ? IndexedPool<C, MS> : never, MS>

Generated using TypeDoc