-
Notifications
You must be signed in to change notification settings - Fork 359
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
test: add integration tests for Anvil migrations #11002
test: add integration tests for Anvil migrations #11002
Commits on May 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd987f3 - Browse repository at this point
Copy the full SHA cd987f3View commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 601ad7c - Browse repository at this point
Copy the full SHA 601ad7cView commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3ae51c4 - Browse repository at this point
Copy the full SHA 3ae51c4View commit details -
test(test-sol/integration): adds e2e test for GoldToken
This is a test run, to see how `setUp()` and contract definitions work. 1. run devchain ```sh ./migrations_sol/create_and_migrate_anvil_devchain.sh ``` 2. run test against devchain ```sh forge test \ --match-path test-sol/integration/Integration.t.sol \ --match-contract GoldTokenTest_General \ -vvv \ --fork-url http://127.0.0.1:8546 ``` Tests pass Output: ```sh [⠰] Compiling... No files changed, compilation skipped Running 3 tests for test-sol/integration/Integration.t.sol:GoldTokenTest_General [PASS] test_decimals() (gas: 10837) Logs: GoldToken address is: 0xfE8CbC1cFA1b3b8256f310bdfd40E60597083448 [PASS] test_name() (gas: 12537) Logs: GoldToken address is: 0xfE8CbC1cFA1b3b8256f310bdfd40E60597083448 [PASS] test_symbol() (gas: 12579) Logs: GoldToken address is: 0xfE8CbC1cFA1b3b8256f310bdfd40E60597083448 Test result: ok. 3 passed; 0 failed; 0 skipped; finished in 135.40ms Ran 1 test suites: 3 tests passed, 0 failed, 0 skipped (3 total tests) ```
Configuration menu - View commit details
-
Copy full SHA for ee24877 - Browse repository at this point
Copy the full SHA ee24877View commit details
Commits on May 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 714bc75 - Browse repository at this point
Copy the full SHA 714bc75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8651f31 - Browse repository at this point
Copy the full SHA 8651f31View commit details
Commits on May 30, 2024
-
test(test-sol/integration): upgrades to solidity 0.8
This is to allow me to use the `.code` property on deployed smart contracts, which is only supported on Solidity 0.8 and above.
Configuration menu - View commit details
-
Copy full SHA for eec3863 - Browse repository at this point
Copy the full SHA eec3863View commit details -
Configuration menu - View commit details
-
Copy full SHA for 710059f - Browse repository at this point
Copy the full SHA 710059fView commit details -
nit(test-sol/integration): updates constructor visibility
In Solidity versions 0.7.0 and later, constructors are implicitly internal, meaning they can only be called within the contract itself or derived contracts, making the visibility keyword redundant.
Configuration menu - View commit details
-
Copy full SHA for c4f55d5 - Browse repository at this point
Copy the full SHA c4f55d5View commit details -
nit(test-sol/integration): updates function state mutability
The state mutability of a function can be restricted to view if the function does not modify the state of the blockchain. A view function promises not to alter the state, which allows the Ethereum Virtual Machine (EVM) to optimize how it handles the function. The function does not modify any state; it only reads from the registry and logs some information.
Configuration menu - View commit details
-
Copy full SHA for de6b143 - Browse repository at this point
Copy the full SHA de6b143View commit details -
Configuration menu - View commit details
-
Copy full SHA for d99a746 - Browse repository at this point
Copy the full SHA d99a746View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4df1e7c - Browse repository at this point
Copy the full SHA 4df1e7cView commit details
Commits on May 31, 2024
-
refactor(test-sol): adds registry array in
constants.sol
The goal is to use that in both the migration script (`Migration.s.sol`) and the integration test (`Integration.t.sol`).
Configuration menu - View commit details
-
Copy full SHA for dc6a6c5 - Browse repository at this point
Copy the full SHA dc6a6c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6389c8 - Browse repository at this point
Copy the full SHA d6389c8View commit details -
fix(test-sol/integration): adds back
Test.sol
importMistakenly deleted earlier
Configuration menu - View commit details
-
Copy full SHA for ab7bab9 - Browse repository at this point
Copy the full SHA ab7bab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e372b8a - Browse repository at this point
Copy the full SHA e372b8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 130523e - Browse repository at this point
Copy the full SHA 130523eView commit details -
test(test-sol): adds helper to remove metadata from bytecode
Also adds docstring for better readability.
Configuration menu - View commit details
-
Copy full SHA for 1e61942 - Browse repository at this point
Copy the full SHA 1e61942View commit details -
Configuration menu - View commit details
-
Copy full SHA for e55c973 - Browse repository at this point
Copy the full SHA e55c973View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14bd4cf - Browse repository at this point
Copy the full SHA 14bd4cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 075697e - Browse repository at this point
Copy the full SHA 075697eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41bff1b - Browse repository at this point
Copy the full SHA 41bff1bView commit details
Commits on Jun 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c7511a8 - Browse repository at this point
Copy the full SHA c7511a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e983e9a - Browse repository at this point
Copy the full SHA e983e9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb386de - Browse repository at this point
Copy the full SHA bb386deView commit details -
Merge branch 'arthurgousset/chore/anvil-integration-tests' of github.…
…com:celo-org/celo-monorepo into arthurgousset/chore/anvil-integration-tests
Configuration menu - View commit details
-
Copy full SHA for a4d4d8b - Browse repository at this point
Copy the full SHA a4d4d8bView commit details -
fix(workflows/protocol_tests): downgrades foundry version
The latest version has a regression that leads to a failing integration test. But, fixing a previous nightly build fixed the error.
Configuration menu - View commit details
-
Copy full SHA for 1f7ab42 - Browse repository at this point
Copy the full SHA 1f7ab42View commit details
Commits on Jun 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2f9f837 - Browse repository at this point
Copy the full SHA 2f9f837View commit details -
chore(test-sol/utils): reverts
deployCodeTo
edit inECDSAHelper
Because I'm downgrading to a previous foundry version, I have to undo the change to this line made in this PR: #10997
Configuration menu - View commit details
-
Copy full SHA for 30de987 - Browse repository at this point
Copy the full SHA 30de987View commit details -
I always forget to run `yarn prettify` in the top-level directory
Configuration menu - View commit details
-
Copy full SHA for dcb09e1 - Browse repository at this point
Copy the full SHA dcb09e1View commit details -
docs(workflows/protocol_tests): adds better code comment
To explain what flags and arguments are used.
Configuration menu - View commit details
-
Copy full SHA for c27a53e - Browse repository at this point
Copy the full SHA c27a53eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9ce129 - Browse repository at this point
Copy the full SHA b9ce129View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a740cb - Browse repository at this point
Copy the full SHA 7a740cbView commit details -
Using `yarn prettify` in the top-level directory
Configuration menu - View commit details
-
Copy full SHA for 7201463 - Browse repository at this point
Copy the full SHA 7201463View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19faa9b - Browse repository at this point
Copy the full SHA 19faa9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d31c336 - Browse repository at this point
Copy the full SHA d31c336View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7f4905 - Browse repository at this point
Copy the full SHA a7f4905View commit details -
refactor(migrations_sol&test-sol): removes
Utils
importAdds function in `Integration.t.sol` directly to avoid 0.5.x version problems.
Configuration menu - View commit details
-
Copy full SHA for 75a4306 - Browse repository at this point
Copy the full SHA 75a4306View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e6b230 - Browse repository at this point
Copy the full SHA 1e6b230View commit details
Commits on Jun 5, 2024
-
refactor(test-sol/integration): use
.code
property instead of helpe……r function Because the script is now on 0.8, we can use the `.code` property to fetch the runtime bytecode of a smart contract deployed on the devchain. Previously, we needed to load the bytecode from storage with inline assembly.
Configuration menu - View commit details
-
Copy full SHA for 9c913ca - Browse repository at this point
Copy the full SHA 9c913caView commit details -
refactor(foundry): simplifies configs to exclude tests
Functionally this should be the same, but the configs and flags are more readable.
Configuration menu - View commit details
-
Copy full SHA for 255f467 - Browse repository at this point
Copy the full SHA 255f467View commit details