Skip to content

Commit

Permalink
[ASSET-42] Add Bifrost mainnet Unified BTC (#48)
Browse files Browse the repository at this point in the history
* ASSET-42 Update unified BTC asset

Signed-off-by: jormal <jormal@naver.com>

* ASSET-42 Fix RPC map test

Signed-off-by: jormal <jormal@naver.com>

---------

Signed-off-by: jormal <jormal@naver.com>
  • Loading branch information
jormal authored Oct 18, 2024
1 parent 54c2206 commit 582c134
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
10 changes: 10 additions & 0 deletions assets/btc-1/info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"contracts": [
{
"address": "0xB000F62Ae7FB5E1D93E7358258B1abA754E0166A",
"decimals": 8,
"name": "Unified BTC",
"network": "evm-3068",
"symbol": "BTC",
"tags": [
"mainnet"
]
},
{
"address": "0x52Eb8CFC008814328cF8daec9e2023Fb58384242",
"decimals": 8,
Expand Down
4 changes: 2 additions & 2 deletions libraries/constants/rpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions tests/additional/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 582c134

Please sign in to comment.