carbon-js-sdk 0.3.53-beta.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.
Files changed (106) hide show
  1. package/lib/CarbonSDK.js +1 -1
  2. package/lib/clients/CarbonQueryClient.d.ts +6 -0
  3. package/lib/clients/CarbonQueryClient.js +36 -30
  4. package/lib/clients/ETHClient.d.ts +11 -4
  5. package/lib/clients/ETHClient.js +32 -18
  6. package/lib/clients/HydrogenClient.d.ts +16 -7
  7. package/lib/clients/HydrogenClient.js +56 -10
  8. package/lib/clients/NEOClient.d.ts +1 -1
  9. package/lib/clients/NEOClient.js +15 -10
  10. package/lib/clients/TokenClient.d.ts +19 -4
  11. package/lib/clients/TokenClient.js +187 -10
  12. package/lib/clients/ZILClient.d.ts +1 -1
  13. package/lib/clients/ZILClient.js +25 -20
  14. package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
  15. package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
  16. package/lib/codec/cosmos/tx/v1beta1/tx.js +2 -2
  17. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.d.ts +39 -0
  18. package/lib/codec/ethermint/crypto/v1/ethsecp256k1/keys.js +138 -0
  19. package/lib/codec/ethermint/evm/v1/events.d.ts +72 -0
  20. package/lib/codec/ethermint/evm/v1/events.js +303 -0
  21. package/lib/codec/ethermint/evm/v1/evm.d.ts +239 -0
  22. package/lib/codec/ethermint/evm/v1/evm.js +1140 -0
  23. package/lib/codec/ethermint/evm/v1/genesis.d.ts +43 -0
  24. package/lib/codec/ethermint/evm/v1/genesis.js +153 -0
  25. package/lib/codec/ethermint/evm/v1/query.d.ts +424 -0
  26. package/lib/codec/ethermint/evm/v1/query.js +1637 -0
  27. package/lib/codec/ethermint/evm/v1/tx.d.ts +219 -0
  28. package/lib/codec/ethermint/evm/v1/tx.js +935 -0
  29. package/lib/codec/ethermint/feemarket/v1/events.d.ts +34 -0
  30. package/lib/codec/ethermint/feemarket/v1/events.js +116 -0
  31. package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +51 -0
  32. package/lib/codec/ethermint/feemarket/v1/feemarket.js +176 -0
  33. package/lib/codec/ethermint/feemarket/v1/genesis.d.ts +26 -0
  34. package/lib/codec/ethermint/feemarket/v1/genesis.js +79 -0
  35. package/lib/codec/ethermint/feemarket/v1/query.d.ts +100 -0
  36. package/lib/codec/ethermint/feemarket/v1/query.js +276 -0
  37. package/lib/codec/ethermint/feemarket/v1/tx.d.ts +55 -0
  38. package/lib/codec/ethermint/feemarket/v1/tx.js +120 -0
  39. package/lib/codec/ethermint/types/v1/account.d.ts +26 -0
  40. package/lib/codec/ethermint/types/v1/account.js +78 -0
  41. package/lib/codec/ethermint/types/v1/dynamic_fee.d.ts +20 -0
  42. package/lib/codec/ethermint/types/v1/dynamic_fee.js +60 -0
  43. package/lib/codec/ethermint/types/v1/indexer.d.ts +41 -0
  44. package/lib/codec/ethermint/types/v1/indexer.js +153 -0
  45. package/lib/codec/ethermint/types/v1/web3.d.ts +36 -0
  46. package/lib/codec/ethermint/types/v1/web3.js +124 -0
  47. package/lib/codec/evmbank/genesis.d.ts +32 -0
  48. package/lib/codec/evmbank/genesis.js +152 -0
  49. package/lib/codec/evmbank/query.d.ts +40 -0
  50. package/lib/codec/evmbank/query.js +116 -0
  51. package/lib/codec/evmmerge/event.d.ts +20 -0
  52. package/lib/codec/evmmerge/event.js +90 -0
  53. package/lib/codec/evmmerge/genesis.d.ts +48 -0
  54. package/lib/codec/evmmerge/genesis.js +216 -0
  55. package/lib/codec/evmmerge/offchain.d.ts +22 -0
  56. package/lib/codec/evmmerge/offchain.js +105 -0
  57. package/lib/codec/evmmerge/query.d.ts +43 -0
  58. package/lib/codec/evmmerge/query.js +117 -0
  59. package/lib/codec/evmmerge/tx.d.ts +45 -0
  60. package/lib/codec/evmmerge/tx.js +128 -0
  61. package/lib/constant/generic.js +1 -1
  62. package/lib/hydrogen/transfer.d.ts +5 -5
  63. package/lib/modules/cdp.js +43 -43
  64. package/lib/modules/cosmwasm.js +1 -1
  65. package/lib/modules/gov.js +12 -12
  66. package/lib/modules/liquiditypool.js +1 -1
  67. package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
  68. package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
  69. package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
  70. package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
  71. package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
  72. package/lib/provider/amino/types/admin.js +28 -28
  73. package/lib/provider/amino/types/bank.js +1 -1
  74. package/lib/provider/amino/types/broker.js +1 -1
  75. package/lib/provider/amino/types/cdp.js +22 -22
  76. package/lib/provider/amino/types/coin.js +4 -4
  77. package/lib/provider/amino/types/gov.js +4 -4
  78. package/lib/provider/amino/types/ibc.js +1 -1
  79. package/lib/provider/amino/types/leverage.js +1 -1
  80. package/lib/provider/amino/types/liquidityPool.js +7 -7
  81. package/lib/provider/amino/types/market.js +1 -1
  82. package/lib/provider/amino/types/oracle.js +1 -1
  83. package/lib/provider/amino/types/order.js +4 -4
  84. package/lib/provider/amino/types/position.js +1 -1
  85. package/lib/provider/amino/types/profile.js +1 -1
  86. package/lib/provider/amino/types/staking.js +4 -4
  87. package/lib/provider/amino/types/subaccount.js +3 -3
  88. package/lib/provider/amino/utils.js +11 -11
  89. package/lib/provider/ledger/ledger.js +2 -2
  90. package/lib/provider/metamask/MetaMask.d.ts +5 -5
  91. package/lib/provider/metamask/MetaMask.js +35 -35
  92. package/lib/provider/o3/O3Wallet.js +2 -2
  93. package/lib/util/address.js +13 -13
  94. package/lib/util/api.js +4 -4
  95. package/lib/util/blockchain.d.ts +12 -0
  96. package/lib/util/blockchain.js +143 -1
  97. package/lib/util/fetch.js +1 -1
  98. package/lib/util/generic.js +3 -3
  99. package/lib/util/ibc.d.ts +4 -4
  100. package/lib/util/ibc.js +17 -18
  101. package/lib/util/number.js +5 -5
  102. package/lib/wallet/CarbonSigner.js +2 -2
  103. package/lib/wallet/CarbonSigningClient.js +8 -8
  104. package/lib/wallet/CarbonWallet.js +6 -6
  105. package/lib/websocket/connector.js +3 -3
  106. package/package.json +1 -1
