Skip to content

Commit

Permalink
Add support for old anonymous proxies (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut authored Aug 16, 2023
1 parent 0bd8073 commit 1faeb40
Show file tree
Hide file tree
Showing 17 changed files with 212 additions and 256 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/deploy-squid-aquarium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ jobs:
deploy:
strategy:
matrix:
network:
[
'polkadot',
'kusama',
'rococo',
'assethub-kusama',
'assethub-polkadot',
'others',
'others-2'
]
network: ['large', 'khala']
runs-on: ubuntu-latest
defaults:
run:
Expand Down
60 changes: 30 additions & 30 deletions packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,80 +36,80 @@ export const networkList = {
chainId: 'polkadot',
explorerNetworkName: 'polkadot',
rpcUrl: 'wss://rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: chainsPolkadotCircleSVG
} as NetworkInfo,
kusama: {
chainId: 'kusama',
explorerNetworkName: 'kusama',
rpcUrl: 'wss://kusama-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: chainsKusamaSVG
} as NetworkInfo,
'assethub-dot': {
chainId: 'assethub-polkadot',
explorerNetworkName: 'assethub-polkadot',
rpcUrl: 'wss://polkadot-asset-hub-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: nodesAssetHubSVG
} as NetworkInfo,
'assethub-ksm': {
chainId: 'assethub-kusama',
explorerNetworkName: 'assethub-kusama',
rpcUrl: 'wss://kusama-asset-hub-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/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/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: chainsAcalaSVG
} as NetworkInfo,
// amplitude: {
// chainId: 'amplitude',
// explorerNetworkName: 'amplitude',
// rpcUrl: 'wss://rpc-amplitude.pendulumchain.tech',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// logo: chainsAmplitudeSVG
// } as NetworkInfo,
astar: {
chainId: 'astar',
explorerNetworkName: 'astar',
rpcUrl: 'wss://rpc.astar.network',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/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/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: nodesBifrostSVG
} as NetworkInfo,
hydradx: {
chainId: 'hydradx',
explorerNetworkName: 'hydradx',
rpcUrl: 'wss://hydradx-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/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/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: nodesInterlaySVG
} as NetworkInfo,
khala: {
Expand All @@ -124,40 +124,40 @@ export const networkList = {
// chainId: 'pendulum',
// explorerNetworkName: 'pendulum',
// rpcUrl: 'wss://rpc-pendulum.prd.pendulumchain.tech',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// logo: chainsPendulumSVG
// } as NetworkInfo,
phala: {
chainId: 'phala',
explorerNetworkName: 'phala',
rpcUrl: 'wss://api.phala.network/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/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/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: nodesKhalaSVG
} as NetworkInfo,
rococo: {
chainId: 'rococo',
explorerNetworkName: 'rococo',
rpcUrl: 'wss://rococo-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
logo: chainsRococoSVG
} as NetworkInfo,
// westend: {
// chainId: 'westend',
// explorerNetworkName: 'westend',
// rpcUrl: 'wss://westend-rpc.polkadot.io',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v2/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v2/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// logo: nodesWestendColourSVG
// } as NetworkInfo,
local: {
Expand Down
2 changes: 1 addition & 1 deletion squid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"db:migrate": "npx squid-typeorm-migration apply",
"db:generate-migration": "npx squid-typeorm-migration generate",
"codegen": "npx squid-typeorm-codegen",
"typegen": "npx squid-substrate-typegen typegen.json",
"typegen": "npx squid-substrate-typegen src/typegens/*.json",
"start:indexer": "node -r dotenv/config lib/main.js",
"start:indexer:rococo": "node -r dotenv/config lib/main dotenv_config_path=assets/envs/.env.rococo",
"start:graphql-server": "npx squid-graphql-server --subscriptions --sql-statement-timeout 3000 --dumb-cache in-memory --dumb-cache-ttl 1000 --dumb-cache-size 100 --dumb-cache-max-age 1000",
Expand Down
18 changes: 0 additions & 18 deletions squid/squid-manifests/assethub-kusama-squid.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions squid/squid-manifests/assethub-polkadot-squid.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions squid/squid-manifests/khala-squid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
manifestVersion: subsquid.io/v0.1
name: multix-khala
version: 1
description: |-
Squid for Multix
build:

deploy:
addons:
postgres:
processor:
- name: khala-processor
cmd: ['sqd', 'start-khala']
api:
cmd: ['npx', 'squid-graphql-server', '--subscriptions']
scale:
dedicated: true
addons:
postgres:
# storage: 100Gi
profile: small
processor:
profile: small
api:
profile: small
# load-balance three replicas
# replicas: 3
18 changes: 0 additions & 18 deletions squid/squid-manifests/kusama-squid.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions squid/squid-manifests/large-squid.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: multix-large
version: 2
version: 3
description: |-
Squid for Multix
Expand All @@ -22,8 +22,6 @@ deploy:
cmd: ['sqd', 'start-polkadot']
- name: phala-processor
cmd: ['sqd', 'start-phala']
- name: khala-processor
cmd: ['sqd', 'start-khala']
- name: rhala-processor
cmd: ['sqd', 'start-rhala']
- name: acala-processor
Expand Down
38 changes: 0 additions & 38 deletions squid/squid-manifests/others-2-squid.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions squid/squid-manifests/others-squid.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions squid/squid-manifests/polkadot-squid.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions squid/squid-manifests/rococo-squid.yaml

This file was deleted.

Loading

0 comments on commit 1faeb40

Please sign in to comment.