Skip to content

Commit 3160fda

Browse files
hyifengwliyongfeng
authored andcommitted
Set more spaces inactive, #1283
1 parent b4ee058 commit 3160fda

16 files changed

Lines changed: 24 additions & 135 deletions

File tree

backend/packages/backend/src/constants/chainsDef.js

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -63,83 +63,27 @@ const chainsDef = {
6363
symbol: "GLMR",
6464
decimals: 18,
6565
},
66-
phala: {
67-
name: "Phala",
68-
network: "phala",
69-
ss58Format: 30,
70-
symbol: "PHA",
71-
decimals: 12,
72-
},
73-
khala: {
74-
name: "Khala",
75-
network: "khala",
76-
ss58Format: 30,
77-
symbol: "PHA",
78-
decimals: 12,
79-
},
8066
ethereum: {
8167
name: "Ethereum",
8268
network: "ethereum",
8369
supportAssetTypes: [AssetTypes.EVM_ERC20],
8470
symbol: "ETH",
8571
decimals: 18,
8672
},
87-
kintsugi: {
88-
name: "Kintsugi",
89-
network: "kintsugi",
90-
ss58Format: 2092,
91-
symbol: "KINT",
92-
decimals: 12,
93-
},
94-
interlay: {
95-
name: "Interlay",
96-
network: "interlay",
97-
ss58Format: 2032,
98-
symbol: "INTR",
99-
decimals: 10,
100-
},
10173
acala: {
10274
name: "Acala",
10375
network: "acala",
10476
ss58Format: 10,
10577
symbol: "ACA",
10678
decimals: 12,
10779
},
108-
crust: {
109-
name: "Crust",
110-
network: "crust",
111-
ss58Format: 66,
112-
symbol: "CRU",
113-
decimals: 18,
114-
},
11580
darwinia: {
11681
name: "Darwinia",
11782
network: "darwinia",
11883
ss58Format: 18,
11984
symbol: "RING",
12085
decimals: 9,
12186
},
122-
turing: {
123-
name: "Turing",
124-
network: "turing",
125-
ss58Format: 51,
126-
symbol: "TUR",
127-
decimals: 10,
128-
},
129-
litmus: {
130-
name: "Litmus",
131-
network: "litmus",
132-
ss58Format: 131,
133-
symbol: "LIT",
134-
decimals: 12,
135-
},
136-
zeitgeist: {
137-
name: "Zeitgeist",
138-
network: "zeitgeist",
139-
ss58Format: 73,
140-
symbol: "ZTG",
141-
decimals: 10,
142-
},
14387
shiden: {
14488
name: "Shiden",
14589
network: "shiden",
@@ -161,34 +105,13 @@ const chainsDef = {
161105
symbol: "AIR",
162106
decimals: 18,
163107
},
164-
parallel: {
165-
name: "Parallel",
166-
network: "parallel",
167-
ss58Format: 172,
168-
symbol: "PARA",
169-
decimals: 12,
170-
},
171-
basilisk: {
172-
name: "Basilisk",
173-
network: "basilisk",
174-
ss58Format: 10041,
175-
symbol: "BSX",
176-
decimals: 12,
177-
},
178108
hydradx: {
179109
name: "Hydradx",
180110
network: "hydradx",
181111
ss58Format: 0,
182112
symbol: "HDX",
183113
decimals: 12,
184114
},
185-
rococo: {
186-
name: "Rococo",
187-
network: "rococo",
188-
ss58Format: 42,
189-
symbol: "ROC",
190-
decimals: 12,
191-
},
192115
};
193116

