Skip to content

Commit a2a4788

Browse files
committed
initial commit
0 parents  commit a2a4788

File tree

9 files changed

+3904
-0
lines changed

9 files changed

+3904
-0
lines changed

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
*.swp
2+
*.swo
3+
4+
# Logs
5+
logs
6+
*.log
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
allFiredEvents
13+
scTopics
14+
15+
# Coverage directory used by tools like istanbul
16+
coverage
17+
coverage.json
18+
coverageEnv
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Dependency directory
24+
node_modules
25+
26+
# Debug log from npm
27+
npm-debug.log
28+
29+
# local env variables
30+
.env
31+
32+
# macOS
33+
.DS_Store
34+
35+
# IntelliJ IDE
36+
.idea
37+
38+
# docs artifacts
39+
docs/modules/api
40+
41+
# only used to package @openzeppelin/contracts
42+
contracts/build/
43+
contracts/README.md
44+
45+
# temporary artifact from solidity-coverage
46+
allFiredEvents
47+
.coverage_artifacts
48+
.coverage_cache
49+
.coverage_contracts
50+
51+
# hardat-exposed
52+
contracts-exposed
53+
54+
# Hardhat
55+
/cache
56+
/artifacts
57+
58+
# Foundry
59+
/out
60+
/cache_forge
61+
62+
# Certora
63+
.certora*
64+
.last_confs
65+
certora_*
66+
.zip-output-url.txt

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "lib/@openzeppelin-contracts"]
2+
path = lib/@openzeppelin-contracts
3+
url = https://github.com/OpenZeppelin/openzeppelin-contracts.git
4+
[submodule "lib/@openzeppelin-contracts-upgradeable"]
5+
path = lib/@openzeppelin-contracts-upgradeable
6+
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git

hardhat.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const { argv } = require('yargs/yargs')()
2+
.env('')
3+
.options({
4+
compiler: {
5+
type: 'string',
6+
default: '0.8.25',
7+
},
8+
hardfork: {
9+
type: 'string',
10+
default: 'cancun',
11+
},
12+
});
13+
14+
require('@nomicfoundation/hardhat-chai-matchers');
15+
require('@nomicfoundation/hardhat-ethers');
16+
require('./hardhat/remappings');
17+
18+
module.exports = {
19+
solidity: {
20+
version: argv.compiler,
21+
settings: {
22+
optimizer: {
23+
enabled: true,
24+
runs: 200,
25+
},
26+
evmVersion: argv.hardfork,
27+
},
28+
},
29+
networks: {
30+
hardhat: {
31+
hardfork: argv.hardfork,
32+
},
33+
},
34+
};

hardhat/remappings.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const fs = require('fs');
2+
const { task } = require('hardhat/config');
3+
const { TASK_COMPILE_GET_REMAPPINGS } = require('hardhat/builtin-tasks/task-names');
4+
5+
task(TASK_COMPILE_GET_REMAPPINGS).setAction((taskArgs, env, runSuper) =>
6+
runSuper().then(remappings =>
7+
Object.assign(
8+
remappings,
9+
Object.fromEntries(
10+
fs
11+
.readFileSync('remappings.txt', 'utf-8')
12+
.split('\n')
13+
.filter(Boolean)
14+
.map(line => line.trim().split('=')),
15+
),
16+
),
17+
),
18+
);

lib/@openzeppelin-contracts

Submodule @openzeppelin-contracts added at 52c36d4

0 commit comments

Comments
 (0)