diff --git a/config/assets.yml b/config/assets.yml index 0073bddd..f05e64b6 100644 --- a/config/assets.yml +++ b/config/assets.yml @@ -5837,27 +5837,27 @@ stagenet: devnet-amplifier: - uaxl: - denom: "uaxl" + uamplifier: + denom: "uamplifier" native_chain: "axelarnet" - name: "Axelar" - symbol: "AXL" + name: "Amplifier" + symbol: "AMPLIFIER" decimals: 6 image: "/logos/assets/axl.svg" addresses: axelarnet: - ibc_denom: "uaxl" + ibc_denom: "uamplifier" devnet-verifiers: - uaxl: - denom: "uaxl" + uverifiers: + denom: "uverifiers" native_chain: "axelarnet" - name: "Axelar" - symbol: "AXL" + name: "Verifiers" + symbol: "VERIFIERS" decimals: 6 image: "/logos/assets/axl.svg" addresses: axelarnet: - ibc_denom: "uaxl" \ No newline at end of file + ibc_denom: "uverifiers" \ No newline at end of file diff --git a/config/chains.yml b/config/chains.yml index 30db9d83..12de49f8 100644 --- a/config/chains.yml +++ b/config/chains.yml @@ -4331,9 +4331,9 @@ devnet-amplifier: timeout: lcd: 3000 native_token: - name: "Axelar" - symbol: "AXL" - denom: "uaxl" + name: "Amplifier" + symbol: "AMPLIFIER" + denom: "uamplifier" decimals: 6 name: "Axelar" short_name: "AXELAR" @@ -4478,9 +4478,9 @@ devnet-verifiers: timeout: lcd: 3000 native_token: - name: "Axelar" - symbol: "AXL" - denom: "uaxl" + name: "Verifiers" + symbol: "VERIFIERS" + denom: "uverifiers" decimals: 6 name: "Axelar" short_name: "AXELAR" diff --git a/config/tokens.yml b/config/tokens.yml index 7f53eb2f..e0e63157 100644 --- a/config/tokens.yml +++ b/config/tokens.yml @@ -64,6 +64,12 @@ TIMX: AXL: coingecko_id: "axelar" decimals: 6 +VERIFIERS: + coingecko_id: "axelar" + decimals: 6 +AMPLIFIER: + coingecko_id: "axelar" + decimals: 6 OSMO: coingecko_id: "osmosis" decimals: 6 @@ -563,6 +569,10 @@ axlSOMM: uaxl: redirect: "AXL" +uverifiers: + redirect: "VERIFIERS" +uamplifier: + redirect: "AMPLIFIER" uusdc: redirect: "USDC" polygon-uusdc: diff --git a/methods/axelar/getNetworkParameters.js b/methods/axelar/getNetworkParameters.js index c56007a2..5d9bf36a 100644 --- a/methods/axelar/getNetworkParameters.js +++ b/methods/axelar/getNetworkParameters.js @@ -1,4 +1,4 @@ -const { getLCD } = require('../../utils/config'); +const { ENVIRONMENT, getLCD } = require('../../utils/config'); const { request } = require('../../utils/http'); const { toArray } = require('../../utils/parser'); @@ -10,7 +10,7 @@ module.exports = async () => { resolve([k, (await request(getLCD(), { path: '/cosmos/staking/v1beta1/params' }))?.params]); break; case 'bankSupply': - resolve([k, (await request(getLCD(), { path: '/cosmos/bank/v1beta1/supply/uaxl' }))?.amount]); + resolve([k, (await request(getLCD(), { path: `/cosmos/bank/v1beta1/supply/${ENVIRONMENT === 'devnet-verifiers' ? 'uverifiers' : ENVIRONMENT === 'devnet-amplifier' ? 'uamplifier' : 'uaxl'}` }))?.amount]); break; case 'stakingPool': resolve([k, (await request(getLCD(), { path: '/cosmos/staking/v1beta1/pool' }))?.pool]); diff --git a/methods/axelar/getTokenInfo.js b/methods/axelar/getTokenInfo.js index cbf713a8..2a7afc65 100644 --- a/methods/axelar/getTokenInfo.js +++ b/methods/axelar/getTokenInfo.js @@ -15,7 +15,7 @@ module.exports = async params => { const { price } = { ...(data?.[symbol] || Object.values({ ...data }).find(d => d.denom === symbol)) }; const supplyData = await getCirculatingSupply({ symbol, debug: true }); const circulatingSupply = supplyData?.circulating_supply; - const totalSupply = denom === 'uaxl' ? await getTotalSupply({ asset: denom }) : null; + const totalSupply = ['uaxl', 'uverifiers', 'uamplifier'].includes(denom) ? await getTotalSupply({ asset: denom }) : null; const updatedAt = supplyData?.updated_at || updated_at || moment().valueOf(); switch (agent) { diff --git a/methods/axelar/getTotalSupply.js b/methods/axelar/getTotalSupply.js index 1830fce4..3c85eccd 100644 --- a/methods/axelar/getTotalSupply.js +++ b/methods/axelar/getTotalSupply.js @@ -1,10 +1,10 @@ -const { getAssetData, getLCD } = require('../../utils/config'); +const { ENVIRONMENT, getAssetData, getLCD } = require('../../utils/config'); const { request } = require('../../utils/http'); const { formatUnits } = require('../../utils/number'); module.exports = async params => { const { asset } = { ...params }; - const { decimals, addresses } = { ...await getAssetData(asset || 'uaxl') }; + const { decimals, addresses } = { ...await getAssetData(asset || (ENVIRONMENT === 'devnet-verifiers' ? 'uverifiers' : ENVIRONMENT === 'devnet-amplifier' ? 'uamplifier' : 'uaxl')) }; const { ibc_denom } = { ...addresses?.axelarnet }; if (!ibc_denom) return; diff --git a/package.json b/package.json index 7632c88b..cf590983 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axelarscan-api", - "version": "0.0.38", + "version": "0.0.39", "description": "Axelarscan API", "main": "index.js", "scripts": { diff --git a/terraform/devnet-amplifier/variables.tf.example b/terraform/devnet-amplifier/variables.tf.example index 0de4aa9b..88c3d940 100644 --- a/terraform/devnet-amplifier/variables.tf.example +++ b/terraform/devnet-amplifier/variables.tf.example @@ -45,7 +45,7 @@ variable "log_level" { variable "app_version" { description = "App version, same as docker image version" - default = "0.0.38" + default = "0.0.39" validation { error_message = "Must be valid semantic version. $Major.$Minor.$Patch" condition = can(regex("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", var.app_version)) diff --git a/terraform/devnet-verifiers/variables.tf.example b/terraform/devnet-verifiers/variables.tf.example index 665f26e9..09bb2854 100644 --- a/terraform/devnet-verifiers/variables.tf.example +++ b/terraform/devnet-verifiers/variables.tf.example @@ -45,7 +45,7 @@ variable "log_level" { variable "app_version" { description = "App version, same as docker image version" - default = "0.0.38" + default = "0.0.39" validation { error_message = "Must be valid semantic version. $Major.$Minor.$Patch" condition = can(regex("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", var.app_version)) diff --git a/terraform/mainnet/variables.tf.example b/terraform/mainnet/variables.tf.example index 18af595c..be17d627 100644 --- a/terraform/mainnet/variables.tf.example +++ b/terraform/mainnet/variables.tf.example @@ -45,7 +45,7 @@ variable "log_level" { variable "app_version" { description = "App version, same as docker image version" - default = "0.0.38" + default = "0.0.39" validation { error_message = "Must be valid semantic version. $Major.$Minor.$Patch" condition = can(regex("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", var.app_version)) diff --git a/terraform/stagenet/variables.tf.example b/terraform/stagenet/variables.tf.example index ab300169..12cd5e04 100644 --- a/terraform/stagenet/variables.tf.example +++ b/terraform/stagenet/variables.tf.example @@ -45,7 +45,7 @@ variable "log_level" { variable "app_version" { description = "App version, same as docker image version" - default = "0.0.38" + default = "0.0.39" validation { error_message = "Must be valid semantic version. $Major.$Minor.$Patch" condition = can(regex("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", var.app_version)) diff --git a/terraform/testnet/variables.tf.example b/terraform/testnet/variables.tf.example index d851fb5d..8bb71242 100644 --- a/terraform/testnet/variables.tf.example +++ b/terraform/testnet/variables.tf.example @@ -45,7 +45,7 @@ variable "log_level" { variable "app_version" { description = "App version, same as docker image version" - default = "0.0.38" + default = "0.0.39" validation { error_message = "Must be valid semantic version. $Major.$Minor.$Patch" condition = can(regex("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$", var.app_version))