Function rpcMarket

  • Augment a market primitive with id and data expanding utility functions.

    Returns

    AugmentedAugmentedRpcMarket

    Type Parameters

    • C extends RpcContext<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>

    Parameters

    • context: C

      RpcContext

    • id: number | u128

      u128

    • primitive: ZeitgeistPrimitivesMarket

      ZeitgeistPrimitivesMarket

    Returns Data<C, C extends RpcContext<MS> ? RpcMarket<C, MS> | SaturatedRpcMarket<C, MS> : never, C extends IndexerContext | FullContext<MS> ? IndexedMarket<C, MS> : never, MS>

Generated using TypeDoc