From 3906d866251dd5cc2dd1c8922bc0b72f1e1378f5 Mon Sep 17 00:00:00 2001 From: Snedashkovsky Date: Fri, 1 Mar 2024 14:53:23 +0800 Subject: [PATCH 1/3] - update channels status --- hub/data/channels.json | 6 +- hub/hub_generate_upload_data.ipynb | 168 +++++++++++++++++------------ hub/hub_update_data.ipynb | 33 +++--- 3 files changed, 119 insertions(+), 88 deletions(-) diff --git a/hub/data/channels.json b/hub/data/channels.json index 0e3b852..4eea6cc 100644 --- a/hub/data/channels.json +++ b/hub/data/channels.json @@ -16,7 +16,7 @@ "explorer_url": "https:\/\/mintscan.io\/cosmos\/txs\/{txHash}" }, { - "active": "true", + "active": "false", "destination_chain_id": "juno-1", "destination_channel_id": "channel-93", "source_chain_id": "bostrom", @@ -32,7 +32,7 @@ "explorer_url": "https:\/\/cyb.ai\/network\/bostrom\/tx\/{txHash}" }, { - "active": "true", + "active": "false", "destination_chain_id": "gravity-bridge-3", "destination_channel_id": "channel-103", "source_chain_id": "bostrom", @@ -48,7 +48,7 @@ "explorer_url": "https:\/\/mintscan.io\/desmos\/txs\/{txHash}" }, { - "active": "true", + "active": "false", "destination_chain_id": "axelar-dojo-1", "destination_channel_id": "channel-52", "source_chain_id": "bostrom", diff --git a/hub/hub_generate_upload_data.ipynb b/hub/hub_generate_upload_data.ipynb index e6166ae..36c5a22 100644 --- a/hub/hub_generate_upload_data.ipynb +++ b/hub/hub_generate_upload_data.ipynb @@ -15,23 +15,27 @@ "outputs": [], "source": [ "import json\n", - "import ipfshttpclient\n", - "import pandas as pd\n", - "from multiaddr import Multiaddr\n", - "from warnings import filterwarnings\n", + "import sys\n", + "from pathlib import Path\n", "from re import sub\n", + "from warnings import filterwarnings\n", "\n", + "import ipfshttpclient\n", + "import pandas as pd\n", "from cyberutils.bash import get_json_from_bash_query\n", + "from multiaddr import Multiaddr\n", + "from tqdm.notebook import tqdm\n", "\n", - "from ..config import IPFS_HOST, NODE_RPC_URL, PUSSY_NODE_RPC_URL, CHAIN_ID, PUSSY_CHAIN_ID\n", + "sys.path.append(str(Path(sys.argv[0]).resolve().parent.parent))\n", + "from config import IPFS_HOST, NODE_RPC_URL, PUSSY_NODE_RPC_URL, CHAIN_ID, PUSSY_CHAIN_ID\n", "\n", "filterwarnings('ignore')" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:14.345614Z", - "start_time": "2023-06-30T03:01:13.839038Z" + "end_time": "2024-03-01T05:47:50.603509Z", + "start_time": "2024-03-01T05:47:50.030738Z" } } }, @@ -42,6 +46,7 @@ "source": [ "ipfs_client = ipfshttpclient.connect(addr=Multiaddr(IPFS_HOST))\n", "\n", + "\n", "def add_file_to_ipfs(file_path: str) -> str:\n", " with open(file_path, 'rb') as _file:\n", " return ipfs_client.add_bytes(_file.read())" @@ -49,8 +54,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:14.361737Z", - "start_time": "2023-06-30T03:01:14.346648Z" + "end_time": "2024-03-01T05:47:50.622976Z", + "start_time": "2024-03-01T05:47:50.605116Z" } } }, @@ -91,8 +96,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:14.365032Z", - "start_time": "2023-06-30T03:01:14.362406Z" + "end_time": "2024-03-01T05:47:50.632174Z", + "start_time": "2024-03-01T05:47:50.624308Z" } } }, @@ -117,8 +122,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:14.383926Z", - "start_time": "2023-06-30T03:01:14.370602Z" + "end_time": "2024-03-01T05:47:50.638035Z", + "start_time": "2024-03-01T05:47:50.630157Z" } } }, @@ -216,8 +221,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:19.858188Z", - "start_time": "2023-06-30T03:01:14.385105Z" + "end_time": "2024-03-01T05:47:56.493904Z", + "start_time": "2024-03-01T05:47:50.640324Z" } } }, @@ -242,8 +247,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:19.866099Z", - "start_time": "2023-06-30T03:01:19.862714Z" + "end_time": "2024-03-01T05:47:56.501558Z", + "start_time": "2024-03-01T05:47:56.492944Z" } } }, @@ -268,7 +273,10 @@ " 'channel-4',\n", " 'channel-5',\n", " 'channel-6',\n", + " 'channel-7',\n", + " 'channel-10',\n", " 'channel-12',\n", + " 'channel-14',\n", " 'channel-15',\n", " 'channel-16',\n", " 'channel-17'\n", @@ -301,21 +309,18 @@ " 'umee-1': 'https://www.mintscan.io/umee'\n", "}\n", "APPROVED_ACTIVE_CHANNELS = [\n", - " 'channel-10',\n", - " 'channel-11',\n", - " 'channel-13',\n", - " 'channel-14',\n", " 'channel-2',\n", - " 'channel-7',\n", " 'channel-8',\n", - " 'channel-9'\n", + " 'channel-9',\n", + " 'channel-11',\n", + " 'channel-13'\n", "]" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:01:19.873256Z", - "start_time": "2023-06-30T03:01:19.869971Z" + "end_time": "2024-03-01T05:47:56.507219Z", + "start_time": "2024-03-01T05:47:56.500274Z" } } }, @@ -323,17 +328,29 @@ "cell_type": "code", "execution_count": 8, "outputs": [ + { + "data": { + "text/plain": " 0%| | 0/53 [00:00\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
activedestination_chain_iddestination_channel_idsource_chain_idsource_channel_idexplorer_url
0falseosmosis-1channel-79bostromchannel-0https://mintscan.io/osmosis/txs/{txHash}
1falsecosmoshub-4channel-225bostromchannel-1https://mintscan.io/cosmos/txs/{txHash}
2truejuno-1channel-93bostromchannel-10https://mintscan.io/juno/txs/{txHash}
3truespace-pussychannel-0bostromchannel-11https://cyb.ai/network/bostrom/tx/{txHash}
4falsegravity-bridge-3channel-103bostromchannel-12https://mintscan.io/gravity-bridge/txs/{txHash}
5truedesmos-mainnetchannel-6bostromchannel-13https://mintscan.io/desmos/txs/{txHash}
6trueaxelar-dojo-1channel-52bostromchannel-14https://mintscan.io/axelar/txs/{txHash}
7falsephoenix-1channel-108bostromchannel-15https://explorer.nodestake.top/terra2/tx/{txHash}
8falsephoenix-1channel-121bostromchannel-16https://explorer.nodestake.top/terra2/tx/{txHash}
9falseeightball-1channel-30bostromchannel-17https://explorer.nodestake.top/8ball/tx/{txHash}
10trueagoric-3channel-22bostromchannel-18https://explorer.nodestake.top/agoric/tx/{txHash}
11trueakashnet-2channel-83bostromchannel-19https://mintscan.io/akash/txs/{txHash}
12trueosmosis-1channel-95bostromchannel-2https://mintscan.io/osmosis/txs/{txHash}
13truearkhchannel-25bostromchannel-20https://explorer.nodestake.top/arkh/tx/{txHash}
14truemantle-1channel-26bostromchannel-21https://mintscan.io/asset-mantle/txs/{txHash}
15truebitcanna-1channel-25bostromchannel-22https://www.mintscan.io/bitcanna/txs/{txHash}
16truebitcanna-1channel-43bostromchannel-23https://www.mintscan.io/bitcanna/txs/{txHash}
17truecrescent-1channel-49bostromchannel-24https://www.mintscan.io/crescent/txs/{txHash}
18truekichain-2channel-28bostromchannel-25https://www.mintscan.io/ki-chain/txs/{txHash}
19truekaiyo-1channel-80bostromchannel-26https://www.mintscan.io/kujira/txs/{txHash}
20truemars-1channel-14bostromchannel-27https://www.mintscan.io/mars-protocol/txs/{txH...
21truemigaloo-1channel-31bostromchannel-28
22trueodin-mainnet-freyachannel-34bostromchannel-29
23falseosmosis-1channel-96bostromchannel-3https://mintscan.io/osmosis/txs/{txHash}
24truecore-1channel-93bostromchannel-30
25truequicksilver-2channel-66bostromchannel-31
26trueregen-1channel-116bostromchannel-32
27truesecret-4channel-69bostromchannel-33
28truesommelier-3channel-14bostromchannel-34https://www.mintscan.io/sommelier/txs/{txHash}
29truestargaze-1channel-154bostromchannel-35https://www.mintscan.io/stargaze/txs/{txHash}
30trueiov-mainnet-ibcchannel-33bostromchannel-36
31truestride-1channel-97bostromchannel-37
32trueteritori-1channel-21bostromchannel-38
33trueumee-1channel-73bostromchannel-39https://www.mintscan.io/umee
34falsecosmoshub-4channel-237bostromchannel-4https://mintscan.io/cosmos/txs/{txHash}
35truechihuahua-1channel-48bostromchannel-40
36truecrypto-org-chain-mainnet-1channel-69bostromchannel-41
37trueinjective-1channel-128bostromchannel-42https://www.mintscan.io/injective/txs/{txHash}
38trueirishub-1channel-50bostromchannel-43
39truejackal-1channel-18bostromchannel-44
40truekava_2222-10channel-99bostromchannel-45https://www.mintscan.io/kava/txs/{txHash}
41truephoenix-1channel-160bostromchannel-46https://explorer.nodestake.top/terra2/tx/{txHash}
42falsecosmoshub-4channel-240bostromchannel-5https://mintscan.io/cosmos/txs/{txHash}
43falsegravity-bridge-3channel-33bostromchannel-6https://mintscan.io/gravity-bridge/txs/{txHash}
44truegravity-bridge-3channel-78bostromchannel-7https://mintscan.io/gravity-bridge/txs/{txHash}
45truecosmoshub-4channel-341bostromchannel-8https://mintscan.io/cosmos/txs/{txHash}
46trueevmos_9001-2channel-19bostromchannel-9https://mintscan.io/evmos/txs/{txHash}
\n" + "text/plain": " active destination_chain_id destination_channel_id source_chain_id \\\n0 false osmosis-1 channel-79 bostrom \n1 false cosmoshub-4 channel-225 bostrom \n2 false juno-1 channel-93 bostrom \n3 true space-pussy channel-0 bostrom \n4 false gravity-bridge-3 channel-103 bostrom \n5 true desmos-mainnet channel-6 bostrom \n6 false axelar-dojo-1 channel-52 bostrom \n7 false phoenix-1 channel-108 bostrom \n8 false phoenix-1 channel-121 bostrom \n9 false eightball-1 channel-30 bostrom \n10 true agoric-3 channel-22 bostrom \n11 true akashnet-2 channel-83 bostrom \n12 true osmosis-1 channel-95 bostrom \n13 true arkh channel-25 bostrom \n14 true mantle-1 channel-26 bostrom \n15 true bitcanna-1 channel-25 bostrom \n16 true bitcanna-1 channel-43 bostrom \n17 true crescent-1 channel-49 bostrom \n18 true kichain-2 channel-28 bostrom \n19 true kaiyo-1 channel-80 bostrom \n20 true mars-1 channel-14 bostrom \n21 true migaloo-1 channel-31 bostrom \n22 true odin-mainnet-freya channel-34 bostrom \n23 false osmosis-1 channel-96 bostrom \n24 true core-1 channel-93 bostrom \n25 true quicksilver-2 channel-66 bostrom \n26 true regen-1 channel-116 bostrom \n27 true secret-4 channel-69 bostrom \n28 true sommelier-3 channel-14 bostrom \n29 true stargaze-1 channel-154 bostrom \n30 true iov-mainnet-ibc channel-33 bostrom \n31 true stride-1 channel-97 bostrom \n32 true teritori-1 channel-21 bostrom \n33 true umee-1 channel-73 bostrom \n34 false cosmoshub-4 channel-237 bostrom \n35 true chihuahua-1 channel-48 bostrom \n36 true crypto-org-chain-mainnet-1 channel-69 bostrom \n37 true injective-1 channel-128 bostrom \n38 true irishub-1 channel-50 bostrom \n39 true jackal-1 channel-18 bostrom \n40 true kava_2222-10 channel-99 bostrom \n41 true phoenix-1 channel-160 bostrom \n42 true phoenix-1 channel-176 bostrom \n43 true uni-6 channel-479 bostrom \n44 true uni-6 channel-480 bostrom \n45 false cosmoshub-4 channel-240 bostrom \n46 true uni-6 bostrom \n47 true uni-6 channel-482 bostrom \n48 true uni-6 channel-494 bostrom \n49 false gravity-bridge-3 channel-33 bostrom \n50 false gravity-bridge-3 channel-78 bostrom \n51 true cosmoshub-4 channel-341 bostrom \n52 true evmos_9001-2 channel-19 bostrom \n\n source_channel_id explorer_url \n0 channel-0 https://mintscan.io/osmosis/txs/{txHash} \n1 channel-1 https://mintscan.io/cosmos/txs/{txHash} \n2 channel-10 https://mintscan.io/juno/txs/{txHash} \n3 channel-11 https://cyb.ai/network/bostrom/tx/{txHash} \n4 channel-12 https://mintscan.io/gravity-bridge/txs/{txHash} \n5 channel-13 https://mintscan.io/desmos/txs/{txHash} \n6 channel-14 https://mintscan.io/axelar/txs/{txHash} \n7 channel-15 https://explorer.nodestake.top/terra2/tx/{txHash} \n8 channel-16 https://explorer.nodestake.top/terra2/tx/{txHash} \n9 channel-17 https://explorer.nodestake.top/8ball/tx/{txHash} \n10 channel-18 https://explorer.nodestake.top/agoric/tx/{txHash} \n11 channel-19 https://mintscan.io/akash/txs/{txHash} \n12 channel-2 https://mintscan.io/osmosis/txs/{txHash} \n13 channel-20 https://explorer.nodestake.top/arkh/tx/{txHash} \n14 channel-21 https://mintscan.io/asset-mantle/txs/{txHash} \n15 channel-22 https://www.mintscan.io/bitcanna/txs/{txHash} \n16 channel-23 https://www.mintscan.io/bitcanna/txs/{txHash} \n17 channel-24 https://www.mintscan.io/crescent/txs/{txHash} \n18 channel-25 https://www.mintscan.io/ki-chain/txs/{txHash} \n19 channel-26 https://www.mintscan.io/kujira/txs/{txHash} \n20 channel-27 https://www.mintscan.io/mars-protocol/txs/{txH... \n21 channel-28 \n22 channel-29 \n23 channel-3 https://mintscan.io/osmosis/txs/{txHash} \n24 channel-30 \n25 channel-31 \n26 channel-32 \n27 channel-33 \n28 channel-34 https://www.mintscan.io/sommelier/txs/{txHash} \n29 channel-35 https://www.mintscan.io/stargaze/txs/{txHash} \n30 channel-36 \n31 channel-37 \n32 channel-38 \n33 channel-39 https://www.mintscan.io/umee \n34 channel-4 https://mintscan.io/cosmos/txs/{txHash} \n35 channel-40 \n36 channel-41 \n37 channel-42 https://www.mintscan.io/injective/txs/{txHash} \n38 channel-43 \n39 channel-44 \n40 channel-45 https://www.mintscan.io/kava/txs/{txHash} \n41 channel-46 https://explorer.nodestake.top/terra2/tx/{txHash} \n42 channel-47 https://explorer.nodestake.top/terra2/tx/{txHash} \n43 channel-48 \n44 channel-49 \n45 channel-5 https://mintscan.io/cosmos/txs/{txHash} \n46 channel-50 \n47 channel-51 \n48 channel-52 \n49 channel-6 https://mintscan.io/gravity-bridge/txs/{txHash} \n50 channel-7 https://mintscan.io/gravity-bridge/txs/{txHash} \n51 channel-8 https://mintscan.io/cosmos/txs/{txHash} \n52 channel-9 https://mintscan.io/evmos/txs/{txHash} ", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
activedestination_chain_iddestination_channel_idsource_chain_idsource_channel_idexplorer_url
0falseosmosis-1channel-79bostromchannel-0https://mintscan.io/osmosis/txs/{txHash}
1falsecosmoshub-4channel-225bostromchannel-1https://mintscan.io/cosmos/txs/{txHash}
2falsejuno-1channel-93bostromchannel-10https://mintscan.io/juno/txs/{txHash}
3truespace-pussychannel-0bostromchannel-11https://cyb.ai/network/bostrom/tx/{txHash}
4falsegravity-bridge-3channel-103bostromchannel-12https://mintscan.io/gravity-bridge/txs/{txHash}
5truedesmos-mainnetchannel-6bostromchannel-13https://mintscan.io/desmos/txs/{txHash}
6falseaxelar-dojo-1channel-52bostromchannel-14https://mintscan.io/axelar/txs/{txHash}
7falsephoenix-1channel-108bostromchannel-15https://explorer.nodestake.top/terra2/tx/{txHash}
8falsephoenix-1channel-121bostromchannel-16https://explorer.nodestake.top/terra2/tx/{txHash}
9falseeightball-1channel-30bostromchannel-17https://explorer.nodestake.top/8ball/tx/{txHash}
10trueagoric-3channel-22bostromchannel-18https://explorer.nodestake.top/agoric/tx/{txHash}
11trueakashnet-2channel-83bostromchannel-19https://mintscan.io/akash/txs/{txHash}
12trueosmosis-1channel-95bostromchannel-2https://mintscan.io/osmosis/txs/{txHash}
13truearkhchannel-25bostromchannel-20https://explorer.nodestake.top/arkh/tx/{txHash}
14truemantle-1channel-26bostromchannel-21https://mintscan.io/asset-mantle/txs/{txHash}
15truebitcanna-1channel-25bostromchannel-22https://www.mintscan.io/bitcanna/txs/{txHash}
16truebitcanna-1channel-43bostromchannel-23https://www.mintscan.io/bitcanna/txs/{txHash}
17truecrescent-1channel-49bostromchannel-24https://www.mintscan.io/crescent/txs/{txHash}
18truekichain-2channel-28bostromchannel-25https://www.mintscan.io/ki-chain/txs/{txHash}
19truekaiyo-1channel-80bostromchannel-26https://www.mintscan.io/kujira/txs/{txHash}
20truemars-1channel-14bostromchannel-27https://www.mintscan.io/mars-protocol/txs/{txH...
21truemigaloo-1channel-31bostromchannel-28
22trueodin-mainnet-freyachannel-34bostromchannel-29
23falseosmosis-1channel-96bostromchannel-3https://mintscan.io/osmosis/txs/{txHash}
24truecore-1channel-93bostromchannel-30
25truequicksilver-2channel-66bostromchannel-31
26trueregen-1channel-116bostromchannel-32
27truesecret-4channel-69bostromchannel-33
28truesommelier-3channel-14bostromchannel-34https://www.mintscan.io/sommelier/txs/{txHash}
29truestargaze-1channel-154bostromchannel-35https://www.mintscan.io/stargaze/txs/{txHash}
30trueiov-mainnet-ibcchannel-33bostromchannel-36
31truestride-1channel-97bostromchannel-37
32trueteritori-1channel-21bostromchannel-38
33trueumee-1channel-73bostromchannel-39https://www.mintscan.io/umee
34falsecosmoshub-4channel-237bostromchannel-4https://mintscan.io/cosmos/txs/{txHash}
35truechihuahua-1channel-48bostromchannel-40
36truecrypto-org-chain-mainnet-1channel-69bostromchannel-41
37trueinjective-1channel-128bostromchannel-42https://www.mintscan.io/injective/txs/{txHash}
38trueirishub-1channel-50bostromchannel-43
39truejackal-1channel-18bostromchannel-44
40truekava_2222-10channel-99bostromchannel-45https://www.mintscan.io/kava/txs/{txHash}
41truephoenix-1channel-160bostromchannel-46https://explorer.nodestake.top/terra2/tx/{txHash}
42truephoenix-1channel-176bostromchannel-47https://explorer.nodestake.top/terra2/tx/{txHash}
43trueuni-6channel-479bostromchannel-48
44trueuni-6channel-480bostromchannel-49
45falsecosmoshub-4channel-240bostromchannel-5https://mintscan.io/cosmos/txs/{txHash}
46trueuni-6bostromchannel-50
47trueuni-6channel-482bostromchannel-51
48trueuni-6channel-494bostromchannel-52
49falsegravity-bridge-3channel-33bostromchannel-6https://mintscan.io/gravity-bridge/txs/{txHash}
50falsegravity-bridge-3channel-78bostromchannel-7https://mintscan.io/gravity-bridge/txs/{txHash}
51truecosmoshub-4channel-341bostromchannel-8https://mintscan.io/cosmos/txs/{txHash}
52trueevmos_9001-2channel-19bostromchannel-9https://mintscan.io/evmos/txs/{txHash}
\n
" }, "execution_count": 8, "metadata": {}, @@ -353,12 +370,14 @@ " 'source_chain_id': 'bostrom',\n", " 'source_channel_id': channel_raw['channel_id']\n", " }\n", - " for channel_raw in channels_raw_json\n", + " for channel_raw in tqdm(channels_raw_json)\n", "]\n", - "print(f\"chain ids are not in explorer url list: {', '.join([channel['destination_chain_id'] for channel in channels_raw_json if channel['destination_chain_id'] not in EXPLORER_URL.keys()])}\")\n", + "print(\n", + " f\"chain ids are not in explorer url list: {', '.join([channel['destination_chain_id'] for channel in channels_raw_json if channel['destination_chain_id'] not in EXPLORER_URL.keys()])}\")\n", "channels_raw_json = [dict(channel,\n", " **{'explorer_url':\n", - " EXPLORER_URL[channel['destination_chain_id']] if channel['destination_chain_id'] in EXPLORER_URL.keys() else ''})\n", + " EXPLORER_URL[channel['destination_chain_id']] if channel[\n", + " 'destination_chain_id'] in EXPLORER_URL.keys() else ''})\n", " for channel in channels_raw_json]\n", "channels_df = pd.DataFrame(channels_raw_json)\n", "channels_df" @@ -366,8 +385,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:02:16.363254Z", - "start_time": "2023-06-30T03:01:19.878756Z" + "end_time": "2024-03-01T05:50:54.554848Z", + "start_time": "2024-03-01T05:47:56.507145Z" } } }, @@ -377,8 +396,8 @@ "outputs": [ { "data": { - "text/plain": " active destination_chain_id destination_channel_id source_chain_id \\\n0 false osmosis-1 channel-79 bostrom \n1 false cosmoshub-4 channel-225 bostrom \n2 true juno-1 channel-93 bostrom \n3 true space-pussy channel-0 bostrom \n4 false gravity-bridge-3 channel-103 bostrom \n5 true desmos-mainnet channel-6 bostrom \n6 true axelar-dojo-1 channel-52 bostrom \n7 false phoenix-1 channel-108 bostrom \n8 false phoenix-1 channel-121 bostrom \n9 false eightball-1 channel-30 bostrom \n12 true osmosis-1 channel-95 bostrom \n23 false osmosis-1 channel-96 bostrom \n34 false cosmoshub-4 channel-237 bostrom \n42 false cosmoshub-4 channel-240 bostrom \n43 false gravity-bridge-3 channel-33 bostrom \n44 true gravity-bridge-3 channel-78 bostrom \n45 true cosmoshub-4 channel-341 bostrom \n46 true evmos_9001-2 channel-19 bostrom \n\n source_channel_id explorer_url \n0 channel-0 https://mintscan.io/osmosis/txs/{txHash} \n1 channel-1 https://mintscan.io/cosmos/txs/{txHash} \n2 channel-10 https://mintscan.io/juno/txs/{txHash} \n3 channel-11 https://cyb.ai/network/bostrom/tx/{txHash} \n4 channel-12 https://mintscan.io/gravity-bridge/txs/{txHash} \n5 channel-13 https://mintscan.io/desmos/txs/{txHash} \n6 channel-14 https://mintscan.io/axelar/txs/{txHash} \n7 channel-15 https://explorer.nodestake.top/terra2/tx/{txHash} \n8 channel-16 https://explorer.nodestake.top/terra2/tx/{txHash} \n9 channel-17 https://explorer.nodestake.top/8ball/tx/{txHash} \n12 channel-2 https://mintscan.io/osmosis/txs/{txHash} \n23 channel-3 https://mintscan.io/osmosis/txs/{txHash} \n34 channel-4 https://mintscan.io/cosmos/txs/{txHash} \n42 channel-5 https://mintscan.io/cosmos/txs/{txHash} \n43 channel-6 https://mintscan.io/gravity-bridge/txs/{txHash} \n44 channel-7 https://mintscan.io/gravity-bridge/txs/{txHash} \n45 channel-8 https://mintscan.io/cosmos/txs/{txHash} \n46 channel-9 https://mintscan.io/evmos/txs/{txHash} ", - "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
activedestination_chain_iddestination_channel_idsource_chain_idsource_channel_idexplorer_url
0falseosmosis-1channel-79bostromchannel-0https://mintscan.io/osmosis/txs/{txHash}
1falsecosmoshub-4channel-225bostromchannel-1https://mintscan.io/cosmos/txs/{txHash}
2truejuno-1channel-93bostromchannel-10https://mintscan.io/juno/txs/{txHash}
3truespace-pussychannel-0bostromchannel-11https://cyb.ai/network/bostrom/tx/{txHash}
4falsegravity-bridge-3channel-103bostromchannel-12https://mintscan.io/gravity-bridge/txs/{txHash}
5truedesmos-mainnetchannel-6bostromchannel-13https://mintscan.io/desmos/txs/{txHash}
6trueaxelar-dojo-1channel-52bostromchannel-14https://mintscan.io/axelar/txs/{txHash}
7falsephoenix-1channel-108bostromchannel-15https://explorer.nodestake.top/terra2/tx/{txHash}
8falsephoenix-1channel-121bostromchannel-16https://explorer.nodestake.top/terra2/tx/{txHash}
9falseeightball-1channel-30bostromchannel-17https://explorer.nodestake.top/8ball/tx/{txHash}
12trueosmosis-1channel-95bostromchannel-2https://mintscan.io/osmosis/txs/{txHash}
23falseosmosis-1channel-96bostromchannel-3https://mintscan.io/osmosis/txs/{txHash}
34falsecosmoshub-4channel-237bostromchannel-4https://mintscan.io/cosmos/txs/{txHash}
42falsecosmoshub-4channel-240bostromchannel-5https://mintscan.io/cosmos/txs/{txHash}
43falsegravity-bridge-3channel-33bostromchannel-6https://mintscan.io/gravity-bridge/txs/{txHash}
44truegravity-bridge-3channel-78bostromchannel-7https://mintscan.io/gravity-bridge/txs/{txHash}
45truecosmoshub-4channel-341bostromchannel-8https://mintscan.io/cosmos/txs/{txHash}
46trueevmos_9001-2channel-19bostromchannel-9https://mintscan.io/evmos/txs/{txHash}
\n
" + "text/plain": " active destination_chain_id destination_channel_id source_chain_id \\\n0 false osmosis-1 channel-79 bostrom \n1 false cosmoshub-4 channel-225 bostrom \n2 false juno-1 channel-93 bostrom \n3 true space-pussy channel-0 bostrom \n4 false gravity-bridge-3 channel-103 bostrom \n5 true desmos-mainnet channel-6 bostrom \n6 false axelar-dojo-1 channel-52 bostrom \n7 false phoenix-1 channel-108 bostrom \n8 false phoenix-1 channel-121 bostrom \n9 false eightball-1 channel-30 bostrom \n12 true osmosis-1 channel-95 bostrom \n23 false osmosis-1 channel-96 bostrom \n34 false cosmoshub-4 channel-237 bostrom \n45 false cosmoshub-4 channel-240 bostrom \n49 false gravity-bridge-3 channel-33 bostrom \n50 false gravity-bridge-3 channel-78 bostrom \n51 true cosmoshub-4 channel-341 bostrom \n52 true evmos_9001-2 channel-19 bostrom \n\n source_channel_id explorer_url \n0 channel-0 https://mintscan.io/osmosis/txs/{txHash} \n1 channel-1 https://mintscan.io/cosmos/txs/{txHash} \n2 channel-10 https://mintscan.io/juno/txs/{txHash} \n3 channel-11 https://cyb.ai/network/bostrom/tx/{txHash} \n4 channel-12 https://mintscan.io/gravity-bridge/txs/{txHash} \n5 channel-13 https://mintscan.io/desmos/txs/{txHash} \n6 channel-14 https://mintscan.io/axelar/txs/{txHash} \n7 channel-15 https://explorer.nodestake.top/terra2/tx/{txHash} \n8 channel-16 https://explorer.nodestake.top/terra2/tx/{txHash} \n9 channel-17 https://explorer.nodestake.top/8ball/tx/{txHash} \n12 channel-2 https://mintscan.io/osmosis/txs/{txHash} \n23 channel-3 https://mintscan.io/osmosis/txs/{txHash} \n34 channel-4 https://mintscan.io/cosmos/txs/{txHash} \n45 channel-5 https://mintscan.io/cosmos/txs/{txHash} \n49 channel-6 https://mintscan.io/gravity-bridge/txs/{txHash} \n50 channel-7 https://mintscan.io/gravity-bridge/txs/{txHash} \n51 channel-8 https://mintscan.io/cosmos/txs/{txHash} \n52 channel-9 https://mintscan.io/evmos/txs/{txHash} ", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
activedestination_chain_iddestination_channel_idsource_chain_idsource_channel_idexplorer_url
0falseosmosis-1channel-79bostromchannel-0https://mintscan.io/osmosis/txs/{txHash}
1falsecosmoshub-4channel-225bostromchannel-1https://mintscan.io/cosmos/txs/{txHash}
2falsejuno-1channel-93bostromchannel-10https://mintscan.io/juno/txs/{txHash}
3truespace-pussychannel-0bostromchannel-11https://cyb.ai/network/bostrom/tx/{txHash}
4falsegravity-bridge-3channel-103bostromchannel-12https://mintscan.io/gravity-bridge/txs/{txHash}
5truedesmos-mainnetchannel-6bostromchannel-13https://mintscan.io/desmos/txs/{txHash}
6falseaxelar-dojo-1channel-52bostromchannel-14https://mintscan.io/axelar/txs/{txHash}
7falsephoenix-1channel-108bostromchannel-15https://explorer.nodestake.top/terra2/tx/{txHash}
8falsephoenix-1channel-121bostromchannel-16https://explorer.nodestake.top/terra2/tx/{txHash}
9falseeightball-1channel-30bostromchannel-17https://explorer.nodestake.top/8ball/tx/{txHash}
12trueosmosis-1channel-95bostromchannel-2https://mintscan.io/osmosis/txs/{txHash}
23falseosmosis-1channel-96bostromchannel-3https://mintscan.io/osmosis/txs/{txHash}
34falsecosmoshub-4channel-237bostromchannel-4https://mintscan.io/cosmos/txs/{txHash}
45falsecosmoshub-4channel-240bostromchannel-5https://mintscan.io/cosmos/txs/{txHash}
49falsegravity-bridge-3channel-33bostromchannel-6https://mintscan.io/gravity-bridge/txs/{txHash}
50falsegravity-bridge-3channel-78bostromchannel-7https://mintscan.io/gravity-bridge/txs/{txHash}
51truecosmoshub-4channel-341bostromchannel-8https://mintscan.io/cosmos/txs/{txHash}
52trueevmos_9001-2channel-19bostromchannel-9https://mintscan.io/evmos/txs/{txHash}
\n
" }, "execution_count": 9, "metadata": {}, @@ -386,13 +405,13 @@ } ], "source": [ - "channels_df[(channels_df.active=='false') | (channels_df.source_channel_id.isin(APPROVED_ACTIVE_CHANNELS))]" + "channels_df[(channels_df.active == 'false') | (channels_df.source_channel_id.isin(APPROVED_ACTIVE_CHANNELS))]" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:02:16.373928Z", - "start_time": "2023-06-30T03:02:16.362654Z" + "end_time": "2024-03-01T05:50:54.568691Z", + "start_time": "2024-03-01T05:50:54.562326Z" } } }, @@ -402,7 +421,7 @@ "outputs": [], "source": [ "channels_json = channels_df[\n", - " (channels_df.active=='false') | (channels_df.source_channel_id.isin(APPROVED_ACTIVE_CHANNELS))]\\\n", + " (channels_df.active == 'false') | (channels_df.source_channel_id.isin(APPROVED_ACTIVE_CHANNELS))] \\\n", " .to_json(orient='records')\n", "with open('data/channels.json', 'w') as file:\n", " file.write(channels_json)" @@ -410,8 +429,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:02:16.378537Z", - "start_time": "2023-06-30T03:02:16.376142Z" + "end_time": "2024-03-01T05:50:54.570068Z", + "start_time": "2024-03-01T05:50:54.567801Z" } } }, @@ -437,7 +456,9 @@ " 'hydrogen': 0,\n", " 'liquidpussy': 0,\n", " 'milliampere': 3,\n", + " 'milliampere(space-pussy)': 3,\n", " 'millivolt': 3,\n", + " 'millivolt(space-pussy)': 3,\n", " 'pussy': 0,\n", " 'tocyb': 0,\n", " 'uatom': 6,\n", @@ -452,7 +473,9 @@ "TOKENS_TICKER = {\n", " 'hydrogen': 'h',\n", " 'milliampere': 'a',\n", + " 'milliampere(space-pussy)': 'ap',\n", " 'millivolt': 'v',\n", + " 'millivolt(space-pussy)': 'vp',\n", " 'liquidpussy': 'lp',\n", " 'aevmos': 'evmos',\n", " 'cw20:juno1u8cr3hcjvfkzxcaacv9q75uw9hwjmn8pucc93pmy6yvkzz79kh3qncca8x': 'fox',\n", @@ -472,8 +495,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:02:16.399104Z", - "start_time": "2023-06-30T03:02:16.380738Z" + "end_time": "2024-03-01T05:50:54.577608Z", + "start_time": "2024-03-01T05:50:54.573412Z" } } }, @@ -485,24 +508,26 @@ "def get_tokens(chain_id: str = CHAIN_ID,\n", " cli_name: str = 'cyber',\n", " node_rpc_url: str = NODE_RPC_URL) -> pd.DataFrame:\n", - "\n", - " _tokens_supply_json = get_json_from_bash_query(bash_command=f'{cli_name} query bank total -o=json --node={node_rpc_url}')['supply']\n", + " _tokens_supply_json = \\\n", + " get_json_from_bash_query(bash_command=f'{cli_name} query bank total -o=json --node={node_rpc_url}')['supply']\n", " _tokens_df = pd.DataFrame(_tokens_supply_json)\n", " _tokens_df = _tokens_df.rename(columns={'amount': 'supply'})\n", "\n", " _tokens_df['base_denom'] = _tokens_df['denom'].map(\n", " lambda denom: get_json_from_bash_query(\n", - " bash_command=f'{cli_name} query ibc-transfer denom-trace {denom[4:]} -o=json --node={node_rpc_url}')['denom_trace']['base_denom'] if denom[:4]=='ibc/' else denom)\n", + " bash_command=f'{cli_name} query ibc-transfer denom-trace {denom[4:]} -o=json --node={node_rpc_url}')[\n", + " 'denom_trace']['base_denom'] if denom[:4] == 'ibc/' else denom)\n", "\n", " _tokens_df['path'] = _tokens_df['denom'].map(\n", " lambda denom: get_json_from_bash_query(\n", - " bash_command=f'{cli_name} query ibc-transfer denom-trace {denom[4:]} -o=json --node={node_rpc_url}')['denom_trace']['path'] if denom[:4]=='ibc/' else None)\n", + " bash_command=f'{cli_name} query ibc-transfer denom-trace {denom[4:]} -o=json --node={node_rpc_url}')[\n", + " 'denom_trace']['path'] if denom[:4] == 'ibc/' else None)\n", " _tokens_df['chain_id'] = chain_id\n", " return _tokens_df\n", "\n", "\n", "def get_decimals(base_denom: str) -> str:\n", - " if base_denom[:4] =='pool':\n", + " if base_denom[:4] == 'pool':\n", " return '0'\n", " if base_denom in TOKENS_DECIMALS.keys():\n", " return str(TOKENS_DECIMALS[base_denom])\n", @@ -510,7 +535,7 @@ "\n", "\n", "def get_ticker(base_denom: str) -> str:\n", - " if base_denom[:4] =='pool':\n", + " if base_denom[:4] == 'pool':\n", " return base_denom\n", " if base_denom in TOKENS_TICKER.keys():\n", " return TOKENS_TICKER[base_denom]\n", @@ -526,8 +551,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:02:16.419784Z", - "start_time": "2023-06-30T03:02:16.386274Z" + "end_time": "2024-03-01T05:50:54.599233Z", + "start_time": "2024-03-01T05:50:54.579363Z" } } }, @@ -553,19 +578,22 @@ " {_token['denom']: _token['ticker']\n", " for _token in json.loads(tokens_df[['denom', 'ticker']].to_json(orient='records'))}\n", " pool_ticker_dict = \\\n", - " {pool['pool_coin_denom']: f'{denom_ticker_dict[pool[\"reserve_coin_denoms\"][0]]}-{denom_ticker_dict[pool[\"reserve_coin_denoms\"][1]]}'\n", + " {pool[\n", + " 'pool_coin_denom']: f'{denom_ticker_dict[pool[\"reserve_coin_denoms\"][0]]}-{denom_ticker_dict[pool[\"reserve_coin_denoms\"][1]]}'\n", " for pool in pools_json}\n", - " tokens_df['ticker'] = tokens_df['ticker'].map(lambda ticker: pool_ticker_dict[ticker] if ticker in pool_ticker_dict.keys() else ticker)\n", + " tokens_df['ticker'] = tokens_df['ticker'].map(\n", + " lambda ticker: pool_ticker_dict[ticker] if ticker in pool_ticker_dict.keys() else ticker)\n", "\n", "tokens_df['ticker'] = tokens_df['ticker'].map(lambda ticker: sub(r'\\W', '', string=ticker).upper())\n", "tokens_df['logo'] = tokens_df['ticker'].map(get_logo)\n", - "tokens_df['contract'] = tokens_df.apply(lambda x: f'native/{x[\"denom\"]}' if x['channel_id'] == '' else x['denom'], axis=1)" + "tokens_df['contract'] = tokens_df.apply(lambda x: f'native/{x[\"denom\"]}' if x['channel_id'] == '' else x['denom'],\n", + " axis=1)" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:04:00.262373Z", - "start_time": "2023-06-30T03:02:16.399354Z" + "end_time": "2024-03-01T05:55:29.095534Z", + "start_time": "2024-03-01T05:50:54.584637Z" } } }, @@ -575,8 +603,8 @@ "outputs": [ { "data": { - "text/plain": " denom supply \\\n0 boot 1151985961031235 \n1 hydrogen 298380398295153 \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... 58356027252 \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... 13633565633 \n4 ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B... 100000 \n.. ... ... \n73 pool1557C0FE379360455685A25759033E0FCF9824869E... 99592225257782 \n74 pool64073A945EB959C730ED7D5D24F4460823A157C0AD... 290627502770197 \n75 pool906F3CC4C0F4634031990DB81761BD390890F8A8A8... 116438874003029 \n76 poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242... 1052855457473 \n77 pussy 1018494839075572109 \n\n base_denom \\\n0 boot \n1 hydrogen \n2 uosmo \n3 uatom \n4 ucre \n.. ... \n73 pool1557C0FE379360455685A25759033E0FCF9824869E... \n74 pool64073A945EB959C730ED7D5D24F4460823A157C0AD... \n75 pool906F3CC4C0F4634031990DB81761BD390890F8A8A8... \n76 poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242... \n77 pussy \n\n path chain_id \\\n0 None bostrom \n1 None bostrom \n2 transfer/channel-2 bostrom \n3 transfer/channel-8 bostrom \n4 transfer/channel-12/transfer/channel-62 bostrom \n.. ... ... \n73 None space-pussy \n74 None space-pussy \n75 None space-pussy \n76 None space-pussy \n77 None space-pussy \n\n channel_id decimals \\\n0 0 \n1 0 \n2 channel-2 6 \n3 channel-8 6 \n4 channel-12 channel-62 6 \n.. ... ... \n73 0 \n74 0 \n75 0 \n76 0 \n77 0 \n\n ticker \\\n0 BOOT \n1 H \n2 OSMO \n3 ATOM \n4 CRE \n.. ... \n73 POOL1557C0FE379360455685A25759033E0FCF9824869E... \n74 POOL64073A945EB959C730ED7D5D24F4460823A157C0AD... \n75 POOL906F3CC4C0F4634031990DB81761BD390890F8A8A8... \n76 POOLE0E01DC7AC087C5F46B41114F98175E00DB01B5242... \n77 PUSSY \n\n logo \\\n0 QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkf \n1 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK \n2 QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJ \n3 Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDX \n4 QmeZp5GFJYaiCkrwgpAZJooAV78xx1TkjhDCeVvC3wWfx6 \n.. ... \n73 \n74 \n75 \n76 \n77 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r \n\n contract \n0 native/boot \n1 native/hydrogen \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... \n4 ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B... \n.. ... \n73 native/pool1557C0FE379360455685A25759033E0FCF9... \n74 native/pool64073A945EB959C730ED7D5D24F4460823A... \n75 native/pool906F3CC4C0F4634031990DB81761BD39089... \n76 native/poolE0E01DC7AC087C5F46B41114F98175E00DB... \n77 native/pussy \n\n[78 rows x 10 columns]", - "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
denomsupplybase_denompathchain_idchannel_iddecimalstickerlogocontract
0boot1151985961031235bootNonebostrom0BOOTQmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkfnative/boot
1hydrogen298380398295153hydrogenNonebostrom0HQmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKnative/hydrogen
2ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...58356027252uosmotransfer/channel-2bostromchannel-26OSMOQmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...
3ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...13633565633uatomtransfer/channel-8bostromchannel-86ATOMQmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDXibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...
4ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B...100000ucretransfer/channel-12/transfer/channel-62bostromchannel-12 channel-626CREQmeZp5GFJYaiCkrwgpAZJooAV78xx1TkjhDCeVvC3wWfx6ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B...
.................................
73pool1557C0FE379360455685A25759033E0FCF9824869E...99592225257782pool1557C0FE379360455685A25759033E0FCF9824869E...Nonespace-pussy0POOL1557C0FE379360455685A25759033E0FCF9824869E...native/pool1557C0FE379360455685A25759033E0FCF9...
74pool64073A945EB959C730ED7D5D24F4460823A157C0AD...290627502770197pool64073A945EB959C730ED7D5D24F4460823A157C0AD...Nonespace-pussy0POOL64073A945EB959C730ED7D5D24F4460823A157C0AD...native/pool64073A945EB959C730ED7D5D24F4460823A...
75pool906F3CC4C0F4634031990DB81761BD390890F8A8A8...116438874003029pool906F3CC4C0F4634031990DB81761BD390890F8A8A8...Nonespace-pussy0POOL906F3CC4C0F4634031990DB81761BD390890F8A8A8...native/pool906F3CC4C0F4634031990DB81761BD39089...
76poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242...1052855457473poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242...Nonespace-pussy0POOLE0E01DC7AC087C5F46B41114F98175E00DB01B5242...native/poolE0E01DC7AC087C5F46B41114F98175E00DB...
77pussy1018494839075572109pussyNonespace-pussy0PUSSYQmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rnative/pussy
\n

78 rows × 10 columns

\n
" + "text/plain": " denom supply \\\n0 boot 1187729363575272 \n1 hydrogen 320977320483837 \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... 96711624011 \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... 18539295152 \n4 ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B... 100000 \n.. ... ... \n75 pool34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4... 31579877735130 \n76 pool64073A945EB959C730ED7D5D24F4460823A157C0AD... 296558414205528 \n77 pool906F3CC4C0F4634031990DB81761BD390890F8A8A8... 263271315249719 \n78 poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242... 1061705017688 \n79 pussy 1036180946753943060 \n\n base_denom \\\n0 boot \n1 hydrogen \n2 uosmo \n3 uatom \n4 ucre \n.. ... \n75 pool34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4... \n76 pool64073A945EB959C730ED7D5D24F4460823A157C0AD... \n77 pool906F3CC4C0F4634031990DB81761BD390890F8A8A8... \n78 poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242... \n79 pussy \n\n path chain_id \\\n0 None bostrom \n1 None bostrom \n2 transfer/channel-2 bostrom \n3 transfer/channel-8 bostrom \n4 transfer/channel-12/transfer/channel-62 bostrom \n.. ... ... \n75 None space-pussy \n76 None space-pussy \n77 None space-pussy \n78 None space-pussy \n79 None space-pussy \n\n channel_id decimals \\\n0 0 \n1 0 \n2 channel-2 6 \n3 channel-8 6 \n4 channel-12 channel-62 6 \n.. ... ... \n75 0 \n76 0 \n77 0 \n78 0 \n79 0 \n\n ticker \\\n0 BOOT \n1 H \n2 OSMO \n3 ATOM \n4 CRE \n.. ... \n75 POOL34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4... \n76 POOL64073A945EB959C730ED7D5D24F4460823A157C0AD... \n77 POOL906F3CC4C0F4634031990DB81761BD390890F8A8A8... \n78 POOLE0E01DC7AC087C5F46B41114F98175E00DB01B5242... \n79 PUSSY \n\n logo \\\n0 QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkf \n1 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK \n2 QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJ \n3 Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDX \n4 QmeZp5GFJYaiCkrwgpAZJooAV78xx1TkjhDCeVvC3wWfx6 \n.. ... \n75 \n76 \n77 \n78 \n79 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r \n\n contract \n0 native/boot \n1 native/hydrogen \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... \n4 ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B... \n.. ... \n75 native/pool34AE39C2A7BCABC167C52E1A1805D9CCA00... \n76 native/pool64073A945EB959C730ED7D5D24F4460823A... \n77 native/pool906F3CC4C0F4634031990DB81761BD39089... \n78 native/poolE0E01DC7AC087C5F46B41114F98175E00DB... \n79 native/pussy \n\n[80 rows x 10 columns]", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
denomsupplybase_denompathchain_idchannel_iddecimalstickerlogocontract
0boot1187729363575272bootNonebostrom0BOOTQmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkfnative/boot
1hydrogen320977320483837hydrogenNonebostrom0HQmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKnative/hydrogen
2ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...96711624011uosmotransfer/channel-2bostromchannel-26OSMOQmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...
3ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...18539295152uatomtransfer/channel-8bostromchannel-86ATOMQmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDXibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...
4ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B...100000ucretransfer/channel-12/transfer/channel-62bostromchannel-12 channel-626CREQmeZp5GFJYaiCkrwgpAZJooAV78xx1TkjhDCeVvC3wWfx6ibc/1DE3244B072A8939517C17C7B679F3B735B2D9AA6B...
.................................
75pool34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4...31579877735130pool34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4...Nonespace-pussy0POOL34AE39C2A7BCABC167C52E1A1805D9CCA001A7F0D4...native/pool34AE39C2A7BCABC167C52E1A1805D9CCA00...
76pool64073A945EB959C730ED7D5D24F4460823A157C0AD...296558414205528pool64073A945EB959C730ED7D5D24F4460823A157C0AD...Nonespace-pussy0POOL64073A945EB959C730ED7D5D24F4460823A157C0AD...native/pool64073A945EB959C730ED7D5D24F4460823A...
77pool906F3CC4C0F4634031990DB81761BD390890F8A8A8...263271315249719pool906F3CC4C0F4634031990DB81761BD390890F8A8A8...Nonespace-pussy0POOL906F3CC4C0F4634031990DB81761BD390890F8A8A8...native/pool906F3CC4C0F4634031990DB81761BD39089...
78poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242...1061705017688poolE0E01DC7AC087C5F46B41114F98175E00DB01B5242...Nonespace-pussy0POOLE0E01DC7AC087C5F46B41114F98175E00DB01B5242...native/poolE0E01DC7AC087C5F46B41114F98175E00DB...
79pussy1036180946753943060pussyNonespace-pussy0PUSSYQmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rnative/pussy
\n

80 rows × 10 columns

\n
" }, "execution_count": 14, "metadata": {}, @@ -589,8 +617,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:04:00.280457Z", - "start_time": "2023-06-30T03:04:00.273685Z" + "end_time": "2024-03-01T05:55:29.109215Z", + "start_time": "2024-03-01T05:55:29.106322Z" } } }, @@ -600,8 +628,8 @@ "outputs": [ { "data": { - "text/plain": " chain_id channel_id decimals \\\n0 bostrom 0 \n1 bostrom 0 \n2 bostrom channel-2 6 \n3 bostrom channel-8 6 \n5 bostrom channel-11 3 \n9 bostrom channel-11 0 \n10 bostrom channel-11 3 \n11 bostrom channel-9 6 \n14 bostrom channel-10 6 \n16 bostrom channel-11 0 \n21 bostrom channel-13 6 \n26 bostrom 3 \n27 bostrom 3 \n51 bostrom 0 \n69 space-pussy 0 \n70 space-pussy 3 \n71 space-pussy 3 \n77 space-pussy 0 \n\n logo ticker \\\n0 QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkf BOOT \n1 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK H \n2 QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJ OSMO \n3 Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDX ATOM \n5 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n9 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r PUSSY \n10 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n11 QmNcoUHaACiZ8mM89qvA3spsBebbrQWtGNyoQcRSoJiFPF EVMOS \n14 QmZyWYqKU4ny1gqSz16CmfrHJKS4zkybjS2DDQxs7YZPV9 JUNO \n16 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK LP \n21 QmeYujkRMAXxh3JDrtT1B3NvCQL6tAuzbF8UkF6KjrJH1B DSM \n26 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n27 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n51 QmaFDLBuEf3Uo1gYCY3CciGwgXxcc5pEVKwpVCfCcrJFyp TOCYB \n69 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK LP \n70 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n71 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n77 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r PUSSY \n\n contract \n0 native/boot \n1 native/hydrogen \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... \n5 ibc/29FC7F418F1EFB5DAB3DD089AADA1FE406DC78633B... \n9 ibc/43DB7553C43D81CB01E9A2644B49A241314B482C2E... \n10 ibc/47160B934644DED2F8E605B0521C6CC06F75A0465D... \n11 ibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035... \n14 ibc/8D9262E35CAE362FA74AE05E430550757CF8D842EC... \n16 ibc/9B45B8C514B76D792BEC4850AE601E0E73CE7D307A... \n21 ibc/CA5E8F31288514D728AFD1F0533A7F6902AA1192C8... \n26 native/milliampere \n27 native/millivolt \n51 native/tocyb \n69 native/liquidpussy \n70 native/milliampere \n71 native/millivolt \n77 native/pussy ", - "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
chain_idchannel_iddecimalslogotickercontract
0bostrom0QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkfBOOTnative/boot
1bostrom0QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKHnative/hydrogen
2bostromchannel-26QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJOSMOibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...
3bostromchannel-86Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDXATOMibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...
5bostromchannel-113QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Aibc/29FC7F418F1EFB5DAB3DD089AADA1FE406DC78633B...
9bostromchannel-110QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rPUSSYibc/43DB7553C43D81CB01E9A2644B49A241314B482C2E...
10bostromchannel-113QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVibc/47160B934644DED2F8E605B0521C6CC06F75A0465D...
11bostromchannel-96QmNcoUHaACiZ8mM89qvA3spsBebbrQWtGNyoQcRSoJiFPFEVMOSibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035...
14bostromchannel-106QmZyWYqKU4ny1gqSz16CmfrHJKS4zkybjS2DDQxs7YZPV9JUNOibc/8D9262E35CAE362FA74AE05E430550757CF8D842EC...
16bostromchannel-110QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKLPibc/9B45B8C514B76D792BEC4850AE601E0E73CE7D307A...
21bostromchannel-136QmeYujkRMAXxh3JDrtT1B3NvCQL6tAuzbF8UkF6KjrJH1BDSMibc/CA5E8F31288514D728AFD1F0533A7F6902AA1192C8...
26bostrom3QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Anative/milliampere
27bostrom3QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVnative/millivolt
51bostrom0QmaFDLBuEf3Uo1gYCY3CciGwgXxcc5pEVKwpVCfCcrJFypTOCYBnative/tocyb
69space-pussy0QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKLPnative/liquidpussy
70space-pussy3QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Anative/milliampere
71space-pussy3QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVnative/millivolt
77space-pussy0QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rPUSSYnative/pussy
\n
" + "text/plain": " chain_id channel_id decimals \\\n0 bostrom 0 \n1 bostrom 0 \n2 bostrom channel-2 6 \n3 bostrom channel-8 6 \n5 bostrom channel-11 3 \n9 bostrom channel-11 0 \n10 bostrom channel-11 3 \n11 bostrom channel-9 6 \n16 bostrom channel-11 0 \n22 bostrom channel-13 6 \n27 bostrom 3 \n28 bostrom 3 \n52 bostrom 0 \n70 space-pussy 0 \n71 space-pussy 3 \n72 space-pussy 3 \n79 space-pussy 0 \n\n logo ticker \\\n0 QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkf BOOT \n1 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK H \n2 QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJ OSMO \n3 Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDX ATOM \n5 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n9 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r PUSSY \n10 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n11 QmNcoUHaACiZ8mM89qvA3spsBebbrQWtGNyoQcRSoJiFPF EVMOS \n16 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK LP \n22 QmeYujkRMAXxh3JDrtT1B3NvCQL6tAuzbF8UkF6KjrJH1B DSM \n27 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n28 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n52 QmaFDLBuEf3Uo1gYCY3CciGwgXxcc5pEVKwpVCfCcrJFyp TOCYB \n70 QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrK LP \n71 QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27 A \n72 QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZ V \n79 QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9r PUSSY \n\n contract \n0 native/boot \n1 native/hydrogen \n2 ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071... \n3 ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC... \n5 ibc/29FC7F418F1EFB5DAB3DD089AADA1FE406DC78633B... \n9 ibc/43DB7553C43D81CB01E9A2644B49A241314B482C2E... \n10 ibc/47160B934644DED2F8E605B0521C6CC06F75A0465D... \n11 ibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035... \n16 ibc/9B45B8C514B76D792BEC4850AE601E0E73CE7D307A... \n22 ibc/CA5E8F31288514D728AFD1F0533A7F6902AA1192C8... \n27 native/milliampere \n28 native/millivolt \n52 native/tocyb \n70 native/liquidpussy \n71 native/milliampere \n72 native/millivolt \n79 native/pussy ", + "text/html": "
\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
chain_idchannel_iddecimalslogotickercontract
0bostrom0QmaFs8AjTfNy6XFq8xb6boN1eC4nrznaPnvytJtq3FHnkfBOOTnative/boot
1bostrom0QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKHnative/hydrogen
2bostromchannel-26QmdbiuCkCGiFV8aaUVyJTpVMLj97DLvF8vbM1mf73xRsVJOSMOibc/13B2C536BB057AC79D5616B8EA1B9540EC1F217071...
3bostromchannel-86Qmb5L5ZwJSt22Vra9jNph7aSFKqfVW8f4HVWqNU15qsqDXATOMibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC...
5bostromchannel-113QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Aibc/29FC7F418F1EFB5DAB3DD089AADA1FE406DC78633B...
9bostromchannel-110QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rPUSSYibc/43DB7553C43D81CB01E9A2644B49A241314B482C2E...
10bostromchannel-113QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVibc/47160B934644DED2F8E605B0521C6CC06F75A0465D...
11bostromchannel-96QmNcoUHaACiZ8mM89qvA3spsBebbrQWtGNyoQcRSoJiFPFEVMOSibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035...
16bostromchannel-110QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKLPibc/9B45B8C514B76D792BEC4850AE601E0E73CE7D307A...
22bostromchannel-136QmeYujkRMAXxh3JDrtT1B3NvCQL6tAuzbF8UkF6KjrJH1BDSMibc/CA5E8F31288514D728AFD1F0533A7F6902AA1192C8...
27bostrom3QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Anative/milliampere
28bostrom3QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVnative/millivolt
52bostrom0QmaFDLBuEf3Uo1gYCY3CciGwgXxcc5pEVKwpVCfCcrJFypTOCYBnative/tocyb
70space-pussy0QmZDWdXXBgJJ5QEvc68xeaJhk3dwJgsVQnSjJnoEtCBRrKLPnative/liquidpussy
71space-pussy3QmTBHnJ27sADmHuFdaxo5i1m9Jvo988MUQP3Yp9Ph8Ua27Anative/milliampere
72space-pussy3QmWgPPn5CVYroJfvZVqnd4YzH3iqNEkhCLAuQS6jLs8nxZVnative/millivolt
79space-pussy0QmVdamuwvpDUENhsGH5RGP7Dx4redrCFCM3kuy5hNFvo9rPUSSYnative/pussy
\n
" }, "execution_count": 15, "metadata": {}, @@ -610,14 +638,14 @@ ], "source": [ "tokens_df[(tokens_df.channel_id.isin(APPROVED_ACTIVE_CHANNELS + [''])) & \\\n", - " (tokens_df.contract.map(lambda x: x[:11] !='native/pool'))][\n", + " (tokens_df.contract.map(lambda x: x[:11] != 'native/pool'))][\n", " ['chain_id', 'channel_id', 'decimals', 'logo', 'ticker', 'contract']]" ], "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:04:00.304982Z", - "start_time": "2023-06-30T03:04:00.286693Z" + "end_time": "2024-03-01T05:55:29.118399Z", + "start_time": "2024-03-01T05:55:29.109965Z" } } }, @@ -627,7 +655,7 @@ "outputs": [], "source": [ "tokens_json = tokens_df[(tokens_df.channel_id.isin(APPROVED_ACTIVE_CHANNELS + [''])) & \\\n", - " (tokens_df.contract.map(lambda x: x[:11] !='native/pool'))][\n", + " (tokens_df.contract.map(lambda x: x[:11] != 'native/pool'))][\n", " ['chain_id', 'channel_id', 'decimals', 'logo', 'ticker', 'contract']].to_json(orient='records')\n", "with open('data/tokens.json', 'w') as file:\n", " file.write(tokens_json)" @@ -635,8 +663,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:04:00.305127Z", - "start_time": "2023-06-30T03:04:00.291424Z" + "end_time": "2024-03-01T05:55:29.144896Z", + "start_time": "2024-03-01T05:55:29.121657Z" } } }, @@ -648,8 +676,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-06-30T03:04:00.309988Z", - "start_time": "2023-06-30T03:04:00.294933Z" + "end_time": "2024-03-01T05:55:29.145169Z", + "start_time": "2024-03-01T05:55:29.126712Z" } } } diff --git a/hub/hub_update_data.ipynb b/hub/hub_update_data.ipynb index ffade01..ee6d4a0 100644 --- a/hub/hub_update_data.ipynb +++ b/hub/hub_update_data.ipynb @@ -17,12 +17,15 @@ "import json\n", "import base64\n", "import requests\n", + "import sys\n", + "from pathlib import Path\n", "\n", "from cyber_sdk.client.lcd import LCDClient\n", "from cyber_sdk.key.mnemonic import MnemonicKey\n", "from cyberutils.contract import execute_contract\n", "\n", - "from ..config import LCD_CLIENT, NODE_LCD_URL, WALLET_SEED, WALLET_ADDRESS\n", + "sys.path.append(str(Path(sys.argv[0]).resolve().parent.parent))\n", + "from config import LCD_CLIENT, NODE_LCD_URL, WALLET_SEED, WALLET_ADDRESS\n", "\n", "mk = MnemonicKey(mnemonic=WALLET_SEED)\n", "WALLET = LCD_CLIENT.wallet(mk)\n", @@ -72,8 +75,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:40:55.985523Z", - "start_time": "2023-10-12T10:40:55.630729Z" + "end_time": "2024-03-01T06:28:57.894694Z", + "start_time": "2024-03-01T06:28:57.575917Z" } } }, @@ -127,8 +130,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:40:55.991975Z", - "start_time": "2023-10-12T10:40:55.990154Z" + "end_time": "2024-03-01T06:28:57.895123Z", + "start_time": "2024-03-01T06:28:57.884833Z" } } }, @@ -173,8 +176,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:40:55.996203Z", - "start_time": "2023-10-12T10:40:55.993871Z" + "end_time": "2024-03-01T06:28:57.895257Z", + "start_time": "2024-03-01T06:28:57.888091Z" } } }, @@ -186,7 +189,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "[{'UpdateEntry': {'id': 5, 'active': 'true', 'destination_chain_id': 'gravity-bridge-3', 'destination_channel_id': 'channel-103', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-12', 'explorer_url': 'https://mintscan.io/gravity-bridge/txs/{txHash}'}}, {'UpdateEntry': {'id': 16, 'active': 'false', 'destination_chain_id': 'gravity-bridge-3', 'destination_channel_id': 'channel-78', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-7', 'explorer_url': 'https://mintscan.io/gravity-bridge/txs/{txHash}'}}]\n", + "[{'UpdateEntry': {'id': 5, 'active': 'false', 'destination_chain_id': 'gravity-bridge-3', 'destination_channel_id': 'channel-103', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-12', 'explorer_url': 'https://mintscan.io/gravity-bridge/txs/{txHash}'}}, {'UpdateEntry': {'id': 7, 'active': 'false', 'destination_chain_id': 'axelar-dojo-1', 'destination_channel_id': 'channel-52', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-14', 'explorer_url': 'https://mintscan.io/axelar/txs/{txHash}'}}]\n", "bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\n", "bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\n" ] @@ -209,8 +212,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:41:02.767780Z", - "start_time": "2023-10-12T10:40:55.997255Z" + "end_time": "2024-03-01T06:29:12.352139Z", + "start_time": "2024-03-01T06:28:57.891720Z" } } }, @@ -220,7 +223,7 @@ "outputs": [ { "data": { - "text/plain": "{'height': 10361422,\n 'txhash': '1F64912FDA7C24E9017EFA4B8CBCA3E27069F6384616D7C0F85CC7F4D2D613C5',\n 'raw_log': '[{\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"5\"}]}]},{\"msg_index\":1,\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"16\"}]}]}]',\n 'gas_wanted': 20000000,\n 'gas_used': 217885,\n 'logs': [{'msg_index': 0,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '5'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['5']}}},\n {'msg_index': 1,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '16'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['16']}}}],\n 'code': 0,\n 'codespace': '',\n 'info': None,\n 'data': None,\n 'timestamp': None}" + "text/plain": "{'height': 12391606,\n 'txhash': 'C585CA4BC052BCB32E46BE1A2CFD0E7CE273F41079FFC3CD23966C1732AB8D92',\n 'raw_log': '[{\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"5\"}]}]},{\"msg_index\":1,\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"7\"}]}]}]',\n 'gas_wanted': 20000000,\n 'gas_used': 217345,\n 'logs': [{'msg_index': 0,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '5'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['5']}}},\n {'msg_index': 1,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '7'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['7']}}}],\n 'code': 0,\n 'codespace': '',\n 'info': None,\n 'data': None,\n 'timestamp': None}" }, "execution_count": 5, "metadata": {}, @@ -233,8 +236,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:41:02.777486Z", - "start_time": "2023-10-12T10:41:02.772076Z" + "end_time": "2024-03-01T06:29:12.367640Z", + "start_time": "2024-03-01T06:29:12.352426Z" } } }, @@ -246,8 +249,8 @@ "metadata": { "collapsed": false, "ExecuteTime": { - "end_time": "2023-10-12T10:41:02.777682Z", - "start_time": "2023-10-12T10:41:02.775083Z" + "end_time": "2024-03-01T06:29:12.368051Z", + "start_time": "2024-03-01T06:29:12.364873Z" } } } From 65d367d2d7f7537f16dea3bfd5ab0aadf1cdaf7a Mon Sep 17 00:00:00 2001 From: Serge Nedashkovsky Date: Fri, 1 Mar 2024 15:43:56 +0800 Subject: [PATCH 2/3] - set actual date for the last hub update data --- ...{hub_update_data_231012.ipynb => hub_update_data_240301.ipynb} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename hub/{hub_update_data_231012.ipynb => hub_update_data_240301.ipynb} (100%) diff --git a/hub/hub_update_data_231012.ipynb b/hub/hub_update_data_240301.ipynb similarity index 100% rename from hub/hub_update_data_231012.ipynb rename to hub/hub_update_data_240301.ipynb From e46b265b32fd934abfb7f56179ffa2755c21ec3d Mon Sep 17 00:00:00 2001 From: Serge Nedashkovsky Date: Fri, 1 Mar 2024 15:46:35 +0800 Subject: [PATCH 3/3] - add the first hub data update --- hub/hub_update_data_231012.ipynb | 276 +++++++++++++++++++++++++++++++ 1 file changed, 276 insertions(+) create mode 100644 hub/hub_update_data_231012.ipynb diff --git a/hub/hub_update_data_231012.ipynb b/hub/hub_update_data_231012.ipynb new file mode 100644 index 0000000..ffade01 --- /dev/null +++ b/hub/hub_update_data_231012.ipynb @@ -0,0 +1,276 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "source": [ + "# Upload Data to Hub Contracts" + ], + "metadata": { + "collapsed": false + } + }, + { + "cell_type": "code", + "execution_count": 1, + "outputs": [], + "source": [ + "import json\n", + "import base64\n", + "import requests\n", + "\n", + "from cyber_sdk.client.lcd import LCDClient\n", + "from cyber_sdk.key.mnemonic import MnemonicKey\n", + "from cyberutils.contract import execute_contract\n", + "\n", + "from ..config import LCD_CLIENT, NODE_LCD_URL, WALLET_SEED, WALLET_ADDRESS\n", + "\n", + "mk = MnemonicKey(mnemonic=WALLET_SEED)\n", + "WALLET = LCD_CLIENT.wallet(mk)\n", + "\n", + "MEMO = 'update entry'\n", + "\n", + "HUB_CONTRACTS = {\n", + " 'protocols': 'bostrom12yqsxh82qy3dz6alnmjhupyk85skgeqznzxv92q99hqtyu7vvdsqgwjgvz',\n", + " 'networks': 'bostrom1lpn69a74ftv04upfej8f9ay56pe2zyk48vzlk49kp3grysc7u56qq363nr',\n", + " 'channels': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge',\n", + " 'tokens': 'bostrom15phze6xnvfnpuvvgs2tw58xnnuf872wlz72sv0j2yauh6zwm7cmqqpmc42',\n", + " 'skills': 'bostrom1ejm29m279e8x4ltf3ksqm443fsdql9rmtuyth6vssmxl72af5yzqrt2mku',\n", + " 'contracts': 'bostrom1cfa46qr4ca4n75eys534fzmdtgce9zscvlzfq8fgt4sk6gc250hssks43s'}\n", + "\n", + "UPLOAD_HUB = {\n", + " 'protocols': False,\n", + " 'networks': False,\n", + " 'channels': True,\n", + " 'tokens': False,\n", + " 'skills': False,\n", + " 'contracts': False\n", + "}\n", + "\n", + "REQUIRED_KEYS = {\n", + " 'protocols': ['id', 'data_type'],\n", + " 'networks': ['id'],\n", + " 'channels': ['id', 'active'],\n", + " 'tokens': ['id'],\n", + " 'skills': ['id', 'new_owner'],\n", + " 'contracts': ['id']\n", + "}\n", + "\n", + "INDEX_KEYS = {\n", + " 'protocols': ['data_type'],\n", + " 'networks': ['chain_id', 'genesis_hash', 'protocol'],\n", + " 'channels': ['source_chain_id', 'destination_chain_id', 'source_channel_id', 'destination_channel_id'],\n", + " 'tokens': ['chain_id', 'contract'],\n", + " 'skills': ['network', 'neuron', 'protocol'],\n", + " 'contracts': ['address', 'chain_id']\n", + "}\n", + "\n", + "UPLOAD_DATA_FILES = {k: f'data/{k}.csv' for k in HUB_CONTRACTS.keys()}\n", + "TX_FILES = {k: f'txs/tx_update_hub_{k}.json' for k in HUB_CONTRACTS.keys()}\n", + "\n", + "FEE_DENOM = 'boot'" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:40:55.985523Z", + "start_time": "2023-10-12T10:40:55.630729Z" + } + } + }, + { + "cell_type": "markdown", + "source": [ + "## Update Entries" + ], + "metadata": { + "collapsed": false + } + }, + { + "cell_type": "code", + "execution_count": 2, + "outputs": [], + "source": [ + "def contract_query(\n", + " contract_address: str,\n", + " query: dict,\n", + " node_lcd_url: str = NODE_LCD_URL) -> dict:\n", + "\n", + " _query_msg = base64.b64encode(json.dumps(query).encode(\"utf-8\")).decode(\"utf-8\")\n", + " _query = f'{node_lcd_url}/cosmwasm/wasm/v1/contract/{contract_address}/smart/{_query_msg}'\n", + " return requests.get(_query).json()\n", + "\n", + "\n", + "def get_data_for_update(\n", + " contract_name: str,\n", + " contracts: dict = HUB_CONTRACTS,\n", + " index_keys: dict = INDEX_KEYS) -> list[dict]:\n", + "\n", + " _contract_entries = contract_query(\n", + " contract_address = contracts[contract_name],\n", + " query={'get_entries': {}})['data']['entries']\n", + " with open(f'data/{contract_name}.json', 'r') as _file:\n", + " _data_for_update = json.load(_file)\n", + "\n", + " _data_for_update_selected = []\n", + " for _contract_entry in _contract_entries:\n", + " _data_for_update_item_list = \\\n", + " [data_for_update_item for data_for_update_item in _data_for_update\n", + " if dict((k, data_for_update_item.get(k)) for k in index_keys[contract_name]) == dict((k, _contract_entry.get(k)) for k in index_keys[contract_name])]\n", + " if _data_for_update_item_list:\n", + " assert len(_data_for_update_item_list) == 1\n", + " _data_for_update_item = _data_for_update_item_list[0]\n", + " if {k: v for k, v in _data_for_update_item.items() if k not in _contract_entry.keys() or _contract_entry[k] != v}:\n", + " _data_for_update_selected.append(dict({\"id\": _contract_entry['id']}, **_data_for_update_item))\n", + " return _data_for_update_selected\n" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:40:55.991975Z", + "start_time": "2023-10-12T10:40:55.990154Z" + } + } + }, + { + "cell_type": "code", + "execution_count": 3, + "outputs": [], + "source": [ + "def hub_update(\n", + " tx_file_name: str,\n", + " items_for_update: list[dict],\n", + " contract_address: str,\n", + " required_keys: list[str],\n", + " sender: str = WALLET_ADDRESS,\n", + " lcd_client: LCDClient = LCD_CLIENT,\n", + " fee_denom: str = FEE_DENOM,\n", + " gas: int = 5_000_000,\n", + " memo: str = MEMO) -> dict:\n", + " _execute_msgs = []\n", + " for _item_for_update in items_for_update:\n", + " assert all(_item in _item_for_update.keys() for _item in required_keys)\n", + " _execute_msg = {'UpdateEntry': _item_for_update}\n", + " _execute_msgs.append(_execute_msg)\n", + " print(_execute_msgs)\n", + " print(contract_address)\n", + " print(sender)\n", + " _tx = execute_contract(\n", + " wallet=WALLET,\n", + " execute_msgs=_execute_msgs,\n", + " contract_address=contract_address,\n", + " sender=sender,\n", + " lcd_client=lcd_client,\n", + " fee_denom=fee_denom,\n", + " gas=gas,\n", + " sign_and_broadcast_tx=True,\n", + " memo=memo\n", + " )\n", + " with open(tx_file_name, 'w') as _tx_file:\n", + " _tx_file.write(json.dumps(_tx.to_data()))\n", + " return _tx.to_data()" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:40:55.996203Z", + "start_time": "2023-10-12T10:40:55.993871Z" + } + } + }, + { + "cell_type": "code", + "execution_count": 4, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[{'UpdateEntry': {'id': 5, 'active': 'true', 'destination_chain_id': 'gravity-bridge-3', 'destination_channel_id': 'channel-103', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-12', 'explorer_url': 'https://mintscan.io/gravity-bridge/txs/{txHash}'}}, {'UpdateEntry': {'id': 16, 'active': 'false', 'destination_chain_id': 'gravity-bridge-3', 'destination_channel_id': 'channel-78', 'source_chain_id': 'bostrom', 'source_channel_id': 'channel-7', 'explorer_url': 'https://mintscan.io/gravity-bridge/txs/{txHash}'}}]\n", + "bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\n", + "bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\n" + ] + } + ], + "source": [ + "tx_data = {}\n", + "for contract_name in HUB_CONTRACTS.keys():\n", + " if UPLOAD_HUB.get(contract_name, False):\n", + " data_for_update = get_data_for_update(contract_name=contract_name)\n", + " if data_for_update:\n", + " tx_data[contract_name] = hub_update(\n", + " tx_file_name=TX_FILES[contract_name],\n", + " items_for_update=data_for_update,\n", + " contract_address=HUB_CONTRACTS[contract_name],\n", + " required_keys=REQUIRED_KEYS[contract_name],\n", + " gas=20_000_000\n", + " )" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:41:02.767780Z", + "start_time": "2023-10-12T10:40:55.997255Z" + } + } + }, + { + "cell_type": "code", + "execution_count": 5, + "outputs": [ + { + "data": { + "text/plain": "{'height': 10361422,\n 'txhash': '1F64912FDA7C24E9017EFA4B8CBCA3E27069F6384616D7C0F85CC7F4D2D613C5',\n 'raw_log': '[{\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"5\"}]}]},{\"msg_index\":1,\"events\":[{\"type\":\"execute\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmwasm.wasm.v1.MsgExecuteContract\"},{\"key\":\"module\",\"value\":\"wasm\"},{\"key\":\"sender\",\"value\":\"bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t\"}]},{\"type\":\"wasm\",\"attributes\":[{\"key\":\"_contract_address\",\"value\":\"bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge\"},{\"key\":\"method\",\"value\":\"execute_update_entry\"},{\"key\":\"updated_entry_id\",\"value\":\"16\"}]}]}]',\n 'gas_wanted': 20000000,\n 'gas_used': 217885,\n 'logs': [{'msg_index': 0,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '5'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['5']}}},\n {'msg_index': 1,\n 'log': '',\n 'events': [{'type': 'execute',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'}]},\n {'type': 'message',\n 'attributes': [{'key': 'action',\n 'value': '/cosmwasm.wasm.v1.MsgExecuteContract'},\n {'key': 'module', 'value': 'wasm'},\n {'key': 'sender',\n 'value': 'bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t'}]},\n {'type': 'wasm',\n 'attributes': [{'key': '_contract_address',\n 'value': 'bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'},\n {'key': 'method', 'value': 'execute_update_entry'},\n {'key': 'updated_entry_id', 'value': '16'}]}],\n 'events_by_type': {'execute': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge']},\n 'message': {'action': ['/cosmwasm.wasm.v1.MsgExecuteContract'],\n 'module': ['wasm'],\n 'sender': ['bostrom1cj8j6pc3nda8v708j3s4a6gq2jrnue7j857m9t']},\n 'wasm': {'_contract_address': ['bostrom15tx5z779rdks07sg774ufn8q0a9x993c9uwmr6ycec78z6lfrmkqyjnfge'],\n 'method': ['execute_update_entry'],\n 'updated_entry_id': ['16']}}}],\n 'code': 0,\n 'codespace': '',\n 'info': None,\n 'data': None,\n 'timestamp': None}" + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "tx_data['channels']" + ], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:41:02.777486Z", + "start_time": "2023-10-12T10:41:02.772076Z" + } + } + }, + { + "cell_type": "code", + "execution_count": 5, + "outputs": [], + "source": [], + "metadata": { + "collapsed": false, + "ExecuteTime": { + "end_time": "2023-10-12T10:41:02.777682Z", + "start_time": "2023-10-12T10:41:02.775083Z" + } + } + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.6" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +}