Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/maintenance page docs #67

Merged
merged 5 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/markets/pr_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ Each json file under the [configs](../../configs) folder correspond to their res
|`blacklisted_tokens` |`string[]` |true |The array of token denoms that are blacklisted. A token can be blacklisted for a number of reasons, such as it being invalid/deprecated/etc. |The token denoms listed here **MUST** match the token denoms listed under the Carbon [Tokens API](https://api.carbon.network/carbon/coin/v1/tokens?pagination.limit=10000). |
|`transfer_options` |`object` |true |A collection of blockchain networks along with their associated priority numbers, used to establish their order in the transfer options list for deposit and withdrawal forms. |Blockchain network listed here **MUST** match the valid chainName of the bridges listed under BridgeAll RPC call.<br /><br /> To view the values of BridgeAll RPC call, simply run `yarn get-bridges [network]` on the command line. Sample for mainnet: `yarn get-bridges mainnet`|
|`network_fees` |`object` |true |List of token denoms along with their associated priority numbers, used to establish their default order in the network fees preference list. |Token denoms listed here **MUST** match the valid denoms listed under MinGasPriceAll RPC call.<br /><br /> To view the values of MinGasPriceAll RPC call, simply run `yarn get-min-gas-prices [network]` on the command line. Sample for mainnet: `yarn get-min-gas-prices mainnet`|
|`maintenance` |`Maintenance` |false |Object that dictates whether or not the maintenance page is displayed on each particular network. The maintenance page is displayed when the Carbon chain is down (i.e. blocks are not moving). | If the `maintenance` property is omitted, the maintenance page will not be shown.

## Maintenance Data Structure
|Field |Type |Required |Description |Notes |
|---|---|---|---|---|
|`title` |`string` |false |Title to be shown on the maintenance page |If not defined, the title defaults to `Service Maintenance`. |
|`message` |`string` |false |Description to be shown on the maintenace page (below the title). |If not defined, the message will default to `Website is temporily unavailable due to planned maintenance. We will be back soon.`. |
14 changes: 14 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@
}
},
"additionalProperties": false
},
"maintenance": {
"type": "object",
"description": "Dictates whether or not the maintenance page is displayed on each particular network.",
"properties": {
"title": {
"type": "string",
"description": "Title shown on maintenance page (optional). If not provided, the title of the page will default to \"Service Maintenance\""
},
"message": {
"type": "string",
"description": "Description shown on maintenance page (optional). If not provided, the description of the page will default to \"Website is temporily unavailable due to planned maintenance. We will be back soon.\""
}
}
}
},
"$defs": {
Expand Down
3 changes: 0 additions & 3 deletions configs/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,5 @@
"bneo.1.14.e2e5f6": 20,
"eth.1.2.942d87": 21,
"usdc.1.2.343151": 22
},
"maintenance": {
"title": ""
}
}