Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove rinkeby and kovan #729

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To deploy to a different network execute:
yarn deploy -- --network {networkName}

# Example
yarn deploy -- --network kovan
yarn deploy -- --network goerli
```

The network must be configured in the `hardhat.config.ts` as explained in https://hardhat.org/config.
Expand Down Expand Up @@ -100,7 +100,7 @@ Some contracts require the address from previously deployed contracts. For that
### Deploying a new testnet

1. Make sure contracts are up to date as you please.
2. `yarn deploy-rinkeby` to deploy to Rinkeby. This will create new contracts with new addresses in `addresses.json`.
2. `yarn deploy-goerli` to deploy to Goerli. This will create new contracts with new addresses in `addresses.json`.
3. Update the `package.json` and `package-lock.json` files with the new package version and publish a new npm package with `npm publish`. You can dry-run the files to be uploaded by running `npm publish --dry-run`.
4. Merge this update into master, branch off and save for whatever version of the testnet is going on, and then tag this on the github repo, pointing to your branch (ex. at `testnet-phase-1` branch). This way we can always get the contract code for testnet, while continuing to do work on mainnet.
5. Pull the updated package into the subgraph, and other apps that depend on the package.json.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ yarn add @graphprotocol/contracts

# Contract Addresses

The testnet runs on Rinkeby, while mainnet is on Ethereum Mainnet. The addresses for both of these can be found in `./addresses.json`.
The testnet runs on Goerli, while mainnet is on Ethereum Mainnet. The addresses for both of these can be found in `./addresses.json`.

# Local Setup

Expand Down Expand Up @@ -92,7 +92,7 @@ The most straightforward way to interact with the contracts is through the hardh

```
# A console to interact with testnet contracts
npx hardhat console --network rinkeby
npx hardhat console --network goerli
```

### Hardhat Tasks
Expand Down
318 changes: 0 additions & 318 deletions addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,324 +303,6 @@
"txHash": "0x106c31f2c24a5285c47a766422823766f1c939034513e85613d70d99ef697173"
}
},
"4": {
"IENS": {
"address": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
},
"IEthereumDIDRegistry": {
"address": "0xdCa7EF03e98e0DC2B855bE647C39ABe984fcF21B"
},
"EpochManager": {
"address": "0x23090b246Ad47dB85352b666cAff36760D087a69",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "lengthInBlocks",
"value": 1108
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0xcf271ece428e4e0539337bc2eb79c97a9d5337fae86d76f824ce6f92abb367ae",
"proxy": true,
"implementation": {
"address": "0x5fDB51B4126D28b176AC1FE41dd47f72F047eF63",
"creationCodeHash": "0xf03074bb7f026a2574b6ffb5d0f63f0c4fee81e004e1c46ef262dd5802d3384f",
"runtimeCodeHash": "0x0d078a0bf778c6c713c46979ac668161a0a0466356252e47082f80912e4495b2",
"txHash": "0xcc086cfaa1441412731ca073dfa68ca76d634b129b416dc75af7cea1b5292e52"
}
},
"GraphToken": {
"address": "0x54Fe55d5d255b8460fB3Bc52D5D676F9AE5697CD",
"constructorArgs": [
{
"name": "initialSupply",
"value": "10000000000000000000000000000"
}
],
"creationCodeHash": "0x30da7a30d71fbd41d3327e4d0183401f257af3e905a0c68ebfd18b590b27b530",
"runtimeCodeHash": "0xb964f76194a04272e7582382a4d6bd6271bbb90deb5c1fd3ae3913504ea3a830",
"txHash": "0xfd3da9962b88397134b71259287bb056b60cdd092f91c114dcd7c794e6237c78"
},
"ServiceRegistry": {
"address": "0xB2cD4D1205A55303ef0DeC2e4EfB5338f9c182bc",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0x230cde8f618e46f42299e19dced8dcbe1f99b4ee8423441fc7572dea0f457935",
"proxy": true,
"implementation": {
"address": "0x4BaED79823A50c2b3387211f178235FEe8Cc7Ab7",
"creationCodeHash": "0xf5fa541b43d15fade518feb63a95a73b9c67626108ead259e444af3a7ae1804f",
"runtimeCodeHash": "0x9856d2c2985f410f2f77e456fe6163827ea5251eb5e3f3768d3d4f8868187882",
"txHash": "0xd17bdc8e05933c7146105e0e22ab5390677544cad224eb0dcd56c8088585d29a"
}
},
"GraphCurationToken": {
"address": "0x37014c7b321da7927b6662859dc9a929543386c6",
"creationCodeHash": "0x7e9a56b6fc05d428d1c1116eaa88a658f05487b493d847bfe5c69e35ec34f092",
"runtimeCodeHash": "0x587f9d4e9ecf9e7048d9f42f027957ca34ee6a95ca37d9758d8cd0ee16e89818",
"txHash": "0xd108447808e285fcde0b9aaee9e8446af91e9983041aa47ff9410c2c2862938b"
},
"Curation": {
"address": "0x5cCaB32d30Ca0969a8f3D495e1F67b3A90d39b14",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "bondingCurve",
"value": "0xB4B6857dFcE1a31851c0fAde87E94Fc05053916D"
},
{
"name": "reserveRatio",
"value": 500000
},
{
"name": "curationTaxPercentage",
"value": 25000
},
{
"name": "minimumCurationDeposit",
"value": "1000000000000000000"
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0x1d8707dc7b85d4fc7fe83819acc40b8e4b3ad0b3e8257a44edcc8fb587768dfb",
"proxy": true,
"implementation": {
"address": "0x6cafc4eb2be922505ff8dedcb73e2c1599d7e352",
"creationCodeHash": "0x4aea53d73a1b7b00db3ba36023a70f4e53df68f9b42cb8932afb9cf1837a8cf7",
"runtimeCodeHash": "0x6e5cb73148de597888b628c2e0d97fa0f66ee4867ee0905314034f9031d52872",
"txHash": "0x9188f422354f01613cac4e270fb053235f9071c3c987c7eaf120601d16fa6d6e"
}
},
"GNS": {
"address": "0x4beb7299221807Cd47C2fa118c597C51Cc2fEC99",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "bondingCurve",
"value": "0xB4B6857dFcE1a31851c0fAde87E94Fc05053916D"
},
{
"name": "didRegistry",
"value": "0xdca7ef03e98e0dc2b855be647c39abe984fcf21b"
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0x4b3882c3ed81f8b937f207e303d7c16074369da9c72e47212c8004ed799332d7",
"proxy": true,
"implementation": {
"address": "0xA05B12aa4913082562b79ceCcDDe27E19fA00972",
"creationCodeHash": "0x86499a1c90a73b062c0d25777379cdf52085e36c7f4ce44016adc7775ea24355",
"runtimeCodeHash": "0x85cc02c86b4ee2c1b080c6f70500f775bb0fab7960ce62444a8018f3af07af75",
"txHash": "0xfc5f3fe67f9c72e88dc5ab99debe9e30e79fddf5ff4f8d06a66180759eb72177"
}
},
"RewardsManager": {
"address": "0x460cA3721131BC978e3CF3A49EfC545A2901A828",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "issuanceRate",
"value": "1000000012184945188"
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0xfff3ccaaeb64a173f9461416d6e3f37ae1e6d8beaeb17ca1e23c264c1d3bbc02",
"proxy": true,
"implementation": {
"address": "0x7Cd54459a1B92c14554b857325AfeE1d2B065bbe",
"creationCodeHash": "0xfec6d35d9de8a7234e77484ee4fa5d6867697d607b591ed5a8e01679fa1f0394",
"runtimeCodeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"txHash": "0x0a89f7f97368815af26d0fc00cd0157a57717db97bbb734b66c894c5a65e8df6"
}
},
"Staking": {
"address": "0x2d44C0e097F6cD0f514edAC633d82E01280B4A5c",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "minimumIndexerStake",
"value": "100000000000000000000000"
},
{
"name": "thawingPeriod",
"value": 6646
},
{
"name": "protocolPercentage",
"value": 10000
},
{
"name": "curationPercentage",
"value": 100000
},
{
"name": "channelDisputeEpochs",
"value": 2
},
{
"name": "maxAllocationEpochs",
"value": 6
},
{
"name": "delegationUnbondingPeriod",
"value": 6
},
{
"name": "delegationRatio",
"value": 16
},
{
"name": "rebateAlphaNumerator",
"value": 77
},
{
"name": "rebateAlphaDenominator",
"value": 100
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0x9febc188c44c0d9b1162c100833e59e72c1795d999c2ff906f723bfca118c12d",
"proxy": true,
"implementation": {
"address": "0xcf464bf68d3183ae631c1f61c3f66792f9c05da9",
"creationCodeHash": "0x4844ebc5802b1a2171f41f8dac6f83c50421bbf5a334e5a251d9ec257d45554d",
"runtimeCodeHash": "0x4844ebc5802b1a2171f41f8dac6f83c50421bbf5a334e5a251d9ec257d45554d",
"txHash": "0xef6d48956c31adced59d6ee6954c921b645021100dec573e30255fa6b2e35d2b",
"libraries": {
"LibCobbDouglas": "0x504dc6069d7307c3fba5caa7674a927a0a511563"
}
}
},
"DisputeManager": {
"address": "0x4e4B04008C0f7875CDe80e7546d8b3b03Cf1eCf1",
"initArgs": [
{
"name": "controller",
"value": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5"
},
{
"name": "arbitrator",
"value": "0xE1FDD398329C6b74C14cf19100316f0826a492d3"
},
{
"name": "minimumDeposit",
"value": "10000000000000000000000"
},
{
"name": "fishermanRewardPercentage",
"value": 500000
},
{
"name": "slashingPercentage",
"value": 25000
}
],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0xb629195f313e8214e48f5a3fc741072d710f9f9ed6079331908341761f582760",
"proxy": true,
"implementation": {
"address": "0x9CD121b6018A78c08Fc72b9948A6a43E6CEfBC07",
"creationCodeHash": "0x7508a0ca0cb8f88ef54aa2cd1a464dc93a51b5cf500f763f7192a704985d91f3",
"runtimeCodeHash": "0xc8f0b38c011925dbf847c05e73e2b23e8e14553121d58600173ba61731b0a807",
"txHash": "0x7679f2bfab93883af93bdf1166a42d1b3a87c1cbb3fb3cff5c7f860644409fd5"
}
},
"BancorFormula": {
"address": "0xB4B6857dFcE1a31851c0fAde87E94Fc05053916D",
"creationCodeHash": "0x17f6de9ab8a9bcf03a548c01d620a32caf1f29be8d90a9688ebee54295f857ef",
"runtimeCodeHash": "0x97a57f69b0029383398d02587a3a357168950d61622fe9f9710bf02b59740d63",
"txHash": "0x6cf07aed737aee71fa67c40864495124d7c6c6f203c3ed482cbdcc12f998dbb1"
},
"Controller": {
"address": "0x23B1aD50996ff1b21552cDD6430868D60bF342c5",
"creationCodeHash": "0x7f37a1844c38fffd5390d2114804ffc4e5cf66dfb5c7bd67a32a4f5d10eebd2d",
"runtimeCodeHash": "0x929c62381fbed59483f832611752177cc2642e1e35fedeeb6cd9703e278448a0",
"txHash": "0x8cbcfe1f800f88c501f8bdeab8aaf36134e88757c28cbbe74d58c13be36832da"
},
"GraphProxyAdmin": {
"address": "0xC96d71957bbB06f75e1b0ae9d22AC751BE14975C",
"creationCodeHash": "0x26a6f47e71ad242e264768571ce7223bf5a86fd0113ab6cb8200f65820232904",
"runtimeCodeHash": "0xd5330527cfb09df657adc879d8ad704ce6b8d5917265cabbd3eb073d1399f122",
"txHash": "0xca463b34d7967c4351d24b2af779817bd1da75e53a48957cfa32abd1ebf3a56c"
},
"GraphGovernance": {
"address": "0x47241861A3918eaa9097c0345bb5A91660D7AEE1",
"initArgs": ["0x1679a1d1caf1252ba43fb8fc17ebf914a0c725ae"],
"creationCodeHash": "0xa02709eb59b9cca8bee1271845b42db037dc1d042dad93410ba532d378a7c79f",
"runtimeCodeHash": "0xdb307489fd9a4a438b5b48909e12020b209280ad777561c0a7451655db097e75",
"txHash": "0x5101e33eb13504780b225a2557a7062bef93cada0838937e02e879fb3d5c2c01",
"proxy": true,
"implementation": {
"address": "0xa96F8468362e6A109ABFaAF6BBfDa303347B450e",
"creationCodeHash": "0x5bd7ee7fbf6eb49914ffc91c747d18c0909ca18c495a8b163499ebfdd82b29d2",
"runtimeCodeHash": "0xd77099bdfc3f66aec158303be46e92f8e434271d6b0c7643753cd8ac96b460b9",
"txHash": "0xb12705249777b5d955dd25ea7aebf46c5d1e3062b10bc9a0a5755b40f55e11e9"
}
},
"AllocationExchange": {
"address": "0x58ce0a0f41449e349c1a91dd9f3d9286bf32c161",
"initArgs": [
{
"name": "graphToken",
"value": "0x54fe55d5d255b8460fb3bc52d5d676f9ae5697cd"
},
{
"name": "staking",
"value": "0x2d44c0e097f6cd0f514edac633d82e01280b4a5c"
},
{
"name": "governor",
"value": "0x87d11bd744b882b7bc5a6b5450cba8c35d90eb10"
},
{
"name": "authority",
"value": "0x2c0c3c48190d7c69f469eb586aa75e4705cfa203"
}
],
"creationCodeHash": "0x2f052eda2faa00c8dd54ec9bffab95be79075e528f24c3fa9f722c77dcc26d20",
"runtimeCodeHash": "0xec837eb756268aa8a18c5d3182a5c2bf89bd0369f1de07ffa33b1ec5d3bef41a",
"txHash": "0x359cf3945b2584f45633c6f6f37ce5a46129b462232107bb29c456d7fdcb66d0"
},
"SubgraphNFTDescriptor": {
"address": "0x08400283bCCa108d95e25dC2A7498c236134C8a4",
"creationCodeHash": "0x7ac0757e66857e512df199569ee11c47a61b00a8d812469b79afa5dafa98c0ed",
"runtimeCodeHash": "0x9a34ad6b202bdfa95ea85654ea2e0dd40a4b8b10847f1c3d3d805fa95a078a3d",
"txHash": "0x1bf820c2defccdb8a125b8b417463a2577b255b208e7d815045dcee188786f5a"
},
"SubgraphNFT": {
"address": "0xcF1Cd42a28caEE626b6A6Cc62b6d0e9a290bAe20",
"creationCodeHash": "0x8c9929ec6293458209f9cbadd96821604765e3656fe3c7b289b99194ede15336",
"runtimeCodeHash": "0x6309a51754b6bec245685c7a81059dc28e3756f1045f18d059abc9294f454a6a",
"txHash": "0xe16a77593a05fdf02bc61bdf61393327e38bc055dcf57832bed308dff8249ef0"
}
},
"5": {
"GraphProxyAdmin": {
"address": "0x6D47902c3358E0BCC06171DE935cB23D8E276fdd",
Expand Down
6 changes: 1 addition & 5 deletions cli/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export const toGRT = (value: string | number): BigNumber => {
export const getProvider = (providerUrl: string, network?: number): providers.JsonRpcProvider =>
new providers.JsonRpcProvider(providerUrl, network)

export const getChainID = (): number => {
return 4 // Only works for rinkeby right now
}

export const hashHexString = (input: string): string => keccak256(`0x${input.replace(/^0x/, '')}`)

type ContractParam = string | BigNumber | number
Expand Down Expand Up @@ -89,7 +85,7 @@ export const waitTransaction = async (
): Promise<providers.TransactionReceipt> => {
const receipt = await sender.provider.waitForTransaction(tx.hash)
const networkName = (await sender.provider.getNetwork()).name
if (networkName === 'kovan' || networkName === 'rinkeby') {
if (networkName === 'goerli') {
receipt.status // 1 = success, 0 = failure
? logger.info(`Transaction succeeded: 'https://${networkName}.etherscan.io/tx/${tx.hash}'`)
: logger.warn(`Transaction failed: 'https://${networkName}.etherscan.io/tx/${tx.hash}'`)
Expand Down
Loading