-
Notifications
You must be signed in to change notification settings - Fork 17
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
1 parent
228428d
commit 5edc297
Showing
331 changed files
with
32,217 additions
and
8,081 deletions.
There are no files selected for viewing
File renamed without changes.
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,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ $(npx cspell -- --no-summary $1 2> /dev/null) ]] | ||
then | ||
echo "It looks like you have spell-checking errors in your commit message." | ||
npx cspell -- --no-summary $1 | ||
exit 1 | ||
fi |
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,17 @@ | ||
#!/bin/bash | ||
|
||
# cSpell:words gpgsign | ||
|
||
set -e | ||
|
||
GPG_SIGN_ENABLED=$(git config commit.gpgsign || true) | ||
if ! [[ "$GPG_SIGN_ENABLED" == "true" ]] | ||
then | ||
echo "Enable GPG signature for new commits"; | ||
exit 1; | ||
fi | ||
|
||
files=$(git diff --cached --name-only) | ||
npx cspell -- --no-summary $files | ||
|
||
yarn fullCheck |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,22 +1,63 @@ | ||
{ | ||
"name": "skale-ima", | ||
"name": "skale-ima-proxy", | ||
"private": true, | ||
"license": "AGPL-3.0", | ||
"author": "SKALE Labs and contributors", | ||
"scripts": { | ||
"lint-check": "eslint ./test/*.*js", | ||
"lint-fix": "eslint ./test/*.*js --fix", | ||
"postinstall": "./postinstall.sh", | ||
"check-outdated": "yarn outdated", | ||
"upgrade-to-latest": "yarn upgrade --latest" | ||
"compile": "npx hardhat compile", | ||
"cleanCompile": "npx hardhat clean && yarn compile", | ||
"deploy-to-both-chains": "yarn deploy-to-mainnet && yarn deploy-to-schain", | ||
"deploy-to-mainnet": "VERSION=$(cat ../VERSION) npx hardhat run migrations/deployMainnet.ts --network mainnet", | ||
"deploy-to-schain": "VERSION=$(cat ../VERSION) npx hardhat run migrations/deploySchain.ts --network schain", | ||
"deploy-skale-manager-components": "npx hardhat run migrations/deploySkaleManagerComponents.ts --network mainnet", | ||
"eslint": "npx eslint .", | ||
"lint": "npx solhint \"contracts/**/*.sol\"", | ||
"prepare": "yarn cleanCompile", | ||
"test": "yarn tsc && npx hardhat test", | ||
"tsc": "tsc --noEmit", | ||
"slither": "slither .", | ||
"fullcheck": "yarn lint && yarn tsc && yarn eslint && yarn slither", | ||
"hooks": "git config core.hooksPath proxy/.githooks", | ||
"no-hooks": "git config core.hooksPath .git/hooks" | ||
}, | ||
"dependencies": { | ||
"@nomiclabs/hardhat-ethers": "^2.1.0", | ||
"@openzeppelin/contracts-upgradeable": "^4.7.1", | ||
"@openzeppelin/hardhat-upgrades": "^1.14.0", | ||
"@skalenetwork/etherbase-interfaces": "^0.0.1-develop.20", | ||
"@skalenetwork/ima-interfaces": "2.0.0", | ||
"@skalenetwork/skale-manager-interfaces": "2.0.0", | ||
"@skalenetwork/upgrade-tools": "^2.0.2", | ||
"axios": "^0.21.4", | ||
"dotenv": "^16.0.0", | ||
"ethers": "^5.7.2", | ||
"hardhat": "2.11.0 - 2.16.1" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1" | ||
"@nomiclabs/hardhat-etherscan": "^3.1.0", | ||
"@nomiclabs/hardhat-waffle": "^2.0.2", | ||
"@typechain/ethers-v5": "^11.1.1", | ||
"@typechain/hardhat": "^7.0.0", | ||
"@types/chai": "^4.2.12", | ||
"@types/chai-almost": "^1.0.1", | ||
"@types/chai-as-promised": "^7.1.3", | ||
"@types/elliptic": "^6.4.14", | ||
"@types/minimist": "^1.2.0", | ||
"@types/mocha": "^9.1.0", | ||
"@types/sinon-chai": "^3.2.5", | ||
"@typescript-eslint/eslint-plugin": "^6.2.1", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"chai": "^4.2.0", | ||
"chai-almost": "^1.0.1", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^8.46.0", | ||
"ethereum-waffle": "^4.0.10", | ||
"ganache": "7.9.2", | ||
"solhint": "3.3.6", | ||
"solidity-coverage": "^0.8.4", | ||
"ts-generator": "^0.1.1", | ||
"ts-node": "^8.10.2", | ||
"typechain": "^8.3.1", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,17 @@ | ||
PROXY_ADMIN_ADDRESS = '0xd2aAa00000000000000000000000000000000000' | ||
MESSAGE_PROXY_FOR_SCHAIN_ADDRESS = '0xd2AAa00100000000000000000000000000000000' | ||
MESSAGE_PROXY_FOR_SCHAIN_IMPLEMENTATION_ADDRESS = '0xD2AAa001D2000000000000000000000000000000' | ||
KEY_STORAGE_ADDRESS = '0xd2aaa00200000000000000000000000000000000' | ||
KEY_STORAGE_IMPLEMENTATION_ADDRESS = '0xD2AAa002d2000000000000000000000000000000' | ||
COMMUNITY_LOCKER_ADDRESS = '0xD2aaa00300000000000000000000000000000000' | ||
COMMUNITY_LOCKER_IMPLEMENTATION_ADDRESS = '0xD2aaA003d2000000000000000000000000000000' | ||
TOKEN_MANAGER_ETH_ADDRESS = '0xd2AaA00400000000000000000000000000000000' | ||
TOKEN_MANAGER_ETH_IMPLEMENTATION_ADDRESS = '0xd2AaA004d2000000000000000000000000000000' | ||
TOKEN_MANAGER_ERC20_ADDRESS = '0xD2aAA00500000000000000000000000000000000' | ||
TOKEN_MANAGER_ERC20_IMPLEMENTATION_ADDRESS = '0xd2aAa005d2000000000000000000000000000000' | ||
TOKEN_MANAGER_ERC721_ADDRESS = '0xD2aaa00600000000000000000000000000000000' | ||
TOKEN_MANAGER_ERC721_IMPLEMENTATION_ADDRESS = '0xd2AAa006d2000000000000000000000000000000' | ||
ETH_ERC20_ADDRESS = '0xD2Aaa00700000000000000000000000000000000' | ||
ETH_ERC20_IMPLEMENTATION_ADDRESS = '0xD2aaA007d2000000000000000000000000000000' | ||
TOKEN_MANAGER_LINKER_ADDRESS = '0xD2aAA00800000000000000000000000000000000' | ||
TOKEN_MANAGER_LINKER_IMPLEMENTATION_ADDRESS = '0xd2aAA008D2000000000000000000000000000000' |
Oops, something went wrong.