Skip to content

Commit edb6654

Browse files
authored
added calamari, pioneer and joystream (subsquid#12)
* acala, astar * added almost all parachains * discard kusama * more chains * block_height reset * fix crust and chachacha * - WORKERS_NUMBER=5 * fix typebundles fix typebundles for polkadot, kusama, statemine, statemint * calamari and pioneer * update joystream * set WORKERS_NUMBER=5
1 parent 7cdfbb2 commit edb6654

File tree

14 files changed

+2732
-720
lines changed

14 files changed

+2732
-720
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
**/node_modules
2+
*.sql
3+
*.csv

calamari/docker-compose.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
version: "3.4"
2+
3+
services:
4+
db:
5+
image: postgres:12
6+
restart: always
7+
volumes:
8+
- /var/lib/postgresql/data
9+
environment:
10+
POSTGRES_USER: postgres
11+
POSTGRES_PASSWORD: postgres
12+
13+
indexer:
14+
image: subsquid/hydra-indexer:5
15+
restart: unless-stopped
16+
environment:
17+
- WORKERS_NUMBER=5
18+
- DB_NAME=indexer
19+
- DB_HOST=db
20+
- DB_USER=postgres
21+
- DB_PASS=postgres
22+
- DB_PORT=5432
23+
- REDIS_URI=redis://redis:6379/0
24+
- WS_PROVIDER_ENDPOINT_URI=wss://calamari.api.onfinality.io/public-ws
25+
- BUNDLE_TYPES=/configs/typesBundle.json
26+
volumes:
27+
- "./typesBundle.json:/configs/typesBundle.json"
28+
depends_on:
29+
- db
30+
- redis
31+
command: >
32+
sh -c "yarn db:bootstrap && yarn start:prod"
33+
34+
indexer-gateway:
35+
image: subsquid/hydra-indexer-gateway:5
36+
restart: unless-stopped
37+
depends_on:
38+
- redis
39+
- db
40+
- indexer-status-service
41+
- indexer
42+
ports:
43+
- "4010:8080"
44+
environment:
45+
- DEV_MODE=true
46+
- DB_NAME=indexer
47+
- DB_HOST=db
48+
- DB_USER=postgres
49+
- DB_PASS=postgres
50+
- DB_PORT=5432
51+
- HYDRA_INDEXER_STATUS_SERVICE=http://indexer-status-service:8081/status
52+
53+
indexer-status-service:
54+
image: subsquid/hydra-indexer-status-service:5
55+
restart: unless-stopped
56+
depends_on:
57+
- redis
58+
environment:
59+
REDIS_URI: redis://redis:6379/0
60+
PORT: 8081
61+
62+
redis:
63+
image: redis:6.0-alpine
64+
restart: always
65+
ports:
66+
- "6379"

calamari/typesBundle.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"spec": {
3+
"manta-node": {
4+
"types": [
5+
{
6+
"minmax": [
7+
0,
8+
null
9+
],
10+
"types": {
11+
"CurrencyId": {
12+
"_enum": [
13+
"MA"
14+
]
15+
},
16+
"CurrencyIdOf": "CurrencyId",
17+
"Amount": "i128",
18+
"AmountOf": "Amount",
19+
"AccountInfo": "AccountInfoWithDualRefCount"
20+
}
21+
}
22+
]
23+
}
24+
}
25+
}

