From 582c13479f7118f665fdce9ae7b847c568807705 Mon Sep 17 00:00:00 2001 From: Heewoong Jang Date: Fri, 18 Oct 2024 11:19:30 +0900 Subject: [PATCH] [ASSET-42] Add Bifrost mainnet Unified BTC (#48) * ASSET-42 Update unified BTC asset Signed-off-by: jormal * ASSET-42 Fix RPC map test Signed-off-by: jormal --------- Signed-off-by: jormal --- assets/btc-1/info.json | 10 ++++++++++ libraries/constants/rpc.json | 4 ++-- tests/additional/test_rpc.py | 6 ++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/assets/btc-1/info.json b/assets/btc-1/info.json index 8d4d4ba..2f58c7f 100644 --- a/assets/btc-1/info.json +++ b/assets/btc-1/info.json @@ -1,5 +1,15 @@ { "contracts": [ + { + "address": "0xB000F62Ae7FB5E1D93E7358258B1abA754E0166A", + "decimals": 8, + "name": "Unified BTC", + "network": "evm-3068", + "symbol": "BTC", + "tags": [ + "mainnet" + ] + }, { "address": "0x52Eb8CFC008814328cF8daec9e2023Fb58384242", "decimals": 8, diff --git a/libraries/constants/rpc.json b/libraries/constants/rpc.json index db649f5..076ed4b 100644 --- a/libraries/constants/rpc.json +++ b/libraries/constants/rpc.json @@ -9,7 +9,7 @@ }, { "id": "evm-1001", - "url": "https://public-rpc.thebifrost.io/test/klaytn" + "url": "https://public-rpc.thebifrost.io/test/kaia" }, { "id": "evm-11155111", @@ -73,7 +73,7 @@ }, { "id": "evm-8217", - "url": "https://public-rpc.thebifrost.io/main/klaytn" + "url": "https://public-rpc.thebifrost.io/main/kaia" }, { "id": "evm-8453", diff --git a/tests/additional/test_rpc.py b/tests/additional/test_rpc.py index 6827be5..97b21ec 100644 --- a/tests/additional/test_rpc.py +++ b/tests/additional/test_rpc.py @@ -59,8 +59,10 @@ async def __test_rpc_url(self, network: Network): if node_url := self.rpc_map.get(network.id, None): if network.engine.is_evm: node = Web3(HTTPProvider(node_url)) - assert node.is_connected() - assert node.eth.chain_id == int(str(network.id).removeprefix("evm-")) + assert node.is_connected(), f"The node ${network.id} is not connected." + assert node.eth.chain_id == int( + str(network.id).removeprefix("evm-") + ), "The chain ID ${node.eth.chain_id} does not match the network ID ${network.id}." else: pass else: