diff --git a/src/chains/mainnet/genesisl1.json b/src/chains/mainnet/genesisl1.json new file mode 100644 index 00000000..119cd614 --- /dev/null +++ b/src/chains/mainnet/genesisl1.json @@ -0,0 +1,8 @@ +{ + "chain_name": "genesisL1", + "coingecko": "genesisL1", + "api": "https://api.genesisl1.org", + "sdk_version": "0.42.4", + "addr_prefix": "genesis", + "logo": "https://raw.githubusercontent.com/alpha-omega-labs/bashscripts/main/genesisl1.png" +} \ No newline at end of file diff --git a/src/lang/locales/en.json b/src/lang/locales/en.json index 9fb9904c..81f7f12b 100644 --- a/src/lang/locales/en.json +++ b/src/lang/locales/en.json @@ -28,6 +28,7 @@ "injective": "Injective Protocal", "vidulum": "Vidulum", "kichain": "KI Chain", + "genesisL1": "Genesis L1", "staking": "Staking", "governance": "Governance", diff --git a/src/libs/data/data.js b/src/libs/data/data.js index 8c9a5999..ddc412d3 100644 --- a/src/libs/data/data.js +++ b/src/libs/data/data.js @@ -280,6 +280,8 @@ export function formatTokenDenom(tokenDenom) { denom = 'IBC...' } else if (denom.startsWith('NANOLIKE')) { denom = 'LIKE' + } else if (denom.startsWith('APHOTON')) { + denom = 'PHOTON' } return denom @@ -291,7 +293,7 @@ export function getUnitAmount(amount, denom) { if (denom.startsWith('basecro')) { return String((Number(amount) * 100000000).toFixed()) } - if (denom.startsWith('rowan')) { + if (denom.startsWith('rowan') || denom.startsWith('aphoton')) { // eslint-disable-next-line no-undef return (BigInt(amount) * 1000000000000000000n).toString() } @@ -308,7 +310,7 @@ export function formatTokenAmount(tokenAmount, fraction = 2, denom = 'uatom') { // eslint-disable-next-line no-undef amount = Number(BigInt(Number(tokenAmount)) / 1000000000000000000n) // } - } else if (denom.startsWith('rowan')) { + } else if (denom === 'rowan' || denom === 'aphoton') { // eslint-disable-next-line no-undef amount = Number(BigInt(Number(tokenAmount)) / 1000000000000000000n) // }