import _m0 from "protobufjs/minimal"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { Params } from "../../../secret/compute/v1beta1/params"; export declare const protobufPackage = "secret.compute.v1beta1"; export interface MsgStoreCode { /** sender is the canonical address of the sender */ sender: Uint8Array; /** WASMByteCode can be raw or gzip compressed */ wasmByteCode: Uint8Array; /** * Source is a valid absolute HTTPS URI to the contract's source code, * optional */ source: string; /** Builder is a valid docker image name with tag, optional */ builder: string; } /** MsgStoreCodeResponse returns store result data. */ export interface MsgStoreCodeResponse { /** CodeID is the reference to the stored WASM code */ codeId: string; } export interface MsgInstantiateContract { /** sender is the canonical address of the sender */ sender: Uint8Array; callbackCodeHash: string; codeId: string; label: string; /** init_msg is an encrypted input to pass to the contract on init */ initMsg: Uint8Array; initFunds: Coin[]; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackSig: Uint8Array; /** Admin is an optional address that can execute migrations */ admin: string; } /** MsgInstantiateContractResponse return instantiation result data */ export interface MsgInstantiateContractResponse { /** Address is the bech32 address of the new contract instance. */ address: string; /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } export interface MsgExecuteContract { /** sender is the canonical address of the sender */ sender: Uint8Array; /** contract is the canonical address of the contract */ contract: Uint8Array; /** msg is an encrypted input to pass to the contract on execute */ msg: Uint8Array; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackCodeHash: string; sentFunds: Coin[]; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackSig: Uint8Array; } /** MsgExecuteContractResponse returns execution result data. */ export interface MsgExecuteContractResponse { /** Data contains base64-encoded bytes to returned from the contract */ data: Uint8Array; } /** MsgMigrateContract runs a code upgrade/ downgrade for a smart contract */ export interface MsgMigrateContract { /** Sender is the that actor that signed the messages */ sender: string; /** Contract is the address of the smart contract */ contract: string; /** CodeID references the new WASM code */ codeId: string; /** msg is an encrypted input to pass to the contract on migration */ msg: Uint8Array; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackSig: Uint8Array; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackCodeHash: string; } /** MsgMigrateContractResponse returns contract migration result data. */ export interface MsgMigrateContractResponse { /** * Data contains same raw bytes returned as data from the wasm contract. * (May be empty) */ data: Uint8Array; } /** MsgUpdateAdmin sets a new admin for a smart contract */ export interface MsgUpdateAdmin { /** Sender is the that actor that signed the messages */ sender: string; /** NewAdmin address to be set */ newAdmin: string; /** Contract is the address of the smart contract */ contract: string; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackSig: Uint8Array; } /** MsgUpdateAdminResponse returns empty data */ export interface MsgUpdateAdminResponse { } /** MsgClearAdmin removes any admin stored for a smart contract */ export interface MsgClearAdmin { /** Sender is the that actor that signed the messages */ sender: string; /** Contract is the address of the smart contract */ contract: string; /** * used internally for encryption, should always be empty in a signed * transaction */ callbackSig: Uint8Array; } /** MsgClearAdminResponse returns empty data */ export interface MsgClearAdminResponse { } /** MsgUpdateParams updates params of compute module */ export interface MsgUpdateParams { /** authority is the address of the governance account. */ authority: string; /** * params defines the x/compute parameters to update. * * NOTE: All parameters must be supplied. */ params: Params | undefined; } /** MsgClearAdminResponse returns empty data */ export interface MsgUpdateParamsResponse { } export declare const MsgStoreCode: { encode(message: MsgStoreCode, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCode; fromJSON(object: any): MsgStoreCode; toJSON(message: MsgStoreCode): unknown; fromPartial, never>>(object: I): MsgStoreCode; }; export declare const MsgStoreCodeResponse: { encode(message: MsgStoreCodeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgStoreCodeResponse; fromJSON(object: any): MsgStoreCodeResponse; toJSON(message: MsgStoreCodeResponse): unknown; fromPartial, never>>(object: I): MsgStoreCodeResponse; }; export declare const MsgInstantiateContract: { encode(message: MsgInstantiateContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContract; fromJSON(object: any): MsgInstantiateContract; toJSON(message: MsgInstantiateContract): unknown; fromPartial, never>)[] & Record, never>) | undefined; callbackSig?: Uint8Array | undefined; admin?: string | undefined; } & Record, never>>(object: I): MsgInstantiateContract; }; export declare const MsgInstantiateContractResponse: { encode(message: MsgInstantiateContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgInstantiateContractResponse; fromJSON(object: any): MsgInstantiateContractResponse; toJSON(message: MsgInstantiateContractResponse): unknown; fromPartial, never>>(object: I): MsgInstantiateContractResponse; }; export declare const MsgExecuteContract: { encode(message: MsgExecuteContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContract; fromJSON(object: any): MsgExecuteContract; toJSON(message: MsgExecuteContract): unknown; fromPartial, never>)[] & Record, never>) | undefined; callbackSig?: Uint8Array | undefined; } & Record, never>>(object: I): MsgExecuteContract; }; export declare const MsgExecuteContractResponse: { encode(message: MsgExecuteContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecuteContractResponse; fromJSON(object: any): MsgExecuteContractResponse; toJSON(message: MsgExecuteContractResponse): unknown; fromPartial, never>>(object: I): MsgExecuteContractResponse; }; export declare const MsgMigrateContract: { encode(message: MsgMigrateContract, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContract; fromJSON(object: any): MsgMigrateContract; toJSON(message: MsgMigrateContract): unknown; fromPartial, never>>(object: I): MsgMigrateContract; }; export declare const MsgMigrateContractResponse: { encode(message: MsgMigrateContractResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgMigrateContractResponse; fromJSON(object: any): MsgMigrateContractResponse; toJSON(message: MsgMigrateContractResponse): unknown; fromPartial, never>>(object: I): MsgMigrateContractResponse; }; export declare const MsgUpdateAdmin: { encode(message: MsgUpdateAdmin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdmin; fromJSON(object: any): MsgUpdateAdmin; toJSON(message: MsgUpdateAdmin): unknown; fromPartial, never>>(object: I): MsgUpdateAdmin; }; export declare const MsgUpdateAdminResponse: { encode(_: MsgUpdateAdminResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateAdminResponse; fromJSON(_: any): MsgUpdateAdminResponse; toJSON(_: MsgUpdateAdminResponse): unknown; fromPartial, never>>(_: I): MsgUpdateAdminResponse; }; export declare const MsgClearAdmin: { encode(message: MsgClearAdmin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdmin; fromJSON(object: any): MsgClearAdmin; toJSON(message: MsgClearAdmin): unknown; fromPartial, never>>(object: I): MsgClearAdmin; }; export declare const MsgClearAdminResponse: { encode(_: MsgClearAdminResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgClearAdminResponse; fromJSON(_: any): MsgClearAdminResponse; toJSON(_: MsgClearAdminResponse): unknown; fromPartial, never>>(_: I): MsgClearAdminResponse; }; export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; fromPartial, never>>(_: I): MsgUpdateParamsResponse; }; /** Msg defines the wasm Msg service. */ export interface Msg { /** StoreCode to submit Wasm code to the system */ StoreCode(request: MsgStoreCode): Promise; /** Instantiate creates a new smart contract instance for the given code id. */ InstantiateContract(request: MsgInstantiateContract): Promise; /** Execute submits the given message data to a smart contract */ ExecuteContract(request: MsgExecuteContract): Promise; /** Migrate runs a code upgrade/ downgrade for a smart contract */ MigrateContract(request: MsgMigrateContract): Promise; /** UpdateAdmin sets a new admin for a smart contract */ UpdateAdmin(request: MsgUpdateAdmin): Promise; /** ClearAdmin removes any admin stored for a smart contract */ ClearAdmin(request: MsgClearAdmin): Promise; /** UpdateParams updates compute module params */ UpdateParams(request: MsgUpdateParams): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};