-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.json
150 lines (150 loc) · 14.1 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "flare-smart-contracts-v2",
"version": "0.0.1",
"description": "Smart contracts implementing Top level protocol on Flare Network.",
"main": "",
"repository": {
"type": "git",
"url": "git+https://gitlab.com/flarenetwork/flare-smart-contracts-v2.git"
},
"engines": {
"node": ">=18"
},
"author": "Flare SC team",
"license": "MIT",
"directories": {},
"scripts": {
"---------TEST---SCRIPTS": "",
"test_unit_hh": "env TEST_PATH=./test/unit yarn hardhat test --network hardhat",
"test_integration_hh": "env TEST_PATH=./test/integration yarn hardhat test --network hardhat",
"coverage": "env NODE_OPTIONS=\"--max_old_space_size=8192\" yarn hardhat coverage --solcoverjs ./.solcover.js --testfiles \"test\"",
"coverage-forge": "forge coverage --report lcov && node scripts/forge-lcov-prune.js && genhtml lcov.info.pruned --branch-coverage --output-dir coverage-forge",
"---------COMPILE---SCRIPTS": "",
"compile": "yarn hardhat compile && yarn typechain-ethers-v6 && yarn typechain-truffle-v5 && yarn typechain-web3-v1",
"c": "yarn compile",
"typechain-ethers-v6": "yarn typechain --target=ethers-v6 --out-dir typechain \"artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json\" 1> nul",
"typechain-truffle-v5": "yarn typechain --target=truffle-v5 --out-dir typechain-truffle \"artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json\" 1> nul",
"typechain-web3-v1": "yarn typechain --target=web3-v1 --out-dir typechain-web3 \"artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json\" 1> nul",
"lint": "yarn solhint \"contracts/**/*.sol\"",
"lint-forge": "yarn solhint \"test-forge/**/*.sol\"",
"typechain-prepare": "env bash scripts/remove-flattened-duplicates.sh",
"flatten-flare-sc": "yarn flatten-dependencies node_modules/flare-smart-contracts scripts/flatten-files.txt flattened/FlareSmartContracts.sol scripts/flatten-extra-imports.txt",
"flatten-dependencies": "env bash scripts/flatten-dependencies.sh",
"slither": "pip3 install slither-analyzer && rm -f ./slither.json && rm -f ./slither_badge.json 2> /dev/null; slither . --json=./slither.json 2> /dev/null || true; node scripts/slither-parse.js ./slither.json",
"generate-parameter-schema": "typescript-json-schema deployment/chain-config/chain-parameters.ts ChainParameters -o deployment/chain-config/chain-parameters.json --noExtraProps --required --strictNullChecks",
"---------DEPLOY---SCRIPTS": "",
"deploy_submission_contract_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare deploy-submission-contract > ./deployment/deploys/flare.json",
"deploy_submission_contract_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 deploy-submission-contract > ./deployment/deploys/coston2.json",
"deploy_submission_contract_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird deploy-submission-contract > ./deployment/deploys/songbird.json",
"deploy_submission_contract_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston deploy-submission-contract > ./deployment/deploys/coston.json",
"deploy_submission_contract_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev deploy-submission-contract > ./deployment/deploys/scdev.json",
"deploy_submission_contract_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost deploy-submission-contract > ./deployment/deploys/scdev.json",
"deploy_contracts_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare deploy-contracts > ./deployment/deploys/flareTmp.json && mv ./deployment/deploys/flareTmp.json ./deployment/deploys/flare.json",
"deploy_contracts_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 deploy-contracts > ./deployment/deploys/coston2Tmp.json && mv ./deployment/deploys/coston2Tmp.json ./deployment/deploys/coston2.json",
"deploy_contracts_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird deploy-contracts > ./deployment/deploys/songbirdTmp.json && mv ./deployment/deploys/songbirdTmp.json ./deployment/deploys/songbird.json",
"deploy_contracts_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston deploy-contracts > ./deployment/deploys/costonTmp.json && mv ./deployment/deploys/costonTmp.json ./deployment/deploys/coston.json",
"deploy_contracts_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev deploy-contracts > ./deployment/deploys/scdevTmp.json && mv ./deployment/deploys/scdevTmp.json ./deployment/deploys/scdev.json",
"deploy_contracts_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost deploy-contracts > ./deployment/deploys/scdevTmp.json && mv ./deployment/deploys/scdevTmp.json ./deployment/deploys/scdev.json",
"daemonize_contracts_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev daemonize-contracts",
"daemonize_contracts_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost daemonize-contracts",
"set_inflation_receivers_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev set-inflation-receivers",
"set_inflation_receivers_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost set-inflation-receivers",
"switch_to_production_mode_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare switch-to-production-mode",
"switch_to_production_mode_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 switch-to-production-mode",
"switch_to_production_mode_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird switch-to-production-mode",
"switch_to_production_mode_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston switch-to-production-mode",
"switch_to_production_mode_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev switch-to-production-mode",
"switch_to_production_mode_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost switch-to-production-mode",
"full_deploy_local_scdev": "yarn c && yarn deploy_submission_contract_local_scdev && yarn deploy_contracts_local_scdev && yarn set_inflation_receivers_local_scdev && yarn daemonize_contracts_local_scdev",
"full_deploy_local_hardhat": "yarn c && yarn deploy_submission_contract_local_hardhat && yarn deploy_contracts_local_hardhat && yarn set_inflation_receivers_local_hardhat && yarn daemonize_contracts_local_hardhat",
"transfer_and_wrap_funds_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 transfer-and-wrap-funds",
"transfer_and_wrap_funds_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston transfer-and-wrap-funds",
"transfer_and_wrap_funds_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev transfer-and-wrap-funds",
"transfer_and_wrap_funds_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost transfer-and-wrap-funds",
"register_entities_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 register-entities",
"register_entities_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston register-entities",
"register_entities_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev register-entities",
"register_entities_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost register-entities",
"register_public_keys_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 register-public-keys",
"register_public_keys_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston register-public-keys",
"register_public_keys_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev register-public-keys",
"register_public_keys_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost register-public-keys",
"provide_random_number_for_initial_reward_epoch_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare provide-random-number-for-initial-reward-epoch",
"provide_random_number_for_initial_reward_epoch_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 provide-random-number-for-initial-reward-epoch",
"provide_random_number_for_initial_reward_epoch_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird provide-random-number-for-initial-reward-epoch",
"provide_random_number_for_initial_reward_epoch_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston provide-random-number-for-initial-reward-epoch",
"provide_random_number_for_initial_reward_epoch_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev provide-random-number-for-initial-reward-epoch",
"provide_random_number_for_initial_reward_epoch_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost provide-random-number-for-initial-reward-epoch --trigger true",
"offer_rewards_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare offer-rewards",
"offer_rewards_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 offer-rewards",
"offer_rewards_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird offer-rewards",
"offer_rewards_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston offer-rewards",
"offer_rewards_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev offer-rewards",
"offer_rewards_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost offer-rewards",
"---------REDEPLOY---SCRIPTS": "",
"redeploy_contracts_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare redeploy-contracts > ./deployment/deploys/flareTmp.json && mv ./deployment/deploys/flareTmp.json ./deployment/deploys/flare.json",
"redeploy_contracts_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 redeploy-contracts > ./deployment/deploys/coston2Tmp.json && mv ./deployment/deploys/coston2Tmp.json ./deployment/deploys/coston2.json",
"redeploy_contracts_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird redeploy-contracts > ./deployment/deploys/songbirdTmp.json && mv ./deployment/deploys/songbirdTmp.json ./deployment/deploys/songbird.json",
"redeploy_contracts_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston redeploy-contracts > ./deployment/deploys/costonTmp.json && mv ./deployment/deploys/costonTmp.json ./deployment/deploys/coston.json",
"redeploy_contracts_local_scdev": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network scdev redeploy-contracts > ./deployment/deploys/scdevTmp.json && mv ./deployment/deploys/scdevTmp.json ./deployment/deploys/scdev.json",
"redeploy_contracts_local_hardhat": "env CHAIN_CONFIG=scdev yarn --silent hardhat --network localhost redeploy-contracts > ./deployment/deploys/scdevTmp.json && mv ./deployment/deploys/scdevTmp.json ./deployment/deploys/scdev.json",
"deploy_fdc_contracts_network_flare": "env CHAIN_CONFIG=flare yarn --silent hardhat --network flare deploy-fdc > ./deployment/deploys/flareTmp.json && mv ./deployment/deploys/flareTmp.json ./deployment/deploys/flare.json",
"deploy_fdc_contracts_network_coston2": "env CHAIN_CONFIG=coston2 yarn --silent hardhat --network coston2 deploy-fdc > ./deployment/deploys/coston2Tmp.json && mv ./deployment/deploys/coston2Tmp.json ./deployment/deploys/coston2.json",
"deploy_fdc_contracts_network_songbird": "env CHAIN_CONFIG=songbird yarn --silent hardhat --network songbird deploy-fdc > ./deployment/deploys/songbirdTmp.json && mv ./deployment/deploys/songbirdTmp.json ./deployment/deploys/songbird.json",
"deploy_fdc_contracts_network_coston": "env CHAIN_CONFIG=coston yarn --silent hardhat --network coston deploy-fdc > ./deployment/deploys/costonTmp.json && mv ./deployment/deploys/costonTmp.json ./deployment/deploys/coston.json",
"---------SIMULATION---SCRIPTS": "",
"sim-node": "yarn hardhat node",
"sim-run": "yarn hardhat run-simulation --network local",
"sim-sign": "yarn hardhat run scripts/libs/mock/run-signer-emulators.ts --network local",
"sim-fin": "yarn hardhat run scripts/libs/mock/run-mock-finalizer.ts --network local"
},
"dependencies": {
"@openzeppelin/contracts": "5.0.2",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"ethers": "^6.11.1",
"flare-smart-contracts": "git+https://gitlab.com/flarenetwork/flare-smart-contracts.git",
"hardhat": "2.22.16",
"solhint": "^4.5.2"
},
"devDependencies": {
"@coverage.rocks/genhtml": "^1.16.0",
"@gnosis.pm/mock-contract": "^4.0.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.6",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-truffle5": "^2.0.7",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/test-helpers": "^0.5.16",
"@typechain/ethers-v6": "^0.5.1",
"@typechain/hardhat": "^9.1.0",
"@typechain/truffle-v5": "^8.0.7",
"@typechain/web3-v1": "^6.0.7",
"@types/chai": "^4.3.13",
"@types/elliptic": "^6.4.18",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.29",
"elliptic": "^6.5.5",
"intercept-stdout": "0.1.2",
"pascal-case": "^3.1.2",
"solidity-coverage": "^0.8.11",
"sqlite3": "^5.1.7",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typeorm": "^0.3.20",
"typescript": "^5.4.2",
"typescript-json-schema": "^0.63.0",
"winston": "^3.12.0"
},
"prettier": {
"printWidth": 120,
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"tabWidth": 2,
"arrowParens": "avoid"
}
}