-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ibc_tokens_total_supply config (#49)
* Remove ibc_tokens_total_supply config * Resolve code comments * Set node version in github actions workflow * Add node-gyp as per instructions on github workflow actions * Add ignore-engines flag for node-gyp add command * Upgrade carbon-js-sdk * Set python version to v2.7 * Remove gyp install * Set node version to 18 on github job * Set node version to v18 * Rewrite github actions commands * Remove remnants of ibc supply map + formatting * Remove ellipsis symbols --------- Co-authored-by: Thong Yuan Yu Sarah <[email protected]>
- Loading branch information
1 parent
ee45ae4
commit 1f5ea01
Showing
12 changed files
with
254 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,18 +10,17 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Node-js version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.14.2' | ||
|
||
- name: Install Dependencies | ||
uses: borales/[email protected] | ||
with: | ||
cmd: install --ignore-engines # will run `yarn install` command | ||
run: yarn install --ignore-engines # will run `yarn install` command | ||
|
||
- name: Validate featured markets schema | ||
uses: borales/[email protected] | ||
with: | ||
cmd: validate # validate using json schema | ||
run: yarn validate # validate using json schema | ||
|
||
- name: Test market entries for invalid/duplicate markets | ||
uses: borales/[email protected] | ||
with: | ||
cmd: check-configs mainnet testnet devnet # check using check_configs.ts script | ||
run: yarn check-configs mainnet testnet devnet # check using check_configs.ts script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,89 @@ | ||
{ | ||
"title": "Demex Webapp Config", | ||
"description": "demex-webapp-config is a repository to allow frontends to fetch metadata associated with Demex", | ||
"type": "object", | ||
"required": [ | ||
"network", | ||
"featured_markets", | ||
"blacklisted_markets", | ||
"blacklisted_pools", | ||
"blacklisted_tokens", | ||
"ibc_tokens_total_supply" | ||
], | ||
"properties": { | ||
"network": { | ||
"type": "string", | ||
"enum": [ | ||
"mainnet", | ||
"testnet", | ||
"devnet" | ||
] | ||
}, | ||
"featured_markets": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/featured_market" | ||
} | ||
}, | ||
"blacklisted_markets": { | ||
"type": "array", | ||
"description": "List of blacklisted market names", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_market" | ||
} | ||
}, | ||
"blacklisted_pools": { | ||
"type": "array", | ||
"description": "List of blacklisted pool ids", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_pool" | ||
} | ||
}, | ||
"blacklisted_tokens": { | ||
"type": "array", | ||
"description": "List of blacklisted token denoms", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_token" | ||
} | ||
}, | ||
"ibc_tokens_total_supply": { | ||
"type": "array", | ||
"description": "List of ibc denoms with their respective total supply on Coingecko", | ||
"items": { | ||
"$ref": "#/$defs/ibc_total_supply" | ||
} | ||
}, | ||
"transfer_options": { | ||
"type": "object", | ||
"description": "List of blockchain networks and their priority numbers, used to set their order in deposit and withdrawal forms transfer option dropdown", | ||
"patternProperties": { | ||
".*": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"network_fees": { | ||
"type": "object", | ||
"description": "List of token denoms and their priority numbers, used to set their order in network fee preferences", | ||
"patternProperties": { | ||
".*": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
"title": "Demex Webapp Config", | ||
"description": "demex-webapp-config is a repository to allow frontends to fetch metadata associated with Demex", | ||
"type": "object", | ||
"required": [ | ||
"network", | ||
"featured_markets", | ||
"blacklisted_markets", | ||
"blacklisted_pools", | ||
"blacklisted_tokens", | ||
"transfer_options", | ||
"network_fees" | ||
], | ||
"properties": { | ||
"network": { | ||
"type": "string", | ||
"enum": [ | ||
"mainnet", | ||
"testnet", | ||
"devnet" | ||
] | ||
}, | ||
"featured_markets": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/featured_market" | ||
} | ||
}, | ||
"blacklisted_markets": { | ||
"type": "array", | ||
"description": "List of blacklisted market names", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_market" | ||
} | ||
}, | ||
"blacklisted_pools": { | ||
"type": "array", | ||
"description": "List of blacklisted pool ids", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_pool" | ||
} | ||
}, | ||
"blacklisted_tokens": { | ||
"type": "array", | ||
"description": "List of blacklisted token denoms", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_token" | ||
} | ||
}, | ||
"transfer_options": { | ||
"type": "object", | ||
"description": "List of blockchain networks and their priority numbers, used to set their order in deposit and withdrawal forms transfer option dropdown", | ||
"patternProperties": { | ||
".*": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"$defs": { | ||
"featured_market": { | ||
"type": "string" | ||
}, | ||
"blacklisted_market": { | ||
"type": "string", | ||
"description": "Blacklisted market name" | ||
}, | ||
"blacklisted_pool": { | ||
"type": "string", | ||
"description": "Blacklisted pool id (type: string)", | ||
"pattern": "^\\d+$" | ||
}, | ||
"blacklisted_token": { | ||
"type": "string", | ||
"description": "Blacklisted token denom" | ||
}, | ||
"ibc_total_supply": { | ||
"type": "object", | ||
"description": "Total supply amount of each IBC token listed here", | ||
"required": [ | ||
"denom", | ||
"amount" | ||
], | ||
"properties": { | ||
"denom": { | ||
"type": "string", | ||
"description": "Denom of IBC token on Carbon (e.g. ibc/07FA7831E1920D0C87C9388F86B0108677F6ED0C9DE7E4063F05ED675192405C => STARS)" | ||
}, | ||
"amount": { | ||
"type": "string", | ||
"description": "total supply of each IBC token on Coingecko", | ||
"pattern": "^\\d+$" | ||
} | ||
} | ||
"network_fees": { | ||
"type": "object", | ||
"description": "List of token denoms and their priority numbers, used to set their order in network fee preferences", | ||
"patternProperties": { | ||
".*": { | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"$defs": { | ||
"featured_market": { | ||
"type": "string" | ||
}, | ||
"blacklisted_market": { | ||
"type": "string", | ||
"description": "Blacklisted market name" | ||
}, | ||
"blacklisted_pool": { | ||
"type": "string", | ||
"description": "Blacklisted pool id (type: string)", | ||
"pattern": "^\\d+$" | ||
}, | ||
"blacklisted_token": { | ||
"type": "string", | ||
"description": "Blacklisted token denom" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"network": "devnet", | ||
"featured_markets": [], | ||
"blacklisted_markets": [ | ||
"swth_btc2" | ||
], | ||
"blacklisted_pools": [], | ||
"blacklisted_tokens": [], | ||
"ibc_tokens_total_supply": [], | ||
"transfer_options": {}, | ||
"network_fees": { | ||
"swth": 0, | ||
"usdc": 1, | ||
"eth": 2 | ||
} | ||
} | ||
"network": "devnet", | ||
"featured_markets": [], | ||
"blacklisted_markets": [ | ||
"swth_btc2" | ||
], | ||
"blacklisted_pools": [], | ||
"blacklisted_tokens": [], | ||
"transfer_options": {}, | ||
"network_fees": { | ||
"swth": 0, | ||
"usdc": 1, | ||
"eth": 2 | ||
} | ||
} |
Oops, something went wrong.