-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP add support for EIP1559 and CIP42 to ContractKit (wallet-base) #10474
Closed
Closed
Changes from 224 commits
Commits
Show all changes
225 commits
Select commit
Hold shift + click to select a range
3e3ccc3
Node 18
dckesler f834eb0
update truffle-ganache-ethereumjs dependencies
soloseng 4925a77
fix build errors
soloseng 4bfa245
split migration into JS & TS dir
soloseng 855a0f2
build with latest node 18.14
soloseng bea2954
-- ganache.server promise wrapper
soloseng 6964637
ignore migrations_ts js files
soloseng 98408bd
sync with master
soloseng bb768d8
added resolutions
soloseng b3bbcad
Merge branch 'soloseng/syncing-with-master' into soloseng/ganache-upg…
soloseng 91dca89
remove lib
soloseng cde57f8
removed leftover old dependencies
soloseng 7955d93
fixed revert assersion error message
soloseng 493fca7
WIP notes
soloseng f0addc4
WIP todos
soloseng 0a6cfa9
updated web3 & ethereumjs in utils & protocol
soloseng 861d5c3
++ ethereum-cryptography dependency
soloseng 53adec3
Merge branch 'soloseng/fixing-test' into soloseng/update-web3-ethereumjs
soloseng ff4e7e8
Merge branch 'soloseng/fixing-gas-price'
soloseng 8de0e9d
timeout fix
soloseng 4be4285
-- comments
soloseng 686659a
Fixed overflow test
soloseng a8c3288
Merge branch 'soloseng/ast-version_fix'
soloseng 4b46543
Merge branch 'soloseng/fixing-test' into soloseng/update-web3-ethereumjs
soloseng e50fe29
using istanbul hardfork
soloseng 00bb385
Merge branch 'soloseng/update-web3-ethereumjs' into soloseng/ganache-…
soloseng 2c31969
Merge branch 'master' into soloseng/sync-with-master
soloseng 45817fa
++ yarn.lock
soloseng 5ef81c0
Merge branch 'soloseng/sync-with-master' into soloseng/ganache-upgrade
soloseng d4dedb8
update ganache & ethereumjs version
soloseng eb47b9b
- removed resolutions
soloseng d1bbcb3
Merge branch 'soloseng/ganache-upgrade' into soloseng/update-web3-eth…
soloseng 65e88fa
built using latest web3
soloseng 609116a
Updated ganache config
soloseng 6693173
Specify gas and await tx receipt
soloseng 8d70315
updated dependencies to fix cross-fecth bind error
soloseng ba21b7b
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 4ba5ca8
updated yarn.lock
soloseng e09b884
updated node version in circleci docker file
soloseng 3388635
updated expected error message
soloseng b4b0c70
ensure leading 0x instead of trimming
soloseng 228ba70
increased jest version
soloseng aefc17f
Node 18.16.0
dckesler db11b41
- update node-fetch
soloseng bd3de96
Merge branch 'dckesler/ganache-upgrade' into soloseng/ganache-upgrade
soloseng 885c8e0
Merge branch 'soloseng/update-web3-ethereumjs' into soloseng/ganache-…
soloseng e4d7a04
yarn installed using node 18.16.0
soloseng db592ca
Appease linter
soloseng 4fb40d0
fixed import issue
soloseng e6d8842
use devchain chain copy
soloseng ce9f73f
using fixed jest version
soloseng 4a699c5
disabled flake-traker
soloseng c8da898
generated CLI docs
soloseng 96103b0
buypass jest_setup
soloseng 2fc8f2b
ignored ts error due to properties mismatch
soloseng cf71f66
++ @types/node-fetch
soloseng 12b2ae4
yarn.lock
soloseng 9310a3d
using same @types/node-fetch where applicable
soloseng c021735
ts-ignored for abort-controller
soloseng 6f776b7
Fix broken kit headers test
dckesler d752f69
temp force exit on contractkit test
soloseng cfe94ea
no detectOpenHandles
soloseng f3c0f89
Merge branch 'soloseng/force-exit-hanging-test' into soloseng/ganache…
soloseng d28cf49
Fix cross-fetch jest mocking issues
dckesler 24a5f2c
lint fix
soloseng b1175ec
disabled verbose logs during testing
soloseng 02fef9f
disabled rpc log in protocol test
soloseng e750d57
Disabled:
soloseng 1ce3a12
removed disabled jobs from workflow
soloseng ad03f4c
supress test logs
soloseng 42952af
disabled protocol test
soloseng ba1fa96
disabling flakey summary
soloseng 9069cd5
disabled odis test
soloseng 9c80542
increased resource class to xlarge
soloseng 8431cc4
enaled protocol and odis CI test
soloseng d12b281
re-enabled
soloseng 7955a97
Merge branch 'soloseng/modify-ci-config' into soloseng/ganache-upgrade
soloseng 12ea5e9
enable phone-number-privacy test logs
soloseng d34d5d6
Fixing mocha issues in celotool tests
dckesler 821fb8f
Change node to 18.14.0
dckesler 2b93a03
Node 18.14.2
dckesler e8a0499
changed uniswap init code hash
soloseng f477d77
Revert "changed uniswap init code hash"
soloseng 34861c1
fix unicode char in datetime format
soloseng a1e5c4c
Update e2e test docker image
dckesler 8acee1a
verbose output
soloseng 2620a2a
Pre-review cleanup
soloseng 3b90f6d
appease linter
soloseng c63ffbe
removed dead code
soloseng 6fa8c7f
deprecate defaultRpcCaller for httpRpcCaller
soloseng b2fd653
updated ganache-dev command
soloseng 6808884
appease linter
soloseng 0dcd40f
updated revert assertion with message
soloseng 38685ac
downgraded truffle
soloseng a9cac7f
updated truffle version and config
soloseng ae8b2a0
add web3*@1.8.2 to resolutions
soloseng 43f8a1c
Fixed stability test
soloseng b2c009b
removed resolutions
soloseng 3e11de3
updated yarn lock
soloseng 50bec2a
updated governance/network test revert messages
soloseng bccd968
updated protocol common test revert assertion msg
soloseng 04a3d2c
appease linter
soloseng eca7b4f
using assertRevertWithReason
soloseng 9368c6b
using assertRevertWithReason in governance/voting
soloseng 8a64112
angry linter
soloseng 6f70d37
using assertRevertWithReason in identity/
soloseng bff7b5d
fix linter issue
soloseng a408c1d
using `@ethereumjs/rlp` for RLP encoding
soloseng 164ff0e
linter fix
soloseng 2b5a71e
updated web3* dependencies
soloseng e83d779
specify type of transaction
soloseng b15eee7
removed verbose output
soloseng 2fcf913
added `assertRevertWithoutReason()`
soloseng 7221844
linting fix
soloseng 77aa86f
added revert without msg for identity test
soloseng b30972d
updated deprecated functions
soloseng fde198b
distinguish between
soloseng 1c2431e
fixed typing ignore
soloseng ce55171
specified gas, as gas estimations fails
soloseng 39268e7
Merge branch 'master' into soloseng/sync-master
soloseng f39af3b
updated revert message in test
soloseng de797fa
updated yarn lock
soloseng 033d6f5
updated yarn lock again
soloseng 2a816cc
change docker image path
soloseng 94cac6b
updated revert msg to match contract
soloseng 224b4ca
Merge branch 'soloseng/sync-master' into soloseng/ganache-upgrade
soloseng c4e58e7
updated docs to match current node version
soloseng 269aa7b
tracking issue in comment
soloseng 74960e6
specified chain id
soloseng 7ecaa3c
revert to default verbose output
soloseng 998e981
removed debud logging
soloseng ab8296f
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 9a85b11
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso f0de102
GH Workflows run in node18 runners
jcortejoso 12d6c6a
Force new node cache
jcortejoso 060ffa4
Disable flake-tracker
jcortejoso f5502bb
prettify
jcortejoso 7246063
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 4d3aee6
Updated test to revert with message
soloseng 1de9f29
Merge branch 'master' into soloseng/ganache-upgrade
soloseng a3564c4
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 373fda7
quiet test
soloseng 09c58c3
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 34280de
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 48c422c
fixed build errors
soloseng 49f216d
updated scripts to better handle ts & js files
soloseng f6d071a
moved `artifactSingleton` file to lib/
soloseng cd45852
Merge branch 'master' into soloseng/ganache-upgrade
soloseng a27e86d
Merge branch 'master' into soloseng/ganache-upgrade
soloseng c386b13
added transaction type when using mento artifacts
soloseng 93dc7d5
fix Migration test
soloseng 31f5840
allow submodules in e2e matrix
soloseng 4eb236d
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso c0ee6fb
python2 -> python (3)
jcortejoso 6c8f094
using nvm to switch to node12 for pre-release test
soloseng 22a2a05
∆ to trigger GH action
soloseng 4b6629c
∆ to trigger full test in GH actions
soloseng acafbac
Using nvm for circleci image
jcortejoso db5df3c
Do not use nvm with circleci
jcortejoso 910a706
use node12 to generate old release devchain
soloseng 57f0009
reset and reinstall before cleaning
soloseng 8a1fcff
set python2 in release branch
soloseng 463a42c
installed python2
soloseng 9a16941
added log
soloseng b886aa5
removed python2 install script
soloseng de5b770
set new release tag
soloseng f167a08
trigger all test
soloseng d44d920
WIP comments
soloseng d7dad8b
trigger all test
soloseng fbc89cb
CircleCi Build pre-protocol with node12
jcortejoso cdf6dc3
Circle node12 fix
jcortejoso 16669e5
Adding python 2 and 3 to circleci image
jcortejoso c9a3637
run devchain from tar in detached mode
soloseng 8329f64
++ comments
soloseng 53096ff
updated release tag in circleCI config
soloseng 3880bb2
Replace pull_request by pull_request_target
jcortejoso 0aadd4c
bump MTWdeployer patch version
soloseng 0e49b7b
testing bypass dryrun
soloseng fa043b9
loggin and force CI run
soloseng 09d2681
removed false param
soloseng 3fb39b8
revert change and added try catch
soloseng bc2c108
moved await
soloseng 7050b50
added type to tx detail
soloseng 037249f
included tx type in contract deployment
soloseng a6b7fff
increased logging level in ganache and truffle
soloseng 5d56995
specified gas to deployment tx
soloseng 18ae7b3
removed truffle debug logging
soloseng 787392f
keep chaincopy
soloseng dac608b
removed debug logs
soloseng 7d2e5c5
clean up redundant install
soloseng 2b4ffb1
revert GH action trigger on current branch push
soloseng ffb07c9
remove comments
soloseng 9eadf98
remove gas specfication
soloseng 1945d60
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 3bde778
Merge branch 'master' into soloseng/ganache-upgrade
soloseng 5a964cf
updated node version in docs
soloseng e553ae0
unskip migration test
soloseng 6b3f017
PR feedback
soloseng 81d87a3
revert back to skip
soloseng f6b2146
∆ forked packages to celo namespace
soloseng 0e68b2c
reinstalled
soloseng 7340798
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso d0fd9c9
cleanup TODO and comments
soloseng 61752b0
python -> python3
jcortejoso 3fae1da
updated node base images to 18
jcortejoso 6c88c24
Merge branch 'master' into soloseng/ganache-upgrade
jcortejoso 18b8c46
python -> python3
jcortejoso 41feecb
Merge branch 'soloseng/ganache-upgrade' of github.com:celo-org/celo-m…
jcortejoso 672c5e4
Updated netcat dependency
jcortejoso 074a074
Fix build
jcortejoso f19034d
Fix build docker
jcortejoso 06c90f1
force GH action test
soloseng b2fab0a
WIP adding CIP42 /eip1559 support
aaronmgdr 0212808
WIP
aaronmgdr c50a9bd
Merge branch 'master' into aaronmgdr/cip42
aaronmgdr fbbf2fa
fix build, move types to type file
aaronmgdr b336e54
remove outdated and removed method calls to kit from cli
aaronmgdr efd1aad
more data for test
aaronmgdr f761667
better errors and fixed tests
aaronmgdr e818f6e
fix signing, improve tests
aaronmgdr 97f16b2
test signing and parsing transaction compared to viem
aaronmgdr 966b494
more viem comparison work .. failing
aaronmgdr 32d28c8
latest
aaronmgdr 381d962
help
aaronmgdr a97970f
Merge branch 'master' into aaronmgdr/cip42
aaronmgdr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
TopLine Changes | ||
|
||
* Add support for CIP42 and EIP1559 Transactions | ||
* Prefer EIP1559 if no feeCurrency and CIP42 if using feeCurrency, Old CeloLegacy transations still supported (set the gasPrice explicitly) but discouraged | ||
* upgrade Web3 dependency | ||
|
||
## @celo/connect | ||
|
||
* gasPrice is no longer an option on config. setting 0 (or any empty value) for gasPrice in transaction will result in maxFeePerGas and maxPriorityFee per gas being set on the transaction | ||
|
||
* likewise gasPrice is no longer settable on the connection itself | ||
|
||
* (note that the gasPrice function for fetching price from node is NOT affected) | ||
|
||
* replace connection.fillGasPrice with connection.setFeeMarketGas | ||
|
||
* add inputAccessListFormatter | ||
|
||
* remove deprecated setGasPriceForCurrency | ||
|
||
* EncodedTransaction Type now supports CIp42 and EIP1559 transactions | ||
|
||
* inputCeloTxFormater now returns type FormattedCeloTx although apart from support for cip42 and eip1559 tx the data returned hasnt changed | ||
|
||
* numberToHex, ensureLeading0x, inputAddressFormatter now are typed to return `0x{string}` instead of just string | ||
|
||
* added parseAccessList and inputAccessListFormatter for converting accessList from json to array of array and back | ||
|
||
* RLPEncodedTx now types its transaction field as FormattedTransaction this is more accurate than the CeloTX type it previously had | ||
|
||
## kit | ||
|
||
* removed gasPriceSuggestionMultiplier == gas price from rpc no longer multipled by 5 | ||
|
||
* remove kit.fillGasPrice | ||
|
||
* remove updateGasPriceInConnectionLayer | ||
|
||
* remove kit.gasPrice | ||
|
||
## @celo/wallet-base | ||
|
||
* extractSignature now throws if the length of provided tx is not correct | ||
* extractSignature was incorrectly typed to return Buffers for r and s values | ||
|
||
* ensureLeading0x now types output to be `0x{string}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This should not be changed.
It is currently preventing GH action from running.
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.
yeah when i started i branched off the node 18 branch. im gonna try moving my commits to a new branch off master