From dde392fe5f21f631dd66bc9bc4d7fc060d40b6af Mon Sep 17 00:00:00 2001 From: Sirapop Date: Wed, 30 Oct 2024 12:01:29 +0700 Subject: [PATCH] chore: add stacks to devnet-amplifier (#131) --- config/chains.yml | 25 +++++++++++++++++++ config/tokens.yml | 3 +++ package.json | 2 +- .../devnet-amplifier/variables.tf.example | 2 +- .../devnet-verifiers/variables.tf.example | 2 +- terraform/mainnet/variables.tf.example | 2 +- terraform/stagenet/variables.tf.example | 2 +- terraform/testnet/variables.tf.example | 2 +- 8 files changed, 34 insertions(+), 6 deletions(-) diff --git a/config/chains.yml b/config/chains.yml index 75ecc16b..e45749d5 100644 --- a/config/chains.yml +++ b/config/chains.yml @@ -5258,6 +5258,31 @@ devnet-amplifier: address_path: "/account/{address}" contract_path: "/account/{address}" transaction_path: "/tx/{tx}" + stacks: + chain_name: "stacks" + multisig_prover: + address: "axelar1az8gj559csay9am80dj04xtr2l5027qw4h0hxgspsrm5u09zey4sptt4mq" + voting_verifier: + address: "axelar1mjlvl44v8er50nxjxcuugd4prafzxj4r84q84pf3ntgte6crnywsrk0s5e" + endpoints: + rpc: + - "https://api.testnet.hiro.so" + native_token: + name: "Stacks" + symbol: "STX" + decimals: 6 + name: "Stacks (VM)" + short_name: "STX" + image: "/logos/chains/stacks.svg" + color: "#fc6432" + explorer: + name: "Stacks" + url: "https://explorer.hiro.so" + icon: "/logos/explorers/stacks.png" + block_path: "/block/{block}?chain=testnet" + address_path: "/address/{address}?chain=testnet" + contract_path: "/address/{address}?chain=testnet" + transaction_path: "/txid/{tx}?chain=testnet" diff --git a/config/tokens.yml b/config/tokens.yml index 72d0f7e0..87a5aa99 100644 --- a/config/tokens.yml +++ b/config/tokens.yml @@ -81,6 +81,9 @@ XLM: SUI: coingecko_id: "sui" decimals: 9 +STX: + coingecko_id: "blockstack" + decimals: 6 AXL: coingecko_id: "axelar" decimals: 6 diff --git a/package.json b/package.json index 8f422bb7..e19031a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axelarscan-api", - "version": "0.0.103", + "version": "0.0.104", "description": "Axelarscan API", "main": "index.js", "scripts": { diff --git a/terraform/devnet-amplifier/variables.tf.example b/terraform/devnet-amplifier/variables.tf.example index 81f5f8c7..37147995 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.103" + default = "0.0.104" 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 682152a8..d33709b4 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.103" + default = "0.0.104" 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 5474d4ab..8a4c9f03 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.103" + default = "0.0.104" 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 7e598a17..901044d1 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.103" + default = "0.0.104" 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 2c945d63..40a27356 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.103" + default = "0.0.104" 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))