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

Chopsticks support #432

Merged
merged 12 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]
16 changes: 8 additions & 8 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ export const networkList = {
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v7/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',
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',
Expand Down Expand Up @@ -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
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": ["lib/**/*", "db/**/*", "src/types/**/*", "src/model/generated/**/*", "prettierrc.js"]
"ignorePatterns": [
"lib/**/*",
"db/**/*",
"src/types/**/*",
"src/model/generated/**/*",
"prettierrc.js"
]
}
4 changes: 2 additions & 2 deletions squid/assets/envs/.env.assethub-kusama
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#assethub-kusama
#asset-hub-kusama
BLOCK_START=0
PREFIX=2
RPC_WS="wss://kusama-asset-hub-rpc.polkadot.io"
ARCHIVE_NAME="asset-hub-kusama"
CHAIN_ID='assethub-kusama'
CHAIN_ID='asset-hub-kusama'
6 changes: 3 additions & 3 deletions squid/assets/envs/.env.assethub-polkadot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#assethub-polkadot
#asset-hub-polkadot
BLOCK_START=0
PREFIX=0
RPC_WS="wss://polkadot-asset-hub-rpc.polkadot.io"
ARCHIVE_NAME="statemint"
CHAIN_ID='assethub-polkadot'
ARCHIVE_NAME="asset-hub-polkadot"
CHAIN_ID='asset-hub-polkadot'
12 changes: 6 additions & 6 deletions squid/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,24 @@
"dotenv_config_path=assets/envs/.env.astar"
]
},
"start-assethub-polkadot": {
"description": "starts the indexer with assethub-polkadot",
"start-asset-hub-polkadot": {
"description": "starts the indexer with asset-hub-polkadot",
"cmd": [
"node",
"-r",
"dotenv/config",
"lib/main",
"dotenv_config_path=assets/envs/.env.assethub-polkadot"
"dotenv_config_path=assets/envs/.env.asset-hub-polkadot"
]
},
"start-assethub-kusama": {
"description": "starts the indexer with assethub-kusama",
"start-asset-hub-kusama": {
"description": "starts the indexer with asset-hub-kusama",
"cmd": [
"node",
"-r",
"dotenv/config",
"lib/main",
"dotenv_config_path=assets/envs/.env.assethub-kusama"
"dotenv_config_path=assets/envs/.env.asset-hub-kusama"
]
},
"start-hydradx": {
Expand Down
8 changes: 4 additions & 4 deletions squid/squid-manifests/large-squid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ deploy:
addons:
postgres:
processor:
- name: assethub-kusama-processor
cmd: ['sqd', 'start-assethub-kusama']
- name: assethub-polkadot-processor
cmd: ['sqd', 'start-assethub-polkadot']
- name: asset-hub-kusama-processor
cmd: ['sqd', 'start-asset-hub-kusama']
- name: asset-hub-polkadot-processor
cmd: ['sqd', 'start-asset-hub-polkadot']
- name: rococo-processor
cmd: ['sqd', 'start-rococo']
- name: kusama-processor
Expand Down
Loading