Skip to content

Commit

Permalink
quotesDisabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyParish69 committed Aug 17, 2024
1 parent 6e897d5 commit 1f05dbc
Show file tree
Hide file tree
Showing 8 changed files with 555 additions and 65 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/utility/generate_assetlist_functions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,15 @@ export function setContract(asset_data) {

export function setQuotesDisabled(asset_data) {

asset_data.frontend.quotes_disabled = 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.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);
}

}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/utility/generate_assetlist_new.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const generateAssets = async (
assetlist.setKeywords(asset_data);
assetlist.setTypeAsset(asset_data);

assetlist.setQuotesDisabled(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

0 comments on commit 1f05dbc

Please sign in to comment.