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

Move to Arrow-squid #393

Merged
merged 20 commits into from
Nov 7, 2023
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,5 @@ builds
packages/ui/cypress/screenshots/*
packages/ui/cypress/videos/*
packages/ui/cypress/downloads/*

db.sqlite*
31 changes: 31 additions & 0 deletions chopsticks-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
endpoint: wss://rococo-rpc.polkadot.io
mock-signature-host: true
block: 7717608
db: ./db.sqlite

import-storage:
System:
Account:
- - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- providers: 1
data:
free: '10000000000000000000'
- - - 5DqVySMC366P8NRjdyp948TJj64hAvg17eaiEn4ZbuKCNZHc
- providers: 1
data:
free: '10000000000000000000'
- - - 5HKy3cW562kw9zXWQFtMWGqhNYgjLZGntUeYhNFsYcEKqjbc
- providers: 1
data:
free: '10000000000000000000'
Council:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
PhragmenElection:
Members:
- who: 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
stake: 1000000000000
deposit: 1000000000000
TechnicalCommittee:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
TechnicalMembership:
Members: [5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY]
100 changes: 50 additions & 50 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,152 +39,152 @@ export const networkList = {
chainId: 'polkadot',
explorerNetworkName: 'polkadot',
rpcUrl: 'wss://rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: chainsPolkadotCircleSVG
} as NetworkInfo,
kusama: {
chainId: 'kusama',
explorerNetworkName: 'kusama',
rpcUrl: 'wss://kusama-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: chainsKusamaSVG
} as NetworkInfo,
'assethub-dot': {
chainId: 'assethub-polkadot',
explorerNetworkName: 'assethub-polkadot',
'asset-hub-dot': {
chainId: 'asset-hub-polkadot',
explorerNetworkName: 'asset-hub-polkadot',
rpcUrl: 'wss://polkadot-asset-hub-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesAssetHubSVG
} as NetworkInfo,
'assethub-ksm': {
chainId: 'assethub-kusama',
explorerNetworkName: 'assethub-kusama',
'asset-hub-ksm': {
chainId: 'asset-hub-kusama',
explorerNetworkName: 'asset-hub-kusama',
rpcUrl: 'wss://kusama-asset-hub-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesAssetHubSVG
} as NetworkInfo,
acala: {
chainId: 'acala',
explorerNetworkName: 'acala',
rpcUrl: 'wss://acala-rpc-3.aca-api.network/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: chainsAcalaSVG
} as NetworkInfo,
// amplitude: {
// chainId: 'amplitude',
// explorerNetworkName: 'amplitude',
// rpcUrl: 'wss://rpc-amplitude.pendulumchain.tech',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
// logo: chainsAmplitudeSVG
// } as NetworkInfo,
astar: {
chainId: 'astar',
explorerNetworkName: 'astar',
rpcUrl: 'wss://rpc.astar.network',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesAstarPNG
} as NetworkInfo,
'bifrost-dot': {
chainId: 'bifrost-polkadot',
explorerNetworkName: 'bifrost',
rpcUrl: 'wss://bifrost-polkadot.api.onfinality.io/public-ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
rpcUrl: 'wss://eu.bifrost-polkadot-rpc.liebi.com/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesBifrostSVG
} as NetworkInfo,
hydradx: {
chainId: 'hydradx',
explorerNetworkName: 'hydradx',
rpcUrl: 'wss://hydradx-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: hydradxSVG
} as NetworkInfo,
interlay: {
chainId: 'interlay',
explorerNetworkName: 'interlay',
rpcUrl: 'wss://interlay.api.onfinality.io/public-ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
rpcUrl: 'wss://interlay-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesInterlaySVG
} as NetworkInfo,
khala: {
chainId: 'khala',
explorerNetworkName: 'khala',
rpcUrl: 'wss://khala-api.phala.network/ws',
wsGraphqlUrl: 'wss:///squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https:///squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss:///squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https:///squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesKhalaSVG
} as NetworkInfo,
// pendulum: {
// chainId: 'pendulum',
// explorerNetworkName: 'pendulum',
// rpcUrl: 'wss://rpc-pendulum.prd.pendulumchain.tech',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
// logo: chainsPendulumSVG
// } as NetworkInfo,
moonbeam: {
chainId: 'moonbeam',
explorerNetworkName: 'moonbeam',
rpcUrl: 'wss://moonbeam.api.onfinality.io/public-ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
rpcUrl: 'wss://moonbeam-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesMoonbeamSVG
} as NetworkInfo,
moonriver: {
chainId: 'moonriver',
explorerNetworkName: 'moonriver',
rpcUrl: 'wss://moonriver.api.onfinality.io/public-ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
rpcUrl: 'wss://moonriver-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesMoonriverSVG
} as NetworkInfo,
phala: {
chainId: 'phala',
explorerNetworkName: 'phala',
rpcUrl: 'wss://api.phala.network/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: phalaSVG
} as NetworkInfo,
'rhala testnet': {
chainId: 'rhala',
explorerNetworkName: '',
rpcUrl: 'wss://subbridge-test.phala.network/rhala/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesKhalaSVG
} as NetworkInfo,
rococo: {
chainId: 'rococo',
explorerNetworkName: 'rococo',
rpcUrl: 'wss://rococo-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: chainsRococoSVG
} as NetworkInfo,
// westend: {
// chainId: 'westend',
// explorerNetworkName: 'westend',
// rpcUrl: 'wss://westend-rpc.polkadot.io',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
// logo: nodesWestendColourSVG
// } as NetworkInfo,
joystream: {
chainId: 'joystream',
explorerNetworkName: 'joystream',
rpcUrl: 'wss://rpc.joystream.org',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v7/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-arrow/v/v1/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-arrow/v/v1/graphql',
logo: nodesJoystreamSVG
},
local: {
Expand All @@ -199,7 +199,7 @@ export const networkList = {

export const polkadotNetworksAndParachains = [
'polkadot',
'assethub-dot',
'asset-hub-dot',
'acala',
'astar',
'bifrost-dot',
Expand All @@ -208,7 +208,7 @@ export const polkadotNetworksAndParachains = [
'moonbeam',
'phala'
]
export const kusamaNetworksAndParachains = ['kusama', 'assethub-ksm', 'khala', 'moonriver']
export const kusamaNetworksAndParachains = ['kusama', 'asset-hub-ksm', 'khala', 'moonriver']
export const soloChains = ['joystream']
export const testChains = ['rococo', 'rhala testnet', 'local']

Expand Down
1 change: 0 additions & 1 deletion squid/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ SQD_DEBUG=sqd:processor:mapping
# PREFIX=30
# RPC_WS="wss://rhala-node.phala.network/ws"
# ARCHIVE_NAME=""
# ARCHIVE_URL="http://localhost:8888/graphql"
# CHAIN_ID='rhala'

#phala
Expand Down
8 changes: 7 additions & 1 deletion squid/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
"project": "tsconfig.json"
},
"rules": {},
"ignorePatterns": ["db/**/*", "src/types/**/*", "src/model/generated/**/*", "prettierrc.js"]
"ignorePatterns": [
"lib/**/*",
"db/**/*",
"src/types/**/*",
"src/model/generated/**/*",
"prettierrc.js"
]
}
2 changes: 1 addition & 1 deletion squid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ BLOCK_START=3510000 # 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'
ARCHIVE_URL="http://localhost:4444/graphql" # optional - must be set if ARCHIVE_NAME is empty - the subsquid archive url. Consider submitting a PR to subsquid/archive-registry github repo to extend the registry.
CHAIN_ID='rococo' # a unique chain id for the database prefix
IS_ETHEREUM='false'
```

## Differences from polkadot.js
Expand Down
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"
# ARCHIVE_NAME="amplitude"
CHAIN_ID='amplitude'
6 changes: 6 additions & 0 deletions squid/assets/envs/.env.asset-hub-kusama
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#asset-hub-kusama
BLOCK_START=0
PREFIX=2
RPC_WS="wss://kusama-asset-hub-rpc.polkadot.io"
ARCHIVE_NAME="asset-hub-kusama"
CHAIN_ID='asset-hub-kusama'
6 changes: 6 additions & 0 deletions squid/assets/envs/.env.asset-hub-polkadot
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#asset-hub-polkadot
BLOCK_START=0
PREFIX=0
RPC_WS="wss://polkadot-asset-hub-rpc.polkadot.io"
ARCHIVE_NAME="asset-hub-polkadot"
CHAIN_ID='asset-hub-polkadot'
6 changes: 0 additions & 6 deletions squid/assets/envs/.env.assethub-kusama

This file was deleted.

6 changes: 0 additions & 6 deletions squid/assets/envs/.env.assethub-polkadot

This file was deleted.

2 changes: 1 addition & 1 deletion squid/assets/envs/.env.astar
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PREFIX=5
RPC_WS="wss://rpc.astar.network"
ARCHIVE_NAME="astar"
CHAIN_ID='astar'
GENESIS='0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6'
# 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://bifrost-polkadot.api.onfinality.io/public-ws"
RPC_WS="wss://eu.bifrost-polkadot-rpc.liebi.com/ws"
ARCHIVE_NAME="bifrost-polkadot"
CHAIN_ID='bifrost-polkadot'
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.api.onfinality.io/public-ws"
RPC_WS="wss://interlay-rpc.dwellir.com"
ARCHIVE_NAME="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"
# ARCHIVE_NAME="joystream"
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.api.onfinality.io/public-ws"
RPC_WS="wss://moonbeam-rpc.dwellir.com"
ARCHIVE_NAME="moonbeam"
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.api.onfinality.io/public-ws"
RPC_WS="wss://moonriver-rpc.dwellir.com"
ARCHIVE_NAME="moonriver"
CHAIN_ID='moonriver'
IS_ETHEREUM='true'
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"
# ARCHIVE_NAME="pendulum"
CHAIN_ID='pendulum'
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.polkadot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#polkadot
BLOCK_START=12000000
PREFIX=0
RPC_WS="wss://polkadot-rpc.polkadot.io"
RPC_WS="wss://rpc.polkadot.io"
ARCHIVE_NAME="polkadot"
CHAIN_ID='polkadot'
Loading
Loading