composable/docker-compose.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
version: "3.4"
2+
3+
services:
4+
db:
5+
image: postgres:12
6+
restart: always
7+
volumes:
8+
- /var/lib/postgresql/data
9+
environment:
10+
POSTGRES_USER: postgres
11+
POSTGRES_PASSWORD: postgres
12+
13+
indexer:
14+
image: subsquid/hydra-indexer:5
15+
restart: unless-stopped
16+
environment:
17+
- WORKERS_NUMBER=5
18+
- DB_NAME=indexer
19+
- DB_HOST=db
20+
- DB_USER=postgres
21+
- DB_PASS=postgres
22+
- DB_PORT=5432
23+
- REDIS_URI=redis://redis:6379/0
24+
- WS_PROVIDER_ENDPOINT_URI=wss://rpc.composable.finance
25+
- TYPES_JSON=/configs/types.json
26+
volumes:
27+
- "./types.json:/configs/types.json"
28+
depends_on:
29+
- db
30+
- redis
31+
command: >
32+
sh -c "yarn db:bootstrap && yarn start:prod"
33+
34+
indexer-gateway:
35+
image: subsquid/hydra-indexer-gateway:5
36+
restart: unless-stopped
37+
depends_on:
38+
- redis
39+
- db
40+
- indexer-status-service
41+
- indexer
42+
ports:
43+
- "4010:8080"
44+
environment:
45+
- DEV_MODE=true
46+
- DB_NAME=indexer
47+
- DB_HOST=db
48+
- DB_USER=postgres
49+
- DB_PASS=postgres
50+
- DB_PORT=5432
51+
- HYDRA_INDEXER_STATUS_SERVICE=http://indexer-status-service:8081/status
52+
53+
indexer-status-service:
54+
image: subsquid/hydra-indexer-status-service:5
55+
restart: unless-stopped
56+
depends_on:
57+
- redis
58+
environment:
59+
REDIS_URI: redis://redis:6379/0
60+
PORT: 8081
61+
62+
redis:
63+
image: redis:6.0-alpine
64+
restart: always
65+
ports:
66+
- "6379"

composable/types.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"spec": {
3+
"composable": {
4+
"types": {
5+
"ComposableTraitsAssetsXcmAssetLocation": "Null",
6+
"PalletCrowdloanRewardsModelsRemoteAccount": {
7+
"_enum": {
8+
"RelayChain": "AccountId32",
9+
"Ethereum": "EthereumAccountId"
10+
}
11+
},
12+
"ComposableTraitsCallFilterCallFilterEntry": "Null",
13+
"PalletAssetsRegistryCandidateStatus": "Null",
14+
"SpConsensusAuraSr25519AppSr25519Public": "Null",
15+
"ComposableTraitsBondedFinanceBondOffer": "Null",
16+
"PalletCollatorSelectionCandidateInfo": "Null",
17+
"PalletCrowdloanRewardsReward": "Null",
18+
"PalletDemocracyVoteThreshold": "Null",
19+
"PalletDemocracyPreimageStatus": "Null",
20+
"PalletDemocracyReferendumInfo": "Null",
21+
"PalletDemocracyReleases": "Null",
22+
"PalletDemocracyVoteVoting": "Null",
23+
"CumulusPalletDmpQueueConfigData": "Null",
24+
"PalletDutchAuctionSellOrder": "Null",
25+
"ComposableTraitsVestingVestingSchedule": "Null",
26+
"CumulusPalletDmpQueuePageIndexData": "Null",
27+
"PalletDutchAuctionTakeOrder": "Null",
28+
"ComposableTraitsGovernanceSignedRawOrigin": "Null",
29+
"PalletIdentityRegistration": "Null",
30+
"PalletIdentityRegistrarInfo": "Null",
31+
"PalletOracleAssetInfo": "Null",
32+
"PalletOracleWithdraw": {
33+
"stake": "u128",
34+
"unlockBlock": "u32"
35+
},
36+
"PalletOraclePrePrice": "Null",
37+
"PalletOraclePrice": "Null",
38+
"PolkadotPrimitivesV1AbridgedHostConfiguration": "Null",
39+
"CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot": "Null",
40+
"PolkadotPrimitivesV1PersistedValidationData": "PersistedValidationData",
41+
"PalletSchedulerScheduledV2": "Null",
42+
"PalletSchedulerReleases": "Null",
43+
"DaliRuntimeOpaqueSessionKeys": "Null",
44+
"OrmlTokensAccountData": "Null",
45+
"OrmlTokensBalanceLock": "Null",
46+
"PalletTreasuryProposal": "Null",
47+
"PalletVaultModelsStrategyOverview": "Null",
48+
"PalletVaultModelsVaultInfo": "Null",
49+
"CumulusPalletXcmpQueueInboundStatus": "Null",
50+
"PolkadotParachainPrimitivesXcmpMessageFormat": "Null",
51+
"CumulusPalletXcmpQueueOutboundStatus": "Null",
52+
"CumulusPalletXcmpQueueQueueConfigData": "Null",
53+
"PalletCrowdloanRewardsModelsProof": {
54+
"_enum": {
55+
"RelayChain": "(AccountId32, MultiSignature)",
56+
"Ethereum": "EcdsaSignature"
57+
}
58+
},
59+
"PalletDemocracyConviction": "Null",
60+
"PalletDemocracyVoteAccountVote": "Null",
61+
"ComposableTraitsDefiSell": "Null",
62+
"ComposableTraitsAuctionAuctionStepFunction": "Null",
63+
"ComposableTraitsDefiTake": "Null",
64+
"ComposableTraitsTimeTimeReleaseFunction": "Null",
65+
"PalletIdentityJudgement": "Null",
66+
"PalletIdentityBitFlags": "Null",
67+
"PalletIdentityIdentityInfo": "Null",
68+
"CumulusPrimitivesParachainInherentParachainInherentData": "ParachainInherentData",
69+
"DaliRuntimeOriginCaller": "Null",
70+
"ComposableTraitsVaultVaultConfig": "Null",
71+
"XcmVersionedMultiAsset": "Null"
72+
}
73+
}
74+
}
75+
}

