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

Update config scheman for custom announcement banner #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
58 changes: 52 additions & 6 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"properties": {
"network": {
"type": "string",
"enum": ["mainnet", "testnet", "devnet"]
"enum": [
"mainnet",
"testnet",
"devnet"
]
},
"prelaunch_markets": {
"type": "array",
Expand Down Expand Up @@ -135,7 +139,11 @@
"description": "Ongoing survey configs for typeform survey widget",
"items": {
"type": "object",
"required": ["surveyLink", "endTime", "pages"],
"required": [
"surveyLink",
"endTime",
"pages"
],
"properties": {
"message": {
"type": "string"
Expand Down Expand Up @@ -218,7 +226,10 @@
"description": "List of banner information to be displayed over the TradingView chart for the required market",
"items": {
"type": "object",
"required": ["market_id", "content"],
"required": [
"market_id",
"content"
],
"properties": {
"market_id": {
"$ref": "#/$defs/market_id"
Expand Down Expand Up @@ -388,7 +399,10 @@
"additional_ibc_token_info": {
"type": "object",
"description": "Information for token that (1) is not added on Carbon blockchain or (2) requires packet forwarding.",
"required": ["baseDenom", "chainRoutes"],
"required": [
"baseDenom",
"chainRoutes"
],
"properties": {
"baseDenom": {
"type": "string",
Expand Down Expand Up @@ -428,7 +442,10 @@
"description": "List of perp pool banners",
"items": {
"type": "object",
"required": ["perp_pool_id", "title"],
"required": [
"perp_pool_id",
"title"
],
"properties": {
"perp_pool_id": {
"$ref": "#/$defs/perp_pool_id"
Expand Down Expand Up @@ -472,6 +489,35 @@
}
},
"additionalProperties": false
},
"announcement_banner": {
"type": "object",
"description": "Custom announcement banner through all or only on specificed paths",
"required": [
"content"
],
"patternProperties": {
"show_from": {
"$ref": "#/$defs/show_from"
},
"show_until": {
"$ref": "#/$defs/show_until"
},
"content": {
"$ref": "#/$defs/content"
},
"hideable": {
"$ref": "#/$defs/hideable"
},
"show_only_on": {
"type": "array",
"description": "List of paths that announcement will be show on. Empty array will be shown on all paths",
"items": {
"type": "string"
},
"minItems": 0
}
}
}
}
}
}
Loading