-
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.
- Loading branch information
Showing
17 changed files
with
6,501 additions
and
20,837 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
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 |
---|---|---|
|
@@ -3,15 +3,15 @@ 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; npm run build' | ||
|
||
.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 npm run test' | ||
|
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,23 @@ | ||
export default [ | ||
{ | ||
globals: { | ||
"artifacts": true, | ||
"contract": true, | ||
"web3": true, | ||
"assert": true, | ||
"it": true, | ||
"before": true, | ||
"beforeEach": true, | ||
"describe": true | ||
}, | ||
rules: { | ||
"strict": 0, | ||
"indent": ["error", 4], | ||
"func-names": "off", | ||
"max-len": "off", | ||
"no-underscore-dangle": "off" | ||
}, | ||
ignores: ["tmp/*", "build/*", "node_modules/*", "contracts/*"] | ||
} | ||
] | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import * as dotenv from 'dotenv'; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
import 'hardhat-contract-sizer'; | ||
import 'solidity-coverage' | ||
|
||
dotenv.config(); | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: { | ||
version: '0.8.19', | ||
settings: { | ||
evmVersion: 'london', | ||
optimizer: { | ||
enabled: true, | ||
runs: 200, | ||
}, | ||
}, | ||
}, | ||
contractSizer: { | ||
runOnCompile: true, | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.