Skip to content

Commit

Permalink
Add Watr parachain (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut authored Dec 8, 2023
1 parent c64ef30 commit 3e3179a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { nodesInterlaySVG } from './logos/interlaySVG'
import { nodesMoonriverSVG } from './logos/moonriverSVG'
import { nodesMoonbeamSVG } from './logos/moonbeamSVG'
import { nodesJoystreamSVG } from './logos/joystreamSVG'
import { chainsWatrPNG } from './logos/watrPNG'

export const DAPP_NAME = 'Multix'
export const ICON_SIZE_LARGE = 92
Expand Down Expand Up @@ -187,6 +188,14 @@ export const networkList = {
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v2/graphql',
logo: nodesJoystreamSVG
},
watr: {
chainId: 'watr',
explorerNetworkName: '',
rpcUrl: 'wss://watr-rpc.watr-api.network',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v2/graphql',
logo: chainsWatrPNG
},
local: {
chainId: import.meta.env.VITE_CHAIN_ID,
explorerNetworkName: import.meta.env.VITE_NETWORK_NAME as 'kusama',
Expand All @@ -206,7 +215,8 @@ export const polkadotNetworksAndParachains = [
'hydradx',
'interlay',
'moonbeam',
'phala'
'phala',
'watr'
]
export const kusamaNetworksAndParachains = ['kusama', 'asset-hub-ksm', 'khala', 'moonriver']
export const soloChains = ['joystream']
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/logos/watrPNG.ts

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions squid/assets/envs/.env.watr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BLOCK_START=0
PREFIX=19
RPC_WS="wss://watr-rpc.watr-api.network"
ARCHIVE_NAME="watr"
CHAIN_ID='watr'
4 changes: 4 additions & 0 deletions squid/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@
"lib/main",
"dotenv_config_path=assets/envs/.env.joystream"
]
},
"start-watr": {
"description": "starts the indexer with watr",
"cmd": ["node", "-r", "dotenv/config", "lib/main", "dotenv_config_path=assets/envs/.env.watr"]
}
}
}

0 comments on commit 3e3179a

Please sign in to comment.