Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
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
8 changes: 4 additions & 4 deletions .github/workflows/voting-subgraph-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
path: '**/node_modules'
key: yarn-${{ hashFiles('yarn.lock') }}

- name: Deploy rinkeby
- name: Deploy goerli
if: github.ref == 'refs/heads/develop'
run: yarn deploy-rinkeby
run: yarn deploy-goerli

- name: Deploy rinkeby staging
- name: Deploy goerli staging
if: github.ref == 'refs/heads/develop'
run: yarn deploy-rinkeby-staging
run: yarn deploy-goerli-staging

- name: Deploy mainnet
if: github.ref == 'refs/heads/master'
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/app-subgraphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ As a rule of thumb, if your data source will be triggered by a base Aragon data

### My `callHandlers` aren’t working

Unfortunately, [The Graph does not support callHandlers in Rinkeby](https://thegraph.com/docs/define-a-subgraph#call-handlers). For this reason, our templates avoid them altogether. In general, we prefer to code Subgraphs in a way that is compatible with all networks. Alternatively, if you have no other choice than to use this feature, consider hosting your own Subgraph.
Unfortunately, [The Graph does not support callHandlers in Goerli](https://thegraph.com/docs/define-a-subgraph#call-handlers). For this reason, our templates avoid them altogether. In general, we prefer to code Subgraphs in a way that is compatible with all networks. Alternatively, if you have no other choice than to use this feature, consider hosting your own Subgraph.
2 changes: 1 addition & 1 deletion docs/api-reference/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Networkish can be a number, a string or an object.

| Type | Description |
| --------------------------------- | -------------------------------------------------------------- |
| `"ethereum" | "rinkeby" | "xdai"` | Name of a network, from a selection (prefer using a chain ID). |
| `"ethereum" | "goerli" | "xdai"` | Name of a network, from a selection (prefer using a chain ID). |

### As an object

Expand Down
6 changes: 3 additions & 3 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ Aragon Connect connects to the Ethereum mainnet by default, but other networks a
To do so, use the [Chain ID](https://chainid.network/) assigned to the network:

```javascript
// Connect to the Rinkeby test network
const org = await connect('example.aragonid.eth', 'thegraph', { network: 4 })
// Connect to the Goerli test network
const org = await connect('example.aragonid.eth', 'thegraph', { network: 5 })
```

Note: other than the Ethereum main network \(default\), only [Rinkeby](https://docs.ethhub.io/using-ethereum/test-networks/#rinkeby) and [xDAI](https://www.xdaichain.com/) are supported by the `thegraph` connector at the moment.
Note: other than the Ethereum main network \(default\), only [Goerli](https://docs.ethhub.io/using-ethereum/test-networks/#gorli) and [xDAI](https://www.xdaichain.com/) are supported by the `thegraph` connector at the moment.

## Fetching an app’s state

Expand Down
2 changes: 1 addition & 1 deletion examples/list-balances-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"start": "ts-node ./src/index.ts",
"start:rinkeby": "CHAIN_ID=4 ts-node ./src/index.ts"
"start:goerli": "CHAIN_ID=5 ts-node ./src/index.ts"
},
"devDependencies": {
"ts-node": "^8.10.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/list-votes-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"scripts": {
"start": "ts-node ./src/index.ts",
"start:rinkeby": "CHAIN_ID=4 ts-node ./src/index.ts"
"start:goerli": "CHAIN_ID=5 ts-node ./src/index.ts"
},
"devDependencies": {
"ts-node": "^8.10.2",
Expand Down
8 changes: 4 additions & 4 deletions examples/nodejs/src/create-org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import { fetchRepo, getOrgAddress } from './helpers'
const ARAGON_MNEMONIC =
'explain tackle mirror kit van hammer degree position ginger unfair soup bonus'

const MAIN_SUBGRAPH_RINKEBY =
'https://api.thegraph.com/subgraphs/name/aragon/aragon-rinkeby'
const MAIN_SUBGRAPH_GOERLI =
'https://api.thegraph.com/subgraphs/name/aragon/aragon-goerli'

const TEMPLATE_NAME = 'bare-template'

async function main() {
// fetch repo
const { lastVersion } = await fetchRepo(TEMPLATE_NAME, MAIN_SUBGRAPH_RINKEBY)
const { lastVersion } = await fetchRepo(TEMPLATE_NAME, MAIN_SUBGRAPH_GOERLI)
const templateAddress = lastVersion.codeAddress
const templateArtifact = JSON.parse(lastVersion.artifact)

// create signer
const provider = ethers.getDefaultProvider('rinkeby')
const provider = ethers.getDefaultProvider('goerli')
const wallet = ethers.Wallet.fromMnemonic(ARAGON_MNEMONIC)
const signer = wallet.connect(provider)

Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs/src/subscriptions-low-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { keepRunning } from './helpers'
const DAO_ADDRESS = '0x059bcfbc477c46ab39d76c05b7b40f3a42e7de3b'
const VOTING_APP_ADDRESS = '0xc73e86aab9d232495399d62fc80a36ae52952b81'
const ALL_VOTING_SUBGRAPH_URL =
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-rinkeby'
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-goerli'

async function main() {
console.log('\nLow-level inspection of a voting app using subscriptions:')
Expand All @@ -32,7 +32,7 @@ async function main() {
}
console.log(JSON.stringify(results.data, null, 2))
console.log(
`\nTry creating a new vote at https://rinkeby.aragon.org/#/${DAO_ADDRESS}/${VOTING_APP_ADDRESS}/`
`\nTry creating a new vote at https://goerli.aragon.org/#/${DAO_ADDRESS}/${VOTING_APP_ADDRESS}/`
)
}
)
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/src/subscriptions-org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main() {
console.log(permission)
}
console.log(
`\nTry creating or granting new permissions at https://rinkeby.aragon.org/#/${ORG_ADDRESS}/permissions/`
`\nTry creating or granting new permissions at https://goerli.aragon.org/#/${ORG_ADDRESS}/permissions/`
)
}
)
Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs/src/subscriptions-voting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function main() {
})

console.log(
`\nTry creating a new vote at https://rinkeby.aragon.org/#/${ORG_ADDRESS}/${VOTING_APP_ADDRESS}/\n`
`\nTry creating a new vote at https://goerli.aragon.org/#/${ORG_ADDRESS}/${VOTING_APP_ADDRESS}/\n`
)
}
)
Expand All @@ -52,7 +52,7 @@ async function main() {
console.log(cast)
}
console.log(
`\nTry casting a vote on https://rinkeby.aragon.org/#/${ORG_ADDRESS}/${VOTING_APP_ADDRESS}/vote/1 (You must first mint yourself a token in the Token Manager)\n`
`\nTry casting a vote on https://goerli.aragon.org/#/${ORG_ADDRESS}/${VOTING_APP_ADDRESS}/vote/1 (You must first mint yourself a token in the Token Manager)\n`
)
}
)
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/src/voting-low-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GraphQLWrapper } from '@aragon/connect-thegraph'

