cosmos-explorer/packages/codegen/dist/cosmwasm/wasm/v1/tx.rpc.msg.d.ts
2023-03-02 13:21:24 +08:00

37 lines
2.3 KiB
TypeScript

import { Rpc } from "../../../helpers";
import { MsgStoreCode, MsgStoreCodeResponse, MsgInstantiateContract, MsgInstantiateContractResponse, MsgInstantiateContract2, MsgInstantiateContract2Response, MsgExecuteContract, MsgExecuteContractResponse, MsgMigrateContract, MsgMigrateContractResponse, MsgUpdateAdmin, MsgUpdateAdminResponse, MsgClearAdmin, MsgClearAdminResponse } from "./tx";
/** Msg defines the wasm Msg service. */
export interface Msg {
/** StoreCode to submit Wasm code to the system */
storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
/**
* InstantiateContract creates a new smart contract instance for the given
* code id.
*/
instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
/**
* InstantiateContract2 creates a new smart contract instance for the given
* code id with a predictable address
*/
instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
/** Execute submits the given message data to a smart contract */
executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
/** Migrate runs a code upgrade/ downgrade for a smart contract */
migrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse>;
/** UpdateAdmin sets a new admin for a smart contract */
updateAdmin(request: MsgUpdateAdmin): Promise<MsgUpdateAdminResponse>;
/** ClearAdmin removes any admin stored for a smart contract */
clearAdmin(request: MsgClearAdmin): Promise<MsgClearAdminResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
storeCode(request: MsgStoreCode): Promise<MsgStoreCodeResponse>;
instantiateContract(request: MsgInstantiateContract): Promise<MsgInstantiateContractResponse>;
instantiateContract2(request: MsgInstantiateContract2): Promise<MsgInstantiateContract2Response>;
executeContract(request: MsgExecuteContract): Promise<MsgExecuteContractResponse>;
migrateContract(request: MsgMigrateContract): Promise<MsgMigrateContractResponse>;
updateAdmin(request: MsgUpdateAdmin): Promise<MsgUpdateAdminResponse>;
clearAdmin(request: MsgClearAdmin): Promise<MsgClearAdminResponse>;
}