Hierarchy

  • WasmExtension

Properties

Properties

wasm: {
    getAllContractState: ((address: string, paginationKey?: Uint8Array) => Promise<QueryAllContractStateResponse>);
    getCode: ((id: number) => Promise<QueryCodeResponse>);
    getContractCodeHistory: ((address: string, paginationKey?: Uint8Array) => Promise<QueryContractHistoryResponse>);
    getContractInfo: ((address: string) => Promise<QueryContractInfoResponse>);
    listCodeInfo: ((paginationKey?: Uint8Array) => Promise<QueryCodesResponse>);
    listContractsByCodeId: ((id: number, paginationKey?: Uint8Array) => Promise<QueryContractsByCodeResponse>);
    listContractsByCreator: ((creator: string, paginationKey?: Uint8Array) => Promise<QueryContractsByCreatorResponse>);
    queryContractRaw: ((address: string, key: Uint8Array) => Promise<QueryRawContractStateResponse>);
    queryContractSmart: ((address: string, query: any) => Promise<any>);
}

Type declaration

  • Readonly getAllContractState: ((address: string, paginationKey?: Uint8Array) => Promise<QueryAllContractStateResponse>)
      • (address: string, paginationKey?: Uint8Array): Promise<QueryAllContractStateResponse>
      • Returns all contract state. This is an empty array if no such contract, or contract has no data.

        Parameters

        • address: string
        • Optional paginationKey: Uint8Array

        Returns Promise<QueryAllContractStateResponse>

  • Readonly getCode: ((id: number) => Promise<QueryCodeResponse>)
      • (id: number): Promise<QueryCodeResponse>
      • Downloads the original wasm bytecode by code ID.

        Throws an error if no code with this id

        Parameters

        • id: number

        Returns Promise<QueryCodeResponse>

  • Readonly getContractCodeHistory: ((address: string, paginationKey?: Uint8Array) => Promise<QueryContractHistoryResponse>)
      • (address: string, paginationKey?: Uint8Array): Promise<QueryContractHistoryResponse>
      • Returns null when contract history was not found for this address.

        Parameters

        • address: string
        • Optional paginationKey: Uint8Array

        Returns Promise<QueryContractHistoryResponse>

  • Readonly getContractInfo: ((address: string) => Promise<QueryContractInfoResponse>)
      • (address: string): Promise<QueryContractInfoResponse>
      • Returns null when contract was not found at this address.

        Parameters

        • address: string

        Returns Promise<QueryContractInfoResponse>

  • Readonly listCodeInfo: ((paginationKey?: Uint8Array) => Promise<QueryCodesResponse>)
      • (paginationKey?: Uint8Array): Promise<QueryCodesResponse>
      • Parameters

        • Optional paginationKey: Uint8Array

        Returns Promise<QueryCodesResponse>

  • Readonly listContractsByCodeId: ((id: number, paginationKey?: Uint8Array) => Promise<QueryContractsByCodeResponse>)
      • (id: number, paginationKey?: Uint8Array): Promise<QueryContractsByCodeResponse>
      • Parameters

        • id: number
        • Optional paginationKey: Uint8Array

        Returns Promise<QueryContractsByCodeResponse>

  • Readonly listContractsByCreator: ((creator: string, paginationKey?: Uint8Array) => Promise<QueryContractsByCreatorResponse>)
      • (creator: string, paginationKey?: Uint8Array): Promise<QueryContractsByCreatorResponse>
      • Returns a list of contract addresses created by the given creator.

        Parameters

        • creator: string
        • Optional paginationKey: Uint8Array

        Returns Promise<QueryContractsByCreatorResponse>

  • Readonly queryContractRaw: ((address: string, key: Uint8Array) => Promise<QueryRawContractStateResponse>)
      • (address: string, key: Uint8Array): Promise<QueryRawContractStateResponse>
      • Returns the data at the key if present (unknown decoded json), or null if no data at this (contract address, key) pair

        Parameters

        • address: string
        • key: Uint8Array

        Returns Promise<QueryRawContractStateResponse>

  • Readonly queryContractSmart: ((address: string, query: any) => Promise<any>)
      • (address: string, query: any): Promise<any>
      • Makes a smart query on the contract and parses the response as JSON. Throws error if no such contract exists, the query format is invalid or the response is invalid.

        Parameters

        • address: string
        • query: any

        Returns Promise<any>

Generated using TypeDoc