import Long from "long"; import { grpc } from "@improbable-eng/grpc-web"; import _m0 from "protobufjs/minimal"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; export declare const protobufPackage = "daodiseo.wasm.v1beta1"; /** * MsgStoreCode represents a message to submit * Wasm code to the system */ export interface MsgStoreCode { /** Sender is the that actor that signed the messages */ sender: string; /** WASMByteCode can be raw or gzip compressed */ wasmByteCode: Uint8Array; } /** MsgStoreCodeResponse defines the Msg/StoreCode response type. */ export interface MsgStoreCodeResponse { /** CodeID is the reference to the stored WASM code */ codeId: Long; } /** * MsgMigrateCode represents a message to submit * Wasm code to the system */ export interface MsgMigrateCode { /** CodeID is the migration target code id */ codeId: Long; /** Sender is the that actor that signed the messages */ sender: string; /** WASMByteCode can be raw or gzip compressed */ wasmByteCode: Uint8Array; } /** MsgMigrateCodeResponse defines the Msg/MigrateCode response type. */ export interface MsgMigrateCodeResponse { } /** * MsgInstantiateContract represents a message to create * a new smart contract instance for the given * code id. */ export interface MsgInstantiateContract { /** Sender is an sender address */ sender: string; /** Admin is an optional admin address who can migrate the contract */ admin: string; /** CodeID is the reference to the stored WASM code */ codeId: Long; /** InitMsg json encoded message to be passed to the contract on instantiation */ initMsg: Uint8Array; /** InitCoins that are transferred to the contract on execution */ initCoins: Coin[]; } /** MsgInstantiateContractResponse defines the Msg/InstantiateContract response type. */ export interface MsgInstantiateContractResponse { /** ContractAddress is the bech32 address of the new contract instance. */ contractAddress: string; /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } /** * MsgExecuteContract represents a message to * submits the given message data to a smart contract. */ export interface MsgExecuteContract { /** Sender is the that actor that signed the messages */ sender: string; /** Contract is the address of the smart contract */ contract: string; /** ExecuteMsg json encoded message to be passed to the contract */ executeMsg: Uint8Array; /** Coins that are transferred to the contract on execution */ coins: Coin[]; } /** MsgExecuteContractResponse defines the Msg/ExecuteContract response type. */ export interface MsgExecuteContractResponse { /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } /** * MsgMigrateContract represents a message to * runs a code upgrade/ downgrade for a smart contract */ export interface MsgMigrateContract { /** Admin is the current contract admin */ admin: string; /** Contract is the address of the smart contract */ contract: string; /** NewCodeID references the new WASM code */ newCodeId: Long; /** MigrateMsg is json encoded message to be passed to the contract on migration */ migrateMsg: Uint8Array; } /** MsgMigrateContractResponse defines the Msg/MigrateContract response type. */ export interface MsgMigrateContractResponse { /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } /** * MsgUpdateContractAdmin represents a message to * sets a new admin for a smart contract */ export interface MsgUpdateContractAdmin { /** Admin is the current contract admin */ admin: string; /** NewAdmin is the new contract admin */ newAdmin: string; /** Contract is the address of the smart contract */ contract: string; } /** MsgUpdateContractAdminResponse defines the Msg/UpdateContractAdmin response type. */ export interface MsgUpdateContractAdminResponse { } /** * MsgClearContractAdmin represents a message to * clear admin address from a smart contract */ export interface MsgClearContractAdmin { /** Admin is the current contract admin */ admin: string; /** Contract is the address of the smart contract */ contract: string; } /** MsgClearContractAdminResponse defines the Msg/ClearContractAdmin response type. */ export interface MsgClearContractAdminResponse { } export declare const MsgStoreCode: { encode(message: MsgStoreCode, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgStoreCode; fromJSON(object: any): MsgStoreCode; toJSON(message: MsgStoreCode): unknown; fromPartial(object: DeepPartial): MsgStoreCode; }; export declare const MsgStoreCodeResponse: { encode(message: MsgStoreCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgStoreCodeResponse; fromJSON(object: any): MsgStoreCodeResponse; toJSON(message: MsgStoreCodeResponse): unknown; fromPartial(object: DeepPartial): MsgStoreCodeResponse; }; export declare const MsgMigrateCode: { encode(message: MsgMigrateCode, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgMigrateCode; fromJSON(object: any): MsgMigrateCode; toJSON(message: MsgMigrateCode): unknown; fromPartial(object: DeepPartial): MsgMigrateCode; }; export declare const MsgMigrateCodeResponse: { encode(_: MsgMigrateCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgMigrateCodeResponse; fromJSON(_: any): MsgMigrateCodeResponse; toJSON(_: MsgMigrateCodeResponse): unknown; fromPartial(_: DeepPartial): MsgMigrateCodeResponse; }; export declare const MsgInstantiateContract: { encode(message: MsgInstantiateContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInstantiateContract; fromJSON(object: any): MsgInstantiateContract; toJSON(message: MsgInstantiateContract): unknown; fromPartial(object: DeepPartial): MsgInstantiateContract; }; export declare const MsgInstantiateContractResponse: { encode(message: MsgInstantiateContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgInstantiateContractResponse; fromJSON(object: any): MsgInstantiateContractResponse; toJSON(message: MsgInstantiateContractResponse): unknown; fromPartial(object: DeepPartial): MsgInstantiateContractResponse; }; export declare const MsgExecuteContract: { encode(message: MsgExecuteContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecuteContract; fromJSON(object: any): MsgExecuteContract; toJSON(message: MsgExecuteContract): unknown; fromPartial(object: DeepPartial): MsgExecuteContract; }; export declare const MsgExecuteContractResponse: { encode(message: MsgExecuteContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgExecuteContractResponse; fromJSON(object: any): MsgExecuteContractResponse; toJSON(message: MsgExecuteContractResponse): unknown; fromPartial(object: DeepPartial): MsgExecuteContractResponse; }; export declare const MsgMigrateContract: { encode(message: MsgMigrateContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgMigrateContract; fromJSON(object: any): MsgMigrateContract; toJSON(message: MsgMigrateContract): unknown; fromPartial(object: DeepPartial): MsgMigrateContract; }; export declare const MsgMigrateContractResponse: { encode(message: MsgMigrateContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgMigrateContractResponse; fromJSON(object: any): MsgMigrateContractResponse; toJSON(message: MsgMigrateContractResponse): unknown; fromPartial(object: DeepPartial): MsgMigrateContractResponse; }; export declare const MsgUpdateContractAdmin: { encode(message: MsgUpdateContractAdmin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateContractAdmin; fromJSON(object: any): MsgUpdateContractAdmin; toJSON(message: MsgUpdateContractAdmin): unknown; fromPartial(object: DeepPartial): MsgUpdateContractAdmin; }; export declare const MsgUpdateContractAdminResponse: { encode(_: MsgUpdateContractAdminResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgUpdateContractAdminResponse; fromJSON(_: any): MsgUpdateContractAdminResponse; toJSON(_: MsgUpdateContractAdminResponse): unknown; fromPartial(_: DeepPartial): MsgUpdateContractAdminResponse; }; export declare const MsgClearContractAdmin: { encode(message: MsgClearContractAdmin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgClearContractAdmin; fromJSON(object: any): MsgClearContractAdmin; toJSON(message: MsgClearContractAdmin): unknown; fromPartial(object: DeepPartial): MsgClearContractAdmin; }; export declare const MsgClearContractAdminResponse: { encode(_: MsgClearContractAdminResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgClearContractAdminResponse; fromJSON(_: any): MsgClearContractAdminResponse; toJSON(_: MsgClearContractAdminResponse): unknown; fromPartial(_: DeepPartial): MsgClearContractAdminResponse; }; /** Msg defines the oracle Msg service. */ export interface Msg { /** StoreCode to submit Wasm code to the system */ StoreCode(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** MigrateCode to submit new version Wasm code to the system */ MigrateCode(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Instantiate creates a new smart contract instance for the given code id. */ InstantiateContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Execute submits the given message data to a smart contract */ ExecuteContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Migrate runs a code upgrade/ downgrade for a smart contract */ MigrateContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** UpdateContractAdmin sets a new admin for a smart contract */ UpdateContractAdmin(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ClearContractAdmin remove admin flag from a smart contract */ ClearContractAdmin(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); StoreCode(request: DeepPartial, metadata?: grpc.Metadata): Promise; MigrateCode(request: DeepPartial, metadata?: grpc.Metadata): Promise; InstantiateContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; ExecuteContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; MigrateContract(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateContractAdmin(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClearContractAdmin(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgStoreCodeDesc: UnaryMethodDefinitionish; export declare const MsgMigrateCodeDesc: UnaryMethodDefinitionish; export declare const MsgInstantiateContractDesc: UnaryMethodDefinitionish; export declare const MsgExecuteContractDesc: UnaryMethodDefinitionish; export declare const MsgMigrateContractDesc: UnaryMethodDefinitionish; export declare const MsgUpdateContractAdminDesc: UnaryMethodDefinitionish; export declare const MsgClearContractAdminDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};