diff --git a/backend/packages/backend/src/scripts/init-spaces.js b/backend/packages/backend/src/scripts/init-spaces.js index 4db14197..21041880 100644 --- a/backend/packages/backend/src/scripts/init-spaces.js +++ b/backend/packages/backend/src/scripts/init-spaces.js @@ -35,6 +35,7 @@ const { rococoConfig } = require("./spaces/rococo"); const { stellaSwapConfig } = require("./spaces/stellaswap"); const { stafiConfig } = require("./spaces/stafi"); const { creditcoinConfig } = require("./spaces/creditcoin"); +const { creditcoinEnterpriseConfig } = require("./spaces/creditcoinEnterprise"); const { dotaConfig } = require("./spaces/dota"); const spaces = [ @@ -71,6 +72,7 @@ const spaces = [ stellaSwapConfig, stafiConfig, creditcoinConfig, + creditcoinEnterpriseConfig, dotaConfig, ]; diff --git a/backend/packages/backend/src/scripts/spaces/creditcoin.js b/backend/packages/backend/src/scripts/spaces/creditcoin.js index c81fcb91..939eadb6 100644 --- a/backend/packages/backend/src/scripts/spaces/creditcoin.js +++ b/backend/packages/backend/src/scripts/spaces/creditcoin.js @@ -3,7 +3,7 @@ const { networks } = require("../../consts/networks"); const { Accessibility } = require("../../consts/space"); const config = { - id: "creditcoin", + id: "creditcoin_cc3", name: "Creditcoin", symbol: "CTC", decimals: 18, diff --git a/backend/packages/backend/src/scripts/spaces/creditcoinEnterprise.js b/backend/packages/backend/src/scripts/spaces/creditcoinEnterprise.js new file mode 100644 index 00000000..939ca6e5 --- /dev/null +++ b/backend/packages/backend/src/scripts/spaces/creditcoinEnterprise.js @@ -0,0 +1,34 @@ +const { strategies } = require("../../consts/voting"); +const { networks } = require("../../consts/networks"); +const { Accessibility } = require("../../consts/space"); + +const config = { + id: "creditcoin", + name: "Creditcoin Enterprise", + symbol: "CTC", + decimals: 18, + accessibility: Accessibility.PUBLIC, + networks: [ + { + network: networks.creditcoin, + ss58Format: 42, + assets: [ + { + symbol: "CTC", + decimals: 18, + votingThreshold: "1000000000000000000", + }, + ], + }, + ], + proposeThreshold: "1000000000000000000000", + weightStrategy: [strategies.balanceOf, strategies.quadraticBalanceOf], + version: "4", + spaceIcon: "creditcoin_enterprise.svg", + seoCoverFilename: "creditcoin_enterprise.jpg", + admins: [], +}; + +module.exports = { + creditcoinEnterpriseConfig: config, +}; diff --git a/next/public/imgs/icons/projects/project-creditcoin.svg b/next/public/imgs/icons/projects/project-creditcoin.svg new file mode 100644 index 00000000..a0b11cbf --- /dev/null +++ b/next/public/imgs/icons/projects/project-creditcoin.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/next/public/imgs/icons/space/creditcoin_enterprise.svg b/next/public/imgs/icons/space/creditcoin_enterprise.svg new file mode 100644 index 00000000..a0b11cbf --- /dev/null +++ b/next/public/imgs/icons/space/creditcoin_enterprise.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +