Skip to content

Commit

Permalink
Remove remnants of ibc supply map + formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-thong committed Oct 26, 2023
1 parent 461b55e commit 0d39764
Show file tree
Hide file tree
Showing 8 changed files with 251 additions and 266 deletions.
84 changes: 38 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,49 @@ Currently, each JSON file contain the following data on its corresponding networ
- blacklisted markets
- blacklisted pools
- blacklisted tokens
- total supply of IBC fee tokens on Mintscan
- default blockchain transfer option order in deposit/withdrawal forms dropdown
- default network token fee order

More metadata will be added in the future if required by the Demex frontend. Please see below the structure of the JSON file:

```
```json
{
"network": "testnet",
"featured_markets": [
"market_1",
"market_2",
"market_3",
...
],
"blacklisted_markets": [
"blacklisted_market_1",
"blacklisted_market_2",
"blacklisted_market_3",
...
],
"blacklisted_pools": [
"blacklisted_pool_1",
"blacklisted_pool_2",
"blacklisted_pool_3",
...
],
"blacklisted_tokens": [
"blacklisted_token_1",
"blacklisted_token_2",
"blacklisted_token_3",
...
],
"": [{
denom: "ibc-token-denom-1",
amount: "1000000",
}, {
denom: "ibc-token-denom-2",
amount: "1000000000",
}],
"transfer_options": {
"chain_1": 0,
"chain_2": 1,
"chain_3": 2,
...
},
"network_fees": {
"token_denom_1": 0,
"token_denom_2": 1,
"token_denom_3": 2,
...
}
"network": "testnet",
"featured_markets": [
"market_1",
"market_2",
"market_3",
...
],
"blacklisted_markets": [
"blacklisted_market_1",
"blacklisted_market_2",
"blacklisted_market_3",
...
],
"blacklisted_pools": [
"blacklisted_pool_1",
"blacklisted_pool_2",
"blacklisted_pool_3",
...
],
"blacklisted_tokens": [
"blacklisted_token_1",
"blacklisted_token_2",
"blacklisted_token_3",
...
],
"transfer_options": {
"chain_1": 0,
"chain_2": 1,
"chain_3": 2,
...
},
"network_fees": {
"token_denom_1": 0,
"token_denom_2": 1,
"token_denom_3": 2,
...
}
}
```
166 changes: 83 additions & 83 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -1,89 +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",
"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
},
"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"
"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"
}
}
}
28 changes: 14 additions & 14 deletions configs/devnet.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"network": "devnet",
"featured_markets": [],
"blacklisted_markets": [
"swth_btc2"
],
"blacklisted_pools": [],
"blacklisted_tokens": [],
"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
}
}
Loading

0 comments on commit 0d39764

Please sign in to comment.