Skip to content

Commit 913ce93

Browse files
authored
Merge pull request #4 from paritytech/tarik-pjs
Update registry, and polkadot-js deps
2 parents 4134782 + 9e664ff commit 913ce93

File tree

4 files changed

+855
-346
lines changed

4 files changed

+855
-346
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"author": "Parity Technologies <[email protected]>",
1919
"license": "Apache-2.0",
2020
"devDependencies": {
21-
"@polkadot/api": "^10.5.1",
22-
"@polkadot/apps-config": "^0.129.1",
21+
"@polkadot/api": "^10.9.1",
22+
"@polkadot/apps-config": "^0.132.1",
2323
"@substrate/dev": "^0.6.7"
2424
},
2525
"packageManager": "[email protected]"

registry.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"11": "web3",
2626
"21": "WBTC",
2727
"77": "TRQ",
28+
"99": "Cypress",
2829
"100": "WETH",
2930
"101": "DOTMA",
3031
"123": "123",
@@ -127,13 +128,6 @@
127128
"assetsInfo": {},
128129
"specName": "composable"
129130
},
130-
"2021": {
131-
"tokens": [
132-
"EFI"
133-
],
134-
"assetsInfo": {},
135-
"specName": "efinity"
136-
},
137131
"2026": {
138132
"tokens": [
139133
"NODL"
@@ -398,9 +392,11 @@
398392
"677": "GRB",
399393
"759": "bLd",
400394
"777": "GOD",
395+
"813": "TBUX",
401396
"841": "YAYOI",
402397
"888": "LUCK",
403398
"911": "911",
399+
"969": "WGTL",
404400
"999": "CBDC",
405401
"1000": "SPARK",
406402
"1107": "HOLIC",
@@ -426,6 +422,7 @@
426422
"3943": "GMK",
427423
"6789": "VHM",
428424
"6967": "CHAOS",
425+
"7373": "PEPE",
429426
"7777": "lucky7",
430427
"8848": "top",
431428
"9000": "KPOTS",
@@ -539,10 +536,16 @@
539536
},
540537
"2024": {
541538
"tokens": [
542-
"TOKEN"
539+
"Unknown",
540+
"EQD",
541+
"GENS",
542+
"ETH",
543+
"BTC",
544+
"KSM",
545+
"CRV"
543546
],
544547
"assetsInfo": {},
545-
"specName": "Genshiro"
548+
"specName": "Gens-parachain"
546549
},
547550
"2048": {
548551
"tokens": [
@@ -612,13 +615,6 @@
612615
"assetsInfo": {},
613616
"specName": "pioneer-runtime"
614617
},
615-
"2102": {
616-
"tokens": [
617-
"PCHU"
618-
],
619-
"assetsInfo": {},
620-
"specName": "pichiu"
621-
},
622618
"2105": {
623619
"tokens": [
624620
"CRAB"
@@ -703,19 +699,19 @@
703699
"assetsInfo": {},
704700
"specName": "ipci"
705701
},
706-
"2226": {
702+
"2240": {
707703
"tokens": [
708-
"TOKEN"
704+
"XRT"
709705
],
710706
"assetsInfo": {},
711-
"specName": "Genshiro"
707+
"specName": "robonomics"
712708
},
713-
"2240": {
709+
"2241": {
714710
"tokens": [
715-
"XRT"
711+
"KREST"
716712
],
717713
"assetsInfo": {},
718-
"specName": "robonomics"
714+
"specName": "peaq-node-krest"
719715
}
720716
},
721717
"westend": {

src/createRegistry.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const unreliableIds = {
4242
2018, // subgame
4343
2236, // zero
4444
2129, // Ice Network
45+
2226, // genshiro
46+
2102, // pichiu
4547
],
4648
westend: [],
4749
};
@@ -198,7 +200,11 @@ const fetchSystemParachainAssetInfo = async (
198200
const assetsInfo: AssetsInfo = {};
199201

200202
for (const [assetStorageKeyData] of await api.query.assets.asset.entries()) {
201-
const id = assetStorageKeyData.toHuman()?.toString().trim().replace(/,/g, '');
203+
const id = assetStorageKeyData
204+
.toHuman()
205+
?.toString()
206+
.trim()
207+
.replace(/,/g, '');
202208

203209
if (id) {
204210
const assetMetadata = await api.query.assets.metadata(id);

0 commit comments

Comments
 (0)