forked from filecoin-project/fevm-contract-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile fendermint and run simple coin and ERC20 tests (#10)
* check out submodules * if cargo make is already available dont install it * add kit/index.js from filecoin-project/fevm-contract-tests * update network name for openzeppelin tests * align environment variables between repos * use account1 env for uniswap * default node url returned by initNode * Updated submodules to point to snissn's forks * yarn for speed and use local network * remove outputFile configuration entry for gasReport - a) the default stdout is better for our context b) the folder gasreport does not exist which is causing silent errors during hard hat runs on github actions * disable and document tests that do not work at the moment * add sleep to prevent http errors between funding wallets * FM_PULL_SKIP=true in cargo build to use local Fendermint image * create a docker build * install foundry * make docker build fendermint on each run of CI (#9) * oz test needs more $ so increase to 10k eth * add a 5th account for openzeppelin * simplify uniswap test run * skipping uniswap and openzeppelin test
- Loading branch information
Showing
8 changed files
with
69 additions
and
25 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
[submodule "extern/fevm-uniswap-v3-core"] | ||
path = extern/fevm-uniswap-v3-core | ||
url = https://github.com/raulk/fevm-uniswap-v3-core | ||
url = https://github.com/snissn/fevm-uniswap-v3-core | ||
[submodule "extern/openzeppelin-contracts"] | ||
path = extern/openzeppelin-contracts | ||
url = https://github.com/filecoin-project/openzeppelin-contracts | ||
branch = ci | ||
url = https://github.com/snissn/openzeppelin-contracts |
Submodule fevm-uniswap-v3-core
updated
3 files
+7 −2 | hardhat.config.ts | |
+10 −0 | simple-test.js | |
+3 −0 | test/Tick.spec.ts |
Submodule openzeppelin-contracts
updated
18 files
+21 −24 | hardhat.config.js | |
+0 −10 | hardhat/env-contract.js | |
+40 −7 | package-lock.json | |
+1 −1 | package.json | |
+81 −81 | test/governance/extensions/GovernorComp.test.js | |
+107 −107 | test/governance/extensions/GovernorERC721.test.js | |
+168 −168 | test/governance/extensions/GovernorWithParams.test.js | |
+110 −110 | test/metatx/ERC2771Context.test.js | |
+178 −178 | test/metatx/MinimalForwarder.test.js | |
+205 −205 | test/token/ERC721/extensions/ERC721Consecutive.test.js | |
+174 −174 | test/token/ERC721/extensions/ERC721Votes.test.js | |
+556 −556 | test/token/ERC777/ERC777.test.js | |
+36 −36 | test/token/ERC777/presets/ERC777PresetFixedSupply.test.js | |
+28 −28 | test/utils/escrow/ConditionalEscrow.test.js | |
+143 −143 | test/utils/escrow/RefundEscrow.test.js | |
+302 −302 | test/utils/introspection/ERC165Checker.test.js | |
+57 −57 | test/utils/introspection/ERC1820Implementer.test.js | |
+99 −99 | test/utils/structs/DoubleEndedQueue.test.js |
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,18 @@ | ||
const request = require("sync-request"); | ||
const { ethers } = require("ethers"); | ||
|
||
// Setup testing environment | ||
const defaultNodeUrl = "http://127.0.0.1:8545/"; | ||
|
||
function initNode(filAmount, blockTimeMs) { | ||
return defaultNodeUrl; | ||
} | ||
|
||
function sendFil(accounts, amount) { | ||
return; | ||
} | ||
|
||
module.exports = { | ||
initNode, | ||
sendFil, | ||
}; |
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