Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WasmExtension

Index

Properties

Properties

wasm: { getAllContractState: any; getCode: any; getContractCodeHistory: any; getContractInfo: any; listCodeInfo: any; listContractsByCodeId: any; queryContractRaw: any; queryContractSmart: any }

Type declaration

  • getAllContractState:function
    • getAllContractState(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>

  • getCode:function
    • getCode(id: number): Promise<QueryCodeResponse>
  • getContractCodeHistory:function
    • getContractCodeHistory(address: string, paginationKey?: Uint8Array): Promise<QueryContractHistoryResponse>
  • getContractInfo:function
    • getContractInfo(address: string): Promise<QueryContractInfoResponse>
  • listCodeInfo:function
    • listCodeInfo(paginationKey?: Uint8Array): Promise<QueryCodesResponse>
  • listContractsByCodeId:function
    • listContractsByCodeId(id: number, paginationKey?: Uint8Array): Promise<QueryContractsByCodeResponse>
  • queryContractRaw:function
    • queryContractRaw(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>

  • queryContractSmart:function
    • queryContractSmart(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