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

SS58 - H160 address mapping #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
26 changes: 6 additions & 20 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,16 @@ REDIS_PORT=6379
REDIS_URL=redis://127.0.0.1/0

# Shibuya
# RPC_ENDPOINT=wss://rpc.shibuya.astar.network # wss://shibuya-rpc.dwellir.com # wss://shibuya.public.blastapi.io
# BLOCK_RANGE=5335615 # 6293214 #
# V3_FIRST_BLOCK=5335615
# V3_PERIOD_LENGTH=50400
# V3_FIRST_ERA=4303
# V3_ERAS_PER_PERIOD=21
# ARCHIVE="shibuya"

RPC_ENDPOINT=wss://rpc.shibuya.astar.network # wss://shibuya-rpc.dwellir.com # wss://shibuya.public.blastapi.io
BLOCK_RANGE=5335615 # 6293214 #
ARCHIVE=shibuya

# Shiden
# RPC_ENDPOINT=wss://shiden-rpc.dwellir.com
# BLOCK_RANGE=5876078
# ARCHIVE="shiden"
# V3_FIRST_BLOCK=5876078
# V3_PERIOD_LENGTH=439200
# V3_FIRST_ERA=743
# V3_ERAS_PER_PERIOD=56


# Astar
RPC_ENDPOINT=https://astar.api.onfinality.io/public
BLOCK_RANGE=5514934
ARCHIVE=astar
V3_FIRST_BLOCK=5514934
V3_PERIOD_LENGTH=878400
V3_FIRST_ERA=651
V3_ERAS_PER_PERIOD=112
# RPC_ENDPOINT=https://astar.api.onfinality.io/public
# BLOCK_RANGE=5514934
# ARCHIVE=astar

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions db/migrations/1730972119470-Data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = class Data1730972119470 {
name = 'Data1730972119470'

async up(db) {
await db.query(`CREATE TABLE "era_period_mapping" ("id" character varying NOT NULL, "period" integer NOT NULL, CONSTRAINT "PK_f2cc5cf5608926b3bf95ab27588" PRIMARY KEY ("id"))`)
}

async down(db) {
await db.query(`DROP TABLE "era_period_mapping"`)
}
}
6 changes: 1 addition & 5 deletions manifests/astar.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: dapps-staking-indexer-astar
version: 13
version: 14
description: "ArrowSquid Indexer for Dapps Staking V3"
build:
scale:
Expand All @@ -20,10 +20,6 @@ deploy:
RPC_ENDPOINT: https://astar.api.onfinality.io/public
BLOCK_RANGE: 4342300
ARCHIVE: astar
V3_FIRST_BLOCK: 5514934
V3_PERIOD_LENGTH: 878400
V3_FIRST_ERA: 651
V3_ERAS_PER_PERIOD: 112
api:
cmd:
- npx
Expand Down
6 changes: 1 addition & 5 deletions manifests/shibuya.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: dapps-staking-indexer-shibuya
version: 13
version: 14
description: "ArrowSquid Indexer for Dapps Staking V3"
build:
scale:
Expand All @@ -20,10 +20,6 @@ deploy:
RPC_ENDPOINT: wss://shibuya-rpc.dwellir.com
BLOCK_RANGE: 5335615
ARCHIVE: "shibuya"
V3_FIRST_BLOCK: 5335615
V3_PERIOD_LENGTH: 50400
V3_FIRST_ERA: 4303
V3_ERAS_PER_PERIOD: 21
api:
cmd:
- npx
Expand Down
6 changes: 1 addition & 5 deletions manifests/shiden.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
manifestVersion: subsquid.io/v0.1
name: dapps-staking-indexer-shiden
version: 13
version: 14
description: "ArrowSquid Indexer for Dapps Staking V3"
build:
scale:
Expand All @@ -20,10 +20,6 @@ deploy:
RPC_ENDPOINT: wss://shiden-rpc.dwellir.com
BLOCK_RANGE: 5876078
ARCHIVE: shiden
V3_FIRST_BLOCK: 5876078
V3_PERIOD_LENGTH: 439200
V3_FIRST_ERA: 743
V3_ERAS_PER_PERIOD: 56
api:
cmd:
- npx
Expand Down
Loading