-
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.
Merge branch 'master' into feat/add-sample-market
- Loading branch information
Showing
12 changed files
with
2,022 additions
and
744 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,61 +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" | ||
], | ||
"properties": { | ||
"network": { | ||
"type": "string", | ||
"enum": [ | ||
"mainnet", | ||
"testnet", | ||
"devnet" | ||
] | ||
}, | ||
"featured_markets": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/featured_market" | ||
} | ||
}, | ||
"blacklisted_markets": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_market" | ||
} | ||
}, | ||
"blacklisted_pools": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_pool" | ||
} | ||
}, | ||
"blacklisted_tokens": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/blacklisted_token" | ||
} | ||
"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" | ||
}, | ||
"blacklisted_pool": { | ||
"type": "string", | ||
"pattern": "^\\d+$" | ||
}, | ||
"blacklisted_token": { | ||
"type": "string" | ||
"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,12 +1,15 @@ | ||
{ | ||
"network": "devnet", | ||
"featured_markets": [ | ||
"BTC_PERP.USDC", | ||
"swth_eth", | ||
"swth_nexo", | ||
"swth_nexo" | ||
], | ||
"blacklisted_markets": [], | ||
"blacklisted_pools": [], | ||
"blacklisted_tokens": [] | ||
} | ||
"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.