File tree Expand file tree Collapse file tree 8 files changed +44
-63
lines changed
Expand file tree Collapse file tree 8 files changed +44
-63
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2424 // Save deployment artifact of external contract to include it in the package.
2525 await deployments . save ( "NuCypherStakingEscrow" , NuCypherStakingEscrow )
2626 } else if (
27- // TODO: For ropsten currently we deploy a stub contract. We should consider
27+ // TODO: For testnets currently we deploy a stub contract. We should consider
2828 // switching to an actual contract.
2929 hre . network . name !== "ropsten" &&
30+ hre . network . name !== "goerli" &&
3031 ( ! hre . network . tags . allowStubs ||
3132 ( hre . network . config as HardhatNetworkConfig ) ?. forking ?. enabled )
3233 ) {
Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
1919 // Save deployment artifact of external contract to include it in the package.
2020 await deployments . save ( "NuCypherToken" , NuCypherToken )
2121 } else if (
22- // TODO: For ropsten currently we deploy a stub contract. We should consider
22+ // TODO: For testnets currently we deploy a stub contract. We should consider
2323 // switching to an actual contract.
2424 hre . network . name !== "ropsten" &&
25+ hre . network . name !== "goerli" &&
2526 ( ! hre . network . tags . allowStubs ||
2627 ( hre . network . config as HardhatNetworkConfig ) ?. forking ?. enabled )
2728 ) {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2525 ]
2626 const tokenStakingInitializerArgs = [ ]
2727
28+ // TODO: Consider upgradable deployment also for goerli.
2829 let tokenStakingAddress
2930 if ( hre . network . name == "mainnet" ) {
3031 const TokenStaking = await ethers . getContractFactory ( "TokenStaking" )
Original file line number Diff line number Diff line change @@ -109,3 +109,21 @@ The vending machine contracts are not upgradeable.
109109* NU Staking Escrow address: `0x25C5aF106C04e17d7097617C5d74e23717Fb6286`
110110* Keep Stake address: `0xE53eC3b651EEFA922dCc80c70426764aF4F7eFC0`
111111* Token Staking address: `0x7149bC2d6f090fBcdc44303F0752ae34d77f6D71`
112+
113+ === Görli Testnet
114+
115+ The most recent package deployed to Görli is published to the npm Registry
116+ and tagged with _goerli_ (`@threshold-network/solidity-contracts@goerli`).
117+
118+ Currently it is: `@threshold-network/
[email protected] `.
119+
120+ Contracts addresses:
121+
122+ * NU<>T Vending Machine address: `0x413ff6Bb6E12df17d99C1b12CbeD276c51EAc900`
123+ * KEEP<>T Vending Machine address: `0xBb9b1E617d739ec3034537A48f8cB62f80a181C5`
124+ * T token address: `0x0f092E3bd92751FDAe3765BCE3F6AeBe5881C499`
125+ * NU token address: `0x805336B10809e945302F6DdcDD07E61ecDfB2E08`
126+ * KEEP token address: `0x22647FfAe391540d584599818CA22fdF18890753`
127+ * NU Staking Escrow address: `0xAD83f62aD063B5af9F9E3F2F6772108473C0F03B`
128+ * Keep Stake address: `0xe65E4C75df3c446F477A0f1F2909Fc2c49d5e238`
129+ * Token Staking address: `0x0754935436b7DC24b62Bc8a01054A108A784d0f8`
Original file line number Diff line number Diff line change @@ -45,6 +45,17 @@ const config: HardhatUserConfig = {
4545 chainId : 1101 ,
4646 tags : [ "allowStubs" ] ,
4747 } ,
48+ goerli : {
49+ url : process . env . CHAIN_API_URL || "" ,
50+ chainId : 5 ,
51+ accounts : process . env . CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY
52+ ? [
53+ process . env . CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY ,
54+ process . env . KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY ,
55+ ]
56+ : undefined ,
57+ tags : [ "tenderly" ] ,
58+ } ,
4859 rinkeby : {
4960 url : process . env . CHAIN_API_URL || "" ,
5061 chainId : 4 ,
@@ -100,6 +111,7 @@ const config: HardhatUserConfig = {
100111 // dependencies.
101112 // development: ["external/npm/@keep-network/keep-core/artifacts"],
102113 ropsten : [ "external/npm/@keep-network/keep-core/artifacts" ] ,
114+ goerli : [ "external/npm/@keep-network/keep-core/artifacts" ] ,
103115 mainnet : [ "./external/mainnet" ] ,
104116 } ,
105117 } ,
@@ -114,6 +126,7 @@ const config: HardhatUserConfig = {
114126 keepRegistryKeeper : {
115127 default : 0 , // same as the deployer
116128 ropsten : "0x923C5Dbf353e99394A21Aa7B67F3327Ca111C67D" ,
129+ goerli : "0x68ad60CC5e8f3B7cC53beaB321cf0e6036962dBc" ,
117130 } ,
118131 } ,
119132 mocha : {
Original file line number Diff line number Diff line change 1414 " export.json"
1515 ],
1616 "scripts" : {
17+ "clean" : " hardhat clean && rm -rf cache/ deployments/ export/ external/npm export.json" ,
1718 "build" : " hardhat compile" ,
1819 "deploy" : " hardhat deploy --export export.json" ,
1920 "format" : " npm run lint && prettier --check ." ,
2829 "test:system" : " NODE_ENV=system-test hardhat test ./test/system/*.test.js" ,
2930 "postinstall" : " ./scripts/prepare-dependencies.sh $INIT_CWD" ,
3031 "prepack" : " tsc -p tsconfig.export.json && hardhat export-artifacts export/artifacts" ,
31- "prepublishOnly" : " ./scripts/ prepare-artifacts.sh --network $npm_config_network"
32+ "prepublishOnly" : " hardhat prepare-artifacts --network $npm_config_network"
3233 },
3334 "devDependencies" : {
34- "@keep-network/hardhat-helpers" : " ^0.4.1 -pre.2 " ,
35+ "@keep-network/hardhat-helpers" : " ^0.6.0 -pre.8 " ,
3536 "@keep-network/prettier-config-keep" : " github:keep-network/prettier-config-keep#d6ec02e" ,
3637 "@nomiclabs/hardhat-ethers" : " ^2.0.2" ,
3738 "@nomiclabs/hardhat-waffle" : " ^2.0.1" ,
6465 "@thesis/solidity-contracts" : " github:thesis/solidity-contracts#4985bcf"
6566 },
6667 "peerDependencies" : {
67- "@keep-network/keep-core" : " >1.8.0 -dev <1.8.0 -pre"
68+ "@keep-network/keep-core" : " >1.8.1 -dev <1.8.1 -pre"
6869 }
6970}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 564564 resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45"
565565 integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
566566
567- " @keep-network/hardhat-helpers@^0.4.1 -pre.2 " :
568- version "0.4.1 -pre.2 "
569- resolved "https://registry.yarnpkg.com/@keep-network/hardhat-helpers/-/hardhat-helpers-0.4.1 -pre.2 .tgz#4c03b7bf52d28378383dbcbd94d9fd3dc3bfbf70 "
570- integrity sha512-Mkgy4yD3ZVvyDshejFLTJU2+APX0w1RL9CFDH5P8ulhlzuSfwr07oo7VO2Bqw4WUuM879Rmfnmy1Ffwn/tnzyQ ==
567+ " @keep-network/hardhat-helpers@^0.6.0 -pre.8 " :
568+ version "0.6.0 -pre.8 "
569+ resolved "https://registry.yarnpkg.com/@keep-network/hardhat-helpers/-/hardhat-helpers-0.6.0 -pre.8 .tgz#6e0722889a0132dabed5182fb32f6424ff4a77d0 "
570+ integrity sha512-51oLHceBubutBYxfVk2pLjgyhvpcDC1ahKM3V9lOiTa9lbWyY18Dza7rnM9V04kq+8DbweQRM0M9/f+K26nl9g ==
571571
572572" @keep-network/keep-core@>1.8.1-dev <1.8.1-pre " :
573573 version "1.8.1-dev.0"
You can’t perform that action at this time.
0 commit comments