-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.py
113 lines (98 loc) · 6.31 KB
/
config.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
from dotenv import dotenv_values
from cyber_sdk.client.lcd import LCDClient
# human-readable names of ibc denoms
IBC_COIN_NAMES = \
{
'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2': 'uatom in osmosis',
'ibc/FE2CD1E6828EC0FAB8AF39BAC45BC25B965BA67CCBC50C13A14BD610B0D1E2C4': 'boot in osmosis',
'ibc/4F3B0EC2FE2D370D10C3671A1B7B06D2A964C721470C305CBB846ED60E6CAA20': 'hydrogen in osmosis',
'ibc/BCDB35B7390806F35E716D275E1E017999F8281A81B6F128F087EF34D1DFA761': 'tocyb in osmosis',
'ibc/46B44899322F3CD854D2D46DEEF881958467CDD4B3B10086DA49296BBED94BED': 'ujuno in osmosis',
'ibc/EA4C0A9F72E2CEDF10D0E7A9A6A22954DB3444910DB5BE980DF59B05A46DAD1C': 'udsm in osmosis',
'ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5': 'weth in osmosis',
'ibc/65381C5F3FD21442283D56925E62EA524DED8B6927F0FF94E21E0020954C40B5': 'weth.grv in osmosis',
'ibc/3FF92D26B407FD61AE95D975712A7C319CDE28DE4D80BDC9978D935932B991D7': 'dot in osmosis',
'ibc/75345531D87BD90BF108BE7240BD721CB2CB0A1F16D4EBA71B09EC3C43E15C8F': 'btc in osmosis',
'ibc/1E43D59E565D41FB4E54CA639B838FFD5BCFC20003D330A56CB1396231AA1CBA': 'sol in osmosis',
'ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877': 'utia in osmosis',
'ibc/E610B83FD5544E00A8A1967A2EB3BEF25F1A8CFE8650FE247A8BD4ECA9DC9222': 'reth in osmosis',
'ibc/CEE970BB3D26F4B907097B6B660489F13F3B0DA765B83CC7D9A0BC0CE220FA6F': 'uflix in osmosis',
'ibc/E97634A40119F1898989C2A23224ED83FDD0A57EA46B3A094E287288D1672B44': 'ugraviton in osmosis',
'ibc/6AE98883D4D5D5FF9E50D7130F1305DA2FFA0C652D1DD9C123657C6B4EB2DF8A': 'aevmos in osmosis',
'ibc/4ABBEF4C8926DDDB320AE5188CFD63267ABBCEFC0583E4AE05D6E5AA2401DDAB': 'usdt in osmosis',
'ibc/15E9C5CF5969080539DB395FA7D9C0868265217EFC528433671AAF9B1912D159': 'uatom in bostrom',
'ibc/BA313C4A19DFBF943586C0387E6B11286F9E416B4DD27574E6909CABE0E342FA': 'deprecated uatom in bostrom',
'ibc/13B2C536BB057AC79D5616B8EA1B9540EC1F2170718CAFF6F0083C966FFFED0B': 'uosmo in bostrom',
'ibc/43DB7553C43D81CB01E9A2644B49A241314B482C2E56F86E85A6539C60383151': 'pussy in bostrom',
'ibc/9B45B8C514B76D792BEC4850AE601E0E73CE7D307A567F34038432FC80D74780': 'liquidpussy in bostrom',
'ibc/8D9262E35CAE362FA74AE05E430550757CF8D842EC1B241F645D3CB7179AFD10': 'ujuno in bostrom',
'ibc/C23D820C5B6009E544AFC8AF5A2FEC288108AEDBFAEFDBBDD6BE54CC23069559': 'ugraviton in bostrom',
'ibc/B6CAD3F7469F3FAD18ED2230A6C7B15E654AB2E1B66E1C70879C04FEF874A863': 'weth.grv in bostrom',
'ibc/4B322204B4F59D770680FE4D7A565DDC3F37BFF035474B717476C66A4F83DD72': 'aevmos in bostrom',
'ibc/CA5E8F31288514D728AFD1F0533A7F6902AA1192C88C9540F814893C3EAFE244': 'udsm in bostrom',
'ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9': 'uatom in crescent'
}
# coins in different chains
COINS_IN_DIFFERENT_CHAINS = \
[['boot', 'boot in osmosis'],
['hydrogen', 'hydrogen in osmosis'],
['tocyb', 'tocyb in osmosis'],
['uosmo', 'uosmo in bostrom'],
['uatom', 'uatom in osmosis', 'uatom in bostrom'],
['udsm', 'udsm in osmosis', 'udsm in bostrom'],
['ujuno', 'ujuno in osmosis', 'ujuno in bostrom'],
['wei', 'weth.grv in osmosis', 'weth.grv in bostrom'],
['pussy', 'pussy in bostrom'],
['liquidpussy', 'liquidpussy in bostrom']]
# coins direct transferred by IBC
INTERCHANGEABLE_IBC_COINS = \
[['boot', 'boot in osmosis'],
['hydrogen', 'hydrogen in osmosis'],
['tocyb', 'tocyb in osmosis'],
['uosmo', 'uosmo in bostrom'],
['uatom', 'uatom in osmosis'],
['uatom', 'uatom in bostrom'],
['udsm', 'udsm in osmosis'],
['udsm', 'udsm in bostrom'],
['ujuno', 'ujuno in osmosis'],
['ujuno', 'ujuno in bostrom'],
['wei', 'weth.grv in osmosis'],
['wei', 'weth.grv in bostrom'],
['pussy', 'pussy in bostrom'],
['liquidpussy', 'liquidpussy in bostrom']]
BOSTROM_RELATED_OSMO_POOLS = (1, 497, 498, 596, 597, 619, 640, 646, 634, 704, 745, 746, 750,
911, 912, 919, 991, 1306, 1307, 1308, 1309, 1310, 1326, 1328, 1330)
BOSTROM_NODE_RPC_URL = 'https://rpc.bostrom.cybernode.ai:443' # 'https://rpc.bostrom.bronbro.io:443'
BOSTROM_NODE_LCD_URL = 'https://lcd.bostrom.cybernode.ai/'
BOSTROM_POOLS_BASH_QUERY = f'cyber query liquidity pools --node {BOSTROM_NODE_RPC_URL} -o json'
BOSTROM_OCR_CONTRACT = 'bostrom1w33tanvadg6fw04suylew9akcagcwngmkvns476wwu40fpq36pms92re6u'
BOSTROM_CHAIN_ID = 'bostrom'
BOSTROM_LCD_CLIENT = LCDClient(chain_id=BOSTROM_CHAIN_ID, url=BOSTROM_NODE_LCD_URL)
PUSSY_NODE_RPC_URL = 'https://rpc.space-pussy.cybernode.ai:443'
PUSSY_NODE_LCD_URL = 'https://lcd.space-pussy.cybernode.ai/'
PUSSY_POOLS_BASH_QUERY = f'pussy query liquidity pools --node {PUSSY_NODE_RPC_URL} -o json'
PUSSY_CHAIN_ID = 'space-pussy'
PUSSY_LCD_CLIENT = LCDClient(chain_id=PUSSY_CHAIN_ID, url=PUSSY_NODE_LCD_URL, prefix='pussy')
OSMOSIS_NODE_RPC_URL = 'https://rpc.osmosis-1.bronbro.io:443'
OSMOSIS_NODE_LCD_URL = 'https://lcd.osmosis-1.bronbro.io'
OSMOSIS_POOLS_API_URL = f'{OSMOSIS_NODE_LCD_URL}/osmosis/gamm/v1beta1/pools?pagination.limit=10000'
OSMOSIS_CHAIN_ID = 'osmosis-1'
OSMOSIS_LCD_CLIENT = LCDClient(chain_id=OSMOSIS_CHAIN_ID, url=OSMOSIS_NODE_LCD_URL, prefix='osmo')
OSMOSIS_BASH_PRECOMMAND = dotenv_values(".env")['BASH_PRECOMMAND']
CRESCENT_NODE_RPC_URL = 'https://mainnet.crescent.network:26657'
CRESCENT_NODE_LCD_URL = 'https://mainnet.crescent.network:1317'
CRESCENT_POOLS_API_URL = f'{CRESCENT_NODE_LCD_URL}/crescent/liquidity/v1beta1/pools'
CRESCENT_CHAIN_ID = 'crescent-1'
CRESCENT_LCD_CLIENT = LCDClient(chain_id=CRESCENT_CHAIN_ID, url=CRESCENT_NODE_LCD_URL, prefix='cre')
CRESCENT_BASH_PRECOMMAND = dotenv_values(".env")['BASH_PRECOMMAND']
COSMOSHUB_NODE_RPC_URL = 'https://rpc.cosmoshub-4.bronbro.io:443'
COSMOSHUB_NODE_LCD_URL = 'https://lcd.cosmoshub-4.bronbro.io'
COSMOSHUB_CHAIN_ID = 'cosmoshub-4'
COSMOSHUB_LCD_CLIENT = LCDClient(chain_id=COSMOSHUB_CHAIN_ID, url=COSMOSHUB_NODE_LCD_URL, prefix='cosmos')
JUNO_NODE_RPC_URL = 'https://rpc-juno.ecostake.com:443'
JUNO_NODE_LCD_URL = 'https://rest-juno.ecostake.com'
JUNO_CHAIN_ID = 'juno-1'
JUNO_LCD_CLIENT = LCDClient(chain_id=JUNO_CHAIN_ID, url=JUNO_NODE_LCD_URL, prefix='juno')
# usual pool fee
POOL_FEE = 0.003
CLI_WALLET = '$WALLET'