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