joystream/docker-compose.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
version: "3.4"
2+
3+
services:
4+
db:
5+
image: postgres:12
6+
restart: always
7+
volumes:
8+
- /var/lib/postgresql/data
9+
environment:
10+
POSTGRES_USER: postgres
11+
POSTGRES_PASSWORD: postgres
12+
13+
indexer:
14+
image: subsquid/hydra-indexer:5
15+
restart: unless-stopped
16+
environment:
17+
- WORKERS_NUMBER=5
18+
- DB_NAME=indexer
19+
- DB_HOST=db
20+
- DB_USER=postgres
21+
- DB_PASS=postgres
22+
- DB_PORT=5432
23+
- FORCE_HEIGHT=true
24+
- BLOCK_HEIGHT=4191207 # starting block height
25+
- REDIS_URI=redis://redis:6379/0
26+
- WS_PROVIDER_ENDPOINT_URI=wss://rome-rpc-endpoint.joystream.org:9944
27+
- TYPES_JSON=/config/types.json
28+
volumes:
29+
- "./types.json:/config/types.json"
30+
31+
depends_on:
32+
- db
33+
- redis
34+
command: >
35+
sh -c "yarn db:bootstrap && yarn start:prod"
36+
37+
indexer-gateway:
38+
image: subsquid/hydra-indexer-gateway:5
39+
restart: unless-stopped
40+
depends_on:
41+
- redis
42+
- db
43+
- indexer-status-service
44+
- indexer
45+
ports:
46+
- "4010:8080"
47+
environment:
48+
- DEV_MODE=true
49+
- DB_NAME=indexer
50+
- DB_HOST=db
51+
- DB_USER=postgres
52+
- DB_PASS=postgres
53+
- DB_PORT=5432
54+
- HYDRA_INDEXER_STATUS_SERVICE=http://indexer-status-service:8081/status
55+
56+
indexer-status-service:
57+
image: subsquid/hydra-indexer-status-service:5
58+
restart: unless-stopped
59+
depends_on:
60+
- redis
61+
environment:
62+
REDIS_URI: redis://redis:6379/0
63+
PORT: 8081
64+
65+
redis:
66+
image: redis:6.0-alpine
67+
restart: always
68+
ports:
69+
- "6379"

0 commit comments

Comments
 (0)