Skip to content

Commit

Permalink
Add new Creditcoin space (#1054)
Browse files Browse the repository at this point in the history
* Add new Creditcoin space

* Update space icons
  • Loading branch information
hyifeng authored Oct 8, 2024
1 parent 225cb32 commit 4b9d6e4
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/packages/backend/src/scripts/init-spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -71,6 +72,7 @@ const spaces = [
stellaSwapConfig,
stafiConfig,
creditcoinConfig,
creditcoinEnterpriseConfig,
dotaConfig,
];

Expand Down
2 changes: 1 addition & 1 deletion backend/packages/backend/src/scripts/spaces/creditcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
};
22 changes: 22 additions & 0 deletions next/public/imgs/icons/projects/project-creditcoin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions next/public/imgs/icons/space/creditcoin_enterprise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b9d6e4

Please sign in to comment.