Skip to content

Commit ec59a36

Browse files
Feat/v2 (#45)
* feat(v2): removing truffle project in favor of the new forge/hardhat v2 repository * Update tokendesign.md adding Fund Recovery Process * Update tokendesign.md adding link to recover function * Update tokendesign.md adding event role modification * Update tokendesign.md adding burn and minting info * Create permit.md * feat(Token): replacing the keccak call in favour of the constant PERMIT_TYPEHASH * feat(ControllerToken): adding comment ; creating interfaces directory * feat(script): adding set and unset system and admin * feat(script): changing the max_mint_allowance env name * feat(script): connect V2 as ctrl for V1 frontend * Create migrating_V1_to_V2.md * feat(script): replacing etherscan API in favour of a homemade script * feat(ControllerToken): setting setFrontend with onlyOwner modifier * feat(generateBatchMint): adding a require check at the end of the script, ensuring revert if a flaw is found in the process * feat(ControllerToken): adding retro-compatibility claimOwnership * feat(ControllerToken): Adding validation in ControllerToken transfer/from/andCall * feat(Validator): adding CONTRACT_ID() to the blacklistValidator * feat(Validator): adding a ctor with _disableInitializers * feat(SystemRole): Override renounceOwnership to prevent renouncing ownership * fix(ControllerToken): remove unused SignatureChecker * fix(SystemRole): remove the usage of DEFAULT_ADMIN_ROLE * feat(ControllerToken): hardcoding the frontend address. it uses the ticker to get the right hardcoded address * feat(Burn/Recover): replacing the provided hash for the signature with a fixed h * feat(recover/burn): changing the test signature with the monerium linking message * Fix(migrating_V1_to_V2.md): Remove the usage of etherscan api in favour of log compilation. * doc: added the Ackee audits * doc: version 2 getting started * doc: fix version2 documentation * doc: version2 resized images to 500px * doc: Update README.md with telegram link * feat(script): adding a script for deploying all ControllerToken * fix(Burn/Recover): change the message hash checked * feat(GenerateBatchBan): adding a validator's ban migration * feat(GenerateBatchBan): adding a validator's ban migration * feat(configureToken): adding the RPC as an argument * feat(claimOwnership): adding two scripts to claim ownership of token frontend & token And BlacklistValidator * feat(BlacklistValidator): Remove Double entry point on role Granting. * feat(BlacklistValidator): adding tests and deployment script * feat(Token/Validator): Changing validator address to public * feat(audits): adding newer audit version for v2 * feat(generate): adding go project to generate batching solidity script * feat(generate): removing binary from git * feat(scripts): adding claim/transfer and mint --------- Co-authored-by: “Arni <[email protected]>
1 parent fe07ae5 commit ec59a36

File tree

1,553 files changed

+212433
-687975
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,553 files changed

+212433
-687975
lines changed

.env.example

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
KEY=
2-
URL=
3-
MNEMONIC=
1+
export RPC_URL=
2+
export PRIVATE_KEY=
3+
export ETHERSCAN_API_KEY=
4+
5+
export ARBITRUM_SEPOLIA_RPC=
6+
export ARBITRUM_SEPOLIA_CHAIN_ID=421614
7+
export ARBISCAN_API_KEY=
8+
export ARBISCAN_URL=https://api-sepolia-arbitrum.etherscan.io/api
9+
10+
export AVALANCHE_FUJI_RPC=
11+
export AVALANCHE_FUJI_CHAIN_ID=43113
12+
export SNOWTRACE_API_KEY=verifyContract
13+
export SNOWTRACE_URL=https://api.routescan.io/v2/network/testnet/evm/43113/etherscan
14+
15+
export OPT_SEPOLIA_RPC=
16+
export OPT_SEPOLIA_CHAIN_ID=11155420
17+
export OPTSCAN_API_KEY=
18+
export OPTSCAN_URL=https://api-sepolia-optimistic.etherscan.io/api

.gitignore

Lines changed: 143 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,145 @@
1-
.DS_Store
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# lcov reports
11+
lcov.info
12+
report/
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
broadcast/
17+
cache
18+
# Runtime data
19+
pids
20+
*.pid
21+
*.seed
22+
*.pid.lock
23+
24+
# Directory for instrumented libs generated by jscoverage/JSCover
25+
lib-cov
26+
27+
# Coverage directory used by tools like istanbul
28+
coverage
29+
*.lcov
30+
31+
# nyc test coverage
32+
.nyc_output
33+
34+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35+
.grunt
36+
37+
# Bower dependency directory (https://bower.io/)
38+
bower_components
39+
40+
# node-waf configuration
41+
.lock-wscript
42+
43+
# Compiled binary addons (https://nodejs.org/api/addons.html)
44+
build/Release
45+
46+
# Dependency directories
47+
node_modules/
48+
jspm_packages/
49+
50+
# Snowpack dependency directory (https://snowpack.dev/)
51+
web_modules/
52+
53+
# TypeScript cache
54+
*.tsbuildinfo
55+
56+
# Optional npm cache directory
57+
.npm
58+
59+
# Optional eslint cache
60+
.eslintcache
61+
62+
# Optional stylelint cache
63+
.stylelintcache
64+
65+
# Microbundle cache
66+
.rpt2_cache/
67+
.rts2_cache_cjs/
68+
.rts2_cache_es/
69+
.rts2_cache_umd/
70+
71+
# Optional REPL history
72+
.node_repl_history
73+
74+
# Output of 'npm pack'
75+
*.tgz
76+
77+
# Yarn Integrity file
78+
.yarn-integrity
79+
80+
# dotenv environment variable files
81+
.env.development.local
82+
.env.test.local
83+
.env.production.local
84+
.env.local
85+
86+
# parcel-bundler cache (https://parceljs.org/)
87+
.cache
88+
.parcel-cache
89+
90+
# Next.js build output
91+
.next
92+
out
93+
94+
# Nuxt.js build / generate output
95+
.nuxt
96+
dist
97+
98+
# Gatsby files
99+
.cache/
100+
# Comment in the public line in if your project uses Gatsby and not Next.js
101+
# https://nextjs.org/blog/next-9-1#public-directory-support
102+
# public
103+
104+
# vuepress build output
105+
.vuepress/dist
106+
107+
# vuepress v2.x temp and cache directory
108+
.temp
109+
.cache
110+
111+
# Docusaurus cache and generated files
112+
.docusaurus
113+
114+
# Serverless directories
115+
.serverless/
116+
117+
# FuseBox cache
118+
.fusebox/
119+
120+
# DynamoDB Local files
121+
.dynamodb/
122+
123+
# TernJS port file
124+
.tern-port
125+
126+
# Stores VSCode versions used for testing VSCode extensions
127+
.vscode-test
128+
129+
# yarn v2
130+
.yarn/cache
131+
.yarn/unplugged
132+
.yarn/build-state.yml
133+
.yarn/install-state.gz
134+
.pnp.*
135+
2136
node_modules
3-
build
4-
node_modules/.yarn-integrity
5-
.env
6-
coverage.json
7137
coverage
8-
yarn-error.log
9-
.vscode
138+
coverage.json
139+
typechain
140+
typechain-types
141+
142+
# Hardhat files
143+
cache
144+
artifacts
145+
cache_hardhat/

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.17.0

.solcover.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

Makefile

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)