-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade solidity and tests infrastructure
- Loading branch information
Showing
49 changed files
with
8,724 additions
and
23,802 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 +1,22 @@ | ||
.idea/ | ||
node_modules | ||
.idea | ||
.deps | ||
build | ||
coverage | ||
coverage.json | ||
/.coverage_artifacts/ | ||
/.coverage_contracts/ | ||
/coverageEnv/ | ||
/coverageEnv/ | ||
artifacts/ | ||
cache/ | ||
.env | ||
contracts/artifacts | ||
internal/rpc/contracts | ||
.deploys | ||
.states | ||
|
||
node_modules | ||
.env | ||
|
||
# solidity-coverage files | ||
/coverage | ||
/coverage.json | ||
|
||
# Hardhat files | ||
/cache | ||
/artifacts | ||
|
||
# TypeChain files | ||
/typechain | ||
/typechain-types |
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,16 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"arrowParens": "avoid", | ||
"overrides": [ | ||
{ | ||
"files": "*.sol", | ||
"options": { | ||
"singleQuote": false, | ||
"quoteProps": "consistent" | ||
} | ||
} | ||
], | ||
"plugins": ["prettier-plugin-solidity"] | ||
} |
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,3 +1,3 @@ | ||
module.exports = { | ||
skipFiles: ['common/ReentrancyGuard.sol', 'sfc/Migrations.sol'] | ||
skipFiles: ['common/ReentrancyGuard.sol', 'sfc/Migrations.sol'], | ||
}; |
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 |
---|---|---|
|
@@ -3,15 +3,19 @@ all: build | |
|
||
.PHONY: build | ||
build: | ||
docker run --rm --user $$(id -u):$$(id -g) -v $(PWD):/src -w /src node:16.19.1 bash -c \ | ||
'export NPM_CONFIG_PREFIX=~; npm install --no-save; npm install --no-save [email protected]; npm run build' | ||
docker run --rm --user $$(id -u):$$(id -g) -v $(PWD):/src -w /src node:20.17.0 bash -c \ | ||
'export NPM_CONFIG_PREFIX=~; npm install --no-save; npx hardhat compile' | ||
|
||
.PHONY: checksum | ||
checksum: | ||
for f in ./build/contracts/*.json; do echo -n "$$f "; jq -j .deployedBytecode $$f | shasum; done | ||
|
||
.PHONY: test | ||
test: | ||
docker run --rm --user $$(id -u):$$(id -g) -v $(PWD):/src -w /src node:16.19.1 bash -c \ | ||
'export NPM_CONFIG_PREFIX=~; npm install --no-save; npm install --no-save [email protected]; npm run test' | ||
docker run --rm --user $$(id -u):$$(id -g) -v $(PWD):/src -w /src node:20.17.0 bash -c \ | ||
'export NPM_CONFIG_PREFIX=~; npm install --no-save; npx hardhat test' | ||
|
||
.PHONY: workspace | ||
workspace: | ||
docker run -t -i --rm --user $$(id -u):$$(id -g) -v $(PWD):/src -w /src node:20.17.0 bash -c \ | ||
'export NPM_CONFIG_PREFIX=~; npm install --no-save; bash' |
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
Oops, something went wrong.