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

Add quotesDisabled to Frontend Assetlist #1851

Closed
Closed
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
17 changes: 16 additions & 1 deletion .github/workflows/utility/generate_assetlist_functions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ export function setUnstableStatus(asset_data) {

export function setDisabledStatus(asset_data) {

asset_data.frontend.disabled = asset_data.zone_asset?.osmosis_disabled || asset_data.zone_asset?.osmosis_unstable;
asset_data.frontend.disabled = asset_data.zone_asset?.osmosis_disabled;

}

Expand Down Expand Up @@ -1340,6 +1340,20 @@ export function setContract(asset_data) {

}

export function setQuotesDisabled(asset_data) {

if (asset_data.zone_asset?.base_denom === "ibc/0FA9232B262B89E77D1335D54FB1E1F506A92A7E4B51524B400DC69C68D28372") {
console.log(asset_data.zone_asset?.base_denom);
console.log(asset_data.zone_asset?.quotes_disabled);
}
asset_data.frontend.quotesDisabled = asset_data.zone_asset?.quotes_disabled;
if (asset_data.zone_asset?.base_denom === "ibc/0FA9232B262B89E77D1335D54FB1E1F506A92A7E4B51524B400DC69C68D28372") {
console.log(asset_data.zone_asset?.base_denom);
console.log(asset_data.frontend.quotesDisabled);
}

}

export function setDescription(asset_data) {

let description, extended_description;
Expand Down Expand Up @@ -1418,6 +1432,7 @@ export function reformatFrontendAsset(asset_data) {
verified: asset_data.frontend.verified ?? false,
unstable: asset_data.frontend.unstable ?? false,
disabled: asset_data.frontend.disabled ?? false,
quotesDisabled: asset_data.frontend.quotesDisabled ?? false,
preview: asset_data.frontend.preview ?? false,
tooltipMessage: asset_data.frontend.tooltipMessage,
sortWith: asset_data.frontend.sortWith,
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/utility/generate_assetlist_new.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const generateAssets = async (
assetlist.setKeywords(asset_data);
assetlist.setTypeAsset(asset_data);

assetlist.setQuotesDisabled(asset_data);
assetlist.setIsAlloyed(asset_data);
assetlist.setContract(asset_data);

Expand Down
3 changes: 3 additions & 0 deletions language_files/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
},
"USDC(dot)e(dot)matic(dot)axl": {
"description": "USDC is a fully collateralized US Dollar stablecoin developed by CENTRE, the open source project with Circle being the first of several forthcoming issuers."
},
"MARS(dot)mars": {
"description": "Mars Protocol token (pre-migration)\n\nLend, borrow and earn with an autonomous credit protocol in the Cosmos universe. Open to all, closed to none."
}
},
"osmosistestnet": {
Expand Down
8 changes: 4 additions & 4 deletions osmo-test-5/generated/chain_registry/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,17 @@
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg"
},
"images": [
{
"image_sync": {
"chain_name": "marstestnet",
"base_denom": "umars"
},
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg"
}
]
},
Expand Down
26 changes: 22 additions & 4 deletions osmo-test-5/generated/frontend/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand All @@ -51,6 +52,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -106,6 +108,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -165,6 +168,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false,
"sortWith": {
"chainName": "axelar",
Expand Down Expand Up @@ -238,6 +242,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false,
"sortWith": {
"chainName": "axelar",
Expand Down Expand Up @@ -294,6 +299,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand All @@ -303,8 +309,8 @@
"symbol": "MARS",
"decimals": 6,
"logoURIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg"
},
"categories": [],
"transferMethods": [
Expand Down Expand Up @@ -334,8 +340,8 @@
"symbol": "MARS",
"decimals": 6,
"logoURIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg"
}
}
],
Expand All @@ -345,6 +351,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -395,6 +402,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -446,6 +454,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -501,6 +510,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -555,6 +565,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -608,6 +619,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -664,6 +676,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -713,6 +726,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -768,6 +782,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -823,6 +838,7 @@
"verified": true,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -878,6 +894,7 @@
"verified": false,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
},
{
Expand Down Expand Up @@ -927,6 +944,7 @@
"verified": false,
"unstable": false,
"disabled": false,
"quotesDisabled": false,
"preview": false
}
]
Expand Down
7 changes: 3 additions & 4 deletions osmosis-1/generated/asset_detail/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,9 @@
"description": "USDC is a fully collateralized US Dollar stablecoin developed by CENTRE, the open source project with Circle being the first of several forthcoming issuers."
},
{
"name": "Mars Hub",
"symbol": "MARS",
"description": "Mars protocol token\n\nLend, borrow and earn with an autonomous credit protocol in the Cosmos universe. Open to all, closed to none.",
"coingeckoID": "mars-protocol-a7fcbcfb-fd61-4017-92f0-7ee9f9cc6da3",
"name": "Mars Protocol token (Mars Hub)",
"symbol": "MARS.mars",
"description": "Mars Protocol token (pre-migration)\n\nLend, borrow and earn with an autonomous credit protocol in the Cosmos universe. Open to all, closed to none.",
"websiteURL": "https://www.marsprotocol.io/",
"twitterURL": "https://twitter.com/mars_protocol"
},
Expand Down
78 changes: 69 additions & 9 deletions osmosis-1/generated/chain_registry/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -8209,7 +8209,7 @@
]
},
{
"description": "Mars protocol token",
"description": "Mars Protocol token (pre-migration)",
"denom_units": [
{
"denom": "ibc/573FCD90FACEE750F55A8864EF7D38265F07E5A9273FA0E8DAFD39951332B580",
Expand All @@ -8219,16 +8219,24 @@
]
},
{
"denom": "mars",
"denom": "MARS.old",
"exponent": 6
}
],
"type_asset": "ics20",
"base": "ibc/573FCD90FACEE750F55A8864EF7D38265F07E5A9273FA0E8DAFD39951332B580",
"name": "Mars Hub",
"display": "mars",
"symbol": "MARS",
"display": "MARS.old",
"symbol": "MARS.old",
"traces": [
{
"type": "legacy-mintage",
"counterparty": {
"chain_name": "neutron",
"base_denom": "factory/neutron1ndu2wvkrxtane8se2tr48gv7nsm46y5gcqjhux/MARS"
},
"provider": "Mars Hub"
},
{
"type": "ibc",
"counterparty": {
Expand All @@ -8243,19 +8251,19 @@
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg"
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token-ibc.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token-ibc.svg"
},
"images": [
{
"image_sync": {
"chain_name": "mars",
"base_denom": "umars"
},
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token.svg",
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token-ibc.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/mars/images/mars-token-ibc.svg",
"theme": {
"primary_color_hex": "#d43c3f"
"primary_color_hex": "#FFFFFF"
}
}
]
Expand Down Expand Up @@ -22804,6 +22812,58 @@
"website": "https://github.com/raphaellafar/Cosmo",
"twitter": "https://x.com/CosmoClub84"
}
},
{
"description": "Mars Protocol is a cross-collateralized Money Market Protocol on Neutron and Osmosis",
"denom_units": [
{
"denom": "ibc/B67DF59507B3755EEDE0866C449445BD54B4DA82CCEBA89D775E53DC35664255",
"exponent": 0,
"aliases": [
"umars"
]
},
{
"denom": "MARS",
"exponent": 6
}
],
"type_asset": "ics20",
"base": "ibc/B67DF59507B3755EEDE0866C449445BD54B4DA82CCEBA89D775E53DC35664255",
"name": "Mars Hub",
"display": "MARS",
"symbol": "MARS",
"traces": [
{
"type": "ibc",
"counterparty": {
"chain_name": "neutron",
"base_denom": "factory/neutron1ndu2wvkrxtane8se2tr48gv7nsm46y5gcqjhux/MARS",
"channel_id": "channel-10"
},
"chain": {
"channel_id": "channel-874",
"path": "transfer/channel-874/factory/neutron1ndu2wvkrxtane8se2tr48gv7nsm46y5gcqjhux/MARS"
}
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg"
},
"images": [
{
"image_sync": {
"chain_name": "neutron",
"base_denom": "factory/neutron1ndu2wvkrxtane8se2tr48gv7nsm46y5gcqjhux/MARS"
},
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/neutron/images/mars-token.svg",
"theme": {
"primary_color_hex": "#ef4136"
}
}
]
}
]
}
Loading
Loading