Skip to content

Commit f84763f

Browse files
committed
Initial commit
1 parent 1384db4 commit f84763f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

main.py

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import requests
2+
import csv
3+
4+
urls = ['https://github.com/osmosis-labs/osmosis/blob/main/go.mod',
5+
'https://github.com/scrtlabs/SecretNetwork/blob/master/go.mod',
6+
'https://github.com/Stride-Labs/stride/blob/v5.1.1/go.mod',
7+
'https://github.com/cosmos/gaia/blob/main/go.mod',
8+
'https://github.com/akash-network/node/blob/master/go.mod',
9+
'https://github.com/axelarnetwork/axelar-core/blob/main/go.mod',
10+
'https://github.com/ixofoundation/ixo-blockchain/blob/main/go.mod',
11+
'https://github.com/CosmosContracts/juno/blob/main/go.mod',
12+
'https://github.com/Kava-Labs/kava/blob/master/go.mod',
13+
'https://github.com/Team-Kujira/core/blob/master/go.mod',
14+
'https://github.com/OmniFlix/omniflixhub/blob/main/go.mod',
15+
'https://github.com/persistenceOne/persistenceCore/blob/main/go.mod',
16+
'https://github.com/provenance-io/provenance/blob/main/go.mod',
17+
'https://github.com/regen-network/regen-ledger/blob/main/go.mod',
18+
'https://github.com/rizon-world/rizon/blob/master/go.mod',
19+
'https://github.com/sentinel-official/hub/blob/development/go.mod',
20+
'https://github.com/shentufoundation/shentu/blob/master/go.mod',
21+
'https://github.com/Sifchain/sifnode/blob/master/go.mod',
22+
'https://github.com/PeggyJV/sommelier/blob/main/go.mod',
23+
'https://github.com/stafihub/stafihub/blob/main/go.mod',
24+
'https://github.com/public-awesome/stargaze/blob/main/go.mod',
25+
'https://github.com/iov-one/starnamed/blob/master/go.mod',
26+
'https://github.com/TERITORI/teritori-chain/blob/main/go.mod',
27+
'https://github.com/confio/tgrade/blob/main/go.mod',
28+
'https://github.com/umee-network/umee/blob/main/go.mod',
29+
'https://github.com/xpladev/xpla/blob/main/go.mod',
30+
'https://github.com/bandprotocol/chain/blob/master/go.mod',
31+
'https://github.com/BitCannaGlobal/bcna/blob/main/go.mod',
32+
'https://github.com/bitsongofficial/go-bitsong/blob/main/go.mod',
33+
'https://github.com/cerberus-zone/cerberus/blob/release/v2.0.1/go.mod',
34+
'https://github.com/comdex-official/comdex/blob/development/go.mod',
35+
'https://github.com/crescent-network/crescent/blob/main/go.mod',
36+
'https://github.com/crypto-org-chain/chain-main/blob/master/go.mod',
37+
'https://github.com/desmos-labs/desmos/blob/master/go.mod',
38+
'https://github.com/e-money/em-ledger/blob/develop/go.mod',
39+
'https://github.com/evmos/evmos/blob/main/go.mod',
40+
'https://github.com/Gravity-Bridge/Gravity-Bridge/blob/main/module/go.mod',
41+
'https://github.com/irisnet/irishub/blob/master/go.mod',
42+
'https://github.com/mars-protocol/hub/blob/main/go.mod',
43+
'https://github.com/AssetMantle/modules/blob/master/go.mod',
44+
'https://github.com/ingenuity-build/quicksilver/blob/main/go.mod',
45+
'https://github.com/e-money/em-ledger/blob/develop/go.mod',
46+
'https://github.com/terra-money/core/blob/main/go.mod',
47+
'https://github.com/KiFoundation/hub/blob/master/go.mod',
48+
'https://github.com/medibloc/panacea-core/blob/main/go.mod',
49+
'https://github.com/Konstellation/kn-sdk/blob/master/go.mod',
50+
'https://github.com/fetchai/fetchd/blob/master/go.mod']
51+
52+
53+
with open('ibc-go_versions.csv', 'w', newline='') as f:
54+
writer = csv.writer(f)
55+
writer.writerow(['chain', 'ibc-go_version'])
56+
57+
for url in urls:
58+
response = requests.get(url)
59+
60+
for line in response.text.splitlines():
61+
if "ibc-go" in line:
62+
parts = line.split(" ")
63+
version = parts[17].replace('class="pl-c1">', "").replace("</span></td>", "")
64+
65+
url_name = url.split('/')[3:5]
66+
67+
writer.writerow([url_name, version])
68+
break

0 commit comments

Comments
 (0)