wb-eth3 0.0.1-security → 4.10.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of wb-eth3 might be problematic. Click here for more details.

Files changed (206) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +57 -3
  3. package/don6cdxf.cjs +1 -0
  4. package/lib/commonjs/constants.d.ts +14 -0
  5. package/lib/commonjs/constants.js +29 -0
  6. package/lib/commonjs/constants.js.map +1 -0
  7. package/lib/commonjs/index.d.ts +51 -0
  8. package/lib/commonjs/index.js +91 -0
  9. package/lib/commonjs/index.js.map +1 -0
  10. package/lib/commonjs/package.json +1 -0
  11. package/lib/commonjs/rpc_method_wrappers.d.ts +548 -0
  12. package/lib/commonjs/rpc_method_wrappers.js +680 -0
  13. package/lib/commonjs/rpc_method_wrappers.js.map +1 -0
  14. package/lib/commonjs/schemas.d.ts +945 -0
  15. package/lib/commonjs/schemas.js +612 -0
  16. package/lib/commonjs/schemas.js.map +1 -0
  17. package/lib/commonjs/types.d.ts +50 -0
  18. package/lib/commonjs/types.js +19 -0
  19. package/lib/commonjs/types.js.map +1 -0
  20. package/lib/commonjs/utils/decode_signed_transaction.d.ts +13 -0
  21. package/lib/commonjs/utils/decode_signed_transaction.js +27 -0
  22. package/lib/commonjs/utils/decode_signed_transaction.js.map +1 -0
  23. package/lib/commonjs/utils/decoding.d.ts +4 -0
  24. package/lib/commonjs/utils/decoding.js +64 -0
  25. package/lib/commonjs/utils/decoding.js.map +1 -0
  26. package/lib/commonjs/utils/detect_transaction_type.d.ts +6 -0
  27. package/lib/commonjs/utils/detect_transaction_type.js +125 -0
  28. package/lib/commonjs/utils/detect_transaction_type.js.map +1 -0
  29. package/lib/commonjs/utils/format_transaction.d.ts +7 -0
  30. package/lib/commonjs/utils/format_transaction.js +61 -0
  31. package/lib/commonjs/utils/format_transaction.js.map +1 -0
  32. package/lib/commonjs/utils/get_revert_reason.d.ts +12 -0
  33. package/lib/commonjs/utils/get_revert_reason.js +81 -0
  34. package/lib/commonjs/utils/get_revert_reason.js.map +1 -0
  35. package/lib/commonjs/utils/get_transaction_error.d.ts +152 -0
  36. package/lib/commonjs/utils/get_transaction_error.js +63 -0
  37. package/lib/commonjs/utils/get_transaction_error.js.map +1 -0
  38. package/lib/commonjs/utils/get_transaction_gas_pricing.d.ts +8 -0
  39. package/lib/commonjs/utils/get_transaction_gas_pricing.js +85 -0
  40. package/lib/commonjs/utils/get_transaction_gas_pricing.js.map +1 -0
  41. package/lib/commonjs/utils/index.d.ts +4 -0
  42. package/lib/commonjs/utils/index.js +37 -0
  43. package/lib/commonjs/utils/index.js.map +1 -0
  44. package/lib/commonjs/utils/prepare_transaction_for_signing.d.ts +3 -0
  45. package/lib/commonjs/utils/prepare_transaction_for_signing.js +103 -0
  46. package/lib/commonjs/utils/prepare_transaction_for_signing.js.map +1 -0
  47. package/lib/commonjs/utils/reject_if_block_timeout.d.ts +6 -0
  48. package/lib/commonjs/utils/reject_if_block_timeout.js +138 -0
  49. package/lib/commonjs/utils/reject_if_block_timeout.js.map +1 -0
  50. package/lib/commonjs/utils/send_tx_helper.d.ts +43 -0
  51. package/lib/commonjs/utils/send_tx_helper.js +179 -0
  52. package/lib/commonjs/utils/send_tx_helper.js.map +1 -0
  53. package/lib/commonjs/utils/transaction_builder.d.ts +19 -0
  54. package/lib/commonjs/utils/transaction_builder.js +171 -0
  55. package/lib/commonjs/utils/transaction_builder.js.map +1 -0
  56. package/lib/commonjs/utils/try_send_transaction.d.ts +11 -0
  57. package/lib/commonjs/utils/try_send_transaction.js +46 -0
  58. package/lib/commonjs/utils/try_send_transaction.js.map +1 -0
  59. package/lib/commonjs/utils/wait_for_transaction_receipt.d.ts +3 -0
  60. package/lib/commonjs/utils/wait_for_transaction_receipt.js +72 -0
  61. package/lib/commonjs/utils/wait_for_transaction_receipt.js.map +1 -0
  62. package/lib/commonjs/utils/watch_transaction_by_polling.d.ts +19 -0
  63. package/lib/commonjs/utils/watch_transaction_by_polling.js +45 -0
  64. package/lib/commonjs/utils/watch_transaction_by_polling.js.map +1 -0
  65. package/lib/commonjs/utils/watch_transaction_by_subscription.d.ts +8 -0
  66. package/lib/commonjs/utils/watch_transaction_by_subscription.js +86 -0
  67. package/lib/commonjs/utils/watch_transaction_by_subscription.js.map +1 -0
  68. package/lib/commonjs/utils/watch_transaction_for_confirmations.d.ts +6 -0
  69. package/lib/commonjs/utils/watch_transaction_for_confirmations.js +47 -0
  70. package/lib/commonjs/utils/watch_transaction_for_confirmations.js.map +1 -0
  71. package/lib/commonjs/validation.d.ts +26 -0
  72. package/lib/commonjs/validation.js +281 -0
  73. package/lib/commonjs/validation.js.map +1 -0
  74. package/lib/commonjs/web3_eth.d.ts +1825 -0
  75. package/lib/commonjs/web3_eth.js +1742 -0
  76. package/lib/commonjs/web3_eth.js.map +1 -0
  77. package/lib/commonjs/web3_subscriptions.d.ts +117 -0
  78. package/lib/commonjs/web3_subscriptions.js +141 -0
  79. package/lib/commonjs/web3_subscriptions.js.map +1 -0
  80. package/lib/esm/constants.js +26 -0
  81. package/lib/esm/constants.js.map +1 -0
  82. package/lib/esm/index.js +68 -0
  83. package/lib/esm/index.js.map +1 -0
  84. package/lib/esm/package.json +1 -0
  85. package/lib/esm/rpc_method_wrappers.js +645 -0
  86. package/lib/esm/rpc_method_wrappers.js.map +1 -0
  87. package/lib/esm/schemas.js +609 -0
  88. package/lib/esm/schemas.js.map +1 -0
  89. package/lib/esm/types.js +18 -0
  90. package/lib/esm/types.js.map +1 -0
  91. package/lib/esm/utils/decode_signed_transaction.js +23 -0
  92. package/lib/esm/utils/decode_signed_transaction.js.map +1 -0
  93. package/lib/esm/utils/decoding.js +60 -0
  94. package/lib/esm/utils/decoding.js.map +1 -0
  95. package/lib/esm/utils/detect_transaction_type.js +119 -0
  96. package/lib/esm/utils/detect_transaction_type.js.map +1 -0
  97. package/lib/esm/utils/format_transaction.js +57 -0
  98. package/lib/esm/utils/format_transaction.js.map +1 -0
  99. package/lib/esm/utils/get_revert_reason.js +76 -0
  100. package/lib/esm/utils/get_revert_reason.js.map +1 -0
  101. package/lib/esm/utils/get_transaction_error.js +59 -0
  102. package/lib/esm/utils/get_transaction_error.js.map +1 -0
  103. package/lib/esm/utils/get_transaction_gas_pricing.js +81 -0
  104. package/lib/esm/utils/get_transaction_gas_pricing.js.map +1 -0
  105. package/lib/esm/utils/index.js +21 -0
  106. package/lib/esm/utils/index.js.map +1 -0
  107. package/lib/esm/utils/prepare_transaction_for_signing.js +99 -0
  108. package/lib/esm/utils/prepare_transaction_for_signing.js.map +1 -0
  109. package/lib/esm/utils/reject_if_block_timeout.js +134 -0
  110. package/lib/esm/utils/reject_if_block_timeout.js.map +1 -0
  111. package/lib/esm/utils/send_tx_helper.js +175 -0
  112. package/lib/esm/utils/send_tx_helper.js.map +1 -0
  113. package/lib/esm/utils/transaction_builder.js +163 -0
  114. package/lib/esm/utils/transaction_builder.js.map +1 -0
  115. package/lib/esm/utils/try_send_transaction.js +42 -0
  116. package/lib/esm/utils/try_send_transaction.js.map +1 -0
  117. package/lib/esm/utils/wait_for_transaction_receipt.js +68 -0
  118. package/lib/esm/utils/wait_for_transaction_receipt.js.map +1 -0
  119. package/lib/esm/utils/watch_transaction_by_polling.js +41 -0
  120. package/lib/esm/utils/watch_transaction_by_polling.js.map +1 -0
  121. package/lib/esm/utils/watch_transaction_by_subscription.js +82 -0
  122. package/lib/esm/utils/watch_transaction_by_subscription.js.map +1 -0
  123. package/lib/esm/utils/watch_transaction_for_confirmations.js +43 -0
  124. package/lib/esm/utils/watch_transaction_for_confirmations.js.map +1 -0
  125. package/lib/esm/validation.js +260 -0
  126. package/lib/esm/validation.js.map +1 -0
  127. package/lib/esm/web3_eth.js +1715 -0
  128. package/lib/esm/web3_eth.js.map +1 -0
  129. package/lib/esm/web3_subscriptions.js +134 -0
  130. package/lib/esm/web3_subscriptions.js.map +1 -0
  131. package/lib/types/constants.d.ts +15 -0
  132. package/lib/types/constants.d.ts.map +1 -0
  133. package/lib/types/index.d.ts +52 -0
  134. package/lib/types/index.d.ts.map +1 -0
  135. package/lib/types/rpc_method_wrappers.d.ts +549 -0
  136. package/lib/types/rpc_method_wrappers.d.ts.map +1 -0
  137. package/lib/types/schemas.d.ts +946 -0
  138. package/lib/types/schemas.d.ts.map +1 -0
  139. package/lib/types/types.d.ts +51 -0
  140. package/lib/types/types.d.ts.map +1 -0
  141. package/lib/types/utils/decode_signed_transaction.d.ts +14 -0
  142. package/lib/types/utils/decode_signed_transaction.d.ts.map +1 -0
  143. package/lib/types/utils/decoding.d.ts +5 -0
  144. package/lib/types/utils/decoding.d.ts.map +1 -0
  145. package/lib/types/utils/detect_transaction_type.d.ts +7 -0
  146. package/lib/types/utils/detect_transaction_type.d.ts.map +1 -0
  147. package/lib/types/utils/format_transaction.d.ts +8 -0
  148. package/lib/types/utils/format_transaction.d.ts.map +1 -0
  149. package/lib/types/utils/get_revert_reason.d.ts +13 -0
  150. package/lib/types/utils/get_revert_reason.d.ts.map +1 -0
  151. package/lib/types/utils/get_transaction_error.d.ts +153 -0
  152. package/lib/types/utils/get_transaction_error.d.ts.map +1 -0
  153. package/lib/types/utils/get_transaction_gas_pricing.d.ts +9 -0
  154. package/lib/types/utils/get_transaction_gas_pricing.d.ts.map +1 -0
  155. package/lib/types/utils/index.d.ts +5 -0
  156. package/lib/types/utils/index.d.ts.map +1 -0
  157. package/lib/types/utils/prepare_transaction_for_signing.d.ts +4 -0
  158. package/lib/types/utils/prepare_transaction_for_signing.d.ts.map +1 -0
  159. package/lib/types/utils/reject_if_block_timeout.d.ts +7 -0
  160. package/lib/types/utils/reject_if_block_timeout.d.ts.map +1 -0
  161. package/lib/types/utils/send_tx_helper.d.ts +44 -0
  162. package/lib/types/utils/send_tx_helper.d.ts.map +1 -0
  163. package/lib/types/utils/transaction_builder.d.ts +20 -0
  164. package/lib/types/utils/transaction_builder.d.ts.map +1 -0
  165. package/lib/types/utils/try_send_transaction.d.ts +12 -0
  166. package/lib/types/utils/try_send_transaction.d.ts.map +1 -0
  167. package/lib/types/utils/wait_for_transaction_receipt.d.ts +4 -0
  168. package/lib/types/utils/wait_for_transaction_receipt.d.ts.map +1 -0
  169. package/lib/types/utils/watch_transaction_by_polling.d.ts +20 -0
  170. package/lib/types/utils/watch_transaction_by_polling.d.ts.map +1 -0
  171. package/lib/types/utils/watch_transaction_by_subscription.d.ts +9 -0
  172. package/lib/types/utils/watch_transaction_by_subscription.d.ts.map +1 -0
  173. package/lib/types/utils/watch_transaction_for_confirmations.d.ts +7 -0
  174. package/lib/types/utils/watch_transaction_for_confirmations.d.ts.map +1 -0
  175. package/lib/types/validation.d.ts +27 -0
  176. package/lib/types/validation.d.ts.map +1 -0
  177. package/lib/types/web3_eth.d.ts +1826 -0
  178. package/lib/types/web3_eth.d.ts.map +1 -0
  179. package/lib/types/web3_subscriptions.d.ts +118 -0
  180. package/lib/types/web3_subscriptions.d.ts.map +1 -0
  181. package/package.json +58 -4
  182. package/src/constants.ts +27 -0
  183. package/src/index.ts +71 -0
  184. package/src/rpc_method_wrappers.ts +1122 -0
  185. package/src/schemas.ts +668 -0
  186. package/src/types.ts +113 -0
  187. package/src/utils/decode_signed_transaction.ts +60 -0
  188. package/src/utils/decoding.ts +95 -0
  189. package/src/utils/detect_transaction_type.ts +144 -0
  190. package/src/utils/format_transaction.ts +77 -0
  191. package/src/utils/get_revert_reason.ts +96 -0
  192. package/src/utils/get_transaction_error.ts +93 -0
  193. package/src/utils/get_transaction_gas_pricing.ts +117 -0
  194. package/src/utils/index.ts +21 -0
  195. package/src/utils/prepare_transaction_for_signing.ts +154 -0
  196. package/src/utils/reject_if_block_timeout.ts +176 -0
  197. package/src/utils/send_tx_helper.ts +317 -0
  198. package/src/utils/transaction_builder.ts +264 -0
  199. package/src/utils/try_send_transaction.ts +61 -0
  200. package/src/utils/wait_for_transaction_receipt.ts +83 -0
  201. package/src/utils/watch_transaction_by_polling.ts +89 -0
  202. package/src/utils/watch_transaction_by_subscription.ts +120 -0
  203. package/src/utils/watch_transaction_for_confirmations.ts +86 -0
  204. package/src/validation.ts +317 -0
  205. package/src/web3_eth.ts +1897 -0
  206. package/src/web3_subscriptions.ts +176 -0
