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

Gnosis Chain update #516

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const config: HardhatUserConfig = {
url: process.env.JSONRPC_HTTP_URL || 'http://127.0.0.1:8545',
accounts,
},
xdai: {
gnosis: {
url: process.env.JSONRPC_HTTP_URL || 'https://rpc.xdaichain.com',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
url: process.env.JSONRPC_HTTP_URL || 'https://rpc.xdaichain.com',
url: process.env.JSONRPC_HTTP_URL || 'https://rpc.gnosischain.com',

timeout: 60000,
accounts,
Expand Down
2 changes: 1 addition & 1 deletion docs/brightid.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ VUE_APP_BRIGHTID_CONTEXT={CONTEXT}
BRIGHTID_CONTEXT={CONTEXT}
```

Note: the BrightID context is specific to the BrightID network - it's independent from the Ethereum network you choose to run the app on. It refers to the BrightID app context where you want to burn sponsorship tokens. For instance, you could use the production `clr.fund` context on xDAI or Arbitrum (or any network).
Note: the BrightID context is specific to the BrightID network - it's independent from the Ethereum network you choose to run the app on. It refers to the BrightID app context where you want to burn sponsorship tokens. For instance, you could use the production `clr.fund` context on Gnosis Chain (formerly xDai) or Arbitrum (or any network).

[Learn more about context in the BrightID docs](https://dev.brightid.org/docs/guides/ZG9jOjQxNTE1NDU-basic-integration).

Expand Down
2 changes: 1 addition & 1 deletion subgraph/config/xdai.json → subgraph/config/gnosis.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"network": "xdai",
"network": "gnosis",
"address": "0x549F91A93c94358C5f5380D7ABF23E1340CfF2db",
"factoryStartBlock": 15217676,
"recipientRegistryStartBlock": 0
Expand Down
2 changes: 1 addition & 1 deletion subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prepare:hardhat": "mustache config/hardhat.json subgraph.template.yaml > subgraph.yaml",
"prepare:arbitrum": "mustache config/arbitrum.json subgraph.template.yaml > subgraph.yaml",
"prepare:arbitrum-rinkeby": "mustache config/arbitrum-rinkeby.json subgraph.template.yaml > subgraph.yaml",
"prepare:xdai": "mustache config/xdai.json subgraph.template.yaml > subgraph.yaml",
"prepare:gnosis": "mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"codegen": "graph codegen",
"lint:js": "eslint 'src/*.ts'",
"lint": "yarn lint:js",
Expand Down
12 changes: 6 additions & 6 deletions subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ schema:
dataSources:
- kind: ethereum/contract
name: FundingRoundFactory
network: xdai
network: gnosis
source:
address: '0x549F91A93c94358C5f5380D7ABF23E1340CfF2db'
abi: FundingRoundFactory
Expand Down Expand Up @@ -52,7 +52,7 @@ dataSources:
file: ./src/FundingRoundFactoryMapping.ts
- kind: ethereum/contract
name: OptimisticRecipientRegistry
network: xdai
network: gnosis
source:
abi: OptimisticRecipientRegistry
startBlock: 15217676
Expand All @@ -77,7 +77,7 @@ dataSources:
templates:
- name: FundingRound
kind: ethereum/contract
network: xdai
network: gnosis
source:
abi: FundingRound
mapping:
Expand Down Expand Up @@ -113,7 +113,7 @@ templates:
file: ./src/FundingRoundMapping.ts
- name: OptimisticRecipientRegistry
kind: ethereum/contract
network: xdai
network: gnosis
source:
abi: OptimisticRecipientRegistry
mapping:
Expand All @@ -136,7 +136,7 @@ templates:
file: ./src/OptimisticRecipientRegistryMapping.ts
- name: BrightIdUserRegistry
kind: ethereum/contract
network: xdai
network: gnosis
source:
abi: BrightIdUserRegistry
mapping:
Expand All @@ -159,7 +159,7 @@ templates:
file: ./src/BrightIdUserRegistryMapping.ts
- name: MACI
kind: ethereum/contract
network: xdai
network: gnosis
source:
abi: MACI
mapping:
Expand Down
6 changes: 6 additions & 0 deletions vue-app/src/assets/gnosis-chain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions vue-app/src/plugins/Web3/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export enum ChainId {
ARBITRUM_ONE = 42161,
ARBITRUM_RINKEBY = 421611,
OPTIMISM = 10,
XDAI = 100,
GNOSIS = 100,
POLYGON = 137,
}

Expand Down Expand Up @@ -86,15 +86,15 @@ export const CHAIN_INFO: ChainInfo = {
rpcUrl: 'https://mainnet.optimism.io',
bridge: 'https://gateway.optimism.io',
},
[ChainId.XDAI]: {
label: 'xDai',
[ChainId.GNOSIS]: {
label: 'Gnosis Chain',
currency: 'xDai',
logo: 'xdai.svg',
isLayer2: false,
explorer: 'https://blockscout.com/poa/xdai',
explorerLogo: 'xdai-explorer.svg',
explorer: 'https://blockscout.com/xdai/mainnet/',
explorerLogo: 'gnosis-chain.svg',
explorerLabel: 'Blockscout',
rpcUrl: 'https://rpc.xdaichain.com/',
rpcUrl: 'https://rpc.xdaichain.com',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rpcUrl: 'https://rpc.xdaichain.com',
rpcUrl: 'https://rpc.gnosischain.com',

bridge: 'https://bridge.xdaichain.com',
},
[ChainId.POLYGON]: {
Expand Down