Skip to content

Commit d5957fb

Browse files
committed
Remove unused network from backend, #1283
1 parent 60ab59c commit d5957fb

16 files changed

Lines changed: 12 additions & 123 deletions

File tree

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,23 @@ const networks = Object.freeze({
88
polkadot: "polkadot",
99
khala: "khala",
1010
phala: "phala",
11-
kintsugi: "kintsugi",
12-
interlay: "interlay",
1311
moonriver: "moonriver",
1412
moonbeam: "moonbeam",
1513
acala: "acala",
1614
astar: "astar",
1715
astar_evm: "astar_evm",
18-
crust: "crust",
1916
turing: "turing",
2017
darwinia: "darwinia",
2118
crab: "crab",
2219
polkadex: "polkadex",
23-
centrifuge: "centrifuge",
2420
litmus: "litmus",
25-
zeitgeist: "zeitgeist",
2621
shiden: "shiden",
2722
altair: "altair",
2823
parallel: "parallel",
29-
basilisk: "basilisk",
3024
hydradx: "hydradx",
3125
hydration: "hydration",
3226
ethereum: "ethereum",
3327
rococo: "rococo",
34-
stafi: "stafi",
3528
creditcoin: "creditcoin",
3629
creditcoin_evm: "creditcoin_evm",
3730
creditcoin_native: "creditcoin_native",

backend/packages/backend/src/features/proposals/getAverageTurnout.js

Lines changed: 0 additions & 81 deletions
This file was deleted.

backend/packages/backend/src/features/proposals/routes.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const Router = require("koa-router");
22
const requireSignature = require("../../middleware/require-signature");
3-
const { getAverageTurnout } = require("./getAverageTurnout");
43
const { saveProposalSettings } = require("./saveProposalSettings");
54
const { getProposalSettings } = require("./getProposalSettings");
65
const { createProposal } = require("./createProposal");
@@ -48,6 +47,5 @@ router.get(
4847
"/proposal/:proposalCid/voterbalance/:network/:address",
4948
getVoterBalance,
5049
);
51-
router.get("/proposals/average-turnout", getAverageTurnout);
5250

5351
module.exports = router;

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

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

44
const basiliskConfig = {
55
id: "basilisk",
6+
inactive: true,
67
name: "Basilisk",
78
symbol: "BSX",
89
decimals: 12,

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

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

44
const centrifugeConfig = {
55
id: networks.centrifuge,
6+
inactive: true,
67
name: "Centrifuge",
78
symbol: "CFG",
89
decimals: 18,

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

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

55
const config = {
66
id: "crust",
7+
inactive: true,
78
name: "Crust",
89
symbol: "CRU",
910
decimals: 12,

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

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

44
const config = {
55
id: "interlay",
6+
inactive: true,
67
name: "Interlay",
78
symbol: "INTR",
89
decimals: 10,

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

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

44
const config = {
55
id: "kintsugi",
6+
inactive: true,
67
name: "Kintsugi",
78
symbol: "KINT",
89
decimals: 12,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const rmrkMovrConfig = {
5656

5757
const config = {
5858
id: "rmrk",
59+
inactive: true,
5960
name: "RMRK",
6061
symbol: "RMRK",
6162
decimals: 10,
@@ -80,6 +81,7 @@ const config = {
8081

8182
const curationConfig = {
8283
id: "rmrk-curation",
84+
inactive: true,
8385
name: "RMRK Curation",
8486
symbol: "RMRK",
8587
decimals: 10,

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

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

55
const config = {
66
id: "stafi",
7+
inactive: true,
78
name: "StaFi",
89
symbol: "VOTE",
910
decimals: 18,

0 commit comments

Comments
 (0)