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

Bump squid deps and fix Westend v5 tx version #598

Merged
merged 13 commits into from
Dec 9, 2024
Merged
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
4 changes: 2 additions & 2 deletions chopsticks-config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
endpoint: wss://rpc.ibp.network/kusama
endpoint: wss://rpc-kusama.luckyfriday.io
mock-signature-host: true
block: 22568290
block: 26000000
db: ./db.sqlite
# wasm-override: staging_kusama_runtime.wasm
runtime-log-level: 5
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/CallInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const isWhiteListedCall = (type: string, value: string) => {
'ChildBounties.add_child_bounty',
'ChildBounties.propose_curator',
'ChildBounties.accept_curator',
'ChildBounties.claim_child_bounty',
'Staking.bond',
'Staking.unbond',
'Staking.bond_extra',
Expand Down
62 changes: 31 additions & 31 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ export interface NetworkInfo {
pplChainRpcUrls?: string[]
}

export const HTTP_GRAPHQL_URL = `https://chainsafe.squids.live/multix-arrow/v/v4/graphql`
export const HTTP_GRAPHQL_URL = `https://chainsafe.squids.live/multix-arrow/v/v5/graphql`

export const PAYMENT_INFO_ACCOUNT = '5CXQZrh1MSgnGGCdJu3tqvRfCv7t5iQXGGV9UKotrbfhkavs'

const polkadotPplChains = [
// 'wss://sys.ibp.network/people-polkadot',
// 'wss://people-polkadot.dotters.network',
'wss://rpc-people-polkadot.luckyfriday.io'
// 'wss://polkadot-people-rpc.polkadot.io',
'wss://sys.ibp.network/people-polkadot',
'wss://people-polkadot.dotters.network',
'wss://rpc-people-polkadot.luckyfriday.io',
'wss://polkadot-people-rpc.polkadot.io'
// 'wss://people-polkadot.public.curie.radiumblock.co/ws'
]
const kusamaPplChains = [
// 'wss://people-kusama-rpc.dwellir.com',
// 'wss://sys.ibp.network/people-kusama',
// 'wss://people-kusama.dotters.network',
'wss://rpc-people-kusama.luckyfriday.io'
// 'wss://kusama-people-rpc.polkadot.io',
'wss://people-kusama-rpc.dwellir.com',
'wss://sys.ibp.network/people-kusama',
'wss://people-kusama.dotters.network',
'wss://rpc-people-kusama.luckyfriday.io',
'wss://kusama-people-rpc.polkadot.io'
// 'wss://ksm-rpc.stakeworld.io/people'
]
const westendPplChains = [
Expand All @@ -67,14 +67,14 @@ export const networkList: Record<string, NetworkInfo> = {
explorerNetworkName: 'polkadot',
pplChainRpcUrls: polkadotPplChains,
rpcUrls: [
'wss://rpc.ibp.network/polkadot',
'wss://rpc-polkadot.luckyfriday.io',
'wss://polkadot.dotters.network',
'wss://polkadot-rpc.dwellir.com',
'wss://polkadot-rpc-tn.dwellir.com'
// 'wss://polkadot.api.onfinality.io/public-ws'
// 'wss://polkadot-rpc.publicnode.com',
// 'wss://polkadot-public-rpc.blockops.network/ws',
// 'wss://polkadot-rpc.dwellir.com',
// 'wss://polkadot-rpc-tn.dwellir.com',
// 'wss://rpc.ibp.network/polkadot',
// 'wss://polkadot.dotters.network',
'wss://rpc-polkadot.luckyfriday.io'
// 'wss://polkadot.api.onfinality.io/public-ws'
// 'wss://polkadot.public.curie.radiumblock.co/ws',
// 'wss://rockx-dot.w3node.com/polka-public-dot/ws',
// 'wss://dot-rpc.stakeworld.io',
Expand All @@ -89,10 +89,10 @@ export const networkList: Record<string, NetworkInfo> = {
pplChainRpcUrls: kusamaPplChains,
rpcUrls: [
// 'wss://kusama-rpc.publicnode.com',
// 'wss://kusama-rpc.dwellir.com',
// 'wss://kusama-rpc-tn.dwellir.com',
// 'wss://rpc.ibp.network/kusama',
// 'wss://kusama.dotters.network',
'wss://kusama-rpc.dwellir.com',
'wss://kusama-rpc-tn.dwellir.com',
'wss://rpc.ibp.network/kusama',
'wss://kusama.dotters.network',
'wss://rpc-kusama.luckyfriday.io'
// 'wss://kusama.api.onfinality.io/public-ws',
// 'wss://rockx-ksm.w3node.com/polka-public-ksm/ws',
Expand Down Expand Up @@ -124,12 +124,12 @@ export const networkList: Record<string, NetworkInfo> = {
chainId: 'asset-hub-kusama',
explorerNetworkName: 'assethub-kusama',
rpcUrls: [
// 'wss://asset-hub-kusama-rpc.dwellir.com',
// 'wss://statemine-rpc-tn.dwellir.com',
// 'wss://sys.ibp.network/statemine',
// 'wss://asset-hub-kusama.dotters.network',
'wss://rpc-asset-hub-kusama.luckyfriday.io'
// 'wss://kusama-asset-hub-rpc.polkadot.io',
'wss://asset-hub-kusama-rpc.dwellir.com',
'wss://statemine-rpc-tn.dwellir.com',
'wss://sys.ibp.network/statemine',
'wss://asset-hub-kusama.dotters.network',
'wss://rpc-asset-hub-kusama.luckyfriday.io',
'wss://kusama-asset-hub-rpc.polkadot.io'
// 'wss://statemine.public.curie.radiumblock.co/ws',
// 'wss://ksm-rpc.stakeworld.io/assethub'
],
Expand All @@ -153,11 +153,11 @@ export const networkList: Record<string, NetworkInfo> = {
chainId: 'coretime-kusama',
explorerNetworkName: 'coretime-kusama',
rpcUrls: [
// 'wss://coretime-kusama-rpc.dwellir.com',
// 'wss://sys.ibp.network/coretime-kusama',
// 'wss://coretime-kusama.dotters.network',
'wss://rpc-coretime-kusama.luckyfriday.io'
// 'wss://kusama-coretime-rpc.polkadot.io',
'wss://coretime-kusama-rpc.dwellir.com',
'wss://sys.ibp.network/coretime-kusama',
'wss://coretime-kusama.dotters.network',
'wss://rpc-coretime-kusama.luckyfriday.io',
'wss://kusama-coretime-rpc.polkadot.io'
// 'wss://ksm-rpc.stakeworld.io/coretime'
],
pplChainRpcUrls: kusamaPplChains,
Expand Down
8 changes: 1 addition & 7 deletions squid/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,36 @@ SQD_DEBUG=sqd:processor:mapping
# BLOCK_START=3510000
# PREFIX=42
# RPC_WS="wss://rococo-rpc.polkadot.io"
# ARCHIVE_NAME="rococo"
# CHAIN_ID='rococo'

#kusama
# BLOCK_START=15000000
# PREFIX=2
# RPC_WS="wss://rpc.ibp.network/kusama"
# ARCHIVE_NAME="kusama"
# CHAIN_ID='kusama'

#polkadot
# BLOCK_START=12000000
# PREFIX=0
# RPC_WS="wss://rpc.ibp.network/polkadot"
# ARCHIVE_NAME="polkadot"
# CHAIN_ID='polkadot'

#rhala
# BLOCK_START=0
# PREFIX=30
# RPC_WS="wss://rhala-node.phala.network/ws"
# ARCHIVE_NAME=""
# RPC_WS="wss://rhala-node.phala.network/w
# CHAIN_ID='rhala'

#phala
# BLOCK_START=2400000
# PREFIX=30
# RPC_WS="wss://priv-api.phala.network/phala/ws"
# ARCHIVE_NAME="phala"
# CHAIN_ID='phala'

#khala
# BLOCK_START=0
# PREFIX=30
# RPC_WS="wss://khala-api.phala.network/ws"
# ARCHIVE_NAME="khala"
# CHAIN_ID='khala'

# hydra rococo
Expand Down
24 changes: 12 additions & 12 deletions squid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ fetch corresponding metadata.

```bash
npx squid-substrate-metadata-explorer \
--chain wss://rococo-rpc.polkadot.io \
--archive https://rococo.indexer.gc.subsquid.io/v4/graphql \
--out rococoVersions.json
--chain wss://paseo-rpc.polkadot.io \
--archive https://paseo.indexer.gc.subsquid.io/v4/graphql \
--out paseoVersions.json
```

In the above command `--archive` parameter is optional, but it speeds up the process
significantly. From scratch exploration of rococo network without archive takes 20-30 minutes.
significantly. From scratch exploration of paseo network without archive takes 20-30 minutes.

You can pass the result of previous exploration to `--out` parameter. In that case exploration will
start from the last known block and thus will take much less time.
Expand All @@ -170,8 +170,8 @@ Where `typegen.json` config file has the following structure:
```json5
{
outDir: 'src/types',
chainVersions: 'rococoVersions.json', // the result of chain exploration
typesBundle: 'rococo', // see types bundle section below
chainVersions: 'paseoVersions.json', // the result of chain exploration
typesBundle: 'paseo', // see types bundle section below
events: [
// list of events to generate
'balances.Transfer'
Expand Down Expand Up @@ -202,7 +202,7 @@ information to decode their data. For those chains external

Type definitions (`typesBundle`) can be given to squid tools in two forms:

1. as a name of a known chain (currently only `rococo`)
1. as a name of a known chain (currently only `paseo`)
2. as a json file of a structure described below.

```json5
Expand Down Expand Up @@ -247,13 +247,13 @@ DB_PORT=5432
GQL_PORT=4350
SQD_DEBUG=sqd:processor:mapping

# rococo
BLOCK_START=3510000 # this is the starting block of the indexer
# paseo
BLOCK_START=0 # this is the starting block of the indexer
PREFIX=42 # the ss58 prefix for the chain
RPC_WS="wss://rococo-rpc.polkadot.io" # a WS endpoint to connect to a blockchain
ARCHIVE_NAME="rococo" # optional - must be empty or set to the archive name if part of the @subsquid/archive-registry'
CHAIN_ID='rococo' # a unique chain id for the database prefix
RPC_WS="wss://paseo-rpc.polkadot.io" # a WS endpoint to connect to a blockchain
CHAIN_ID='paseo' # a unique chain id for the database prefix
IS_ETHEREUM='false'
GATEWAY_URL='https://v2.archive.subsquid.io/network/paseo'
```

## Differences from polkadot.js
Expand Down
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.acala
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=0
PREFIX=10
RPC_WS="wss://acala-rpc-3.aca-api.network/ws"
ARCHIVE_NAME="acala"
GATEWAY_URL="https://v2.archive.subsquid.io/network/acala"
CHAIN_ID='acala'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.amplitude
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=0
PREFIX=57
RPC_WS="wss://rpc-amplitude.pendulumchain.tech"
# ARCHIVE_NAME="amplitude"
# GATEWAY_URL="https://v2.archive.subsquid.io/network/amplitude"
CHAIN_ID='amplitude'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.asset-hub-kusama
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=2
RPC_WS="wss://sys.ibp.network/statemine"
ARCHIVE_NAME="asset-hub-kusama"
GATEWAY_URL="https://v2.archive.subsquid.io/network/asset-hub-kusama"
CHAIN_ID='asset-hub-kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.asset-hub-polkadot
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=0
RPC_WS="wss://sys.ibp.network/statemint"
ARCHIVE_NAME="asset-hub-polkadot"
GATEWAY_URL="https://v2.archive.subsquid.io/network/asset-hub-polkadot"
CHAIN_ID='asset-hub-polkadot'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.astar
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
BLOCK_START=0
PREFIX=5
RPC_WS="wss://rpc.astar.network"
ARCHIVE_NAME="astar"
GATEWAY_URL="https://v2.archive.subsquid.io/network/astar-substrate"
CHAIN_ID='astar'
# GENESIS='0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.bifrost-polkadot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=0
PREFIX=6
RPC_WS="wss://eu.bifrost-polkadot-rpc.liebi.com/ws"
ARCHIVE_NAME="bifrost-polkadot"
GATEWAY_URL="https://v2.archive.subsquid.io/network/bifrost-polkadot"
CHAIN_ID='bifrost-polkadot'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.chopsticks-ci
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DB_HOST=postgres
# SQD_DEBUG=*

# kusama chopsticks
BLOCK_START=22568290
BLOCK_START=26000000
PREFIX=2
RPC_WS="ws://localhost:8000"
CHAIN_ID='kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.chopsticks-local
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SQD_DEBUG=*

# kusama chopsticks
BLOCK_START=22568290
BLOCK_START=26000000
PREFIX=2
RPC_WS="ws://localhost:8000"
CHAIN_ID='kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.coretime-kusama
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=2
RPC_WS="wss://sys.ibp.network/coretime-kusama"
# ARCHIVE_NAME="coretime-kusama"
# GATEWAY_URL="coretime-kusama"
CHAIN_ID='coretime-kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.coretime-polkadot
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=0
RPC_WS="wss://coretime-polkadot.dotters.network"
# ARCHIVE_NAME="coretime-polkadot"
# GATEWAY_URL="coretime-polkadot"
CHAIN_ID='coretime-polkadot'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.hydradx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=63
RPC_WS="wss://hydradx-rpc.dwellir.com"
ARCHIVE_NAME="hydradx"
GATEWAY_URL="https://v2.archive.subsquid.io/network/hydradx"
CHAIN_ID='hydradx'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.interlay
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=0
PREFIX=2032
RPC_WS="wss://interlay-rpc.dwellir.com"
ARCHIVE_NAME="interlay"
GATEWAY_URL="https://v2.archive.subsquid.io/network/interlay"
CHAIN_ID='interlay'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.joystream
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ RPC_WS="wss://rpc.joystream.org"
CHAIN_ID='joystream'
BLOCK_START=0
PREFIX=126
# ARCHIVE_NAME="joystream"
# GATEWAY_URL="joystream"
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.khala
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=0
PREFIX=30
RPC_WS="wss://khala-api.phala.network/ws"
ARCHIVE_NAME="khala"
GATEWAY_URL="https://v2.archive.subsquid.io/network/khala"
CHAIN_ID='khala'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.kilt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=2000000
PREFIX=38
RPC_WS="wss://spiritnet.kilt.io"
ARCHIVE_NAME="kilt"
GATEWAY_URL="https://v2.archive.subsquid.io/network/kilt"
CHAIN_ID='kilt'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.kusama
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=6000000
PREFIX=2
RPC_WS="wss://rpc.ibp.network/kusama"
ARCHIVE_NAME="kusama"
GATEWAY_URL="https://v2.archive.subsquid.io/network/kusama"
CHAIN_ID='kusama'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.moonbeam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BLOCK_START=3000000
PREFIX=1284
RPC_WS="wss://moonbeam-rpc.dwellir.com"
ARCHIVE_NAME="moonbeam"
GATEWAY_URL="https://v2.archive.subsquid.io/network/moonbeam-substrate"
CHAIN_ID='moonbeam'
IS_ETHEREUM='true'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.moonriver
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BLOCK_START=3000000
PREFIX=1285
RPC_WS="wss://moonriver-rpc.dwellir.com"
ARCHIVE_NAME="moonriver"
GATEWAY_URL="https://v2.archive.subsquid.io/network/moonriver-substrate"
CHAIN_ID='moonriver'
IS_ETHEREUM='true'
5 changes: 3 additions & 2 deletions squid/assets/envs/.env.paseo
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
BLOCK_START=0
PREFIX=0
RPC_WS="wss://paseo.rpc.amforc.com"
CHAIN_ID='paseo'
RPC_WS="wss://rpc.ibp.network/paseo"
CHAIN_ID='paseo'
GATEWAY_URL="https://v2.archive.subsquid.io/network/paseo"
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.pendulum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BLOCK_START=0
PREFIX=56
RPC_WS="wss://rpc-pendulum.prd.pendulumchain.tech"
# ARCHIVE_NAME="pendulum"
GATEWAY_URL="https://v2.archive.subsquid.io/network/pendulum"
CHAIN_ID='pendulum'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.phala
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BLOCK_START=2400000
PREFIX=30
RPC_WS="wss://priv-api.phala.network/phala/ws"
ARCHIVE_NAME="phala"
GATEWAY_URL="https://v2.archive.subsquid.io/network/phala"
CHAIN_ID='phala'
Loading
Loading