Skip to content

Commit

Permalink
forget about each chain runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Aug 17, 2023
1 parent 1faeb40 commit 9bbba37
Show file tree
Hide file tree
Showing 63 changed files with 284,449 additions and 62,969 deletions.
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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
logo: chainsPolkadotCircleSVG
} as NetworkInfo,
kusama: {
chainId: 'kusama',
explorerNetworkName: 'kusama',
rpcUrl: 'wss://kusama-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
logo: chainsAcalaSVG
} as NetworkInfo,
// amplitude: {
// chainId: 'amplitude',
// explorerNetworkName: 'amplitude',
// rpcUrl: 'wss://rpc-amplitude.pendulumchain.tech',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
// logo: chainsAmplitudeSVG
// } as NetworkInfo,
astar: {
chainId: 'astar',
explorerNetworkName: 'astar',
rpcUrl: 'wss://rpc.astar.network',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
logo: nodesBifrostSVG
} as NetworkInfo,
hydradx: {
chainId: 'hydradx',
explorerNetworkName: 'hydradx',
rpcUrl: 'wss://hydradx-rpc.dwellir.com',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
// logo: chainsPendulumSVG
// } as NetworkInfo,
phala: {
chainId: 'phala',
explorerNetworkName: 'phala',
rpcUrl: 'wss://api.phala.network/ws',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/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/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
logo: nodesKhalaSVG
} as NetworkInfo,
rococo: {
chainId: 'rococo',
explorerNetworkName: 'rococo',
rpcUrl: 'wss://rococo-rpc.polkadot.io',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
logo: chainsRococoSVG
} as NetworkInfo,
// westend: {
// chainId: 'westend',
// explorerNetworkName: 'westend',
// rpcUrl: 'wss://westend-rpc.polkadot.io',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v3/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v3/graphql',
// wsGraphqlUrl: 'wss://squid.subsquid.io/multix-large/v/v4/graphql',
// httpGraphqlUrl: 'https://squid.subsquid.io/multix-large/v/v4/graphql',
// logo: nodesWestendColourSVG
// } as NetworkInfo,
local: {
Expand Down
2 changes: 1 addition & 1 deletion squid/assets/envs/.env.kusama
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#kusama
BLOCK_START=15000000
BLOCK_START=6000000
PREFIX=2
RPC_WS="wss://kusama-rpc.polkadot.io"
ARCHIVE_NAME="kusama"
Expand Down
2 changes: 1 addition & 1 deletion 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: 3
version: 4
description: |-
Squid for Multix
Expand Down
10 changes: 5 additions & 5 deletions squid/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,21 @@ processor.run(
}

if (item.name === 'Proxy.ProxyAdded') {
const newProxy = getProxyInfoFromArgs({ item, chainId, ctx, isAdded: true })
const newProxy = getProxyInfoFromArgs({ item, chainId, ctx })
// ctx.log.info(`-----> delegator ${newProxy.delegator}`)
// ctx.log.info(`-----> delegatee ${newProxy.delegatee}`)
newProxies.set(newProxy.id, { ...newProxy, createdAt: timestamp })
newProxy && newProxies.set(newProxy.id, { ...newProxy, createdAt: timestamp })
}

if (item.name === 'Proxy.ProxyRemoved') {
const proxyRemoval = getProxyInfoFromArgs({ item, chainId, ctx, isAdded: false })
const proxyRemoval = getProxyInfoFromArgs({ item, chainId, ctx })
// ctx.log.info(`-----> to remove delegator ${proxyRemoval.delegator}`)
// ctx.log.info(`-----> to remove delegatee ${proxyRemoval.delegatee}`)
if (newProxies.has(proxyRemoval.id)) {
if (proxyRemoval && newProxies.has(proxyRemoval.id)) {
newProxies.delete(proxyRemoval.id)
// ctx.log.info(`<----- remove from set ${proxyRemoval.id}`)
} else {
proxyRemovalIds.add(proxyRemoval.id)
proxyRemoval && proxyRemovalIds.add(proxyRemoval.id)
// ctx.log.info(`<----- remove queue ${proxyRemoval.id}`)
}
}
Expand Down
2 changes: 1 addition & 1 deletion squid/src/typegens/typegen.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"outDir": "../types",
"specVersions": "https://statemine.archive.subsquid.io/graphql",
"specVersions": "https://kusama.archive.subsquid.io/graphql",
"events": [
"Proxy.AnonymousCreated",
"Proxy.PureCreated",
Expand Down
Loading

0 comments on commit 9bbba37

Please sign in to comment.