Skip to content
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

Adds patch-package to apply fix for Arbitrum Nitro #701

Merged
merged 1 commit into from Sep 7, 2022

Conversation

penandlim
Copy link
Contributor

Currently, forking arbitrum is not possible on hardhat 2.10.2.
This commit adds a patch from NomicFoundation/hardhat#2995

https://gist.github.com/gzeoneth/195cb16f00eaa32fa868e6c0192616c1

After running npm i --legacy-peer-deps
Arbitrum can be forked with below command.

npx hardhat node --fork arbitrum_mainnet --fork-ignore-unknown-tx-type true

Once hardhat fixes this issue this patch should be removed.

@penandlim penandlim merged commit b586b10 into master Sep 7, 2022
@penandlim penandlim deleted the john/impersonateOwnersArbitrumFork branch September 7, 2022 22:22
penandlim added a commit that referenced this pull request Sep 14, 2022
…#684)

* adding files is state where tests work

* root gauge factory tests, child gauge factory initialize

* child gauge initial tests

* added oracles and arbitrum bridger

* fixed oracles and added test for oracle

* updated todo comments

* updated Anycall translator and anycall mock contracts

* added rootgaugeFactory tests

* updated mock anycall contract

* updated translator / mock anycall contracts

* finalized AnycallTranslator contract

* updated translator contract with all accepted function calls

* finalized oracle contracts

* finalized gauge implementations

* added Optimism bridger, cleaned up comments

* removed delegatecall from translator

* naming changes

* Script for enabling on chain gauge voting (#691)

* updated logic of RootGauge

* added logic for having a RootGauge name

* fixed typing of name(), added to factory tests

* updated tests to successfully deploy root gauge

* Added to RootGauge Factory tests

* added deposit and rescue functios to translator

* added fixture to RootGauge Factory Test

* added todo comments

* Add deploy script and deployment data for non-flashloan swaps (#690)

* Updates pool reg for FraxBP USDs pool (#686)

* updates pool reg for FraxBP USDs pool

* ran lint fix

* fixed typo in pool registry update

* Skip script from running

Co-authored-by: Jongseung Lim <penandlim@gmail.com>

* Add separate tests for permissionless contracts (#681)

* Add separate tests for permissionless contracts

* Change test name to be accurate

* added deploys for non-flashload permissionless swaps

Co-authored-by: Michael Daly <dalymike102@gmail.com>

* Fix root gauge factory test.
- fix capitalization

* Fix capitalization in file names

* Fix test imports and types
- import from typechain

* Lint x chain gauges contracts

* Deploy root gauge factory on hardhat

* Deploy script for fake USDC (#693)

* Run prepare scripts by default on hardhat (#694)

* Run prepare scripts by default on hardhat

* Specify tags for swapMigrator tests

* Fix saving Multicall3 with abi

* Ensure no other deploy scripts are ran except the specified

* Add the deployed gauge to gauge controller

* Updates hardhat and migrate from waffle to hardhat chai matchers (#696)

* Migrate from waffle to hardhat chai matchers

* Linting fix

* Fix function name to include parameters for overloading

* Adds 2 new node dependencies (#699)

- hardhat-tracer
- openzepplin 4.4.0 upgradable

* Update AnyCallTranslator to be a proxy. Updates the test.

* Change signatures to match up between contracts

* Add test for sidechain -> root chain deploy_gauge()

* Fix encoding type

* Use proxy in deploy script

* ChildOracle emits an event when recieving

* Cleans up hardhat config file and moves tasks into tasks folder (#698)

* Cleans up hardhat config file and moves tasks into tasks folder

* Remove unnecessary dependency

* Add comments to tasks

* Fix param casing

* Add deploy scripts for optimism mainnet

* Improve fork settings (#700)

* Add deploy scripts

* Deploy a child gauge for SaddleFRAXBPPoolLPToken

* Adds `patch-package` to apply fix for Arbitrum Nitro (#701)

* Update USDS pool in pool registry (#702)

* Fix duplicate contract names

* Add deploy scripts for mainnet. Only run when forking for now

* Update RootOracle contract and test

* Uses immutables
* Removes unnecessary storage var

* USDT pool deploy (#703)

* Added USDT pool deploy, fixed typo in verify script

* deployed to kava_mainnet

* fixed registering of pools

* registered USDT pool

* verified new USDT Pool deployment

* Update hardhat to 2.11.1 and associated dependencies (#704)

* Update hardhat to 2.11.1 and associated dependencies

* Update solidity-coverage package version

* Update tests to use the ignore tx type flag

* Test for each storage variable separately

* Change file name cases to be in consistent style

* Update RootGaugeFactory tests

* Include prefix and suffix on Gauge names

* Update ChildGaugeFactory test

* Specify deploy tags for each test (#705)

* Use chai's closeTo comparison to approximate

* Add appropriate fixture deploy tags to all tests

* Increase line coverage

* Add tests for collecting fees on PermissionlessMetaSwapFlashLoan
instance

Co-authored-by: Jongseung (John) Lim <penandlim@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants