This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit 568b4b2
* Add @ethereumjs/tx dependency
* Update Web3BaseProvider to SupportedProviders for Web3Eth constructor
* WIP eth-tx
* Add support for undefined values for convertToValidType
* Remove unused Web3BaseProvider
* WIP eth-tx utils
* Export privateKeyToAddress
* Add web3-eth-accounts dependency
* WIP web3-eth-tx util methods
* Replace inline errors with error constructors
* Change types for transaction r and s properties. Correct hardforks in detectTransactionType
* Init formatTransaction tests and fixture
* Init detectTransactionType and fixture
* Add more descriptive error messages
* Logic fixes for validateTransactionForSigning
* Init validateTransactionForSigning tests and fixtures
* Add esModuleInterop: true to tsconfig
* Small bug fixes and added TODOs
* Add parent describe to detect_transaction_type test
* Add parent describe to format_transaction test
* Add web3-providers-http as dev dependency for tests
* Init populate_transaction tests
* Move types from eth_tx.ts to types.ts
* Remove TODOs
* Add missing ,
* Remove TODO
* Remove TODO
* Fix transaction type import issues
* Update convertToValidType test data for undefined
* Update override method tests
* Update packages/web3-eth/src/eth_tx.ts
Co-authored-by: jdevcs <86780488+jdevcs@users.noreply.github.com>
* Move getBlock to after type check for populateTransaction
* Replace N/A with name of error for error.msg
* Assign formattedTransaction type Transaction<ReturnType>
* convertToValidType now throws error for value === undefined
* NumberType extends Numbers
* Transaction type related changes
* Refactor DesiredType logic
* Convert to deep copy for formatTransaction method
* skip override method test - needs to be refactored. General formatting
* Skip override method test - needs to be refactored. Set input.type > 0x7f
* Refactor formatTransaction
* Add error codes to web3-eth errors
* Refactor validateGate if statements into readable consts
* Update comment
* Add link to error message from 1.x
* Fix bug with is gas consts in validateGas
* Init InvalidConvertibleValueError
* Replace error with InvalidConvertibleValueError
* Update tests for formatting undefined
* Update expected errors for validateGas tests
* No longer default tx.type if undefined
* Refactor detectTransactionType
* Fix type error for return in detectTransactionType
* Init rpc_method_wrappers.ts
* Remove Web3Eth import
* Refactor use of web3Context.defaults
* Restore Formatted transaction types
* Init web3_rpc_method_wrappers tests
* Refactor web3_eth_methods_with_parameters test
* Replace if X === undefined checks with ?
* Un-export consts that aren't used
* Add defaultTransactionType and defaultMaxPriorityFeePerGas
* Update defaults for chain and hardfork to mainnet and london
* Update to use web3Context.default chain and hardfork. Init tests for defaults
* Update test to account for added defaults
* Refactor validateGas to use helper methods
* remove TODO
* Init error TransactionGasMismatchError
* Fix tests and refactor transaction validator helper methods
* Move validation methods to validation.ts
* Add input to Transaction type
* Add @ethereumjs/common dependency
* yarn format
* Remove null for defaultTransactionType
* Add default for defaultTransactionType
* Update default for defaultTransactionType
* Bug fixes, refactors, and init prepareTransactionForSigning and tests
* Remove unused test code
* revert transaction data and value to default to 0x
* Fix failing populate_transaction tests
* Add defaultNetworkId to web3_config
* Add TODO for failing prepare_transaction_for_signing test
* Remove TODO
* Init TransactionDataAndInputError
* Add else if to populateTransaction - data
* Refactor populateTransaction - chainId
* Comment out unused ifs
* Remove populateTransaction - gas
* Remove populateTransaction - hexTxType
* Replace use of ValidReturnTypes[ValidTypes.HexString] with HexString
* Remove toHex import
* Remove | null for Web3ConfigOptions defaultChain and defaultHardfork
* Refactor getEthereumjsTransactionOptions
* Remove no longer needed populateTransaction - gas test
* Update packages/web3-eth/src/validation.ts
* Remove unnecessary rpc method wrappers
* Web3Eth now extends Web3Context instead of instantiating it
* Init getPendingTransactions
* Init requestAccounts
* Add EIP-1102 as a comment for requestAccounts
* Init getChainId
* Init getProof
* Init Web3EthExecutionAPI
* Fix imports for AccountObject in fixtures
* Add formatting to getPendingTransactions. Move formatTransaction to seperate file
* Add TODO to investigate transaction.data
* Add formatting to getChainId response
* Init getNodeInfo
* Revert esModuleInterop change
* Combine networkId and chainId if statements
* yarn format
* Add Partial to type of transaction for eth_sendTransaction
* Init transactionReceiptPollingInterval and transactionConfirmationPollingInterval
* Add TODO and Partial to transaction type for sendTransaction
* WIP sendTransaction and PromiEvent integration
* Add eslint-disable-next-line
* Add eslint-disable-next-line
* Move TransactionEvents
* eslint fixes
* Update sendSignedTransaction to use PromiEvent
* Init signTransaction
* Refactor TransactionCall
* Comment out validation for call
* Init TransactionCall type for web3-eth types
* Remove as BaseTransaction from isTransactionCall
* Implement call for rpc_method_wrappers
* Uncomment sendTransaction, signTransaction, and call
* ✨ Update estimate gas method to use web3-eth
* 🎨 Update contract mehtod send to use web3-eth utility functions
* 🎨 Update contract method call to use web3-eth utilities
* 🎨 Fix code introduced in merge conflicts
Co-authored-by: Wyatt Barnes <me@wyatt.email>
Co-authored-by: jdevcs <86780488+jdevcs@users.noreply.github.com>
1 parent 39f8fd5 commit 568b4b2
File tree
8 files changed
+192
-193
lines changed- packages
- web3-common/src
- web3-eth-contract
- src
- web3-eth/src
8 files changed
+192
-193
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
| 372 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
34 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
23 | 22 | | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
196 | 185 | | |
197 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
198 | 190 | | |
199 | 191 | | |
200 | 192 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
206 | 198 | | |
207 | | - | |
| 199 | + | |
208 | 200 | | |
209 | 201 | | |
210 | 202 | | |
| |||
296 | 288 | | |
297 | 289 | | |
298 | 290 | | |
299 | | - | |
300 | | - | |
| 291 | + | |
301 | 292 | | |
302 | | - | |
303 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
304 | 297 | | |
305 | 298 | | |
306 | 299 | | |
| |||
312 | 305 | | |
313 | 306 | | |
314 | 307 | | |
315 | | - | |
| 308 | + | |
316 | 309 | | |
317 | | - | |
318 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
319 | 314 | | |
320 | 315 | | |
321 | 316 | | |
| |||
330 | 325 | | |
331 | 326 | | |
332 | 327 | | |
333 | | - | |
| 328 | + | |
334 | 329 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
348 | 336 | | |
349 | 337 | | |
350 | | - | |
| 338 | + | |
351 | 339 | | |
352 | 340 | | |
353 | 341 | | |
354 | 342 | | |
355 | 343 | | |
356 | | - | |
| 344 | + | |
357 | 345 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
370 | 352 | | |
371 | 353 | | |
372 | 354 | | |
373 | 355 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
395 | 378 | | |
396 | 379 | | |
397 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
53 | | - | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
80 | 70 | | |
81 | 71 | | |
82 | 72 | | |
83 | 73 | | |
84 | 74 | | |
85 | 75 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
102 | 81 | | |
103 | 82 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
0 commit comments