Skip to content

Commit

Permalink
update cgid usage (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyParish69 authored Aug 6, 2024
1 parent 1ac66ec commit 6c994e0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 100 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/utility/generate_assetlist_functions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -822,45 +822,24 @@ export function setImages(asset_data) {

export function setCoinGeckoId(asset_data) {

let trace_types = [];
let coingecko_id;

if (asset_data.source_asset.chain_name === asset_data.chainName) {

trace_types = [
"additional-mintage"
];

asset_data.chain_reg.coingecko_id = chain_reg.getAssetPropertyWithTraceCustom(
asset_data.source_asset.chain_name,
asset_data.source_asset.base_denom,
"coingecko_id",
trace_types
asset_data.chain_reg.coingecko_id = getAssetProperty(
asset_data.source_asset,
"coingecko_id"
);

}

if (asset_data.zone_asset.override_properties?.coingecko_id) {
coingecko_id = asset_data.zone_asset.override_properties?.coingecko_id;
asset_data.frontend.coingeckoId = coingecko_id;
asset_data.asset_detail.coingeckoId = coingecko_id;
return;
} else {
coingecko_id = getAssetProperty(
asset_data.canonical_asset,
"coingecko_id"
);
}

trace_types = [
"ibc",
"ibc-cw20",
"additional-mintage",
"test-mintage"
];

coingecko_id = chain_reg.getAssetPropertyWithTraceCustom(
asset_data.canonical_asset.chain_name,
asset_data.canonical_asset.base_denom,
"coingecko_id",
trace_types
);

asset_data.frontend.coingeckoId = coingecko_id;
asset_data.asset_detail.coingeckoId = coingecko_id;

Expand Down
3 changes: 3 additions & 0 deletions language_files/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
},
"BTC": {
"description": "Bitcoin, the first and most well-known cryptocurrency, allows decentralized peer-to-peer transactions on a secure blockchain network, serving as \"digital gold.\"\n\nBitcoin, often referred to as BTC, is the first and most well-known cryptocurrency, introduced in 2009 by an anonymous entity known as Satoshi Nakamoto. It was designed as a decentralized digital currency, allowing peer-to-peer transactions without the need for a central authority or intermediary. Bitcoin operates on a technology called blockchain, a distributed ledger that records all transactions across a network of computers. The security and integrity of the blockchain are maintained through a process called mining, where participants solve complex mathematical problems to validate and add new transactions to the blockchain. Bitcoin's decentralized nature and limited supply, capped at 21 million coins, have contributed to its status as \"digital gold\" and a store of value.\n\nBitcoin has significantly influenced the financial world, inspiring the development of thousands of other cryptocurrencies and blockchain technologies. Its adoption has grown over the years, with numerous merchants and service providers accepting it as a payment method. Additionally, Bitcoin has become a popular investment asset, attracting both individual and institutional investors. Despite its volatility and regulatory challenges, Bitcoin remains a dominant force in the crypto space, symbolizing the potential for a more open and inclusive financial system. Its impact extends beyond finance, as it continues to drive innovation in areas such as decentralized finance (DeFi), supply chain management, and digital identity verification."
},
"ETH(dot)axl": {
"description": "Ethereum (ETH) is a decentralized, open-source blockchain system featuring smart contract functionality. It's the native cryptocurrency of the Ethereum platform, often regarded as the second most popular digital currency after Bitcoin. Ethereum was proposed in late 2013 and development was crowdfunded in 2014, leading to its network going live on 30 July 2015.\n\nETH, as a digital currency, is used for a variety of purposes within the Ethereum ecosystem, including the execution of decentralized smart contracts and as a mode of payment. Unlike Bitcoin, Ethereum was designed to be a platform for applications that can operate without the need for intermediaries, using blockchain technology. This has made Ethereum a leading platform for various applications, including decentralized finance (DeFi), non-fungible tokens (NFTs), and more. Ethereum is constantly evolving, with a significant upgrade termed Ethereum 2.0, which aims to improve its scalability, security, and sustainability."
}
},
"osmosistestnet": {}
Expand Down
7 changes: 2 additions & 5 deletions osmo-test-5/generated/asset_detail/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
{
"name": "KYVE Kaon",
"symbol": "KYVE",
"description": "The native utility token of the Kaon testnet version of KYVE.",
"coingeckoID": "kyve-network"
"description": "The native utility token of the Kaon testnet version of KYVE."
},
{
"name": "Quicksilver Testnet",
Expand Down Expand Up @@ -86,14 +85,12 @@
{
"name": "ixo",
"symbol": "IXO",
"description": "The native token of IXO Chain",
"coingeckoID": "ixo"
"description": "The native token of IXO Chain"
},
{
"name": "Archway Testnet",
"symbol": "CONST",
"description": "The native token of Archway Test Network.",
"coingeckoID": "archway",
"websiteURL": "https://archway.io/",
"twitterURL": "https://twitter.com/archwayHQ"
}
Expand Down
3 changes: 0 additions & 3 deletions osmo-test-5/generated/frontend/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kyve/images/kyve-token.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/kyve/images/kyve-token.svg"
},
"coingeckoId": "kyve-network",
"price": {
"poolId": "4",
"denom": "uosmo"
Expand Down Expand Up @@ -781,7 +780,6 @@
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/impacthub/images/ixo.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/impacthub/images/ixo.svg"
},
"coingeckoId": "ixo",
"price": {
"poolId": "254",
"denom": "uosmo"
Expand Down Expand Up @@ -837,7 +835,6 @@
"png": "https://raw.githubusercontent.com/cosmos/chain-registry/master/archway/images/archway.png",
"svg": "https://raw.githubusercontent.com/cosmos/chain-registry/master/archway/images/archway.svg"
},
"coingeckoId": "archway",
"price": {
"poolId": "501",
"denom": "uosmo"
Expand Down
46 changes: 12 additions & 34 deletions osmosis-1/generated/asset_detail/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
"coingeckoID": "axlusdc"
},
{
"name": "Ethereum",
"symbol": "ETH",
"description": "Ethereum is a decentralized blockchain platform for running smart contracts and dApps, with Ether (ETH) as its native cryptocurrency, enabling a versatile ecosystem beyond just digital currency.\n\nEthereum, symbolized as ETH, is a groundbreaking cryptocurrency and blockchain platform introduced in 2015 by a team led by Vitalik Buterin. Unlike Bitcoin, which primarily serves as a digital currency, Ethereum is designed to be a decentralized platform for running smart contracts and decentralized applications (dApps). These smart contracts are self-executing contracts with the terms directly written into code, enabling trustless and automated transactions without intermediaries. Ethereum's blockchain can host a wide variety of applications, from financial services to gaming, making it a versatile and powerful tool in the world of blockchain technology.\n\nOne of the most notable features of Ethereum is its native cryptocurrency, Ether (ETH), which is used to pay for transaction fees and computational services on the network. Ethereum has also been the backbone for the explosive growth of decentralized finance (DeFi), which seeks to recreate traditional financial systems with blockchain-based alternatives. Additionally, Ethereum is undergoing a significant upgrade known as Ethereum 2.0, which aims to improve scalability, security, and energy efficiency through a shift from proof-of-work (PoW) to proof-of-stake (PoS) consensus mechanisms. This transition is expected to enhance the network's performance and reduce its environmental impact, further solidifying Ethereum's position as a leading platform in the blockchain ecosystem.",
"coingeckoID": "ethereum"
"name": "Ethereum (Axelar)",
"symbol": "ETH.axl",
"description": "Ethereum (ETH) is a decentralized, open-source blockchain system featuring smart contract functionality. It's the native cryptocurrency of the Ethereum platform, often regarded as the second most popular digital currency after Bitcoin. Ethereum was proposed in late 2013 and development was crowdfunded in 2014, leading to its network going live on 30 July 2015.\n\nETH, as a digital currency, is used for a variety of purposes within the Ethereum ecosystem, including the execution of decentralized smart contracts and as a mode of payment. Unlike Bitcoin, Ethereum was designed to be a platform for applications that can operate without the need for intermediaries, using blockchain technology. This has made Ethereum a leading platform for various applications, including decentralized finance (DeFi), non-fungible tokens (NFTs), and more. Ethereum is constantly evolving, with a significant upgrade termed Ethereum 2.0, which aims to improve its scalability, security, and sustainability."
},
{
"name": "Wrapped Bitcoin (Ethereum via Axelar)",
Expand Down Expand Up @@ -2063,63 +2062,55 @@
"name": "Ethereum (Picasso)",
"symbol": "ETH.pica",
"description": "The native token of Ethereum, bridged via IBC.\n\nEther is the native token of the Ethereum blockchain. It powers a wide range of decentralized applications and smart contracts on the platform. This specific version has been bridged through Picasso's implementation of IBC on Ethereum.",
"coingeckoID": "ethereum",
"websiteURL": "https://ethereum.org/",
"twitterURL": "https://twitter.com/ethereum"
},
{
"name": "Dai Stablecoin (Picasso)",
"symbol": "DAI.pica",
"description": "A stablecoin issued by Maker Protocol.\n\nDAI, a stablecoin issued by the Maker Protocol, maintains a value pegged to the US dollar. This specific version has been bridged through Picasso's implementation of IBC on Ethereum.",
"coingeckoID": "dai",
"websiteURL": "https://makerdao.com/",
"twitterURL": "https://twitter.com/MakerDAO"
},
{
"name": "Frax Share (Picasso)",
"symbol": "FXS.pica",
"description": "The governance token of the Frax ecosystem.\n\nFrax Shares is the governance and utility token of the Frax Protocol. It plays a crucial role in maintaining the stability of the FRAX stablecoin. Holders of FXS can participate in governance decisions and benefit from the protocol's growth and revenue, as the token captures fees.",
"coingeckoID": "frax-share",
"websiteURL": "https://www.frax.com/",
"twitterURL": "https://twitter.com/fraxfinance"
},
{
"name": "Frax (Picasso)",
"symbol": "FRAX.pica",
"description": "The first fractional-algorithmic stablecoin by Frax Finance.\n\nFRAX is a stablecoin designed to maintain a stable value to a peg of the US dollar. It is issued by the Frax Protocol, which employs a hybrid approach combining algorithmic mechanisms with collateral backing.",
"coingeckoID": "frax",
"websiteURL": "https://www.frax.com/",
"twitterURL": "https://twitter.com/fraxfinance"
},
{
"name": "Tether USD (Ethereum) (Picasso)",
"symbol": "USDT.eth.pica",
"description": "A stablecoin issued by Tether that is pegged 1:1 to the USD.\n\nUSDT, or Tether, is a widely used stablecoin pegged to the US dollar, designed to maintain a stable value and facilitate transactions. This specific version has been bridged through Picasso's implementation of IBC on Ethereum.",
"coingeckoID": "tether",
"websiteURL": "https://www.tether.to/",
"twitterURL": "https://twitter.com/Tether_to"
},
{
"name": "Staked FRAX (Picasso)",
"symbol": "sFRAX.pica",
"description": "An ERC4626 staking vault that distributes part of the Frax Protocol yield weekly to stakers denominated in FRAX stablecoins. \n\nStaked FRAX (sFRAX) is an ERC4626 staking vault that distributes part of the Frax Protocol yield weekly to stakers denominated in FRAX stablecoins. The sFRAX token represents pro rata deposits within the vault and is always withdrawable for FRAX stablecoins at the pro rata rate at all times.",
"coingeckoID": "staked-frax",
"websiteURL": "https://www.frax.com/",
"twitterURL": "https://twitter.com/fraxfinance"
},
{
"name": "Frax Ether (Picasso)",
"symbol": "frxETH.pica",
"description": "A liquid ETH staking derivative designed to leverage the Frax ecosystem.\n\nFrxETH is a stablecoin that is loosely pegged to ETH, meaning that 1 frxETH always represents 1 ETH.",
"coingeckoID": "frax-ether",
"websiteURL": "https://www.frax.com/",
"twitterURL": "https://twitter.com/fraxfinance"
},
{
"name": "Staked Frax Ether (Picasso)",
"symbol": "sfrxETH.pica",
"description": "A Liquid Staking Derivative designed to accrue the staking yield of the Frax ETH validators.\n\nSFRXETH is a ERC-4626 vault designed to accrue the staking yield of the Frax ETH validators. It allows users to earn staking yield on their frxETH, a type of Frax Ether.",
"coingeckoID": "staked-frax-ether",
"websiteURL": "https://www.frax.com/",
"twitterURL": "https://twitter.com/fraxfinance"
},
Expand Down Expand Up @@ -2211,50 +2202,42 @@
{
"name": "Pepe (Picasso)",
"symbol": "PEPE.pica",
"description": "PEPE is a deflationary memecoin launched on Ethereum. ",
"coingeckoID": "pepe"
"description": "PEPE is a deflationary memecoin launched on Ethereum. "
},
{
"name": "Curve DAO (Picasso)",
"symbol": "CRV.pica",
"description": "CRV is the governance token for Curve Finance.",
"coingeckoID": "curve-dao-token"
"description": "CRV is the governance token for Curve Finance."
},
{
"name": "Renzo Restaked ETH (Picasso)",
"symbol": "ezETH.pica",
"description": "A Liquid Restaking Token (LRT) and Strategy Manager for EigenLayer.",
"coingeckoID": "renzo-restaked-eth"
"description": "A Liquid Restaking Token (LRT) and Strategy Manager for EigenLayer."
},
{
"name": "Ethena USDe (Picasso)",
"symbol": "USDe.pica",
"description": "Ethena USDe is a synthetic dollar protocol built on Ethereum.",
"coingeckoID": "ethena-usde"
"description": "Ethena USDe is a synthetic dollar protocol built on Ethereum."
},
{
"name": "Ethena (Picasso)",
"symbol": "ENA.pica",
"description": "The native governance token of Ethena.",
"coingeckoID": "ethena"
"description": "The native governance token of Ethena."
},
{
"name": "ether.fi Staked ETH (Picasso)",
"symbol": "eETH.pica",
"description": "eETH is a natively restaked liquid staking token on Ethereum.",
"coingeckoID": "ether-fi-staked-eth"
"description": "eETH is a natively restaked liquid staking token on Ethereum."
},
{
"name": "Dinero Staked ETH (Picasso)",
"symbol": "pxETH.pica",
"description": "pxETH is built on top of the Pirex platform and forms the foundation of the Dinero protocol.",
"coingeckoID": "dinero-staked-eth"
"description": "pxETH is built on top of the Pirex platform and forms the foundation of the Dinero protocol."
},
{
"name": "crvUSD (Picasso)",
"symbol": "crvUSD.pica",
"description": "A collateralized-debt-position (CDP) stablecoin by Curve DAO.",
"coingeckoID": "crvusd"
"description": "A collateralized-debt-position (CDP) stablecoin by Curve DAO."
},
{
"name": "WiliHall",
Expand All @@ -2275,39 +2258,34 @@
"name": "Tether USD (Solana) (Picasso)",
"symbol": "USDT.sol.pica",
"description": "Tether, issued natively on Solana.",
"coingeckoID": "tether",
"websiteURL": "https://Tether.to/",
"twitterURL": "https://twitter.com/tether_to"
},
{
"name": "Edgevana Staked SOL (Picasso)",
"symbol": "edgeSOL.pica",
"description": "A representative token for staked SOL, derived through the process of liquid staking SOL using the Edgevana protocol.",
"coingeckoID": "edgevana-staked-sol",
"websiteURL": "https://edgevana.com/",
"twitterURL": "https://twitter.com/edgevana"
},
{
"name": "Liquid Staking Token (Picasso)",
"symbol": "LST.pica",
"description": "A representative token for staked SOL, derived through the process of liquid staking SOL using the MarginFi protocol.",
"coingeckoID": "liquid-staking-token",
"websiteURL": "https://www.marginfi.com/",
"twitterURL": "https://twitter.com/marginfi"
},
{
"name": "Jito Staked SOL (Picasso)",
"symbol": "jitoSOL.pica",
"description": "A representative token for staked SOL, derived through the process of liquid staking SOL using Jito.",
"coingeckoID": "jito-staked-sol",
"websiteURL": "https://jito.network/",
"twitterURL": "https://twitter.com/jito_foundation"
},
{
"name": "Solana (Picasso)",
"symbol": "SOL.pica",
"description": "SOL is the native cryptocurrency of the Solana blockchain.",
"coingeckoID": "wrapped-solana"
"description": "SOL is the native cryptocurrency of the Solana blockchain."
},
{
"name": "Tether USD",
Expand Down
Loading

0 comments on commit 6c994e0

Please sign in to comment.