import { BinaryReader, BinaryWriter } from "../../../../binary.js"; import { DeepPartial } from "../../../../helpers.js"; import { Log, LogAmino, Params, ParamsAmino, Preinstall, PreinstallAmino } from "./evm.js"; //#region src/cosmos/evm/vm/v1/tx.d.ts /** * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. * @name MsgEthereumTx * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTx */ interface MsgEthereumTx { /** * from is the bytes of ethereum signer address. This address value is checked * against the address derived from the signature (V, R, S) using the * secp256k1 elliptic curve */ from: Uint8Array; /** * raw is the raw ethereum transaction */ raw: Uint8Array; } interface MsgEthereumTxProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgEthereumTx"; value: Uint8Array; } /** * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. * @name MsgEthereumTxAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTx */ interface MsgEthereumTxAmino { /** * from is the bytes of ethereum signer address. This address value is checked * against the address derived from the signature (V, R, S) using the * secp256k1 elliptic curve */ from: string; /** * raw is the raw ethereum transaction */ raw: string; } interface MsgEthereumTxAminoMsg { type: "cosmos/evm/MsgEthereumTx"; value: MsgEthereumTxAmino; } /** * ExtensionOptionsEthereumTx is an extension option for ethereum transactions * @name ExtensionOptionsEthereumTx * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.ExtensionOptionsEthereumTx */ interface ExtensionOptionsEthereumTx {} interface ExtensionOptionsEthereumTxProtoMsg { typeUrl: "/cosmos.evm.vm.v1.ExtensionOptionsEthereumTx"; value: Uint8Array; } /** * ExtensionOptionsEthereumTx is an extension option for ethereum transactions * @name ExtensionOptionsEthereumTxAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.ExtensionOptionsEthereumTx */ interface ExtensionOptionsEthereumTxAmino {} interface ExtensionOptionsEthereumTxAminoMsg { type: "cosmos-sdk/ExtensionOptionsEthereumTx"; value: ExtensionOptionsEthereumTxAmino; } /** * MsgEthereumTxResponse defines the Msg/EthereumTx response type. * @name MsgEthereumTxResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTxResponse */ interface MsgEthereumTxResponse { /** * hash of the ethereum transaction in hex format. This hash differs from the * CometBFT sha256 hash of the transaction bytes. See * https://github.com/tendermint/tendermint/issues/6539 for reference */ hash: string; /** * logs contains the transaction hash and the proto-compatible ethereum * logs. */ logs: Log[]; /** * ret is the returned data from evm function (result or data supplied with * revert opcode) */ ret: Uint8Array; /** * vm_error is the error returned by vm execution */ vmError: string; /** * gas_used specifies how much gas was consumed by the transaction */ gasUsed: bigint; /** * max_used_gas specifies the gas consumed by the transaction, not including refunds */ maxUsedGas: bigint; /** * include the block hash for json-rpc to use */ blockHash: Uint8Array; /** * include the block timestamp for json-rpc to use */ blockTimestamp: bigint; } interface MsgEthereumTxResponseProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgEthereumTxResponse"; value: Uint8Array; } /** * MsgEthereumTxResponse defines the Msg/EthereumTx response type. * @name MsgEthereumTxResponseAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTxResponse */ interface MsgEthereumTxResponseAmino { /** * hash of the ethereum transaction in hex format. This hash differs from the * CometBFT sha256 hash of the transaction bytes. See * https://github.com/tendermint/tendermint/issues/6539 for reference */ hash: string; /** * logs contains the transaction hash and the proto-compatible ethereum * logs. */ logs: LogAmino[]; /** * ret is the returned data from evm function (result or data supplied with * revert opcode) */ ret: string; /** * vm_error is the error returned by vm execution */ vm_error: string; /** * gas_used specifies how much gas was consumed by the transaction */ gas_used: string; /** * max_used_gas specifies the gas consumed by the transaction, not including refunds */ max_used_gas: string; /** * include the block hash for json-rpc to use */ block_hash: string; /** * include the block timestamp for json-rpc to use */ block_timestamp: string; } interface MsgEthereumTxResponseAminoMsg { type: "cosmos-sdk/MsgEthereumTxResponse"; value: MsgEthereumTxResponseAmino; } /** * MsgUpdateParams defines a Msg for updating the x/vm module parameters. * @name MsgUpdateParams * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParams */ interface MsgUpdateParams { /** * authority is the address of the governance account. */ authority: string; /** * params defines the x/vm parameters to update. * NOTE: All parameters must be supplied. */ params: Params; } interface MsgUpdateParamsProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgUpdateParams"; value: Uint8Array; } /** * MsgUpdateParams defines a Msg for updating the x/vm module parameters. * @name MsgUpdateParamsAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParams */ interface MsgUpdateParamsAmino { /** * authority is the address of the governance account. */ authority: string; /** * params defines the x/vm parameters to update. * NOTE: All parameters must be supplied. */ params: ParamsAmino; } interface MsgUpdateParamsAminoMsg { type: "cosmos/evm/x/vm/MsgUpdateParams"; value: MsgUpdateParamsAmino; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * @name MsgUpdateParamsResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParamsResponse */ interface MsgUpdateParamsResponse {} interface MsgUpdateParamsResponseProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgUpdateParamsResponse"; value: Uint8Array; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * @name MsgUpdateParamsResponseAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParamsResponse */ interface MsgUpdateParamsResponseAmino {} interface MsgUpdateParamsResponseAminoMsg { type: "cosmos-sdk/MsgUpdateParamsResponse"; value: MsgUpdateParamsResponseAmino; } /** * MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state. * @name MsgRegisterPreinstalls * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstalls */ interface MsgRegisterPreinstalls { /** * authority is the address of the governance account. */ authority: string; /** * preinstalls defines the preinstalls to create. */ preinstalls: Preinstall[]; } interface MsgRegisterPreinstallsProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgRegisterPreinstalls"; value: Uint8Array; } /** * MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state. * @name MsgRegisterPreinstallsAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstalls */ interface MsgRegisterPreinstallsAmino { /** * authority is the address of the governance account. */ authority: string; /** * preinstalls defines the preinstalls to create. */ preinstalls: PreinstallAmino[]; } interface MsgRegisterPreinstallsAminoMsg { type: "cosmos/evm/x/vm/MsgRegisterPreinstalls"; value: MsgRegisterPreinstallsAmino; } /** * MsgRegisterPreinstallsResponse defines the response structure for executing a * MsgRegisterPreinstalls message. * @name MsgRegisterPreinstallsResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse */ interface MsgRegisterPreinstallsResponse {} interface MsgRegisterPreinstallsResponseProtoMsg { typeUrl: "/cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse"; value: Uint8Array; } /** * MsgRegisterPreinstallsResponse defines the response structure for executing a * MsgRegisterPreinstalls message. * @name MsgRegisterPreinstallsResponseAmino * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse */ interface MsgRegisterPreinstallsResponseAmino {} interface MsgRegisterPreinstallsResponseAminoMsg { type: "cosmos-sdk/MsgRegisterPreinstallsResponse"; value: MsgRegisterPreinstallsResponseAmino; } /** * MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. * @name MsgEthereumTx * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTx */ declare const MsgEthereumTx: { typeUrl: string; aminoType: string; is(o: any): o is MsgEthereumTx; isAmino(o: any): o is MsgEthereumTxAmino; encode(message: MsgEthereumTx, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEthereumTx; fromPartial(object: DeepPartial): MsgEthereumTx; fromAmino(object: MsgEthereumTxAmino): MsgEthereumTx; toAmino(message: MsgEthereumTx): MsgEthereumTxAmino; fromAminoMsg(object: MsgEthereumTxAminoMsg): MsgEthereumTx; toAminoMsg(message: MsgEthereumTx): MsgEthereumTxAminoMsg; fromProtoMsg(message: MsgEthereumTxProtoMsg): MsgEthereumTx; toProto(message: MsgEthereumTx): Uint8Array; toProtoMsg(message: MsgEthereumTx): MsgEthereumTxProtoMsg; registerTypeUrl(): void; }; /** * ExtensionOptionsEthereumTx is an extension option for ethereum transactions * @name ExtensionOptionsEthereumTx * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.ExtensionOptionsEthereumTx */ declare const ExtensionOptionsEthereumTx: { typeUrl: string; aminoType: string; is(o: any): o is ExtensionOptionsEthereumTx; isAmino(o: any): o is ExtensionOptionsEthereumTxAmino; encode(_: ExtensionOptionsEthereumTx, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ExtensionOptionsEthereumTx; fromPartial(_: DeepPartial): ExtensionOptionsEthereumTx; fromAmino(_: ExtensionOptionsEthereumTxAmino): ExtensionOptionsEthereumTx; toAmino(_: ExtensionOptionsEthereumTx): ExtensionOptionsEthereumTxAmino; fromAminoMsg(object: ExtensionOptionsEthereumTxAminoMsg): ExtensionOptionsEthereumTx; toAminoMsg(message: ExtensionOptionsEthereumTx): ExtensionOptionsEthereumTxAminoMsg; fromProtoMsg(message: ExtensionOptionsEthereumTxProtoMsg): ExtensionOptionsEthereumTx; toProto(message: ExtensionOptionsEthereumTx): Uint8Array; toProtoMsg(message: ExtensionOptionsEthereumTx): ExtensionOptionsEthereumTxProtoMsg; registerTypeUrl(): void; }; /** * MsgEthereumTxResponse defines the Msg/EthereumTx response type. * @name MsgEthereumTxResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgEthereumTxResponse */ declare const MsgEthereumTxResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgEthereumTxResponse; isAmino(o: any): o is MsgEthereumTxResponseAmino; encode(message: MsgEthereumTxResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgEthereumTxResponse; fromPartial(object: DeepPartial): MsgEthereumTxResponse; fromAmino(object: MsgEthereumTxResponseAmino): MsgEthereumTxResponse; toAmino(message: MsgEthereumTxResponse): MsgEthereumTxResponseAmino; fromAminoMsg(object: MsgEthereumTxResponseAminoMsg): MsgEthereumTxResponse; toAminoMsg(message: MsgEthereumTxResponse): MsgEthereumTxResponseAminoMsg; fromProtoMsg(message: MsgEthereumTxResponseProtoMsg): MsgEthereumTxResponse; toProto(message: MsgEthereumTxResponse): Uint8Array; toProtoMsg(message: MsgEthereumTxResponse): MsgEthereumTxResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgUpdateParams defines a Msg for updating the x/vm module parameters. * @name MsgUpdateParams * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParams */ declare const MsgUpdateParams: { typeUrl: string; aminoType: string; is(o: any): o is MsgUpdateParams; isAmino(o: any): o is MsgUpdateParamsAmino; encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams; fromPartial(object: DeepPartial): MsgUpdateParams; fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams; toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino; fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams; toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg; fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams; toProto(message: MsgUpdateParams): Uint8Array; toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg; registerTypeUrl(): void; }; /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * @name MsgUpdateParamsResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgUpdateParamsResponse */ declare const MsgUpdateParamsResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgUpdateParamsResponse; isAmino(o: any): o is MsgUpdateParamsResponseAmino; encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse; toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino; fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse; toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg; fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse; toProto(message: MsgUpdateParamsResponse): Uint8Array; toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg; registerTypeUrl(): void; }; /** * MsgRegisterPreinstalls defines a Msg for creating preinstalls in evm state. * @name MsgRegisterPreinstalls * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstalls */ declare const MsgRegisterPreinstalls: { typeUrl: string; aminoType: string; is(o: any): o is MsgRegisterPreinstalls; isAmino(o: any): o is MsgRegisterPreinstallsAmino; encode(message: MsgRegisterPreinstalls, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterPreinstalls; fromPartial(object: DeepPartial): MsgRegisterPreinstalls; fromAmino(object: MsgRegisterPreinstallsAmino): MsgRegisterPreinstalls; toAmino(message: MsgRegisterPreinstalls): MsgRegisterPreinstallsAmino; fromAminoMsg(object: MsgRegisterPreinstallsAminoMsg): MsgRegisterPreinstalls; toAminoMsg(message: MsgRegisterPreinstalls): MsgRegisterPreinstallsAminoMsg; fromProtoMsg(message: MsgRegisterPreinstallsProtoMsg): MsgRegisterPreinstalls; toProto(message: MsgRegisterPreinstalls): Uint8Array; toProtoMsg(message: MsgRegisterPreinstalls): MsgRegisterPreinstallsProtoMsg; registerTypeUrl(): void; }; /** * MsgRegisterPreinstallsResponse defines the response structure for executing a * MsgRegisterPreinstalls message. * @name MsgRegisterPreinstallsResponse * @package cosmos.evm.vm.v1 * @see proto type: cosmos.evm.vm.v1.MsgRegisterPreinstallsResponse */ declare const MsgRegisterPreinstallsResponse: { typeUrl: string; aminoType: string; is(o: any): o is MsgRegisterPreinstallsResponse; isAmino(o: any): o is MsgRegisterPreinstallsResponseAmino; encode(_: MsgRegisterPreinstallsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgRegisterPreinstallsResponse; fromPartial(_: DeepPartial): MsgRegisterPreinstallsResponse; fromAmino(_: MsgRegisterPreinstallsResponseAmino): MsgRegisterPreinstallsResponse; toAmino(_: MsgRegisterPreinstallsResponse): MsgRegisterPreinstallsResponseAmino; fromAminoMsg(object: MsgRegisterPreinstallsResponseAminoMsg): MsgRegisterPreinstallsResponse; toAminoMsg(message: MsgRegisterPreinstallsResponse): MsgRegisterPreinstallsResponseAminoMsg; fromProtoMsg(message: MsgRegisterPreinstallsResponseProtoMsg): MsgRegisterPreinstallsResponse; toProto(message: MsgRegisterPreinstallsResponse): Uint8Array; toProtoMsg(message: MsgRegisterPreinstallsResponse): MsgRegisterPreinstallsResponseProtoMsg; registerTypeUrl(): void; }; //#endregion export { ExtensionOptionsEthereumTx, ExtensionOptionsEthereumTxAmino, ExtensionOptionsEthereumTxAminoMsg, ExtensionOptionsEthereumTxProtoMsg, MsgEthereumTx, MsgEthereumTxAmino, MsgEthereumTxAminoMsg, MsgEthereumTxProtoMsg, MsgEthereumTxResponse, MsgEthereumTxResponseAmino, MsgEthereumTxResponseAminoMsg, MsgEthereumTxResponseProtoMsg, MsgRegisterPreinstalls, MsgRegisterPreinstallsAmino, MsgRegisterPreinstallsAminoMsg, MsgRegisterPreinstallsProtoMsg, MsgRegisterPreinstallsResponse, MsgRegisterPreinstallsResponseAmino, MsgRegisterPreinstallsResponseAminoMsg, MsgRegisterPreinstallsResponseProtoMsg, MsgUpdateParams, MsgUpdateParamsAmino, MsgUpdateParamsAminoMsg, MsgUpdateParamsProtoMsg, MsgUpdateParamsResponse, MsgUpdateParamsResponseAmino, MsgUpdateParamsResponseAminoMsg, MsgUpdateParamsResponseProtoMsg };