Skip to content

Commit

Permalink
Feat/v2 (#45)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
KristenPire and arnigudj authored Aug 6, 2024
1 parent fe07ae5 commit ec59a36
Show file tree
Hide file tree
Showing 1,553 changed files with 212,433 additions and 687,975 deletions.
21 changes: 18 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
KEY=
URL=
MNEMONIC=
export RPC_URL=
export PRIVATE_KEY=
export ETHERSCAN_API_KEY=

export ARBITRUM_SEPOLIA_RPC=
export ARBITRUM_SEPOLIA_CHAIN_ID=421614
export ARBISCAN_API_KEY=
export ARBISCAN_URL=https://api-sepolia-arbitrum.etherscan.io/api

export AVALANCHE_FUJI_RPC=
export AVALANCHE_FUJI_CHAIN_ID=43113
export SNOWTRACE_API_KEY=verifyContract
export SNOWTRACE_URL=https://api.routescan.io/v2/network/testnet/evm/43113/etherscan

export OPT_SEPOLIA_RPC=
export OPT_SEPOLIA_CHAIN_ID=11155420
export OPTSCAN_API_KEY=
export OPTSCAN_URL=https://api-sepolia-optimistic.etherscan.io/api
150 changes: 143 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,145 @@
.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# lcov reports
lcov.info
report/
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

broadcast/
cache
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

node_modules
build
node_modules/.yarn-integrity
.env
coverage.json
coverage
yarn-error.log
.vscode
coverage.json
typechain
typechain-types

# Hardhat files
cache
artifacts
cache_hardhat/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.17.0
3 changes: 0 additions & 3 deletions .solcover.js

This file was deleted.

12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
59 changes: 0 additions & 59 deletions Makefile

This file was deleted.

Loading

0 comments on commit ec59a36

Please sign in to comment.