Skip to content

Commit 8de05fa

Browse files
authored
Switch from polkadot-js to PAPI (#50)
* Add descriptors and change abstractApi to papi * Change finalized service to papi * Mock Finalized Service * Refactor block processor to use papi * Fix evetns * dedupe * Fix docker * generate descriptors in CI
1 parent 4e19bdc commit 8de05fa

File tree

179 files changed

+2371
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+2371
-279
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!.gitignore
3+
!package.json
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "0.1.0-autogenerated.12560984241538498653",
3+
"name": "@polkadot-api/descriptors",
4+
"files": [
5+
"dist"
6+
],
7+
"exports": {
8+
".": {
9+
"types": "./dist/index.d.ts",
10+
"module": "./dist/index.mjs",
11+
"import": "./dist/index.mjs",
12+
"require": "./dist/index.js"
13+
},
14+
"./package.json": "./package.json"
15+
},
16+
"main": "./dist/index.js",
17+
"module": "./dist/index.mjs",
18+
"browser": "./dist/index.mjs",
19+
"types": "./dist/index.d.ts",
20+
"sideEffects": false,
21+
"peerDependencies": {
22+
"polkadot-api": ">=1.11.2"
23+
}
24+
}
607 KB
Binary file not shown.
503 KB
Binary file not shown.
503 KB
Binary file not shown.

backend/.papi/polkadot-api.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": 0,
3+
"descriptorPath": ".papi/descriptors",
4+
"entries": {
5+
"relayChain": {
6+
"chain": "ksmcc3",
7+
"metadata": ".papi/metadata/relayChain.scale",
8+
"genesis": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe",
9+
"codeHash": "0x9bfa95446bff3c013666fd4c421cb0d8ce16b2e905a6589b58981876abf471d9"
10+
},
11+
"assetHub": {
12+
"chain": "ksmcc3_asset_hub",
13+
"metadata": ".papi/metadata/assetHub.scale",
14+
"genesis": "0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a",
15+
"codeHash": "0x5a0e93172b7d4f2030a3a31c2f1aff1e170a323373a48f7f2bc44328872616fc"
16+
}
17+
}
18+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)