Skip to content

Commit

Permalink
Merge pull request #20 from kleros/chore/sepolia-support
Browse files Browse the repository at this point in the history
chore(testnet): sepolia support
  • Loading branch information
greenlucid authored Oct 5, 2023
2 parents 97b0966 + 833bc5f commit 8a25e10
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 35 deletions.
42 changes: 11 additions & 31 deletions networks.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"LightGTCRFactory": {
"42": {
"address": "0x74A69142027357B605302925D7f5c01362627566",
"transactionHash": "0x258e9a5a3e435dfca887a9f885e81430717822c43df5391ac1c5e3f6ddac9f00",
"startBlock": 28781082
},
"4": {
"address": "0xcd104ac86cebe541eb8285610002a4e28fe58735",
"transactionHash": "0x7d3483f932e033edcaa64080d34b511565128754d3f30bfd8818d738ca94d831",
"startBlock": 9819372
},
"100": {
"address": "0x08e58Bc26CFB0d346bABD253A1799866F269805a",
"transactionHash": "0xbf70441b0ceaa8830a9633fa72fc3c9405290ce3d1f6784827584de1f895fbe3",
"startBlock": 19592773
},
"11155111": {
"address": "0x3FB8314C628E9afE7677946D3E23443Ce748Ac17",
"transactionHash": "0xaa9df8a9f63b53e3b707960984fbfbdd17919f471eacf8aa3a866ee02e66acf1",
"startBlock": 4048287
},
"1": {
"address": "0xb9dDC813AcAF3fD7aBC4C16735A09Bc1C0EE0054",
"transactionHash": "0xfdb1fbfbc004f077fd070b180f3841e83281151d4f9b74530c7a62c03e9ede50",
Expand All @@ -23,12 +18,7 @@
"5": {
"address": "0x55a3d9bd99f286f1817cafaab124ddddfcb0f314",
"transactionHash": "0xeff31e50d75e078ab2e9d5f7de8130c2f1f5799f8ff0c9a6cf6c26c696e7f95e",
"startBlock": 7487304
},
"421611": {
"address": "0xBf429eA497b295Ecb26c5dbfF396C90df82F4b44",
"transactionHash": "0x47fea9e4b104052732a577acd727343b0bcc6314f66a92f4b0ebbe973a40388c",
"startBlock": 15701950
"startBlock": 7487305
}
},
"GTCRFactory": {
Expand All @@ -37,15 +27,10 @@
"transactionHash": "0xe31665d2ecefec363cc6ee16353ac1ddaa36fe1561c04fe535c6afd8cad088c2",
"startBlock": 10247117
},
"42": {
"address": "0x4296b39059b8591d4f22a0fc4ee49508279b8fc6",
"transactionHash": "0x3a16b4df1e10db8a962d0a74ec4acdfe4bbf38f620f4cc25b51d588dcc6e6446",
"startBlock": 18495616
},
"4": {
"address": "0x6cc238531c535e91f0621a172c3a07da93b299b3",
"transactionHash": "0xf6160e8033c9c0b8845898f120b7a3a89905402f00ed1cf1741b927db99e3646",
"startBlock": 9291862
"11155111": {
"address": "0xcB4B48d2A7a44247A00048963F169d2b4Ab045a6",
"transactionHash": "0x7af3cb0a0e25caabd63ec9b2857205c9a9ee804231087dc679eb49bca4218cc0",
"startBlock": 4048282
},
"100": {
"address": "0x794Cee5a6e1501b633eC13b8c1e327d9860FE039",
Expand All @@ -55,12 +40,7 @@
"5": {
"address": "0x9aad77bab5f18165f9ca81da9c3d392d9e382c23",
"transactionHash": "0xffda41f565723cc75aa957019640779aa3c641c335398fc23c1445f67dab9ca4",
"startBlock": 7486798
},
"421611": {
"address": "0x65b966068F7cce87526C15D143daDf79476BD0A9",
"transactionHash": "0x027601028468d76caaab3574116e815e135622219b913bec753cb92bfbe1b6ac",
"startBlock": 15701911
"startBlock": 7486799
}
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"codegen:goerli": "node render-templates.js goerli && graph codegen && yarn fix-schema.ts",
"build:goerli": "yarn codegen:goerli && graph build",
"publish:goerli": "yarn build:goerli && graph deploy --product hosted-service kleros/curate",
"codegen:sepolia": "node render-templates.js sepolia && graph codegen && yarn fix-schema.ts",
"build:sepolia": "yarn codegen:sepolia && graph build",
"publish:sepolia": "yarn build:goerli && graph deploy --studio kleros/curate",
"lint:eslint": "eslint . --ext .ts,.tsx",
"lint:prettier": "prettier --config .prettierrc 'src/**/*.ts' --check",
"lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:secrets",
Expand All @@ -33,7 +36,7 @@
"@assemblyscript/loader": "^0.14.11",
"@assemblyscript/node": "github:AssemblyScript/node",
"@gnosis.pm/truffle-nice-tools": "^1.3.1",
"@graphprotocol/graph-cli": "^0.51.0",
"@graphprotocol/graph-cli": "^0.54.0",
"@graphprotocol/graph-ts": "^0.31.0",
"@kleros/erc-792": "3.0.0",
"@kleros/gtcr-encoder": "^1.1.3",
Expand Down
4 changes: 1 addition & 3 deletions render-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const mustache = require('mustache');
const chainNameToChainId = {
xdai: 100,
mainnet: 1,
kovan: 42,
rinkeby: 4,
goerli: 5,
"arbitrum-rinkeby": 421611
sepolia: 11155111,
};

async function main() {
Expand Down

0 comments on commit 8a25e10

Please sign in to comment.