import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../google/protobuf/any"; import { AccessTuple, Log, Params } from "./evm"; export declare const protobufPackage = "ethermint.evm.v1"; /** MsgEthereumTx encapsulates an Ethereum transaction as an SDK message. */ export interface MsgEthereumTx { /** data is inner transaction data of the Ethereum transaction */ data: Any | undefined; /** size is the encoded storage size of the transaction (DEPRECATED) */ size: number; /** hash of the transaction in hex format */ hash: string; /** * from is the ethereum signer address in hex format. This address value is checked * against the address derived from the signature (V, R, S) using the * secp256k1 elliptic curve */ from: string; } /** * LegacyTx is the transaction data of regular Ethereum transactions. * NOTE: All non-protected transactions (i.e non EIP155 signed) will fail if the * AllowUnprotectedTxs parameter is disabled. */ export interface LegacyTx { /** nonce corresponds to the account nonce (transaction sequence). */ nonce: Long; /** gas_price defines the value for each gas unit */ gasPrice: string; /** gas defines the gas limit defined for the transaction. */ gas: Long; /** to is the hex formatted address of the recipient */ to: string; /** value defines the unsigned integer value of the transaction amount. */ value: string; /** data is the data payload bytes of the transaction. */ data: Uint8Array; /** v defines the signature value */ v: Uint8Array; /** r defines the signature value */ r: Uint8Array; /** s define the signature value */ s: Uint8Array; } /** AccessListTx is the data of EIP-2930 access list transactions. */ export interface AccessListTx { /** chain_id of the destination EVM chain */ chainId: string; /** nonce corresponds to the account nonce (transaction sequence). */ nonce: Long; /** gas_price defines the value for each gas unit */ gasPrice: string; /** gas defines the gas limit defined for the transaction. */ gas: Long; /** to is the recipient address in hex format */ to: string; /** value defines the unsigned integer value of the transaction amount. */ value: string; /** data is the data payload bytes of the transaction. */ data: Uint8Array; /** accesses is an array of access tuples */ accesses: AccessTuple[]; /** v defines the signature value */ v: Uint8Array; /** r defines the signature value */ r: Uint8Array; /** s define the signature value */ s: Uint8Array; } /** DynamicFeeTx is the data of EIP-1559 dynamic fee transactions. */ export interface DynamicFeeTx { /** chain_id of the destination EVM chain */ chainId: string; /** nonce corresponds to the account nonce (transaction sequence). */ nonce: Long; /** gas_tip_cap defines the max value for the gas tip */ gasTipCap: string; /** gas_fee_cap defines the max value for the gas fee */ gasFeeCap: string; /** gas defines the gas limit defined for the transaction. */ gas: Long; /** to is the hex formatted address of the recipient */ to: string; /** value defines the transaction amount. */ value: string; /** data is the data payload bytes of the transaction. */ data: Uint8Array; /** accesses is an array of access tuples */ accesses: AccessTuple[]; /** v defines the signature value */ v: Uint8Array; /** r defines the signature value */ r: Uint8Array; /** s define the signature value */ s: Uint8Array; } /** ExtensionOptionsEthereumTx is an extension option for ethereum transactions */ export interface ExtensionOptionsEthereumTx { } /** MsgEthereumTxResponse defines the Msg/EthereumTx response type. */ export interface MsgEthereumTxResponse { /** * hash of the ethereum transaction in hex format. This hash differs from the * Tendermint 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: Long; } /** MsgUpdateParams defines a Msg for updating the x/evm module parameters. */ export interface MsgUpdateParams { /** authority is the address of the governance account. */ authority: string; /** * params defines the x/evm parameters to update. * NOTE: All parameters must be supplied. */ params: Params | undefined; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } export declare const MsgEthereumTx: { encode(message: MsgEthereumTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEthereumTx; fromJSON(object: any): MsgEthereumTx; toJSON(message: MsgEthereumTx): unknown; create(base?: DeepPartial): MsgEthereumTx; fromPartial(object: DeepPartial): MsgEthereumTx; }; export declare const LegacyTx: { encode(message: LegacyTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LegacyTx; fromJSON(object: any): LegacyTx; toJSON(message: LegacyTx): unknown; create(base?: DeepPartial): LegacyTx; fromPartial(object: DeepPartial): LegacyTx; }; export declare const AccessListTx: { encode(message: AccessListTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AccessListTx; fromJSON(object: any): AccessListTx; toJSON(message: AccessListTx): unknown; create(base?: DeepPartial): AccessListTx; fromPartial(object: DeepPartial): AccessListTx; }; export declare const DynamicFeeTx: { encode(message: DynamicFeeTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DynamicFeeTx; fromJSON(object: any): DynamicFeeTx; toJSON(message: DynamicFeeTx): unknown; create(base?: DeepPartial): DynamicFeeTx; fromPartial(object: DeepPartial): DynamicFeeTx; }; export declare const ExtensionOptionsEthereumTx: { encode(_: ExtensionOptionsEthereumTx, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionOptionsEthereumTx; fromJSON(_: any): ExtensionOptionsEthereumTx; toJSON(_: ExtensionOptionsEthereumTx): unknown; create(base?: DeepPartial): ExtensionOptionsEthereumTx; fromPartial(_: DeepPartial): ExtensionOptionsEthereumTx; }; export declare const MsgEthereumTxResponse: { encode(message: MsgEthereumTxResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEthereumTxResponse; fromJSON(object: any): MsgEthereumTxResponse; toJSON(message: MsgEthereumTxResponse): unknown; create(base?: DeepPartial): MsgEthereumTxResponse; fromPartial(object: DeepPartial): MsgEthereumTxResponse; }; 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; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): 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; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; /** Msg defines the evm Msg service. */ export interface Msg { /** EthereumTx defines a method submitting Ethereum transactions. */ EthereumTx(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpdateParams defined a governance operation for updating the x/evm module parameters. * The authority is hard-coded to the Cosmos SDK x/gov module account */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); EthereumTx(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgEthereumTxDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } 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; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};