Constructors

Properties

contracts: Record<string, default> = {}
store: TransactionalLens<WasmData>
checksumCache: Record<number, string> = {}

Accessors

Methods

  • Alias for storeCode, except it .unwraps the result - kept for backwards compatibility

    Parameters

    • creator: string
    • wasmCode: Uint8Array

    Returns number

  • Call execute on the CW SC

    Parameters

    • sender: string
    • funds: Coin[]
    • contractAddress: string
    • executeMsg: any
    • traces: TraceLog[] = []

    Returns Promise<Result<AppResponse, string>>

  • Parameters

    • callback: ((codeInfo, codeId) => void)
        • (codeInfo, codeId): void
        • Parameters

          Returns void

    • Optional storage: Snapshot

    Returns void

  • Parameters

    • contractAddress: string
    • Optional storage: Snapshot

    Returns Map<keyof Map<unknown, unknown>, number | Map<never, never>>

  • Parameters

    • sender: string
    • funds: Coin[]
    • codeId: number
    • instantiateMsg: any
    • label: string
    • admin: string = null
    • traces: TraceLog[] = []

    Returns Promise<Result<AppResponse, string>>

  • Call migrate on the CW SC

    Parameters

    • sender: string
    • newCodeId: number
    • contractAddress: string
    • migrateMsg: any
    • traces: TraceLog[] = []

    Returns Promise<Result<AppResponse, string>>

  • Parameters

    • contractAddress: string
    • queryMsg: any

    Returns Result<any, string>

  • Register a new contract instance from codeId

    Parameters

    • sender: string
    • codeId: number
    • label: string = ''
    • admin: string = null

    Returns Result<string, string>

  • Parameters

    • contractAddress: string
    • value: Map<unknown, unknown>

    Returns void

  • Store a new CosmWasm smart contract bytecode

    Parameters

    • creator: string
    • wasmCode: Uint8Array

    Returns Result<number, string>

Generated using TypeDoc