From 07131c04f0f14837d19b729535edffba0524a888 Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 9 Sep 2024 21:52:08 +0800 Subject: [PATCH 1/4] add price ids for nucleus test ibc coins --- api_ids/coingecko_ids.json | 4 +++- api_ids/coinpaprika_ids.json | 2 ++ api_ids/livecoinwatch_ids.json | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/api_ids/coingecko_ids.json b/api_ids/coingecko_ids.json index 0e97fe19f..3cd763788 100644 --- a/api_ids/coingecko_ids.json +++ b/api_ids/coingecko_ids.json @@ -41,8 +41,9 @@ "ARRR": "pirate-chain", "vARRR": "pirate-chain", "ATOM-BEP20": "cosmos", - "ATOM-IBC_IRIS": "cosmos-hub", + "ATOM-IBC_IRIS": "cosmos", "ATOM-PLG20": "cosmos", + "ATOM-IBC_NUCLEUSTEST": "cosmos", "ATOM": "cosmos", "AUR": "auroracoin", "AVA-ERC20": "concierge-io", @@ -430,6 +431,7 @@ "ONE": "harmony", "ONT-BEP20": "ontology", "OSMO": "osmosis", + "OSMO-IBC_NUCLEUSTEST": "osmosis", "PAX-BEP20": "paxos-standard", "PAX-ERC20": "paxos-standard", "PAX-KRC20": "paxos-standard", diff --git a/api_ids/coinpaprika_ids.json b/api_ids/coinpaprika_ids.json index 48ee54bf0..76b6dd585 100644 --- a/api_ids/coinpaprika_ids.json +++ b/api_ids/coinpaprika_ids.json @@ -42,6 +42,7 @@ "ATOM-IBC_IRIS": "atom-cosmos", "ATOM-PLG20": "atom-cosmos", "ATOM": "atom-cosmos", + "ATOM-IBC_NUCLEUSTEST": "atom-cosmos", "AUR": "aur-auroracoin", "AVA-ERC20": "ava-travala", "AVAX-BEP20": "avax-avalanche", @@ -406,6 +407,7 @@ "ONE": "one-harmony", "ONT-BEP20": "ont-ontology", "OSMO": "osmo-osmosis", + "OSMO-IBC_NUCLEUSTEST": "osmo-osmosis", "PAX-BEP20": "pax-paxos-standard-token", "PAX-ERC20": "pax-paxos-standard-token", "PAX-KRC20": "pax-paxos-standard-token", diff --git a/api_ids/livecoinwatch_ids.json b/api_ids/livecoinwatch_ids.json index 16df0cae3..495d8b263 100644 --- a/api_ids/livecoinwatch_ids.json +++ b/api_ids/livecoinwatch_ids.json @@ -16,6 +16,10 @@ "ARRR": "ARRR", "vARRR": "ARRR", "ATOM": "ATOM", + "ATOM-IBC_NUCLEUSTEST": "ATOM", + "ATOM-BEP20": "ATOM", + "ATOM-IBC_IRIS": "ATOM", + "ATOM-PLG20": "ATOM", "AUR": "AUR", "AVA": "AVA", "AVAX": "AVAX", @@ -227,6 +231,7 @@ "ONE": "ONE", "ONT": "ONT", "OSMO": "OSMO", + "OSMO-IBC_NUCLEUSTEST": "OSMO", "PAX": "USDP", "PAXG": "PAXG", "PEP": "_______________________________________PEPE", From 6f8fff58ff44babe778ad111544c98811128071a Mon Sep 17 00:00:00 2001 From: smk762 Date: Mon, 9 Sep 2024 21:53:37 +0800 Subject: [PATCH 2/4] tabs > spaces --- api_ids/livecoinwatch_ids.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api_ids/livecoinwatch_ids.json b/api_ids/livecoinwatch_ids.json index 495d8b263..93000aa4e 100644 --- a/api_ids/livecoinwatch_ids.json +++ b/api_ids/livecoinwatch_ids.json @@ -17,9 +17,9 @@ "vARRR": "ARRR", "ATOM": "ATOM", "ATOM-IBC_NUCLEUSTEST": "ATOM", - "ATOM-BEP20": "ATOM", - "ATOM-IBC_IRIS": "ATOM", - "ATOM-PLG20": "ATOM", + "ATOM-BEP20": "ATOM", + "ATOM-IBC_IRIS": "ATOM", + "ATOM-PLG20": "ATOM", "AUR": "AUR", "AVA": "AVA", "AVAX": "AVAX", From dd4916bec60389a44793c6b4e94c07afb4fcfc9e Mon Sep 17 00:00:00 2001 From: smk762 Date: Wed, 11 Sep 2024 17:04:56 +0800 Subject: [PATCH 3/4] output `nodes` dict list and `rpc_urls` string list for tendermint (forwards compatibility) --- utils/generate_app_configs.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/generate_app_configs.py b/utils/generate_app_configs.py index c6c98b3f5..f58cdde65 100755 --- a/utils/generate_app_configs.py +++ b/utils/generate_app_configs.py @@ -480,11 +480,9 @@ def get_swap_contracts(self): {"fallback_swap_contract": contract_data["fallback_swap_contract"]} ) if "rpc_nodes" in contract_data: + self.data[self.ticker].update({"nodes": contract_data["rpc_nodes"]}) if self.data[self.ticker]["type"] in ["TENDERMINT", "TENDERMINTTOKEN"]: - key = "rpc_urls" - else: - key = "nodes" - self.data[self.ticker].update({key: contract_data["rpc_nodes"]}) + self.data[self.ticker].update({"rpc_urls": [i['url'] for i in contract_data["rpc_nodes"]]}) def get_explorers(self): explorers = None From fdefdd83bcc46d14362c38f46b66985677e73c6a Mon Sep 17 00:00:00 2001 From: smk762 Date: Wed, 11 Sep 2024 20:38:08 +0800 Subject: [PATCH 4/4] revert tendermint rpc_urls/nodes format duplication --- utils/generate_app_configs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/generate_app_configs.py b/utils/generate_app_configs.py index f58cdde65..c6c98b3f5 100755 --- a/utils/generate_app_configs.py +++ b/utils/generate_app_configs.py @@ -480,9 +480,11 @@ def get_swap_contracts(self): {"fallback_swap_contract": contract_data["fallback_swap_contract"]} ) if "rpc_nodes" in contract_data: - self.data[self.ticker].update({"nodes": contract_data["rpc_nodes"]}) if self.data[self.ticker]["type"] in ["TENDERMINT", "TENDERMINTTOKEN"]: - self.data[self.ticker].update({"rpc_urls": [i['url'] for i in contract_data["rpc_nodes"]]}) + key = "rpc_urls" + else: + key = "nodes" + self.data[self.ticker].update({key: contract_data["rpc_nodes"]}) def get_explorers(self): explorers = None