import Long from "long"; import _m0 from "protobufjs/minimal"; /** Copyright (c) 2023-2024 Nibi, Inc. */ /** * FunToken is a fungible token mapping between a Bank Coin and a corresponding * ERC-20 smart contract. Bank Coins here refer to tokens like NIBI, IBC * coins (ICS-20), and token factory coins, which are each represented by the * "Coin" type in Golang. */ export interface FunToken { /** Hexadecimal address of the ERC20 token to which the `FunToken` maps */ erc20Addr: string; /** bank_denom: Coin denomination in the Bank Module. */ bankDenom: string; /** * True if the `FunToken` mapping was created from an existing Bank Coin and * the ERC-20 contract gets deployed by the module account. False if the * mapping was created from an externally owned ERC-20 contract. */ isMadeFromCoin: boolean; } /** Params defines the EVM module parameters */ export interface Params { /** extra_eips defines the additional EIPs for the vm.Config */ extraEips: Long[]; /** evm_channels is the list of channel identifiers from EVM compatible chains */ evmChannels: string[]; /** * Fee deducted and burned when calling "CreateFunToken" in units of * "evm_denom". */ createFuntokenFee: string; /** Hexadecimal address of the canonical WNIBI contract on Nibiru mainnet */ canonicalWnibi: string; wasmPlugins: WasmPlugin[]; } /** * WasmPlugin binds a stable plugin name to a Wasm contract address. * * EVM code should look up plugins by name instead of hard-coding Wasm contract * addresses. For example, plugin name "x-oracle" can identify the Wasm adapter * used by the legacy oracle precompile at * 0x0000000000000000000000000000000000000801. */ export interface WasmPlugin { /** Name is a human-readable name for the plugin. */ name: string; /** Addr is the Wasm smart contract address that defines the plugin */ addr: string; } /** State represents a single Storage key value pair item. */ export interface State { /** key is the stored key */ key: string; /** value is the stored value for the given key */ value: string; } /** * Log represents an protobuf compatible Ethereum Log that defines a contract * log event. These events are generated by the LOG opcode and stored/indexed by * the node. * * NOTE: address, topics and data are consensus fields. The rest of the fields * are derived, i.e. filled in by the nodes, but not secured by consensus. */ export interface Log { /** address of the contract that generated the event */ address: string; /** topics is a list of topics provided by the contract. */ topics: string[]; /** data which is supplied by the contract, usually ABI-encoded */ data: Uint8Array; /** block_number of the block in which the transaction was included */ blockNumber: Long; /** tx_hash is the transaction hash */ txHash: string; /** tx_index of the transaction in the block */ txIndex: Long; /** block_hash of the block in which the transaction was included */ blockHash: string; /** index of the log in the block */ index: Long; /** * removed is true if this log was reverted due to a chain * reorganisation. You must pay attention to this field if you receive logs * through a filter query. */ removed: boolean; } /** * LogLite holds the consensus fields from an Ethereum log for a contract * event. This structure is used to record EVM logs emitted within non-Ethreum * transactions, such as "eth.evm.v1.MsgConvertCoinToEvm". Similar to full logs, * these events are generated by the LOG opcode, however [LogLite] instances are * not stored/indexed by the node. */ export interface LogLite { /** address of the contract that generated the event */ address: string; /** topics is a list of topics provided by the contract. */ topics: string[]; /** data which is supplied by the contract, usually ABI-encoded */ data: Uint8Array; } /** AccessTuple is the element type of an access list. */ export interface AccessTuple { /** address is a hex formatted ethereum address */ address: string; /** storage_keys are hex formatted hashes of the storage keys */ storageKeys: string[]; } /** * TracerConfig stores additional tracer args. For geth it's only one attr: * onlyTopCall */ export interface TracerConfig { onlyTopCall: boolean; } /** TraceConfig holds extra parameters to trace functions. */ export interface TraceConfig { /** tracer is a custom javascript tracer */ tracer: string; /** * timeout overrides the default timeout of 5 seconds for JavaScript-based * tracing calls */ timeout: string; /** reexec defines the number of blocks the tracer is willing to go back */ reexec: Long; /** disable_stack switches stack capture */ disableStack: boolean; /** disable_storage switches storage capture */ disableStorage: boolean; /** debug can be used to print output during capture end */ debug: boolean; /** limit defines the maximum length of output, but zero means unlimited */ limit: number; /** enable_memory switches memory capture */ enableMemory: boolean; /** enable_return_data switches the capture of return data */ enableReturnData: boolean; /** tracer_config configures the tracer options */ tracerConfig?: TracerConfig; } export declare const FunToken: { encode(message: FunToken, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FunToken; fromJSON(object: any): FunToken; toJSON(message: FunToken): unknown; create, I>>(base?: I): FunToken; fromPartial, I>>(object: I): FunToken; }; export declare const Params: { encode(message: Params, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; create, I>>(base?: I): Params; fromPartial, I>>(object: I): Params; }; export declare const WasmPlugin: { encode(message: WasmPlugin, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WasmPlugin; fromJSON(object: any): WasmPlugin; toJSON(message: WasmPlugin): unknown; create, I>>(base?: I): WasmPlugin; fromPartial, I>>(object: I): WasmPlugin; }; export declare const State: { encode(message: State, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): State; fromJSON(object: any): State; toJSON(message: State): unknown; create, I>>(base?: I): State; fromPartial, I>>(object: I): State; }; export declare const Log: { encode(message: Log, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Log; fromJSON(object: any): Log; toJSON(message: Log): unknown; create, I>>(base?: I): Log; fromPartial, I>>(object: I): Log; }; export declare const LogLite: { encode(message: LogLite, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LogLite; fromJSON(object: any): LogLite; toJSON(message: LogLite): unknown; create, I>>(base?: I): LogLite; fromPartial, I>>(object: I): LogLite; }; export declare const AccessTuple: { encode(message: AccessTuple, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AccessTuple; fromJSON(object: any): AccessTuple; toJSON(message: AccessTuple): unknown; create, I>>(base?: I): AccessTuple; fromPartial, I>>(object: I): AccessTuple; }; export declare const TracerConfig: { encode(message: TracerConfig, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TracerConfig; fromJSON(object: any): TracerConfig; toJSON(message: TracerConfig): unknown; create, I>>(base?: I): TracerConfig; fromPartial, I>>(object: I): TracerConfig; }; export declare const TraceConfig: { encode(message: TraceConfig, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TraceConfig; fromJSON(object: any): TraceConfig; toJSON(message: TraceConfig): unknown; create, I>>(base?: I): TraceConfig; fromPartial, I>>(object: I): TraceConfig; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export {}; //# sourceMappingURL=evm.d.ts.map