carbon-js-sdk 0.3.53-dev.1 → 0.3.53-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clients/CarbonQueryClient.d.ts +6 -0
- package/lib/clients/CarbonQueryClient.js +36 -30
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.d.ts +4 -2
- package/lib/clients/TokenClient.js +68 -4
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/broker/amm.d.ts +1 -0
- package/lib/codec/broker/amm.js +15 -1
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/tx/v1beta1/tx.js +2 -2
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +39 -0
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +138 -0
- package/lib/codec/ethermint/evm/v1/events.d.ts +72 -0
- package/lib/codec/ethermint/evm/v1/events.js +303 -0
- package/lib/codec/ethermint/evm/v1/evm.d.ts +239 -0
- package/lib/codec/ethermint/evm/v1/evm.js +1140 -0
- package/lib/codec/ethermint/evm/v1/genesis.d.ts +43 -0
- package/lib/codec/ethermint/evm/v1/genesis.js +153 -0
- package/lib/codec/ethermint/evm/v1/query.d.ts +424 -0
- package/lib/codec/ethermint/evm/v1/query.js +1637 -0
- package/lib/codec/ethermint/evm/v1/tx.d.ts +219 -0
- package/lib/codec/ethermint/evm/v1/tx.js +935 -0
- package/lib/codec/ethermint/feemarket/v1/events.d.ts +34 -0
- package/lib/codec/ethermint/feemarket/v1/events.js +116 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +51 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +26 -0
- package/lib/codec/ethermint/feemarket/v1/genesis.js +79 -0
- package/lib/codec/ethermint/feemarket/v1/query.d.ts +100 -0
- package/lib/codec/ethermint/feemarket/v1/query.js +276 -0
- package/lib/codec/ethermint/feemarket/v1/tx.d.ts +55 -0
- package/lib/codec/ethermint/feemarket/v1/tx.js +120 -0
- package/lib/codec/ethermint/types/v1/account.d.ts +26 -0
- package/lib/codec/ethermint/types/v1/account.js +78 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +20 -0
- package/lib/codec/ethermint/types/v1/dynamic_fee.js +60 -0
- package/lib/codec/ethermint/types/v1/indexer.d.ts +41 -0
- package/lib/codec/ethermint/types/v1/indexer.js +153 -0
- package/lib/codec/ethermint/types/v1/web3.d.ts +36 -0
- package/lib/codec/ethermint/types/v1/web3.js +124 -0
- package/lib/codec/evmbank/genesis.d.ts +32 -0
- package/lib/codec/evmbank/genesis.js +152 -0
- package/lib/codec/evmbank/query.d.ts +40 -0
- package/lib/codec/evmbank/query.js +116 -0
- package/lib/codec/evmmerge/event.d.ts +20 -0
- package/lib/codec/evmmerge/event.js +90 -0
- package/lib/codec/evmmerge/genesis.d.ts +48 -0
- package/lib/codec/evmmerge/genesis.js +216 -0
- package/lib/codec/evmmerge/offchain.d.ts +22 -0
- package/lib/codec/evmmerge/offchain.js +105 -0
- package/lib/codec/evmmerge/query.d.ts +43 -0
- package/lib/codec/evmmerge/query.js +117 -0
- package/lib/codec/evmmerge/tx.d.ts +45 -0
- package/lib/codec/evmmerge/tx.js +128 -0
- package/lib/codec/index.d.ts +14 -10
- package/lib/codec/index.js +52 -27
- package/lib/codec/liquiditypool/event.d.ts +12 -0
- package/lib/codec/liquiditypool/event.js +74 -1
- package/lib/codec/liquiditypool/genesis.d.ts +2 -1
- package/lib/codec/liquiditypool/genesis.js +17 -2
- package/lib/codec/liquiditypool/liquiditypool.d.ts +40 -0
- package/lib/codec/liquiditypool/liquiditypool.js +320 -2
- package/lib/codec/liquiditypool/proposal.d.ts +37 -1
- package/lib/codec/liquiditypool/proposal.js +229 -1
- package/lib/codec/liquiditypool/query.d.ts +85 -24
- package/lib/codec/liquiditypool/query.js +338 -23
- package/lib/codec/liquiditypool/tx.d.ts +101 -46
- package/lib/codec/liquiditypool/tx.js +638 -309
- package/lib/codec/order/order.d.ts +1 -0
- package/lib/codec/order/order.js +45 -1
- package/lib/constant/generic.js +1 -1
- package/lib/modules/admin.d.ts +0 -2
- package/lib/modules/admin.js +0 -26
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/coin.d.ts +19 -0
- package/lib/modules/coin.js +39 -0
- package/lib/modules/cosmwasm.js +1 -1
- package/lib/modules/gov.js +12 -26
- package/lib/modules/liquiditypool.d.ts +11 -2
- package/lib/modules/liquiditypool.js +34 -3
- package/lib/modules/market.d.ts +11 -0
- package/lib/modules/market.js +19 -0
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/amino/types/admin.js +28 -32
- package/lib/provider/amino/types/bank.js +1 -1
- package/lib/provider/amino/types/broker.js +1 -1
- package/lib/provider/amino/types/cdp.js +22 -22
- package/lib/provider/amino/types/coin.js +4 -4
- package/lib/provider/amino/types/gov.js +4 -40
- package/lib/provider/amino/types/ibc.js +1 -1
- package/lib/provider/amino/types/leverage.js +1 -1
- package/lib/provider/amino/types/liquidityPool.js +7 -9
- package/lib/provider/amino/types/market.js +1 -1
- package/lib/provider/amino/types/oracle.js +1 -1
- package/lib/provider/amino/types/order.js +4 -4
- package/lib/provider/amino/types/position.js +1 -1
- package/lib/provider/amino/types/profile.js +1 -1
- package/lib/provider/amino/types/staking.js +4 -4
- package/lib/provider/amino/types/subaccount.js +3 -3
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.js +1 -1
- package/lib/provider/o3/O3Wallet.js +2 -2
- package/lib/util/address.js +13 -13
- package/lib/util/api.js +4 -4
- package/lib/util/blockchain.d.ts +4 -1
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/gov.d.ts +0 -2
- package/lib/util/gov.js +0 -6
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +9 -4
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -6
- package/lib/websocket/connector.js +3 -3
- package/lib/websocket/models.d.ts +7 -2
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Params, State } from "./evm";
|
|
4
|
+
export declare const protobufPackage = "ethermint.evm.v1";
|
|
5
|
+
/** GenesisState defines the evm module's genesis state. */
|
|
6
|
+
export interface GenesisState {
|
|
7
|
+
/** accounts is an array containing the ethereum genesis accounts. */
|
|
8
|
+
accounts: GenesisAccount[];
|
|
9
|
+
/** params defines all the parameters of the module. */
|
|
10
|
+
params?: Params;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* GenesisAccount defines an account to be initialized in the genesis state.
|
|
14
|
+
* Its main difference between with Geth's GenesisAccount is that it uses a
|
|
15
|
+
* custom storage type and that it doesn't contain the private key field.
|
|
16
|
+
*/
|
|
17
|
+
export interface GenesisAccount {
|
|
18
|
+
/** address defines an ethereum hex formated address of an account */
|
|
19
|
+
address: string;
|
|
20
|
+
/** code defines the hex bytes of the account code. */
|
|
21
|
+
code: string;
|
|
22
|
+
/** storage defines the set of state key values for the account. */
|
|
23
|
+
storage: State[];
|
|
24
|
+
}
|
|
25
|
+
export declare const GenesisState: {
|
|
26
|
+
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
28
|
+
fromJSON(object: any): GenesisState;
|
|
29
|
+
toJSON(message: GenesisState): unknown;
|
|
30
|
+
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
31
|
+
};
|
|
32
|
+
export declare const GenesisAccount: {
|
|
33
|
+
encode(message: GenesisAccount, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisAccount;
|
|
35
|
+
fromJSON(object: any): GenesisAccount;
|
|
36
|
+
toJSON(message: GenesisAccount): unknown;
|
|
37
|
+
fromPartial(object: DeepPartial<GenesisAccount>): GenesisAccount;
|
|
38
|
+
};
|
|
39
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.GenesisAccount = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const evm_1 = require("./evm");
|
|
11
|
+
exports.protobufPackage = "ethermint.evm.v1";
|
|
12
|
+
const baseGenesisState = {};
|
|
13
|
+
exports.GenesisState = {
|
|
14
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
15
|
+
for (const v of message.accounts) {
|
|
16
|
+
exports.GenesisAccount.encode(v, writer.uint32(10).fork()).ldelim();
|
|
17
|
+
}
|
|
18
|
+
if (message.params !== undefined) {
|
|
19
|
+
evm_1.Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
20
|
+
}
|
|
21
|
+
return writer;
|
|
22
|
+
},
|
|
23
|
+
decode(input, length) {
|
|
24
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
25
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
+
const message = Object.assign({}, baseGenesisState);
|
|
27
|
+
message.accounts = [];
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
const tag = reader.uint32();
|
|
30
|
+
switch (tag >>> 3) {
|
|
31
|
+
case 1:
|
|
32
|
+
message.accounts.push(exports.GenesisAccount.decode(reader, reader.uint32()));
|
|
33
|
+
break;
|
|
34
|
+
case 2:
|
|
35
|
+
message.params = evm_1.Params.decode(reader, reader.uint32());
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
reader.skipType(tag & 7);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
fromJSON(object) {
|
|
45
|
+
var _a;
|
|
46
|
+
const message = Object.assign({}, baseGenesisState);
|
|
47
|
+
message.accounts = ((_a = object.accounts) !== null && _a !== void 0 ? _a : []).map((e) => exports.GenesisAccount.fromJSON(e));
|
|
48
|
+
message.params =
|
|
49
|
+
object.params !== undefined && object.params !== null
|
|
50
|
+
? evm_1.Params.fromJSON(object.params)
|
|
51
|
+
: undefined;
|
|
52
|
+
return message;
|
|
53
|
+
},
|
|
54
|
+
toJSON(message) {
|
|
55
|
+
const obj = {};
|
|
56
|
+
if (message.accounts) {
|
|
57
|
+
obj.accounts = message.accounts.map((e) => e ? exports.GenesisAccount.toJSON(e) : undefined);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
obj.accounts = [];
|
|
61
|
+
}
|
|
62
|
+
message.params !== undefined &&
|
|
63
|
+
(obj.params = message.params ? evm_1.Params.toJSON(message.params) : undefined);
|
|
64
|
+
return obj;
|
|
65
|
+
},
|
|
66
|
+
fromPartial(object) {
|
|
67
|
+
var _a;
|
|
68
|
+
const message = Object.assign({}, baseGenesisState);
|
|
69
|
+
message.accounts = ((_a = object.accounts) !== null && _a !== void 0 ? _a : []).map((e) => exports.GenesisAccount.fromPartial(e));
|
|
70
|
+
message.params =
|
|
71
|
+
object.params !== undefined && object.params !== null
|
|
72
|
+
? evm_1.Params.fromPartial(object.params)
|
|
73
|
+
: undefined;
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
const baseGenesisAccount = { address: "", code: "" };
|
|
78
|
+
exports.GenesisAccount = {
|
|
79
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
80
|
+
if (message.address !== "") {
|
|
81
|
+
writer.uint32(10).string(message.address);
|
|
82
|
+
}
|
|
83
|
+
if (message.code !== "") {
|
|
84
|
+
writer.uint32(18).string(message.code);
|
|
85
|
+
}
|
|
86
|
+
for (const v of message.storage) {
|
|
87
|
+
evm_1.State.encode(v, writer.uint32(26).fork()).ldelim();
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = Object.assign({}, baseGenesisAccount);
|
|
95
|
+
message.storage = [];
|
|
96
|
+
while (reader.pos < end) {
|
|
97
|
+
const tag = reader.uint32();
|
|
98
|
+
switch (tag >>> 3) {
|
|
99
|
+
case 1:
|
|
100
|
+
message.address = reader.string();
|
|
101
|
+
break;
|
|
102
|
+
case 2:
|
|
103
|
+
message.code = reader.string();
|
|
104
|
+
break;
|
|
105
|
+
case 3:
|
|
106
|
+
message.storage.push(evm_1.State.decode(reader, reader.uint32()));
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
reader.skipType(tag & 7);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
fromJSON(object) {
|
|
116
|
+
var _a;
|
|
117
|
+
const message = Object.assign({}, baseGenesisAccount);
|
|
118
|
+
message.address =
|
|
119
|
+
object.address !== undefined && object.address !== null
|
|
120
|
+
? String(object.address)
|
|
121
|
+
: "";
|
|
122
|
+
message.code =
|
|
123
|
+
object.code !== undefined && object.code !== null
|
|
124
|
+
? String(object.code)
|
|
125
|
+
: "";
|
|
126
|
+
message.storage = ((_a = object.storage) !== null && _a !== void 0 ? _a : []).map((e) => evm_1.State.fromJSON(e));
|
|
127
|
+
return message;
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
message.address !== undefined && (obj.address = message.address);
|
|
132
|
+
message.code !== undefined && (obj.code = message.code);
|
|
133
|
+
if (message.storage) {
|
|
134
|
+
obj.storage = message.storage.map((e) => e ? evm_1.State.toJSON(e) : undefined);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
obj.storage = [];
|
|
138
|
+
}
|
|
139
|
+
return obj;
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object) {
|
|
142
|
+
var _a, _b, _c;
|
|
143
|
+
const message = Object.assign({}, baseGenesisAccount);
|
|
144
|
+
message.address = (_a = object.address) !== null && _a !== void 0 ? _a : "";
|
|
145
|
+
message.code = (_b = object.code) !== null && _b !== void 0 ? _b : "";
|
|
146
|
+
message.storage = ((_c = object.storage) !== null && _c !== void 0 ? _c : []).map((e) => evm_1.State.fromPartial(e));
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
151
|
+
minimal_1.default.util.Long = long_1.default;
|
|
152
|
+
minimal_1.default.configure();
|
|
153
|
+
}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import Long from "long";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination";
|
|
4
|
+
import { Params, TraceConfig, Log } from "./evm";
|
|
5
|
+
import { MsgEthereumTx, MsgEthereumTxResponse } from "./tx";
|
|
6
|
+
export declare const protobufPackage = "ethermint.evm.v1";
|
|
7
|
+
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
8
|
+
export interface QueryAccountRequest {
|
|
9
|
+
/** address is the ethereum hex address to query the account for. */
|
|
10
|
+
address: string;
|
|
11
|
+
}
|
|
12
|
+
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
13
|
+
export interface QueryAccountResponse {
|
|
14
|
+
/** balance is the balance of the EVM denomination. */
|
|
15
|
+
balance: string;
|
|
16
|
+
/** code_hash is the hex-formatted code bytes from the EOA. */
|
|
17
|
+
codeHash: string;
|
|
18
|
+
/** nonce is the account's sequence number. */
|
|
19
|
+
nonce: Long;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* QueryCosmosAccountRequest is the request type for the Query/CosmosAccount RPC
|
|
23
|
+
* method.
|
|
24
|
+
*/
|
|
25
|
+
export interface QueryCosmosAccountRequest {
|
|
26
|
+
/** address is the ethereum hex address to query the account for. */
|
|
27
|
+
address: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* QueryCosmosAccountResponse is the response type for the Query/CosmosAccount
|
|
31
|
+
* RPC method.
|
|
32
|
+
*/
|
|
33
|
+
export interface QueryCosmosAccountResponse {
|
|
34
|
+
/** cosmos_address is the cosmos address of the account. */
|
|
35
|
+
cosmosAddress: string;
|
|
36
|
+
/** sequence is the account's sequence number. */
|
|
37
|
+
sequence: Long;
|
|
38
|
+
/** account_number is the account number */
|
|
39
|
+
accountNumber: Long;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* QueryValidatorAccountRequest is the request type for the
|
|
43
|
+
* Query/ValidatorAccount RPC method.
|
|
44
|
+
*/
|
|
45
|
+
export interface QueryValidatorAccountRequest {
|
|
46
|
+
/** cons_address is the validator cons address to query the account for. */
|
|
47
|
+
consAddress: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* QueryValidatorAccountResponse is the response type for the
|
|
51
|
+
* Query/ValidatorAccount RPC method.
|
|
52
|
+
*/
|
|
53
|
+
export interface QueryValidatorAccountResponse {
|
|
54
|
+
/** account_address is the cosmos address of the account in bech32 format. */
|
|
55
|
+
accountAddress: string;
|
|
56
|
+
/** sequence is the account's sequence number. */
|
|
57
|
+
sequence: Long;
|
|
58
|
+
/** account_number is the account number */
|
|
59
|
+
accountNumber: Long;
|
|
60
|
+
}
|
|
61
|
+
/** QueryBalanceRequest is the request type for the Query/Balance RPC method. */
|
|
62
|
+
export interface QueryBalanceRequest {
|
|
63
|
+
/** address is the ethereum hex address to query the balance for. */
|
|
64
|
+
address: string;
|
|
65
|
+
}
|
|
66
|
+
/** QueryBalanceResponse is the response type for the Query/Balance RPC method. */
|
|
67
|
+
export interface QueryBalanceResponse {
|
|
68
|
+
/** balance is the balance of the EVM denomination. */
|
|
69
|
+
balance: string;
|
|
70
|
+
}
|
|
71
|
+
/** QueryStorageRequest is the request type for the Query/Storage RPC method. */
|
|
72
|
+
export interface QueryStorageRequest {
|
|
73
|
+
/** address is the ethereum hex address to query the storage state for. */
|
|
74
|
+
address: string;
|
|
75
|
+
/** key defines the key of the storage state */
|
|
76
|
+
key: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* QueryStorageResponse is the response type for the Query/Storage RPC
|
|
80
|
+
* method.
|
|
81
|
+
*/
|
|
82
|
+
export interface QueryStorageResponse {
|
|
83
|
+
/** value defines the storage state value hash associated with the given key. */
|
|
84
|
+
value: string;
|
|
85
|
+
}
|
|
86
|
+
/** QueryCodeRequest is the request type for the Query/Code RPC method. */
|
|
87
|
+
export interface QueryCodeRequest {
|
|
88
|
+
/** address is the ethereum hex address to query the code for. */
|
|
89
|
+
address: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* QueryCodeResponse is the response type for the Query/Code RPC
|
|
93
|
+
* method.
|
|
94
|
+
*/
|
|
95
|
+
export interface QueryCodeResponse {
|
|
96
|
+
/** code represents the code bytes from an ethereum address. */
|
|
97
|
+
code: Uint8Array;
|
|
98
|
+
}
|
|
99
|
+
/** QueryTxLogsRequest is the request type for the Query/TxLogs RPC method. */
|
|
100
|
+
export interface QueryTxLogsRequest {
|
|
101
|
+
/** hash is the ethereum transaction hex hash to query the logs for. */
|
|
102
|
+
hash: string;
|
|
103
|
+
/** pagination defines an optional pagination for the request. */
|
|
104
|
+
pagination?: PageRequest;
|
|
105
|
+
}
|
|
106
|
+
/** QueryTxLogsResponse is the response type for the Query/TxLogs RPC method. */
|
|
107
|
+
export interface QueryTxLogsResponse {
|
|
108
|
+
/** logs represents the ethereum logs generated from the given transaction. */
|
|
109
|
+
logs: Log[];
|
|
110
|
+
/** pagination defines the pagination in the response. */
|
|
111
|
+
pagination?: PageResponse;
|
|
112
|
+
}
|
|
113
|
+
/** QueryParamsRequest defines the request type for querying x/evm parameters. */
|
|
114
|
+
export interface QueryParamsRequest {
|
|
115
|
+
}
|
|
116
|
+
/** QueryParamsResponse defines the response type for querying x/evm parameters. */
|
|
117
|
+
export interface QueryParamsResponse {
|
|
118
|
+
/** params define the evm module parameters. */
|
|
119
|
+
params?: Params;
|
|
120
|
+
}
|
|
121
|
+
/** EthCallRequest defines EthCall request */
|
|
122
|
+
export interface EthCallRequest {
|
|
123
|
+
/** args uses the same json format as the json rpc api. */
|
|
124
|
+
args: Uint8Array;
|
|
125
|
+
/** gas_cap defines the default gas cap to be used */
|
|
126
|
+
gasCap: Long;
|
|
127
|
+
/** proposer_address of the requested block in hex format */
|
|
128
|
+
proposerAddress: Uint8Array;
|
|
129
|
+
/** chain_id is the eip155 chain id parsed from the requested block header */
|
|
130
|
+
chainId: Long;
|
|
131
|
+
}
|
|
132
|
+
/** EstimateGasResponse defines EstimateGas response */
|
|
133
|
+
export interface EstimateGasResponse {
|
|
134
|
+
/** gas returns the estimated gas */
|
|
135
|
+
gas: Long;
|
|
136
|
+
}
|
|
137
|
+
/** QueryTraceTxRequest defines TraceTx request */
|
|
138
|
+
export interface QueryTraceTxRequest {
|
|
139
|
+
/** msg is the MsgEthereumTx for the requested transaction */
|
|
140
|
+
msg?: MsgEthereumTx;
|
|
141
|
+
/** trace_config holds extra parameters to trace functions. */
|
|
142
|
+
traceConfig?: TraceConfig;
|
|
143
|
+
/**
|
|
144
|
+
* predecessors is an array of transactions included in the same block
|
|
145
|
+
* need to be replayed first to get correct context for tracing.
|
|
146
|
+
*/
|
|
147
|
+
predecessors: MsgEthereumTx[];
|
|
148
|
+
/** block_number of requested transaction */
|
|
149
|
+
blockNumber: Long;
|
|
150
|
+
/** block_hash of requested transaction */
|
|
151
|
+
blockHash: string;
|
|
152
|
+
/** block_time of requested transaction */
|
|
153
|
+
blockTime?: Date;
|
|
154
|
+
/** proposer_address is the proposer of the requested block */
|
|
155
|
+
proposerAddress: Uint8Array;
|
|
156
|
+
/** chain_id is the the eip155 chain id parsed from the requested block header */
|
|
157
|
+
chainId: Long;
|
|
158
|
+
}
|
|
159
|
+
/** QueryTraceTxResponse defines TraceTx response */
|
|
160
|
+
export interface QueryTraceTxResponse {
|
|
161
|
+
/** data is the response serialized in bytes */
|
|
162
|
+
data: Uint8Array;
|
|
163
|
+
}
|
|
164
|
+
/** QueryTraceBlockRequest defines TraceTx request */
|
|
165
|
+
export interface QueryTraceBlockRequest {
|
|
166
|
+
/** txs is an array of messages in the block */
|
|
167
|
+
txs: MsgEthereumTx[];
|
|
168
|
+
/** trace_config holds extra parameters to trace functions. */
|
|
169
|
+
traceConfig?: TraceConfig;
|
|
170
|
+
/** block_number of the traced block */
|
|
171
|
+
blockNumber: Long;
|
|
172
|
+
/** block_hash (hex) of the traced block */
|
|
173
|
+
blockHash: string;
|
|
174
|
+
/** block_time of the traced block */
|
|
175
|
+
blockTime?: Date;
|
|
176
|
+
/** proposer_address is the address of the requested block */
|
|
177
|
+
proposerAddress: Uint8Array;
|
|
178
|
+
/** chain_id is the eip155 chain id parsed from the requested block header */
|
|
179
|
+
chainId: Long;
|
|
180
|
+
}
|
|
181
|
+
/** QueryTraceBlockResponse defines TraceBlock response */
|
|
182
|
+
export interface QueryTraceBlockResponse {
|
|
183
|
+
/** data is the response serialized in bytes */
|
|
184
|
+
data: Uint8Array;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* QueryBaseFeeRequest defines the request type for querying the EIP1559 base
|
|
188
|
+
* fee.
|
|
189
|
+
*/
|
|
190
|
+
export interface QueryBaseFeeRequest {
|
|
191
|
+
}
|
|
192
|
+
/** QueryBaseFeeResponse returns the EIP1559 base fee. */
|
|
193
|
+
export interface QueryBaseFeeResponse {
|
|
194
|
+
/** base_fee is the EIP1559 base fee */
|
|
195
|
+
baseFee: string;
|
|
196
|
+
}
|
|
197
|
+
export declare const QueryAccountRequest: {
|
|
198
|
+
encode(message: QueryAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
199
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAccountRequest;
|
|
200
|
+
fromJSON(object: any): QueryAccountRequest;
|
|
201
|
+
toJSON(message: QueryAccountRequest): unknown;
|
|
202
|
+
fromPartial(object: DeepPartial<QueryAccountRequest>): QueryAccountRequest;
|
|
203
|
+
};
|
|
204
|
+
export declare const QueryAccountResponse: {
|
|
205
|
+
encode(message: QueryAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
206
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryAccountResponse;
|
|
207
|
+
fromJSON(object: any): QueryAccountResponse;
|
|
208
|
+
toJSON(message: QueryAccountResponse): unknown;
|
|
209
|
+
fromPartial(object: DeepPartial<QueryAccountResponse>): QueryAccountResponse;
|
|
210
|
+
};
|
|
211
|
+
export declare const QueryCosmosAccountRequest: {
|
|
212
|
+
encode(message: QueryCosmosAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
213
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryCosmosAccountRequest;
|
|
214
|
+
fromJSON(object: any): QueryCosmosAccountRequest;
|
|
215
|
+
toJSON(message: QueryCosmosAccountRequest): unknown;
|
|
216
|
+
fromPartial(object: DeepPartial<QueryCosmosAccountRequest>): QueryCosmosAccountRequest;
|
|
217
|
+
};
|
|
218
|
+
export declare const QueryCosmosAccountResponse: {
|
|
219
|
+
encode(message: QueryCosmosAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
220
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryCosmosAccountResponse;
|
|
221
|
+
fromJSON(object: any): QueryCosmosAccountResponse;
|
|
222
|
+
toJSON(message: QueryCosmosAccountResponse): unknown;
|
|
223
|
+
fromPartial(object: DeepPartial<QueryCosmosAccountResponse>): QueryCosmosAccountResponse;
|
|
224
|
+
};
|
|
225
|
+
export declare const QueryValidatorAccountRequest: {
|
|
226
|
+
encode(message: QueryValidatorAccountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
227
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryValidatorAccountRequest;
|
|
228
|
+
fromJSON(object: any): QueryValidatorAccountRequest;
|
|
229
|
+
toJSON(message: QueryValidatorAccountRequest): unknown;
|
|
230
|
+
fromPartial(object: DeepPartial<QueryValidatorAccountRequest>): QueryValidatorAccountRequest;
|
|
231
|
+
};
|
|
232
|
+
export declare const QueryValidatorAccountResponse: {
|
|
233
|
+
encode(message: QueryValidatorAccountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
234
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryValidatorAccountResponse;
|
|
235
|
+
fromJSON(object: any): QueryValidatorAccountResponse;
|
|
236
|
+
toJSON(message: QueryValidatorAccountResponse): unknown;
|
|
237
|
+
fromPartial(object: DeepPartial<QueryValidatorAccountResponse>): QueryValidatorAccountResponse;
|
|
238
|
+
};
|
|
239
|
+
export declare const QueryBalanceRequest: {
|
|
240
|
+
encode(message: QueryBalanceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
241
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryBalanceRequest;
|
|
242
|
+
fromJSON(object: any): QueryBalanceRequest;
|
|
243
|
+
toJSON(message: QueryBalanceRequest): unknown;
|
|
244
|
+
fromPartial(object: DeepPartial<QueryBalanceRequest>): QueryBalanceRequest;
|
|
245
|
+
};
|
|
246
|
+
export declare const QueryBalanceResponse: {
|
|
247
|
+
encode(message: QueryBalanceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
248
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryBalanceResponse;
|
|
249
|
+
fromJSON(object: any): QueryBalanceResponse;
|
|
250
|
+
toJSON(message: QueryBalanceResponse): unknown;
|
|
251
|
+
fromPartial(object: DeepPartial<QueryBalanceResponse>): QueryBalanceResponse;
|
|
252
|
+
};
|
|
253
|
+
export declare const QueryStorageRequest: {
|
|
254
|
+
encode(message: QueryStorageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
255
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryStorageRequest;
|
|
256
|
+
fromJSON(object: any): QueryStorageRequest;
|
|
257
|
+
toJSON(message: QueryStorageRequest): unknown;
|
|
258
|
+
fromPartial(object: DeepPartial<QueryStorageRequest>): QueryStorageRequest;
|
|
259
|
+
};
|
|
260
|
+
export declare const QueryStorageResponse: {
|
|
261
|
+
encode(message: QueryStorageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
262
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryStorageResponse;
|
|
263
|
+
fromJSON(object: any): QueryStorageResponse;
|
|
264
|
+
toJSON(message: QueryStorageResponse): unknown;
|
|
265
|
+
fromPartial(object: DeepPartial<QueryStorageResponse>): QueryStorageResponse;
|
|
266
|
+
};
|
|
267
|
+
export declare const QueryCodeRequest: {
|
|
268
|
+
encode(message: QueryCodeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
269
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryCodeRequest;
|
|
270
|
+
fromJSON(object: any): QueryCodeRequest;
|
|
271
|
+
toJSON(message: QueryCodeRequest): unknown;
|
|
272
|
+
fromPartial(object: DeepPartial<QueryCodeRequest>): QueryCodeRequest;
|
|
273
|
+
};
|
|
274
|
+
export declare const QueryCodeResponse: {
|
|
275
|
+
encode(message: QueryCodeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
276
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryCodeResponse;
|
|
277
|
+
fromJSON(object: any): QueryCodeResponse;
|
|
278
|
+
toJSON(message: QueryCodeResponse): unknown;
|
|
279
|
+
fromPartial(object: DeepPartial<QueryCodeResponse>): QueryCodeResponse;
|
|
280
|
+
};
|
|
281
|
+
export declare const QueryTxLogsRequest: {
|
|
282
|
+
encode(message: QueryTxLogsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
283
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTxLogsRequest;
|
|
284
|
+
fromJSON(object: any): QueryTxLogsRequest;
|
|
285
|
+
toJSON(message: QueryTxLogsRequest): unknown;
|
|
286
|
+
fromPartial(object: DeepPartial<QueryTxLogsRequest>): QueryTxLogsRequest;
|
|
287
|
+
};
|
|
288
|
+
export declare const QueryTxLogsResponse: {
|
|
289
|
+
encode(message: QueryTxLogsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
290
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTxLogsResponse;
|
|
291
|
+
fromJSON(object: any): QueryTxLogsResponse;
|
|
292
|
+
toJSON(message: QueryTxLogsResponse): unknown;
|
|
293
|
+
fromPartial(object: DeepPartial<QueryTxLogsResponse>): QueryTxLogsResponse;
|
|
294
|
+
};
|
|
295
|
+
export declare const QueryParamsRequest: {
|
|
296
|
+
encode(_: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
297
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsRequest;
|
|
298
|
+
fromJSON(_: any): QueryParamsRequest;
|
|
299
|
+
toJSON(_: QueryParamsRequest): unknown;
|
|
300
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
301
|
+
};
|
|
302
|
+
export declare const QueryParamsResponse: {
|
|
303
|
+
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
304
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryParamsResponse;
|
|
305
|
+
fromJSON(object: any): QueryParamsResponse;
|
|
306
|
+
toJSON(message: QueryParamsResponse): unknown;
|
|
307
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
308
|
+
};
|
|
309
|
+
export declare const EthCallRequest: {
|
|
310
|
+
encode(message: EthCallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
311
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EthCallRequest;
|
|
312
|
+
fromJSON(object: any): EthCallRequest;
|
|
313
|
+
toJSON(message: EthCallRequest): unknown;
|
|
314
|
+
fromPartial(object: DeepPartial<EthCallRequest>): EthCallRequest;
|
|
315
|
+
};
|
|
316
|
+
export declare const EstimateGasResponse: {
|
|
317
|
+
encode(message: EstimateGasResponse, writer?: _m0.Writer): _m0.Writer;
|
|
318
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EstimateGasResponse;
|
|
319
|
+
fromJSON(object: any): EstimateGasResponse;
|
|
320
|
+
toJSON(message: EstimateGasResponse): unknown;
|
|
321
|
+
fromPartial(object: DeepPartial<EstimateGasResponse>): EstimateGasResponse;
|
|
322
|
+
};
|
|
323
|
+
export declare const QueryTraceTxRequest: {
|
|
324
|
+
encode(message: QueryTraceTxRequest, writer?: _m0.Writer): _m0.Writer;
|
|
325
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTraceTxRequest;
|
|
326
|
+
fromJSON(object: any): QueryTraceTxRequest;
|
|
327
|
+
toJSON(message: QueryTraceTxRequest): unknown;
|
|
328
|
+
fromPartial(object: DeepPartial<QueryTraceTxRequest>): QueryTraceTxRequest;
|
|
329
|
+
};
|
|
330
|
+
export declare const QueryTraceTxResponse: {
|
|
331
|
+
encode(message: QueryTraceTxResponse, writer?: _m0.Writer): _m0.Writer;
|
|
332
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTraceTxResponse;
|
|
333
|
+
fromJSON(object: any): QueryTraceTxResponse;
|
|
334
|
+
toJSON(message: QueryTraceTxResponse): unknown;
|
|
335
|
+
fromPartial(object: DeepPartial<QueryTraceTxResponse>): QueryTraceTxResponse;
|
|
336
|
+
};
|
|
337
|
+
export declare const QueryTraceBlockRequest: {
|
|
338
|
+
encode(message: QueryTraceBlockRequest, writer?: _m0.Writer): _m0.Writer;
|
|
339
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTraceBlockRequest;
|
|
340
|
+
fromJSON(object: any): QueryTraceBlockRequest;
|
|
341
|
+
toJSON(message: QueryTraceBlockRequest): unknown;
|
|
342
|
+
fromPartial(object: DeepPartial<QueryTraceBlockRequest>): QueryTraceBlockRequest;
|
|
343
|
+
};
|
|
344
|
+
export declare const QueryTraceBlockResponse: {
|
|
345
|
+
encode(message: QueryTraceBlockResponse, writer?: _m0.Writer): _m0.Writer;
|
|
346
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryTraceBlockResponse;
|
|
347
|
+
fromJSON(object: any): QueryTraceBlockResponse;
|
|
348
|
+
toJSON(message: QueryTraceBlockResponse): unknown;
|
|
349
|
+
fromPartial(object: DeepPartial<QueryTraceBlockResponse>): QueryTraceBlockResponse;
|
|
350
|
+
};
|
|
351
|
+
export declare const QueryBaseFeeRequest: {
|
|
352
|
+
encode(_: QueryBaseFeeRequest, writer?: _m0.Writer): _m0.Writer;
|
|
353
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryBaseFeeRequest;
|
|
354
|
+
fromJSON(_: any): QueryBaseFeeRequest;
|
|
355
|
+
toJSON(_: QueryBaseFeeRequest): unknown;
|
|
356
|
+
fromPartial(_: DeepPartial<QueryBaseFeeRequest>): QueryBaseFeeRequest;
|
|
357
|
+
};
|
|
358
|
+
export declare const QueryBaseFeeResponse: {
|
|
359
|
+
encode(message: QueryBaseFeeResponse, writer?: _m0.Writer): _m0.Writer;
|
|
360
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryBaseFeeResponse;
|
|
361
|
+
fromJSON(object: any): QueryBaseFeeResponse;
|
|
362
|
+
toJSON(message: QueryBaseFeeResponse): unknown;
|
|
363
|
+
fromPartial(object: DeepPartial<QueryBaseFeeResponse>): QueryBaseFeeResponse;
|
|
364
|
+
};
|
|
365
|
+
/** Query defines the gRPC querier service. */
|
|
366
|
+
export interface Query {
|
|
367
|
+
/** Account queries an Ethereum account. */
|
|
368
|
+
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
|
369
|
+
/** CosmosAccount queries an Ethereum account's Cosmos Address. */
|
|
370
|
+
CosmosAccount(request: QueryCosmosAccountRequest): Promise<QueryCosmosAccountResponse>;
|
|
371
|
+
/**
|
|
372
|
+
* ValidatorAccount queries an Ethereum account's from a validator consensus
|
|
373
|
+
* Address.
|
|
374
|
+
*/
|
|
375
|
+
ValidatorAccount(request: QueryValidatorAccountRequest): Promise<QueryValidatorAccountResponse>;
|
|
376
|
+
/**
|
|
377
|
+
* Balance queries the balance of a the EVM denomination for a single
|
|
378
|
+
* EthAccount.
|
|
379
|
+
*/
|
|
380
|
+
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
381
|
+
/** Storage queries the balance of all coins for a single account. */
|
|
382
|
+
Storage(request: QueryStorageRequest): Promise<QueryStorageResponse>;
|
|
383
|
+
/** Code queries the balance of all coins for a single account. */
|
|
384
|
+
Code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
385
|
+
/** Params queries the parameters of x/evm module. */
|
|
386
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
387
|
+
/** EthCall implements the `eth_call` rpc api */
|
|
388
|
+
EthCall(request: EthCallRequest): Promise<MsgEthereumTxResponse>;
|
|
389
|
+
/** EstimateGas implements the `eth_estimateGas` rpc api */
|
|
390
|
+
EstimateGas(request: EthCallRequest): Promise<EstimateGasResponse>;
|
|
391
|
+
/** TraceTx implements the `debug_traceTransaction` rpc api */
|
|
392
|
+
TraceTx(request: QueryTraceTxRequest): Promise<QueryTraceTxResponse>;
|
|
393
|
+
/** TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api */
|
|
394
|
+
TraceBlock(request: QueryTraceBlockRequest): Promise<QueryTraceBlockResponse>;
|
|
395
|
+
/**
|
|
396
|
+
* BaseFee queries the base fee of the parent block of the current block,
|
|
397
|
+
* it's similar to feemarket module's method, but also checks london hardfork status.
|
|
398
|
+
*/
|
|
399
|
+
BaseFee(request: QueryBaseFeeRequest): Promise<QueryBaseFeeResponse>;
|
|
400
|
+
}
|
|
401
|
+
export declare class QueryClientImpl implements Query {
|
|
402
|
+
private readonly rpc;
|
|
403
|
+
constructor(rpc: Rpc);
|
|
404
|
+
Account(request: QueryAccountRequest): Promise<QueryAccountResponse>;
|
|
405
|
+
CosmosAccount(request: QueryCosmosAccountRequest): Promise<QueryCosmosAccountResponse>;
|
|
406
|
+
ValidatorAccount(request: QueryValidatorAccountRequest): Promise<QueryValidatorAccountResponse>;
|
|
407
|
+
Balance(request: QueryBalanceRequest): Promise<QueryBalanceResponse>;
|
|
408
|
+
Storage(request: QueryStorageRequest): Promise<QueryStorageResponse>;
|
|
409
|
+
Code(request: QueryCodeRequest): Promise<QueryCodeResponse>;
|
|
410
|
+
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
411
|
+
EthCall(request: EthCallRequest): Promise<MsgEthereumTxResponse>;
|
|
412
|
+
EstimateGas(request: EthCallRequest): Promise<EstimateGasResponse>;
|
|
413
|
+
TraceTx(request: QueryTraceTxRequest): Promise<QueryTraceTxResponse>;
|
|
414
|
+
TraceBlock(request: QueryTraceBlockRequest): Promise<QueryTraceBlockResponse>;
|
|
415
|
+
BaseFee(request: QueryBaseFeeRequest): Promise<QueryBaseFeeResponse>;
|
|
416
|
+
}
|
|
417
|
+
interface Rpc {
|
|
418
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
419
|
+
}
|
|
420
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
421
|
+
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
422
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
423
|
+
} : Partial<T>;
|
|
424
|
+
export {};
|