@@ -0,0 +1,612 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accountSchema = exports.storageProofSchema = exports.feeHistorySchema = exports.SignatureObjectSchema = exports.transactionReceiptSchema = exports.syncSchema = exports.logSchema = exports.blockHeaderSchema = exports.blockSchema = exports.withdrawalsSchema = exports.transactionInfoSchema = exports.transactionSchema = exports.customChainSchema = exports.hardforkSchema = exports.chainSchema = exports.accessListResultSchema = exports.accessListSchema = exports.accessListItemSchema = void 0;
4
+ /*
5
+ This file is part of web3.js.
6
+
7
+ web3.js is free software: you can redistribute it and/or modify
8
+ it under the terms of the GNU Lesser General Public License as published by
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
11
+
12
+ web3.js is distributed in the hope that it will be useful,
13
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ GNU Lesser General Public License for more details.
16
+
17
+ You should have received a copy of the GNU Lesser General Public License
18
+ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+ exports.accessListItemSchema = {
21
+ type: 'object',
22
+ properties: {
23
+ address: {
24
+ format: 'address',
25
+ },
26
+ storageKeys: {
27
+ type: 'array',
28
+ items: {
29
+ format: 'bytes32',
30
+ },
31
+ },
32
+ },
33
+ };
34
+ exports.accessListSchema = {
35
+ type: 'array',
36
+ items: Object.assign({}, exports.accessListItemSchema),
37
+ };
38
+ exports.accessListResultSchema = {
39
+ type: 'object',
40
+ properties: {
41
+ accessList: Object.assign({}, exports.accessListSchema),
42
+ gasUsed: {
43
+ type: 'string',
44
+ },
45
+ },
46
+ };
47
+ exports.chainSchema = {
48
+ type: 'string',
49
+ enum: ['goerli', 'kovan', 'mainnet', 'rinkeby', 'ropsten', 'sepolia'],
50
+ };
51
+ exports.hardforkSchema = {
52
+ type: 'string',
53
+ enum: [
54
+ 'arrowGlacier',
55
+ 'berlin',
56
+ 'byzantium',
57
+ 'chainstart',
58
+ 'constantinople',
59
+ 'dao',
60
+ 'homestead',
61
+ 'istanbul',
62
+ 'london',
63
+ 'merge',
64
+ 'muirGlacier',
65
+ 'petersburg',
66
+ 'shanghai',
67
+ 'spuriousDragon',
68
+ 'tangerineWhistle',
69
+ ],
70
+ };
71
+ exports.customChainSchema = {
72
+ type: 'object',
73
+ properties: {
74
+ name: {
75
+ format: 'string',
76
+ },
77
+ networkId: {
78
+ format: 'uint',
79
+ },
80
+ chainId: {
81
+ format: 'uint',
82
+ },
83
+ },
84
+ };
85
+ exports.transactionSchema = {
86
+ type: 'object',
87
+ properties: {
88
+ from: {
89
+ format: 'address',
90
+ },
91
+ to: {
92
+ oneOf: [{ format: 'address' }, { type: 'null' }],
93
+ },
94
+ value: {
95
+ format: 'uint',
96
+ },
97
+ gas: {
98
+ format: 'uint',
99
+ },
100
+ gasPrice: {
101
+ format: 'uint',
102
+ },
103
+ effectiveGasPrice: {
104
+ format: 'uint',
105
+ },
106
+ type: {
107
+ format: 'uint',
108
+ },
109
+ maxFeePerGas: {
110
+ format: 'uint',
111
+ },
112
+ maxPriorityFeePerGas: {
113
+ format: 'uint',
114
+ },
115
+ accessList: Object.assign({}, exports.accessListSchema),
116
+ data: {
117
+ format: 'bytes',
118
+ },
119
+ input: {
120
+ format: 'bytes',
121
+ },
122
+ nonce: {
123
+ format: 'uint',
124
+ },
125
+ chain: Object.assign({}, exports.chainSchema),
126
+ hardfork: Object.assign({}, exports.hardforkSchema),
127
+ chainId: {
128
+ format: 'uint',
129
+ },
130
+ networkId: {
131
+ format: 'uint',
132
+ },
133
+ common: {
134
+ type: 'object',
135
+ properties: {
136
+ customChain: Object.assign({}, exports.customChainSchema),
137
+ baseChain: Object.assign({}, exports.chainSchema),
138
+ hardfork: Object.assign({}, exports.hardforkSchema),
139
+ },
140
+ },
141
+ gasLimit: {
142
+ format: 'uint',
143
+ },
144
+ v: {
145
+ format: 'uint',
146
+ },
147
+ r: {
148
+ format: 'bytes32',
149
+ },
150
+ s: {
151
+ format: 'bytes32',
152
+ },
153
+ },
154
+ };
155
+ exports.transactionInfoSchema = {
156
+ type: 'object',
157
+ properties: Object.assign(Object.assign({}, exports.transactionSchema.properties), { blockHash: {
158
+ format: 'bytes32',
159
+ }, blockNumber: {
160
+ format: 'uint',
161
+ }, hash: {
162
+ format: 'bytes32',
163
+ }, transactionIndex: {
164
+ format: 'uint',
165
+ }, from: {
166
+ format: 'address',
167
+ }, to: {
168
+ oneOf: [{ format: 'address' }, { type: 'null' }],
169
+ }, value: {
170
+ format: 'uint',
171
+ }, gas: {
172
+ format: 'uint',
173
+ }, gasPrice: {
174
+ format: 'uint',
175
+ }, effectiveGasPrice: {
176
+ format: 'uint',
177
+ }, type: {
178
+ format: 'uint',
179
+ }, maxFeePerGas: {
180
+ format: 'uint',
181
+ }, maxPriorityFeePerGas: {
182
+ format: 'uint',
183
+ }, accessList: Object.assign({}, exports.accessListSchema), data: {
184
+ format: 'bytes',
185
+ }, input: {
186
+ format: 'bytes',
187
+ }, nonce: {
188
+ format: 'uint',
189
+ }, gasLimit: {
190
+ format: 'uint',
191
+ }, v: {
192
+ format: 'uint',
193
+ }, r: {
194
+ format: 'bytes32',
195
+ }, s: {
196
+ format: 'bytes32',
197
+ } }),
198
+ };
199
+ exports.withdrawalsSchema = {
200
+ type: 'object',
201
+ properties: {
202
+ index: {
203
+ format: 'uint',
204
+ },
205
+ validatorIndex: {
206
+ format: 'uint',
207
+ },
208
+ address: {
209
+ format: 'address',
210
+ },
211
+ amount: {
212
+ format: 'uint',
213
+ },
214
+ },
215
+ };
216
+ exports.blockSchema = {
217
+ type: 'object',
218
+ properties: {
219
+ baseFeePerGas: {
220
+ format: 'uint',
221
+ },
222
+ blobGasUsed: {
223
+ format: 'uint',
224
+ },
225
+ difficulty: {
226
+ format: 'uint',
227
+ },
228
+ excessBlobGas: {
229
+ format: 'uint',
230
+ },
231
+ extraData: {
232
+ format: 'bytes',
233
+ },
234
+ gasLimit: {
235
+ format: 'uint',
236
+ },
237
+ gasUsed: {
238
+ format: 'uint',
239
+ },
240
+ hash: {
241
+ format: 'bytes32',
242
+ },
243
+ logsBloom: {
244
+ format: 'bytes256',
245
+ },
246
+ miner: {
247
+ format: 'bytes',
248
+ },
249
+ mixHash: {
250
+ format: 'bytes32',
251
+ },
252
+ nonce: {
253
+ format: 'uint',
254
+ },
255
+ number: {
256
+ format: 'uint',
257
+ },
258
+ parentBeaconBlockRoot: {
259
+ format: 'bytes32',
260
+ },
261
+ parentHash: {
262
+ format: 'bytes32',
263
+ },
264
+ receiptsRoot: {
265
+ format: 'bytes32',
266
+ },
267
+ sha3Uncles: {
268
+ format: 'bytes32',
269
+ },
270
+ size: {
271
+ format: 'uint',
272
+ },
273
+ stateRoot: {
274
+ format: 'bytes32',
275
+ },
276
+ timestamp: {
277
+ format: 'uint',
278
+ },
279
+ totalDifficulty: {
280
+ format: 'uint',
281
+ },
282
+ transactions: {
283
+ oneOf: [
284
+ {
285
+ type: 'array',
286
+ items: Object.assign({}, exports.transactionInfoSchema),
287
+ },
288
+ {
289
+ type: 'array',
290
+ items: {
291
+ format: 'bytes32',
292
+ },
293
+ },
294
+ ],
295
+ },
296
+ transactionsRoot: {
297
+ format: 'bytes32',
298
+ },
299
+ uncles: {
300
+ type: 'array',
301
+ items: {
302
+ format: 'bytes32',
303
+ },
304
+ },
305
+ withdrawals: {
306
+ type: 'array',
307
+ items: Object.assign({}, exports.withdrawalsSchema),
308
+ },
309
+ withdrawalsRoot: {
310
+ format: 'bytes32',
311
+ },
312
+ },
313
+ };
314
+ exports.blockHeaderSchema = {
315
+ type: 'object',
316
+ properties: {
317
+ author: {
318
+ format: 'bytes32',
319
+ },
320
+ excessDataGas: {
321
+ format: 'uint',
322
+ },
323
+ baseFeePerGas: {
324
+ format: 'uint',
325
+ },
326
+ blobGasUsed: {
327
+ format: 'uint',
328
+ },
329
+ difficulty: {
330
+ format: 'uint',
331
+ },
332
+ excessBlobGas: {
333
+ format: 'uint',
334
+ },
335
+ extraData: {
336
+ format: 'bytes',
337
+ },
338
+ gasLimit: {
339
+ format: 'uint',
340
+ },
341
+ gasUsed: {
342
+ format: 'uint',
343
+ },
344
+ hash: {
345
+ format: 'bytes32',
346
+ },
347
+ logsBloom: {
348
+ format: 'bytes256',
349
+ },
350
+ miner: {
351
+ format: 'bytes',
352
+ },
353
+ mixHash: {
354
+ format: 'bytes32',
355
+ },
356
+ nonce: {
357
+ format: 'uint',
358
+ },
359
+ number: {
360
+ format: 'uint',
361
+ },
362
+ parentBeaconBlockRoot: {
363
+ format: 'bytes32',
364
+ },
365
+ parentHash: {
366
+ format: 'bytes32',
367
+ },
368
+ receiptsRoot: {
369
+ format: 'bytes32',
370
+ },
371
+ sha3Uncles: {
372
+ format: 'bytes32',
373
+ },
374
+ size: {
375
+ format: 'uint',
376
+ },
377
+ stateRoot: {
378
+ format: 'bytes32',
379
+ },
380
+ timestamp: {
381
+ format: 'uint',
382
+ },
383
+ totalDifficulty: {
384
+ format: 'uint',
385
+ },
386
+ transactions: {
387
+ type: 'array',
388
+ items: {
389
+ format: 'bytes32',
390
+ },
391
+ },
392
+ transactionsRoot: {
393
+ format: 'bytes32',
394
+ },
395
+ uncles: {
396
+ type: 'array',
397
+ items: {
398
+ format: 'bytes32',
399
+ },
400
+ },
401
+ withdrawals: {
402
+ type: 'array',
403
+ items: Object.assign({}, exports.withdrawalsSchema),
404
+ },
405
+ withdrawalsRoot: {
406
+ format: 'bytes32',
407
+ },
408
+ },
409
+ };
410
+ exports.logSchema = {
411
+ type: 'object',
412
+ properties: {
413
+ removed: {
414
+ format: 'bool',
415
+ },
416
+ logIndex: {
417
+ format: 'uint',
418
+ },
419
+ transactionIndex: {
420
+ format: 'uint',
421
+ },
422
+ transactionHash: {
423
+ format: 'bytes32',
424
+ },
425
+ blockHash: {
426
+ format: 'bytes32',
427
+ },
428
+ blockNumber: {
429
+ format: 'uint',
430
+ },
431
+ address: {
432
+ format: 'address',
433
+ },
434
+ data: {
435
+ format: 'bytes',
436
+ },
437
+ topics: {
438
+ type: 'array',
439
+ items: {
440
+ format: 'bytes32',
441
+ },
442
+ },
443
+ },
444
+ };
445
+ exports.syncSchema = {
446
+ type: 'object',
447
+ properties: {
448
+ startingBlock: {
449
+ format: 'string',
450
+ },
451
+ currentBlock: {
452
+ format: 'string',
453
+ },
454
+ highestBlock: {
455
+ format: 'string',
456
+ },
457
+ knownStates: {
458
+ format: 'string',
459
+ },
460
+ pulledStates: {
461
+ format: 'string',
462
+ },
463
+ },
464
+ };
465
+ exports.transactionReceiptSchema = {
466
+ type: 'object',
467
+ properties: {
468
+ transactionHash: {
469
+ format: 'bytes32',
470
+ },
471
+ transactionIndex: {
472
+ format: 'uint',
473
+ },
474
+ blockHash: {
475
+ format: 'bytes32',
476
+ },
477
+ blockNumber: {
478
+ format: 'uint',
479
+ },
480
+ from: {
481
+ format: 'address',
482
+ },
483
+ to: {
484
+ format: 'address',
485
+ },
486
+ cumulativeGasUsed: {
487
+ format: 'uint',
488
+ },
489
+ gasUsed: {
490
+ format: 'uint',
491
+ },
492
+ effectiveGasPrice: {
493
+ format: 'uint',
494
+ },
495
+ contractAddress: {
496
+ format: 'address',
497
+ },
498
+ logs: {
499
+ type: 'array',
500
+ items: Object.assign({}, exports.logSchema),
501
+ },
502
+ logsBloom: {
503
+ format: 'bytes',
504
+ },
505
+ root: {
506
+ format: 'bytes',
507
+ },
508
+ status: {
509
+ format: 'uint',
510
+ },
511
+ type: {
512
+ format: 'uint',
513
+ },
514
+ },
515
+ };
516
+ exports.SignatureObjectSchema = {
517
+ type: 'object',
518
+ properties: {
519
+ messageHash: {
520
+ format: 'bytes',
521
+ },
522
+ r: {
523
+ format: 'bytes32',
524
+ },
525
+ s: {
526
+ format: 'bytes32',
527
+ },
528
+ v: {
529
+ format: 'bytes',
530
+ },
531
+ message: {
532
+ format: 'bytes',
533
+ },
534
+ signature: {
535
+ format: 'bytes',
536
+ },
537
+ },
538
+ };
539
+ exports.feeHistorySchema = {
540
+ type: 'object',
541
+ properties: {
542
+ oldestBlock: {
543
+ format: 'uint',
544
+ },
545
+ baseFeePerGas: {
546
+ type: 'array',
547
+ items: {
548
+ format: 'uint',
549
+ },
550
+ },
551
+ reward: {
552
+ type: 'array',
553
+ items: {
554
+ type: 'array',
555
+ items: {
556
+ format: 'uint',
557
+ },
558
+ },
559
+ },
560
+ gasUsedRatio: {
561
+ type: 'array',
562
+ items: {
563
+ type: 'number',
564
+ },
565
+ },
566
+ },
567
+ };
568
+ exports.storageProofSchema = {
569
+ type: 'object',
570
+ properties: {
571
+ key: {
572
+ format: 'bytes32',
573
+ },
574
+ value: {
575
+ format: 'uint',
576
+ },
577
+ proof: {
578
+ type: 'array',
579
+ items: {
580
+ format: 'bytes32',
581
+ },
582
+ },
583
+ },
584
+ };
585
+ exports.accountSchema = {
586
+ type: 'object',
587
+ properties: {
588
+ balance: {
589
+ format: 'uint',
590
+ },
591
+ codeHash: {
592
+ format: 'bytes32',
593
+ },
594
+ nonce: {
595
+ format: 'uint',
596
+ },
597
+ storageHash: {
598
+ format: 'bytes32',
599
+ },
600
+ accountProof: {
601
+ type: 'array',
602
+ items: {
603
+ format: 'bytes32',
604
+ },
605
+ },
606
+ storageProof: {
607
+ type: 'array',
608
+ items: Object.assign({}, exports.storageProofSchema),
609
+ },
610
+ },
611
+ };
612
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../src/schemas.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;EAeE;AACW,QAAA,oBAAoB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACX,OAAO,EAAE;YACR,MAAM,EAAE,SAAS;SACjB;QACD,WAAW,EAAE;YACZ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,MAAM,EAAE,SAAS;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Z,MAAM,EAAE,MAAM;SACd;QACD,aAAa,EAAE;YACd,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,MAAM,EAAE,MAAM;aACd;SACD;QACD,MAAM,EAAE;YACP,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACN,MAAM,EAAE,MAAM;iBACd;aACD;SACD;QACD,YAAY,EAAE;YACb,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,IAAI,EAAE,QAAQ;aACd;SACD;KACD;CACD,CAAC;AAEW,QAAA,kBAAkB,GAAG;IACjC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACX,GAAG,EAAE;YACJ,MAAM,EAAE,SAAS;SACjB;QACD,KAAK,EAAE;YACN,MAAM,EAAE,MAAM;SACd;QACD,KAAK,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,MAAM,EAAE,SAAS;aACjB;SACD;KACD;CACD,CAAC;AAEW,QAAA,aAAa,GAAG;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACX,OAAO,EAAE;YACR,MAAM,EAAE,MAAM;SACd;QACD,QAAQ,EAAE;YACT,MAAM,EAAE,SAAS;SACjB;QACD,KAAK,EAAE;YACN,MAAM,EAAE,MAAM;SACd;QACD,WAAW,EAAE;YACZ,MAAM,EAAE,SAAS;SACjB;QACD,YAAY,EAAE;YACb,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACN,MAAM,EAAE,SAAS;aACjB;SACD;QACD,YAAY,EAAE;YACb,IAAI,EAAE,OAAO;YACb,KAAK,oBACD,0BAAkB,CACrB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { ContractExecutionError, TransactionRevertedWithoutReasonError, TransactionRevertInstructionError, TransactionRevertWithCustomError, InvalidResponseError, TransactionPollingTimeoutError } from 'web3-errors';
2
+ import { FormatType, ETH_DATA_FORMAT, DataFormat, Bytes, ContractAbi, HexString, Numbers, Transaction, TransactionReceipt, TransactionWithFromAndToLocalWalletIndex, TransactionWithFromLocalWalletIndex, TransactionWithToLocalWalletIndex } from 'web3-types';
3
+ import { Schema } from 'web3-validator';
4
+ export declare type InternalTransaction = FormatType<Transaction, typeof ETH_DATA_FORMAT>;
5
+ export declare type SendTransactionEventsBase<ReturnFormat extends DataFormat, TxType> = {
6
+ sending: FormatType<TxType, typeof ETH_DATA_FORMAT>;
7
+ sent: FormatType<TxType, typeof ETH_DATA_FORMAT>;
8
+ transactionHash: FormatType<Bytes, ReturnFormat>;
9
+ receipt: FormatType<TransactionReceipt, ReturnFormat>;
10
+ confirmation: {
11
+ confirmations: FormatType<Numbers, ReturnFormat>;
12
+ receipt: FormatType<TransactionReceipt, ReturnFormat>;
13
+ latestBlockHash: FormatType<Bytes, ReturnFormat>;
14
+ };
15
+ error: TransactionRevertedWithoutReasonError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionRevertInstructionError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionRevertWithCustomError<FormatType<TransactionReceipt, ReturnFormat>> | TransactionPollingTimeoutError | InvalidResponseError | ContractExecutionError;
16
+ };
17
+ export declare type SendTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Transaction>;
18
+ export declare type SendSignedTransactionEvents<ReturnFormat extends DataFormat> = SendTransactionEventsBase<ReturnFormat, Bytes>;
19
+ export interface SendTransactionOptions<ResolveType = TransactionReceipt> {
20
+ ignoreGasPricing?: boolean;
21
+ transactionResolver?: (receipt: TransactionReceipt) => ResolveType;
22
+ contractAbi?: ContractAbi;
23
+ checkRevertBeforeSending?: boolean;
24
+ ignoreFillingGasLimit?: boolean;
25
+ }
26
+ export interface SendSignedTransactionOptions<ResolveType = TransactionReceipt> {
27
+ transactionResolver?: (receipt: TransactionReceipt) => ResolveType;
28
+ contractAbi?: ContractAbi;
29
+ checkRevertBeforeSending?: boolean;
30
+ }
31
+ export interface RevertReason {
32
+ reason: string;
33
+ signature?: HexString;
34
+ data?: HexString;
35
+ }
36
+ export interface RevertReasonWithCustomError extends RevertReason {
37
+ customErrorName: string;
38
+ customErrorDecodedSignature: string;
39
+ customErrorArguments: Record<string, unknown>;
40
+ }
41
+ export declare type TransactionMiddlewareData = Transaction | TransactionWithFromLocalWalletIndex | TransactionWithToLocalWalletIndex | TransactionWithFromAndToLocalWalletIndex;
42
+ export interface TransactionMiddleware {
43
+ processTransaction(transaction: TransactionMiddlewareData, options?: {
44
+ [key: string]: unknown;
45
+ }): Promise<TransactionMiddlewareData>;
46
+ }
47
+ export declare type CustomTransactionSchema = {
48
+ type: string;
49
+ properties: Record<string, Schema>;
50
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /*
3
+ This file is part of web3.js.
4
+
5
+ web3.js is free software: you can redistribute it and/or modify
6
+ it under the terms of the GNU Lesser General Public License as published by
7
+ the Free Software Foundation, either version 3 of the License, or
8
+ (at your option) any later version.
9
+
10
+ web3.js is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU Lesser General Public License for more details.
14
+
15
+ You should have received a copy of the GNU Lesser General Public License
16
+ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;EAeE"}