interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
147 lines (146 loc) • 9.32 kB
TypeScript
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract, MsgRemoveCodeUploadParamsAddresses, MsgAddCodeUploadParamsAddresses, MsgStoreAndMigrateContract, MsgUpdateContractLabel } from "./tx";
/**
* StoreCode to submit Wasm code to the system
* @name storeCode
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.StoreCode
*/
export declare const storeCode: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgStoreCode | MsgStoreCode[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* InstantiateContract creates a new smart contract instance for the given
* code id.
* @name instantiateContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.InstantiateContract
*/
export declare const instantiateContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgInstantiateContract | MsgInstantiateContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* InstantiateContract2 creates a new smart contract instance for the given
* code id with a predictable address
* @name instantiateContract2
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.InstantiateContract2
*/
export declare const instantiateContract2: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgInstantiateContract2 | MsgInstantiateContract2[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* Execute submits the given message data to a smart contract
* @name executeContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ExecuteContract
*/
export declare const executeContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgExecuteContract | MsgExecuteContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* Migrate runs a code upgrade/ downgrade for a smart contract
* @name migrateContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.MigrateContract
*/
export declare const migrateContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgMigrateContract | MsgMigrateContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* UpdateAdmin sets a new admin for a smart contract
* @name updateAdmin
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.UpdateAdmin
*/
export declare const updateAdmin: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateAdmin | MsgUpdateAdmin[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* ClearAdmin removes any admin stored for a smart contract
* @name clearAdmin
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ClearAdmin
*/
export declare const clearAdmin: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgClearAdmin | MsgClearAdmin[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* UpdateInstantiateConfig updates instantiate config for a smart contract
* @name updateInstantiateConfig
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.UpdateInstantiateConfig
*/
export declare const updateInstantiateConfig: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateInstantiateConfig | MsgUpdateInstantiateConfig[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* UpdateParams defines a governance operation for updating the x/wasm
* module parameters. The authority is defined in the keeper.
*
* Since: 0.40
* @name updateParams
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.UpdateParams
*/
export declare const updateParams: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateParams | MsgUpdateParams[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* SudoContract defines a governance operation for calling sudo
* on a contract. The authority is defined in the keeper.
*
* Since: 0.40
* @name sudoContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.SudoContract
*/
export declare const sudoContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgSudoContract | MsgSudoContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* PinCodes defines a governance operation for pinning a set of
* code ids in the wasmvm cache. The authority is defined in the keeper.
*
* Since: 0.40
* @name pinCodes
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.PinCodes
*/
export declare const pinCodes: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgPinCodes | MsgPinCodes[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* UnpinCodes defines a governance operation for unpinning a set of
* code ids in the wasmvm cache. The authority is defined in the keeper.
*
* Since: 0.40
* @name unpinCodes
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.UnpinCodes
*/
export declare const unpinCodes: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUnpinCodes | MsgUnpinCodes[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* StoreAndInstantiateContract defines a governance operation for storing
* and instantiating the contract. The authority is defined in the keeper.
*
* Since: 0.40
* @name storeAndInstantiateContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.StoreAndInstantiateContract
*/
export declare const storeAndInstantiateContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgStoreAndInstantiateContract | MsgStoreAndInstantiateContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* RemoveCodeUploadParamsAddresses defines a governance operation for
* removing addresses from code upload params.
* The authority is defined in the keeper.
* @name removeCodeUploadParamsAddresses
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.RemoveCodeUploadParamsAddresses
*/
export declare const removeCodeUploadParamsAddresses: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgRemoveCodeUploadParamsAddresses | MsgRemoveCodeUploadParamsAddresses[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* AddCodeUploadParamsAddresses defines a governance operation for
* adding addresses to code upload params.
* The authority is defined in the keeper.
* @name addCodeUploadParamsAddresses
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.AddCodeUploadParamsAddresses
*/
export declare const addCodeUploadParamsAddresses: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgAddCodeUploadParamsAddresses | MsgAddCodeUploadParamsAddresses[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* StoreAndMigrateContract defines a governance operation for storing
* and migrating the contract. The authority is defined in the keeper.
*
* Since: 0.42
* @name storeAndMigrateContract
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.StoreAndMigrateContract
*/
export declare const storeAndMigrateContract: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgStoreAndMigrateContract | MsgStoreAndMigrateContract[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;
/**
* UpdateContractLabel sets a new label for a smart contract
*
* Since: 0.43
* @name updateContractLabel
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.UpdateContractLabel
*/
export declare const updateContractLabel: (client: import("@interchainjs/cosmos").ISigningClient, signerAddress: string, message: MsgUpdateContractLabel | MsgUpdateContractLabel[], fee: import("../../..").StdFee | "auto", memo: string) => Promise<import("@interchainjs/types").DeliverTxResponse>;