@@ -0,0 +1,72 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "ethermint.evm.v1";
4
+ /** EventEthereumTx defines the event for an Ethereum transaction */
5
+ export interface EventEthereumTx {
6
+ /** amount */
7
+ amount: string;
8
+ /** eth_hash is the Ethereum hash of the transaction */
9
+ ethHash: string;
10
+ /** index of the transaction in the block */
11
+ index: string;
12
+ /** gas_used is the amount of gas used by the transaction */
13
+ gasUsed: string;
14
+ /** hash is the Tendermint hash of the transaction */
15
+ hash: string;
16
+ /** recipient of the transaction */
17
+ recipient: string;
18
+ /** eth_tx_failed contains a VM error should it occur */
19
+ ethTxFailed: string;
20
+ }
21
+ /** EventTxLog defines the event for an Ethereum transaction log */
22
+ export interface EventTxLog {
23
+ /** tx_logs is an array of transaction logs */
24
+ txLogs: string[];
25
+ }
26
+ /** EventMessage */
27
+ export interface EventMessage {
28
+ /** module which emits the event */
29
+ module: string;
30
+ /** sender of the message */
31
+ sender: string;
32
+ /** tx_type is the type of the message */
33
+ txType: string;
34
+ }
35
+ /** EventBlockBloom defines an Ethereum block bloom filter event */
36
+ export interface EventBlockBloom {
37
+ /** bloom is the bloom filter of the block */
38
+ bloom: string;
39
+ }
40
+ export declare const EventEthereumTx: {
41
+ encode(message: EventEthereumTx, writer?: _m0.Writer): _m0.Writer;
42
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventEthereumTx;
43
+ fromJSON(object: any): EventEthereumTx;
44
+ toJSON(message: EventEthereumTx): unknown;
45
+ fromPartial(object: DeepPartial<EventEthereumTx>): EventEthereumTx;
46
+ };
47
+ export declare const EventTxLog: {
48
+ encode(message: EventTxLog, writer?: _m0.Writer): _m0.Writer;
49
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventTxLog;
50
+ fromJSON(object: any): EventTxLog;
51
+ toJSON(message: EventTxLog): unknown;
52
+ fromPartial(object: DeepPartial<EventTxLog>): EventTxLog;
53
+ };
54
+ export declare const EventMessage: {
55
+ encode(message: EventMessage, writer?: _m0.Writer): _m0.Writer;
56
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventMessage;
57
+ fromJSON(object: any): EventMessage;
58
+ toJSON(message: EventMessage): unknown;
59
+ fromPartial(object: DeepPartial<EventMessage>): EventMessage;
60
+ };
61
+ export declare const EventBlockBloom: {
62
+ encode(message: EventBlockBloom, writer?: _m0.Writer): _m0.Writer;
63
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventBlockBloom;
64
+ fromJSON(object: any): EventBlockBloom;
65
+ toJSON(message: EventBlockBloom): unknown;
66
+ fromPartial(object: DeepPartial<EventBlockBloom>): EventBlockBloom;
67
+ };
68
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
69
+ 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 {} ? {
70
+ [K in keyof T]?: DeepPartial<T[K]>;
71
+ } : Partial<T>;
72
+ export {};
@@ -0,0 +1,303 @@
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.EventBlockBloom = exports.EventMessage = exports.EventTxLog = exports.EventEthereumTx = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "ethermint.evm.v1";
11
+ const baseEventEthereumTx = {
12
+ amount: "",
13
+ ethHash: "",
14
+ index: "",
15
+ gasUsed: "",
16
+ hash: "",
17
+ recipient: "",
18
+ ethTxFailed: "",
19
+ };
20
+ exports.EventEthereumTx = {
21
+ encode(message, writer = minimal_1.default.Writer.create()) {
22
+ if (message.amount !== "") {
23
+ writer.uint32(10).string(message.amount);
24
+ }
25
+ if (message.ethHash !== "") {
26
+ writer.uint32(18).string(message.ethHash);
27
+ }
28
+ if (message.index !== "") {
29
+ writer.uint32(26).string(message.index);
30
+ }
31
+ if (message.gasUsed !== "") {
32
+ writer.uint32(34).string(message.gasUsed);
33
+ }
34
+ if (message.hash !== "") {
35
+ writer.uint32(42).string(message.hash);
36
+ }
37
+ if (message.recipient !== "") {
38
+ writer.uint32(50).string(message.recipient);
39
+ }
40
+ if (message.ethTxFailed !== "") {
41
+ writer.uint32(58).string(message.ethTxFailed);
42
+ }
43
+ return writer;
44
+ },
45
+ decode(input, length) {
46
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
47
+ let end = length === undefined ? reader.len : reader.pos + length;
48
+ const message = Object.assign({}, baseEventEthereumTx);
49
+ while (reader.pos < end) {
50
+ const tag = reader.uint32();
51
+ switch (tag >>> 3) {
52
+ case 1:
53
+ message.amount = reader.string();
54
+ break;
55
+ case 2:
56
+ message.ethHash = reader.string();
57
+ break;
58
+ case 3:
59
+ message.index = reader.string();
60
+ break;
61
+ case 4:
62
+ message.gasUsed = reader.string();
63
+ break;
64
+ case 5:
65
+ message.hash = reader.string();
66
+ break;
67
+ case 6:
68
+ message.recipient = reader.string();
69
+ break;
70
+ case 7:
71
+ message.ethTxFailed = reader.string();
72
+ break;
73
+ default:
74
+ reader.skipType(tag & 7);
75
+ break;
76
+ }
77
+ }
78
+ return message;
79
+ },
80
+ fromJSON(object) {
81
+ const message = Object.assign({}, baseEventEthereumTx);
82
+ message.amount =
83
+ object.amount !== undefined && object.amount !== null
84
+ ? String(object.amount)
85
+ : "";
86
+ message.ethHash =
87
+ object.ethHash !== undefined && object.ethHash !== null
88
+ ? String(object.ethHash)
89
+ : "";
90
+ message.index =
91
+ object.index !== undefined && object.index !== null
92
+ ? String(object.index)
93
+ : "";
94
+ message.gasUsed =
95
+ object.gasUsed !== undefined && object.gasUsed !== null
96
+ ? String(object.gasUsed)
97
+ : "";
98
+ message.hash =
99
+ object.hash !== undefined && object.hash !== null
100
+ ? String(object.hash)
101
+ : "";
102
+ message.recipient =
103
+ object.recipient !== undefined && object.recipient !== null
104
+ ? String(object.recipient)
105
+ : "";
106
+ message.ethTxFailed =
107
+ object.ethTxFailed !== undefined && object.ethTxFailed !== null
108
+ ? String(object.ethTxFailed)
109
+ : "";
110
+ return message;
111
+ },
112
+ toJSON(message) {
113
+ const obj = {};
114
+ message.amount !== undefined && (obj.amount = message.amount);
115
+ message.ethHash !== undefined && (obj.ethHash = message.ethHash);
116
+ message.index !== undefined && (obj.index = message.index);
117
+ message.gasUsed !== undefined && (obj.gasUsed = message.gasUsed);
118
+ message.hash !== undefined && (obj.hash = message.hash);
119
+ message.recipient !== undefined && (obj.recipient = message.recipient);
120
+ message.ethTxFailed !== undefined &&
121
+ (obj.ethTxFailed = message.ethTxFailed);
122
+ return obj;
123
+ },
124
+ fromPartial(object) {
125
+ var _a, _b, _c, _d, _e, _f, _g;
126
+ const message = Object.assign({}, baseEventEthereumTx);
127
+ message.amount = (_a = object.amount) !== null && _a !== void 0 ? _a : "";
128
+ message.ethHash = (_b = object.ethHash) !== null && _b !== void 0 ? _b : "";
129
+ message.index = (_c = object.index) !== null && _c !== void 0 ? _c : "";
130
+ message.gasUsed = (_d = object.gasUsed) !== null && _d !== void 0 ? _d : "";
131
+ message.hash = (_e = object.hash) !== null && _e !== void 0 ? _e : "";
132
+ message.recipient = (_f = object.recipient) !== null && _f !== void 0 ? _f : "";
133
+ message.ethTxFailed = (_g = object.ethTxFailed) !== null && _g !== void 0 ? _g : "";
134
+ return message;
135
+ },
136
+ };
137
+ const baseEventTxLog = { txLogs: "" };
138
+ exports.EventTxLog = {
139
+ encode(message, writer = minimal_1.default.Writer.create()) {
140
+ for (const v of message.txLogs) {
141
+ writer.uint32(10).string(v);
142
+ }
143
+ return writer;
144
+ },
145
+ decode(input, length) {
146
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
147
+ let end = length === undefined ? reader.len : reader.pos + length;
148
+ const message = Object.assign({}, baseEventTxLog);
149
+ message.txLogs = [];
150
+ while (reader.pos < end) {
151
+ const tag = reader.uint32();
152
+ switch (tag >>> 3) {
153
+ case 1:
154
+ message.txLogs.push(reader.string());
155
+ break;
156
+ default:
157
+ reader.skipType(tag & 7);
158
+ break;
159
+ }
160
+ }
161
+ return message;
162
+ },
163
+ fromJSON(object) {
164
+ var _a;
165
+ const message = Object.assign({}, baseEventTxLog);
166
+ message.txLogs = ((_a = object.txLogs) !== null && _a !== void 0 ? _a : []).map((e) => String(e));
167
+ return message;
168
+ },
169
+ toJSON(message) {
170
+ const obj = {};
171
+ if (message.txLogs) {
172
+ obj.txLogs = message.txLogs.map((e) => e);
173
+ }
174
+ else {
175
+ obj.txLogs = [];
176
+ }
177
+ return obj;
178
+ },
179
+ fromPartial(object) {
180
+ var _a;
181
+ const message = Object.assign({}, baseEventTxLog);
182
+ message.txLogs = ((_a = object.txLogs) !== null && _a !== void 0 ? _a : []).map((e) => e);
183
+ return message;
184
+ },
185
+ };
186
+ const baseEventMessage = { module: "", sender: "", txType: "" };
187
+ exports.EventMessage = {
188
+ encode(message, writer = minimal_1.default.Writer.create()) {
189
+ if (message.module !== "") {
190
+ writer.uint32(10).string(message.module);
191
+ }
192
+ if (message.sender !== "") {
193
+ writer.uint32(18).string(message.sender);
194
+ }
195
+ if (message.txType !== "") {
196
+ writer.uint32(26).string(message.txType);
197
+ }
198
+ return writer;
199
+ },
200
+ decode(input, length) {
201
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
202
+ let end = length === undefined ? reader.len : reader.pos + length;
203
+ const message = Object.assign({}, baseEventMessage);
204
+ while (reader.pos < end) {
205
+ const tag = reader.uint32();
206
+ switch (tag >>> 3) {
207
+ case 1:
208
+ message.module = reader.string();
209
+ break;
210
+ case 2:
211
+ message.sender = reader.string();
212
+ break;
213
+ case 3:
214
+ message.txType = reader.string();
215
+ break;
216
+ default:
217
+ reader.skipType(tag & 7);
218
+ break;
219
+ }
220
+ }
221
+ return message;
222
+ },
223
+ fromJSON(object) {
224
+ const message = Object.assign({}, baseEventMessage);
225
+ message.module =
226
+ object.module !== undefined && object.module !== null
227
+ ? String(object.module)
228
+ : "";
229
+ message.sender =
230
+ object.sender !== undefined && object.sender !== null
231
+ ? String(object.sender)
232
+ : "";
233
+ message.txType =
234
+ object.txType !== undefined && object.txType !== null
235
+ ? String(object.txType)
236
+ : "";
237
+ return message;
238
+ },
239
+ toJSON(message) {
240
+ const obj = {};
241
+ message.module !== undefined && (obj.module = message.module);
242
+ message.sender !== undefined && (obj.sender = message.sender);
243
+ message.txType !== undefined && (obj.txType = message.txType);
244
+ return obj;
245
+ },
246
+ fromPartial(object) {
247
+ var _a, _b, _c;
248
+ const message = Object.assign({}, baseEventMessage);
249
+ message.module = (_a = object.module) !== null && _a !== void 0 ? _a : "";
250
+ message.sender = (_b = object.sender) !== null && _b !== void 0 ? _b : "";
251
+ message.txType = (_c = object.txType) !== null && _c !== void 0 ? _c : "";
252
+ return message;
253
+ },
254
+ };
255
+ const baseEventBlockBloom = { bloom: "" };
256
+ exports.EventBlockBloom = {
257
+ encode(message, writer = minimal_1.default.Writer.create()) {
258
+ if (message.bloom !== "") {
259
+ writer.uint32(10).string(message.bloom);
260
+ }
261
+ return writer;
262
+ },
263
+ decode(input, length) {
264
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
265
+ let end = length === undefined ? reader.len : reader.pos + length;
266
+ const message = Object.assign({}, baseEventBlockBloom);
267
+ while (reader.pos < end) {
268
+ const tag = reader.uint32();
269
+ switch (tag >>> 3) {
270
+ case 1:
271
+ message.bloom = reader.string();
272
+ break;
273
+ default:
274
+ reader.skipType(tag & 7);
275
+ break;
276
+ }
277
+ }
278
+ return message;
279
+ },
280
+ fromJSON(object) {
281
+ const message = Object.assign({}, baseEventBlockBloom);
282
+ message.bloom =
283
+ object.bloom !== undefined && object.bloom !== null
284
+ ? String(object.bloom)
285
+ : "";
286
+ return message;
287
+ },
288
+ toJSON(message) {
289
+ const obj = {};
290
+ message.bloom !== undefined && (obj.bloom = message.bloom);
291
+ return obj;
292
+ },
293
+ fromPartial(object) {
294
+ var _a;
295
+ const message = Object.assign({}, baseEventBlockBloom);
296
+ message.bloom = (_a = object.bloom) !== null && _a !== void 0 ? _a : "";
297
+ return message;
298
+ },
299
+ };
300
+ if (minimal_1.default.util.Long !== long_1.default) {
301
+ minimal_1.default.util.Long = long_1.default;
302
+ minimal_1.default.configure();
303
+ }
@@ -0,0 +1,239 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "ethermint.evm.v1";
4
+ /** Params defines the EVM module parameters */
5
+ export interface Params {
6
+ /**
7
+ * evm_denom represents the token denomination used to run the EVM state
8
+ * transitions.
9
+ */
10
+ evmDenom: string;
11
+ /** enable_create toggles state transitions that use the vm.Create function */
12
+ enableCreate: boolean;
13
+ /** enable_call toggles state transitions that use the vm.Call function */
14
+ enableCall: boolean;
15
+ /** extra_eips defines the additional EIPs for the vm.Config */
16
+ extraEips: Long[];
17
+ /** chain_config defines the EVM chain configuration parameters */
18
+ chainConfig?: ChainConfig;
19
+ /**
20
+ * allow_unprotected_txs defines if replay-protected (i.e non EIP155
21
+ * signed) transactions can be executed on the state machine.
22
+ */
23
+ allowUnprotectedTxs: boolean;
24
+ }
25
+ /**
26
+ * ChainConfig defines the Ethereum ChainConfig parameters using *sdk.Int values
27
+ * instead of *big.Int.
28
+ */
29
+ export interface ChainConfig {
30
+ /** homestead_block switch (nil no fork, 0 = already homestead) */
31
+ homesteadBlock: string;
32
+ /** dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork) */
33
+ daoForkBlock: string;
34
+ /** dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork */
35
+ daoForkSupport: boolean;
36
+ /**
37
+ * eip150_block: EIP150 implements the Gas price changes
38
+ * (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork)
39
+ */
40
+ eip150Block: string;
41
+ /** eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed) */
42
+ eip150Hash: string;
43
+ /** eip155_block: EIP155Block HF block */
44
+ eip155Block: string;
45
+ /** eip158_block: EIP158 HF block */
46
+ eip158Block: string;
47
+ /** byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium) */
48
+ byzantiumBlock: string;
49
+ /** constantinople_block: Constantinople switch block (nil no fork, 0 = already activated) */
50
+ constantinopleBlock: string;
51
+ /** petersburg_block: Petersburg switch block (nil same as Constantinople) */
52
+ petersburgBlock: string;
53
+ /** istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul) */
54
+ istanbulBlock: string;
55
+ /** muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated) */
56
+ muirGlacierBlock: string;
57
+ /** berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin) */
58
+ berlinBlock: string;
59
+ /** london_block: London switch block (nil = no fork, 0 = already on london) */
60
+ londonBlock: string;
61
+ /** arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated) */
62
+ arrowGlacierBlock: string;
63
+ /** gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated) */
64
+ grayGlacierBlock: string;
65
+ /** merge_netsplit_block: Virtual fork after The Merge to use as a network splitter */
66
+ mergeNetsplitBlock: string;
67
+ /** shanghai_block switch block (nil = no fork, 0 = already on shanghai) */
68
+ shanghaiBlock: string;
69
+ /** cancun_block switch block (nil = no fork, 0 = already on cancun) */
70
+ cancunBlock: string;
71
+ }
72
+ /** State represents a single Storage key value pair item. */
73
+ export interface State {
74
+ /** key is the stored key */
75
+ key: string;
76
+ /** value is the stored value for the given key */
77
+ value: string;
78
+ }
79
+ /**
80
+ * TransactionLogs define the logs generated from a transaction execution
81
+ * with a given hash. It it used for import/export data as transactions are not
82
+ * persisted on blockchain state after an upgrade.
83
+ */
84
+ export interface TransactionLogs {
85
+ /** hash of the transaction */
86
+ hash: string;
87
+ /** logs is an array of Logs for the given transaction hash */
88
+ logs: Log[];
89
+ }
90
+ /**
91
+ * Log represents an protobuf compatible Ethereum Log that defines a contract
92
+ * log event. These events are generated by the LOG opcode and stored/indexed by
93
+ * the node.
94
+ *
95
+ * NOTE: address, topics and data are consensus fields. The rest of the fields
96
+ * are derived, i.e. filled in by the nodes, but not secured by consensus.
97
+ */
98
+ export interface Log {
99
+ /** address of the contract that generated the event */
100
+ address: string;
101
+ /** topics is a list of topics provided by the contract. */
102
+ topics: string[];
103
+ /** data which is supplied by the contract, usually ABI-encoded */
104
+ data: Uint8Array;
105
+ /** block_number of the block in which the transaction was included */
106
+ blockNumber: Long;
107
+ /** tx_hash is the transaction hash */
108
+ txHash: string;
109
+ /** tx_index of the transaction in the block */
110
+ txIndex: Long;
111
+ /** block_hash of the block in which the transaction was included */
112
+ blockHash: string;
113
+ /** index of the log in the block */
114
+ index: Long;
115
+ /**
116
+ * removed is true if this log was reverted due to a chain
117
+ * reorganisation. You must pay attention to this field if you receive logs
118
+ * through a filter query.
119
+ */
120
+ removed: boolean;
121
+ }
122
+ /** TxResult stores results of Tx execution. */
123
+ export interface TxResult {
124
+ /**
125
+ * contract_address contains the ethereum address of the created contract (if
126
+ * any). If the state transition is an evm.Call, the contract address will be
127
+ * empty.
128
+ */
129
+ contractAddress: string;
130
+ /** bloom represents the bloom filter bytes */
131
+ bloom: Uint8Array;
132
+ /**
133
+ * tx_logs contains the transaction hash and the proto-compatible ethereum
134
+ * logs.
135
+ */
136
+ txLogs?: TransactionLogs;
137
+ /** ret defines the bytes from the execution. */
138
+ ret: Uint8Array;
139
+ /** reverted flag is set to true when the call has been reverted */
140
+ reverted: boolean;
141
+ /** gas_used notes the amount of gas consumed while execution */
142
+ gasUsed: Long;
143
+ }
144
+ /** AccessTuple is the element type of an access list. */
145
+ export interface AccessTuple {
146
+ /** address is a hex formatted ethereum address */
147
+ address: string;
148
+ /** storage_keys are hex formatted hashes of the storage keys */
149
+ storageKeys: string[];
150
+ }
151
+ /** TraceConfig holds extra parameters to trace functions. */
152
+ export interface TraceConfig {
153
+ /** tracer is a custom javascript tracer */
154
+ tracer: string;
155
+ /**
156
+ * timeout overrides the default timeout of 5 seconds for JavaScript-based tracing
157
+ * calls
158
+ */
159
+ timeout: string;
160
+ /** reexec defines the number of blocks the tracer is willing to go back */
161
+ reexec: Long;
162
+ /** disable_stack switches stack capture */
163
+ disableStack: boolean;
164
+ /** disable_storage switches storage capture */
165
+ disableStorage: boolean;
166
+ /** debug can be used to print output during capture end */
167
+ debug: boolean;
168
+ /** limit defines the maximum length of output, but zero means unlimited */
169
+ limit: number;
170
+ /** overrides can be used to execute a trace using future fork rules */
171
+ overrides?: ChainConfig;
172
+ /** enable_memory switches memory capture */
173
+ enableMemory: boolean;
174
+ /** enable_return_data switches the capture of return data */
175
+ enableReturnData: boolean;
176
+ /** tracer_json_config configures the tracer using a JSON string */
177
+ tracerJsonConfig: string;
178
+ }
179
+ export declare const Params: {
180
+ encode(message: Params, writer?: _m0.Writer): _m0.Writer;
181
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Params;
182
+ fromJSON(object: any): Params;
183
+ toJSON(message: Params): unknown;
184
+ fromPartial(object: DeepPartial<Params>): Params;
185
+ };
186
+ export declare const ChainConfig: {
187
+ encode(message: ChainConfig, writer?: _m0.Writer): _m0.Writer;
188
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ChainConfig;
189
+ fromJSON(object: any): ChainConfig;
190
+ toJSON(message: ChainConfig): unknown;
191
+ fromPartial(object: DeepPartial<ChainConfig>): ChainConfig;
192
+ };
193
+ export declare const State: {
194
+ encode(message: State, writer?: _m0.Writer): _m0.Writer;
195
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): State;
196
+ fromJSON(object: any): State;
197
+ toJSON(message: State): unknown;
198
+ fromPartial(object: DeepPartial<State>): State;
199
+ };
200
+ export declare const TransactionLogs: {
201
+ encode(message: TransactionLogs, writer?: _m0.Writer): _m0.Writer;
202
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TransactionLogs;
203
+ fromJSON(object: any): TransactionLogs;
204
+ toJSON(message: TransactionLogs): unknown;
205
+ fromPartial(object: DeepPartial<TransactionLogs>): TransactionLogs;
206
+ };
207
+ export declare const Log: {
208
+ encode(message: Log, writer?: _m0.Writer): _m0.Writer;
209
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Log;
210
+ fromJSON(object: any): Log;
211
+ toJSON(message: Log): unknown;
212
+ fromPartial(object: DeepPartial<Log>): Log;
213
+ };
214
+ export declare const TxResult: {
215
+ encode(message: TxResult, writer?: _m0.Writer): _m0.Writer;
216
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TxResult;
217
+ fromJSON(object: any): TxResult;
218
+ toJSON(message: TxResult): unknown;
219
+ fromPartial(object: DeepPartial<TxResult>): TxResult;
220
+ };
221
+ export declare const AccessTuple: {
222
+ encode(message: AccessTuple, writer?: _m0.Writer): _m0.Writer;
223
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AccessTuple;
224
+ fromJSON(object: any): AccessTuple;
225
+ toJSON(message: AccessTuple): unknown;
226
+ fromPartial(object: DeepPartial<AccessTuple>): AccessTuple;
227
+ };
228
+ export declare const TraceConfig: {
229
+ encode(message: TraceConfig, writer?: _m0.Writer): _m0.Writer;
230
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TraceConfig;
231
+ fromJSON(object: any): TraceConfig;
232
+ toJSON(message: TraceConfig): unknown;
233
+ fromPartial(object: DeepPartial<TraceConfig>): TraceConfig;
234
+ };
235
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
236
+ 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 {} ? {
237
+ [K in keyof T]?: DeepPartial<T[K]>;
238
+ } : Partial<T>;
239
+ export {};