Skip to content

Commit

Permalink
chore: remove unused field before save config (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrsirapop authored Sep 25, 2024
1 parent e6cbe73 commit 7239031
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 61 deletions.
55 changes: 0 additions & 55 deletions config/chains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2002,61 +2002,6 @@ mainnet:
prefix_address: "terra"
prefix_chain_ids:
- "columbus-"
vm:
flow:
chain_id: 747
chain_name: "flow"
maintainer_id: "flow"
multisig_prover:
address: ""
voting_verifier:
address: ""
endpoints:
rpc:
- "https://mainnet.evm.nodes.onflow.org"
native_token:
name: "Flow"
symbol: "FLOW"
decimals: 18
name: "Flow (VM)"
short_name: "FLOW"
image: "/logos/chains/flow.svg"
color: "#00ee8a"
explorer:
name: "Flowscan"
url: "https://evm.flowscan.io"
icon: "/logos/explorers/flow.png"
block_path: "/block/{block}"
address_path: "/address/{address}"
contract_path: "/token/{address}"
transaction_path: "/tx/{tx}"
hedera:
chain_id: 295
chain_name: "hedera"
maintainer_id: "hedera"
multisig_prover:
address: ""
voting_verifier:
address: ""
endpoints:
rpc:
- "https://mainnet.hashio.io/api"
native_token:
name: "Hedera"
symbol: "HBAR"
decimals: 18
name: "Hedera (VM)"
short_name: "HBAR"
image: "/logos/chains/hedera.svg"
color: "#000000"
explorer:
name: "Hashscan"
url: "https://hashscan.io/mainnet"
icon: "/logos/explorers/hedera.png"
block_path: "/block/{block}"
address_path: "/account/{address}"
contract_path: "/token/{address}"
transaction_path: "/transaction/{tx}"



Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axelarscan-api",
"version": "0.0.84",
"version": "0.0.85",
"description": "Axelarscan API",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion terraform/devnet-amplifier/variables.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "log_level" {

variable "app_version" {
description = "App version, same as docker image version"
default = "0.0.84"
default = "0.0.85"
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))
Expand Down
2 changes: 1 addition & 1 deletion terraform/devnet-verifiers/variables.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "log_level" {

variable "app_version" {
description = "App version, same as docker image version"
default = "0.0.84"
default = "0.0.85"
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))
Expand Down
2 changes: 1 addition & 1 deletion terraform/mainnet/variables.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "log_level" {

variable "app_version" {
description = "App version, same as docker image version"
default = "0.0.84"
default = "0.0.85"
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))
Expand Down
2 changes: 1 addition & 1 deletion terraform/stagenet/variables.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "log_level" {

variable "app_version" {
description = "App version, same as docker image version"
default = "0.0.84"
default = "0.0.85"
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))
Expand Down
2 changes: 1 addition & 1 deletion terraform/testnet/variables.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ variable "log_level" {

variable "app_version" {
description = "App version, same as docker image version"
default = "0.0.84"
default = "0.0.85"
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))
Expand Down
1 change: 1 addition & 0 deletions utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const getAxelarConfig = async (env = ENVIRONMENT, forceCache = false) => {
if (data && timeDiff(updated_at) < 600) response = toJson(data);
else {
response = await request(`https://axelar-${env}.s3.us-east-2.amazonaws.com/configs/${env}-config-1.x.json`);
if (response?.tokenAddressToAsset) delete response.tokenAddressToAsset;
if (response?.assets) await write(AXELAR_CONFIG_COLLECTION, cacheId, { data: JSON.stringify(response), updated_at: moment().valueOf() });
else if (Object.keys({ ...toJson(data) }).length > 0) response = toJson(data);
}
Expand Down

0 comments on commit 7239031

Please sign in to comment.