Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 6972f34

Browse files
committed
Add selendra chain
1 parent 290cef5 commit 6972f34

7 files changed

Lines changed: 32 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"sideEffects": false,
1212
"type": "module",
13-
"version": "1.0.1",
13+
"version": "1.0.2",
1414
"workspaces": [
1515
"packages/*"
1616
],

packages/chain-list/src/data/AssetRef.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"selendra-NATIVE-SEL___selendra-LOCAL-SEL": {
33
"srcAsset": "selendra-NATIVE-SEL",
44
"destAsset": "selendra-LOCAL-SEL",
5-
"srcChain": "selendra",
5+
"srcChain": "polkadot",
66
"destChain": "selendra",
77
"path": "XCM"
88
},

packages/chain-list/src/data/ChainAsset.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@
44
"slug": "selendra-NATIVE-SEL",
55
"name": "Selendra",
66
"symbol": "SEL",
7-
"decimals": 42,
7+
"decimals": 18,
88
"priceId": "selendra",
99
"minAmount": "0",
1010
"assetType": "NATIVE",
11-
"metadata": null,
11+
"metadata": {
12+
"multilocation": {
13+
"parents": 0,
14+
"interior": "Here"
15+
},
16+
"paraSpellValue": "SEL",
17+
"paraSpellAssetType": "symbol"
18+
},
1219
"multiChainAsset": "SEL-Selendra",
1320
"hasValue": false,
1421
"icon": "https://bitriel.github.io/BitrielWallet-ChainList/logo/selendra-native-sel.png"

packages/chain-list/src/data/ChainInfo.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,22 @@
2020
],
2121
"abiExplorer": "https://explorer.selendra.org"
2222
},
23-
"substrateInfo": null,
23+
"substrateInfo": {
24+
"relaySlug": null,
25+
"paraId": null,
26+
"genesisHash": "0x536274806b33f992898c98f2ad4fe6e190057900fcd8505083e3b765790b4bed",
27+
"addressPrefix": 42,
28+
"chainType": "PARACHAIN",
29+
"crowdloanUrl": null,
30+
"blockExplorer": "http://explorer.selendra.org/",
31+
"symbol": "SEL",
32+
"decimals": 18,
33+
"hasNativeNft": true,
34+
"supportStaking": true,
35+
"supportSmartContract": null,
36+
"crowdloanParaId": null,
37+
"crowdloanFunds": []
38+
},
2439
"extraInfo": {
2540
"subscanSlug": null,
2641
"chainBalanceSlug": "selendra"

packages/chain-list/src/data/MultiChainAsset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"symbol": "SEL",
4343
"priceId": "selendra",
4444
"hasValue": true,
45-
"icon": "https://bitriel.github.io/BitrielWallet-ChainList/logo/sel-selendra.png"
45+
"icon": "https://bitriel.github.io/BitrielWallet-ChainList/logo/selendra.png"
4646
},
4747
"ACA-Acala": {
4848
"slug": "ACA-Acala",

packages/chain-list/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const AssetLogoMap = _AssetLogoMap as unknown as Record<string, string>;
1919
export const ChainLogoMap = _ChainLogoMap as unknown as Record<string, string>;
2020

2121
export enum COMMON_CHAIN_SLUGS {
22+
SELENDRA = 'selendra',
2223
POLKADOT = 'polkadot',
2324
KUSAMA = 'kusama',
2425
MOONBEAM = 'moonbeam',
@@ -43,6 +44,7 @@ export enum COMMON_CHAIN_SLUGS {
4344
}
4445

4546
export enum COMMON_ASSETS {
47+
SEL = 'selendra-NATIVE-SEL',
4648
DOT = 'polkadot-NATIVE-DOT',
4749
ETH = 'ethereum-NATIVE-ETH',
4850
KSM = 'kusama-NATIVE-KSM',
@@ -58,6 +60,7 @@ export enum COMMON_ASSETS {
5860
}
5961

6062
export const _DEFAULT_CHAINS = [
63+
COMMON_CHAIN_SLUGS.SELENDRA as string,
6164
COMMON_CHAIN_SLUGS.POLKADOT as string,
6265
COMMON_CHAIN_SLUGS.KUSAMA as string,
6366
COMMON_CHAIN_SLUGS.ETHEREUM as string

packages/chain-list/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export enum _FundStatus {
142142
}
143143

144144
export interface _CrowdloanFund {
145-
relayChain: 'polkadot' | 'kusama'
145+
relayChain: 'polkadot' | 'kusama' | 'selendra'
146146
fundId: string
147147
paraId: number
148148
status: _FundStatus

0 commit comments

Comments
 (0)