194117
module.exports = {

backend/packages/backend/src/consts/networks.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,17 @@ const networks = Object.freeze({
66
karura: "karura",
77
kusama: "kusama",
88
polkadot: "polkadot",
9-
khala: "khala",
10-
phala: "phala",
119
moonriver: "moonriver",
1210
moonbeam: "moonbeam",
1311
acala: "acala",
1412
astar: "astar",
1513
astar_evm: "astar_evm",
16-
turing: "turing",
1714
darwinia: "darwinia",
18-
crab: "crab",
19-
polkadex: "polkadex",
20-
litmus: "litmus",
2115
shiden: "shiden",
2216
altair: "altair",
23-
parallel: "parallel",
2417
hydradx: "hydradx",
2518
hydration: "hydration",
2619
ethereum: "ethereum",
27-
rococo: "rococo",
2820
creditcoin: "creditcoin",
2921
creditcoin_evm: "creditcoin_evm",
3022
creditcoin_native: "creditcoin_native",

backend/packages/backend/src/consts/token.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const tokens = Object.freeze({
44
KSM: "KSM",
55
DOT: "DOT",
66
KAR: "KAR",
7-
PHA: "PHA",
87
BNC: "BNC",
98
ARIS: "ARIS",
109
CHRWNA: "CHRWNA",
@@ -15,7 +14,6 @@ const tokenParentChain = Object.freeze({
1514
[tokens.KSM]: networks.kusama,
1615
[tokens.DOT]: networks.polkadot,
1716
[tokens.KAR]: networks.karura,
18-
[tokens.PHA]: networks.khala,
1917
[tokens.BNC]: networks.bifrost,
2018
[tokens.ARIS]: networks.statemine,
2119
[tokens.CHRWNA]: networks.statemine,

backend/packages/backend/src/scripts/set-space-inactive.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ const spaceIds = [
1313
"basilisk",
1414
"rmrk",
1515
"rmrk-curation",
16+
"crab",
17+
"turing",
18+
"rococo",
19+
"polkadex",
20+
"khala",
21+
"phala",
1622
];
1723

1824
async function main() {

backend/packages/backend/src/scripts/spaces/crab.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
const { Accessibility } = require("../../consts/space");
2-
const { networks, strategies } = require("./consts");
2+
const { strategies } = require("./consts");
33
const crabConfig = {
44
id: "crab",
5+
inactive: true,
56
name: "Crab",
67
symbol: "CRAB",
78
decimals: 9,
89
accessibility: Accessibility.PUBLIC,
910
networks: [
1011
{
11-
network: networks.crab,
12+
network: "crab",
1213
ss58Format: 42,
1314
assets: [
1415
{

backend/packages/backend/src/scripts/spaces/khala.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
const { Accessibility } = require("../../consts/space");
2-
const { networks, strategies } = require("./consts");
2+
const { strategies } = require("./consts");
33

44
const khalaConfig = {
55
id: "khala",
6+
inactive: true,
67
name: "Khala",
78
symbol: "PHA",
89
decimals: 12,
910
accessibility: Accessibility.PUBLIC,
1011
networks: [
1112
{
12-
network: networks.khala,
13+
network: "khala",
1314
ss58Format: 30,
1415
assets: [
1516
{

backend/packages/backend/src/scripts/spaces/phala.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ const { networks, strategies } = require("./consts");
33

44
const phalaConfig = {
55
id: "phala",
6+
inactive: true,
67
name: "Phala",
78
symbol: "PHA",
89
decimals: 12,
910
accessibility: Accessibility.PUBLIC,
1011
networks: [
1112
{
12-
network: networks.phala,
13+
network: "phala",
1314
ss58Format: 30,
1415
assets: [
1516
{
@@ -20,7 +21,7 @@ const phalaConfig = {
2021
],
2122
},
2223
{
23-
network: networks.khala,
24+
network: "khala",
2425
ss58Format: 30,
2526
assets: [
2627
{

backend/packages/backend/src/scripts/spaces/polkadex.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { strategies } = require("./consts");
33

44
const config = {
55
id: "polkadex",
6+
inactive: true,
67
name: "Polkadex",
78
symbol: "PDEX",
89
decimals: 12,

backend/packages/backend/src/scripts/spaces/rococo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
const { Accessibility } = require("../../consts/space");
2-
const { networks, strategies } = require("./consts");
2+
const { strategies } = require("./consts");
33

44
const rococoConfig = {
55
id: "rococo",
6+
inactive: true,
67
name: "Rococo",
78
symbol: "ROC",
89
decimals: 12,
910
accessibility: Accessibility.PUBLIC,
1011
networks: [
1112
{
12-
network: networks.rococo,
13+
network: "rococo",
1314
ss58Format: 42,
1415
assets: [
1516
{

backend/packages/backend/src/scripts/spaces/turing.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
const { Accessibility } = require("../../consts/space");
2-
const { networks, strategies } = require("./consts");
2+
const { strategies } = require("./consts");
33

44
const turingConfig = {
55
id: "turing",
6+
inactive: true,
67
name: "Turing",
78
symbol: "TUR",
89
decimals: 10,
910
accessibility: Accessibility.PUBLIC,
1011
networks: [
1112
{
12-
network: networks.turing,
13+
network: "turing",
1314
ss58Format: 51,
1415
assets: [
1516
{

0 commit comments

Comments
 (0)