const VOTING_APP_ADDRESS = '0xc73e86aab9d232495399d62fc80a36ae52952b81'
const ALL_VOTING_SUBGRAPH_URL =
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-rinkeby'
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-goerli'

const QUERY = `
query {
Expand Down
6 changes: 3 additions & 3 deletions examples/nodejs/src/voting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ type Env = { network: number; org: string; votingSubgraphUrl: string }

const envs = new Map(
Object.entries({
rinkeby: {
network: 4,
goerli: {
network: 5,
org: 'gardens.aragonid.eth',
votingSubgraphUrl:
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-rinkeby',
'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-goerli',
},
mainnet: {
network: 1,
Expand Down
4 changes: 2 additions & 2 deletions examples/org-viewer-react/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const ENVIRONMENTS = new Map([
},
],
[
'rinkeby',
'goerli',
{
chainId: 4,
chainId: 5,
addresses: ['gardens.aragonid.eth'],
},
],
Expand Down
4 changes: 2 additions & 2 deletions examples/org-viewer-web/src/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const ENVIRONMENTS = new Map([
},
],
[
'rinkeby',
'goerli',
{
chainId: 4,
chainId: 5,
addresses: ['gardens.aragonid.eth'],
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-agreement/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-agreement-mainnet'
}
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-agreement-rinkeby'
if (chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-agreement-goerli'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-agreement-xdai'
Expand Down
6 changes: 3 additions & 3 deletions packages/connect-core/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const NETWORKS = [
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
},
{
chainId: 4,
name: 'rinkeby',
ensAddress: '0x98df287b6c145399aaa709692c8d308357bc085d',
chainId: 5,
name: 'goerli',
ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',
},
{
chainId: 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export interface AragonAppJson {
* If the appName is different per network use environments
* ```ts
* environments: {
* rinkeby: {
* goerli: {
* appName: "myapp.open.aragonpm.eth"
* }
* }
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-disputable-voting/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-dvoting-mainnet'
}
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-dvoting-rinkeby'
if (chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-dvoting-goerli'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-dvoting-xdai'
Expand Down
8 changes: 4 additions & 4 deletions packages/connect-disputable-voting/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"build": "rm -rf build; graph build",
"manifest-mainnet": "scripts/build-manifest.sh mainnet",
"manifest-mainnet-staging": "env STAGING=true scripts/build-manifest.sh mainnet",
"manifest-rinkeby": "scripts/build-manifest.sh rinkeby",
"manifest-rinkeby-staging": "env STAGING=true dvoting/build-manifest.sh rinkeby",
"manifest-goerli": "scripts/build-manifest.sh goerli",
"manifest-goerli-staging": "env STAGING=true dvoting/build-manifest.sh goerli",
"manifest-xdai": "scripts/build-manifest.sh xdai",
"deploy-mainnet": "scripts/deploy.sh aragon dvoting mainnet",
"deploy-mainnet-staging": "env STAGING=true scripts/deploy.sh aragon dvoting mainnet",
"deploy-rinkeby": "scripts/deploy.sh aragon dvoting rinkeby",
"deploy-rinkeby-staging": "env STAGING=true scripts/deploy.sh aragon dvoting rinkeby",
"deploy-goerli": "scripts/deploy.sh aragon dvoting goerli",
"deploy-goerli-staging": "env STAGING=true scripts/deploy.sh aragon dvoting goerli",
"deploy-xdai": "scripts/deploy.sh aragon dvoting xdai"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-finance/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-mainnet'
}
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-rinkeby'
if (chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-goerli'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-xdai'
Expand Down
8 changes: 4 additions & 4 deletions packages/connect-finance/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"build": "rm -rf build; graph build",
"manifest-mainnet": "scripts/build-manifest.sh mainnet",
"manifest-mainnet-staging": "env STAGING=true scripts/build-manifest.sh mainnet",
"manifest-rinkeby": "scripts/build-manifest.sh rinkeby",
"manifest-rinkeby-staging": "env STAGING=true scripts/build-manifest.sh rinkeby",
"manifest-goerli": "scripts/build-manifest.sh goerli",
"manifest-goerli-staging": "env STAGING=true scripts/build-manifest.sh goerli",
"manifest-xdai": "scripts/build-manifest.sh xdai",
"deploy-mainnet": "scripts/deploy.sh aragon finance mainnet",
"deploy-mainnet-staging": "env STAGING=true scripts/deploy.sh aragon finance mainnet",
"deploy-rinkeby": "scripts/deploy.sh aragon finance rinkeby",
"deploy-rinkeby-staging": "env STAGING=true scripts/deploy.sh aragon finance rinkeby",
"deploy-goerli": "scripts/deploy.sh aragon finance goerli",
"deploy-goerli-staging": "env STAGING=true scripts/deploy.sh aragon finance goerli",
"deploy-xdai": "scripts/deploy.sh aragon finance xdai"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-thegraph/src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ function getOrgSubgraphUrl(network: Network): string | null {
if (network.chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-mainnet'
}
if (network.chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-rinkeby'
if (network.chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-goerli'
}
if (network.chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/1hive/aragon-xdai'
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-tokens/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-mainnet'
}
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-rinkeby'
if (chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-goerli'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-xdai'
Expand Down
4 changes: 2 additions & 2 deletions packages/connect-voting/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 1) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-mainnet'
}
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-rinkeby'
if (chainId === 5) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-goerli'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-voting-xdai'
Expand Down