-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Refactored markets and tokens initialization logic in AsyncCli…
…ent to get markets from chain instead of using Indexer endpoints. Removed deprecated support for denom INI files
- Loading branch information
Showing
21 changed files
with
579 additions
and
32,680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
import os | ||
from configparser import ConfigParser | ||
|
||
GAS_PRICE = 160_000_000 | ||
GAS_FEE_BUFFER_AMOUNT = 25_000 | ||
MAX_MEMO_CHARACTERS = 256 | ||
ADDITIONAL_CHAIN_FORMAT_DECIMALS = 18 | ||
TICKER_TOKENS_SEPARATOR = "/" | ||
INJ_DENOM = "inj" | ||
INJ_DECIMALS = 18 | ||
|
||
devnet_config = ConfigParser() | ||
devnet_config.read(os.path.join(os.path.dirname(__file__), "denoms_devnet.ini")) | ||
|
||
testnet_config = ConfigParser() | ||
testnet_config.read(os.path.join(os.path.dirname(__file__), "denoms_testnet.ini")) | ||
|
||
mainnet_config = ConfigParser() | ||
mainnet_config.read(os.path.join(os.path.dirname(__file__), "denoms_mainnet.ini")) | ||
|
||
CONFIGS = { | ||
"devnet": devnet_config, | ||
"testnet": testnet_config, | ||
"mainnet": mainnet_config, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.