-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Init web3_eth_migration_guide #5136
Conversation
|
BatchRequest is not documented ( I'll copy it from web3 migration guide after it get ok from reviews) |
nazarhussain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have following observations:
- Pleae make the change for the
biginteverywhere. All the numbers data type are consistenlty should return thebigint. If not then it's a bug and we should fix it. - It does not feel like productive to me to document those breaking changes in that way. Will be tedious to review and maintain. Instead we can just document the list of funcitons which now will return
bigintfor all number type attributes.
|
|
||
| - `givenProvider` default value is `undefined` instead of `null` | ||
| - `currentProvider` will never return `null`, provider required upon instantiation as opposed to being optional in 1.x //todo maybe this is not true after after the recent discussion/change | ||
| - `web3.eth.defaultAccount` default value is `undefined` instead of `null` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That applies to everywhere. So insted of listing it for individual values, we should highlight it overall.
All the API level interfaces returning or accepting null are replaced with undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is extended implemented too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding point 2. Sound good to me.
Let's wait for input from the rest of the team for their opinion and to see how they have structured docs.
avkos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. except for Nazar comments
4de5505 to
6b04afc
Compare
* fix decode function. migration guide. fix unit tests * 🏷️ Fix the contract types (#5213) * fix contract integration tests * add to changelog.md Co-authored-by: Nazar Hussain <[email protected]>
* Throw error for not found tx in getTransaction * Fix failing tests * Move mock values to fixtures * Throw error for not found tx in getTransactionReceipt * Create dedicated error * Create dedicated error code
* ⬆️ Update ethereum-cryptography package * Apply suggestions from code review Co-authored-by: Junaid <[email protected]> * 🎨 Update the code as per feedback Co-authored-by: Junaid <[email protected]>
* Init commit with defaultAccount * Add some more properties * Add more properties * Refactor docs * Apply some changes from reviews
* ⬆️ Update ethereum-cryptography package * Apply suggestions from code review Co-authored-by: Junaid <[email protected]> * 🎨 Update the code as per feedback Co-authored-by: Junaid <[email protected]>
* Init commit with defaultAccount * Add some more properties * Add more properties * Refactor docs * Apply some changes from reviews
68af2c4 to
e595585
Compare
* Init web3_eth_migration_guide * WIP migration guide * WIP migration guide * Add more methods * WIP migration guide * Add request accounts * Apply some changes from reviews * Add getHashrate as deprecated * Remove getAccounts, as it will be fixed * Fix hex string to bigint in docs * Migration guide refactors * fix decode function. migration guide. fix unit tests (#5210) * fix decode function. migration guide. fix unit tests * 🏷️ Fix the contract types (#5213) * fix contract integration tests * add to changelog.md Co-authored-by: Nazar Hussain <[email protected]> * Incompatible return types for 4.x implementations (#5205) * Throw error for not found tx in getTransaction * Fix failing tests * Move mock values to fixtures * Throw error for not found tx in getTransactionReceipt * Create dedicated error * Create dedicated error code * Upgrade ethereum-cryptography to 1.0 (#5211) * ⬆️ Update ethereum-cryptography package * Apply suggestions from code review Co-authored-by: Junaid <[email protected]> * 🎨 Update the code as per feedback Co-authored-by: Junaid <[email protected]> * add net to web3 eth interface (#5217) * web3-common/core defaults documentation (#5198) * Init commit with defaultAccount * Add some more properties * Add more properties * Refactor docs * Apply some changes from reviews * Upgrade ethereum-cryptography to 1.0 (#5211) * ⬆️ Update ethereum-cryptography package * Apply suggestions from code review Co-authored-by: Junaid <[email protected]> * 🎨 Update the code as per feedback Co-authored-by: Junaid <[email protected]> * web3-common/core defaults documentation (#5198) * Init commit with defaultAccount * Add some more properties * Add more properties * Refactor docs * Apply some changes from reviews Co-authored-by: Nikos Iliakis <[email protected]> Co-authored-by: Nikos Iliakis <[email protected]> Co-authored-by: Junaid <[email protected]> Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Nazar Hussain <[email protected]> Signed-off-by: Muhammad-Altabba <[email protected]>
To preview migration guide:
cd web3.js/docsyarn startRemaining methods to check for breaking changes:
sendSignedTransactionsignsignTransactioncallestimateGasgetPastLogsgetWorksubmitWorkrequestAccountsgetChainIdgetNodeInfogetProof