Skip to content

Commit 782de7b

Browse files
committed
chore: added goldsky deployment for gnosis, renamed all xdai references
1 parent 93c8141 commit 782de7b

File tree

5 files changed

+42
-8
lines changed

5 files changed

+42
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
network:
77
description: The network to deploy the subgraph to
88
required: true
9-
default: 'xdai'
9+
default: 'gnosis'
1010
type: choice
1111
options:
1212
- goerli
1313
- sepolia
14-
- xdai
14+
- gnosis
1515
- mainnet
1616
environment:
1717
description: The environment to deploy to

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This repo defines a subgraph which is used by Curate.
1212

1313
## Deployment to a personal account
1414

15-
To deploy to your own instance on a testnet, modify the script to use your own subgraph instance. For example, change `deploy:xdai` to `graph deploy --product hosted-service <your-username>/curate-xdai`.
15+
To deploy to your own instance on a testnet, modify the script to use your own subgraph instance. For example, change `deploy:gnosis` to `graph deploy --product hosted-service <your-username>/curate-gnosis`.
1616

1717
To set your access token:
1818
`npx graph auth --product hosted-service <access-token>`

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"description": "Subgraph for Generalized TCR contracts",
55
"scripts": {
66
"fix-schema.ts": "replace-in-file '/(;\\s*if \\()value === null/mg' '$1value === null || value.kind === ValueKind.NULL' generated/schema.ts --isRegex",
7-
"codegen:xdai": "node render-templates.js xdai && graph codegen && yarn fix-schema.ts",
8-
"build:xdai": "yarn codegen:xdai && graph build",
9-
"publish:xdai": "yarn build:xdai && graph deploy --product hosted-service kleros/legacy-curate-xdai",
7+
"codegen:gnosis": "node render-templates.js gnosis && graph codegen && yarn fix-schema.ts",
8+
"build:gnosis": "yarn codegen:gnosis && graph build",
9+
"publish:gnosis": "yarn build:gnosis && graph deploy --product hosted-service kleros/legacy-curate-gnosis",
10+
"publish:gnosis-goldsky": "yarn build:gnosis && yarn goldsky subgraph deploy legacy-curate-gnosis/latest",
1011
"codegen:mainnet": "node render-templates.js mainnet && graph codegen && yarn fix-schema.ts",
1112
"build:mainnet": "yarn codegen:mainnet && graph build",
1213
"publish:mainnet": "yarn build:mainnet && graph deploy --product hosted-service kleros/curate",
@@ -32,12 +33,15 @@
3233
"url": "https://github.com/kleros/gtcr-subgraph/issues"
3334
},
3435
"homepage": "https://github.com/kleros/gtcr-subgraph#readme",
36+
"dependencies": {
37+
"@graphprotocol/graph-ts": "^0.35.1"
38+
},
3539
"devDependencies": {
3640
"@assemblyscript/loader": "^0.14.11",
3741
"@assemblyscript/node": "github:AssemblyScript/node",
3842
"@gnosis.pm/truffle-nice-tools": "^1.3.1",
43+
"@goldskycom/cli": "^11.2.0",
3944
"@graphprotocol/graph-cli": "^0.71.0",
40-
"@graphprotocol/graph-ts": "^0.35.1",
4145
"@kleros/erc-792": "3.0.0",
4246
"@kleros/gtcr-encoder": "^1.1.3",
4347
"@kleros/tcr": "^2.0.0",

render-templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const fs = require('fs-extra');
22
const mustache = require('mustache');
33

44
const chainNameToChainId = {
5-
xdai: 100,
5+
gnosis: 100,
66
mainnet: 1,
77
goerli: 5,
88
sepolia: 11155111,

yarn.lock

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,16 @@
597597
walk "^2.3.14"
598598
web3 "^1.0.0-beta.35"
599599

600+
"@goldskycom/cli@^11.2.0":
601+
version "11.2.0"
602+
resolved "https://registry.yarnpkg.com/@goldskycom/cli/-/cli-11.2.0.tgz#27094148a9510164206f2a4c6d4565b542ac8aae"
603+
integrity sha512-p8HKTmE9UDev/p35/ssB+deM31eHmfvG3iT3RWNLYrK8oddg7DaA4CQRdYrjfeLs4rZfRPEWVG39geGHF40H/g==
604+
dependencies:
605+
cuid "^2.1.8"
606+
parse-duration "^1.0.3"
607+
readline-sync "^1.4.10"
608+
timeago.js "^4.0.2"
609+
600610
"@graphprotocol/graph-cli@^0.71.0":
601611
version "0.71.0"
602612
resolved "https://registry.yarnpkg.com/@graphprotocol/graph-cli/-/graph-cli-0.71.0.tgz#1ae67f0423793189406eacfb07c80f74cba37e6e"
@@ -2856,6 +2866,11 @@ css-what@^6.1.0:
28562866
resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4"
28572867
integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==
28582868

2869+
cuid@^2.1.8:
2870+
version "2.1.8"
2871+
resolved "https://registry.yarnpkg.com/cuid/-/cuid-2.1.8.tgz#cbb88f954171e0d5747606c0139fb65c5101eac0"
2872+
integrity sha512-xiEMER6E7TlTPnDxrM4eRiC6TRgjNX9xzEZ5U/Se2YJKr7Mq4pJn/2XEHjl3STcSh96GmkHPcBXLES8M29wyyg==
2873+
28592874
d@1, d@^1.0.1:
28602875
version "1.0.1"
28612876
resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
@@ -6772,6 +6787,11 @@ parse-duration@^1.0.0:
67726787
resolved "https://registry.yarnpkg.com/parse-duration/-/parse-duration-1.0.3.tgz#b6681f5edcc2689643b34c09ea63f86f58a35814"
67736788
integrity sha512-o6NAh12na5VvR6nFejkU0gpQ8jmOY9Y9sTU2ke3L3G/d/3z8jqmbBbeyBGHU73P4JLXfc7tJARygIK3WGIkloA==
67746789

6790+
parse-duration@^1.0.3:
6791+
version "1.1.1"
6792+
resolved "https://registry.yarnpkg.com/parse-duration/-/parse-duration-1.1.1.tgz#b6b4378e26c352b4e2e8e79c1b7abb3d687e5bd2"
6793+
integrity sha512-27m0hKqcGzYFGtrZ1FPSNuAUi1mvqYIUjHHIgYYAc+4wcj7t2o7Qj3X4s7THMOYyeTcFjmKUZu0yJG2oE947bw==
6794+
67756795
parse-headers@^2.0.0:
67766796
version "2.0.5"
67776797
resolved "https://registry.yarnpkg.com/parse-headers/-/parse-headers-2.0.5.tgz#069793f9356a54008571eb7f9761153e6c770da9"
@@ -7288,6 +7308,11 @@ readdirp@~3.6.0:
72887308
dependencies:
72897309
picomatch "^2.2.1"
72907310

7311+
readline-sync@^1.4.10:
7312+
version "1.4.10"
7313+
resolved "https://registry.yarnpkg.com/readline-sync/-/readline-sync-1.4.10.tgz#41df7fbb4b6312d673011594145705bf56d8873b"
7314+
integrity sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==
7315+
72917316
receptacle@^1.3.2:
72927317
version "1.3.2"
72937318
resolved "https://registry.yarnpkg.com/receptacle/-/receptacle-1.3.2.tgz#a7994c7efafc7a01d0e2041839dab6c4951360d2"
@@ -8284,6 +8309,11 @@ then-request@^6.0.0:
82848309
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
82858310
integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==
82868311

8312+
timeago.js@^4.0.2:
8313+
version "4.0.2"
8314+
resolved "https://registry.yarnpkg.com/timeago.js/-/timeago.js-4.0.2.tgz#724e8c8833e3490676c7bb0a75f5daf20e558028"
8315+
integrity sha512-a7wPxPdVlQL7lqvitHGGRsofhdwtkoSXPGATFuSOA2i1ZNQEPLrGnj68vOp2sOJTCFAQVXPeNMX/GctBaO9L2w==
8316+
82878317
timed-out@^4.0.0, timed-out@^4.0.1:
82888318
version "4.0.1"
82898319
resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f"

0 commit comments

Comments
 (0)