Skip to content

Commit

Permalink
add bidao smart chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
bfa-bidao committed Apr 29, 2023
1 parent d7b5304 commit 4317c75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions staking_deposit/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class BaseChainSetting(NamedTuple):
PRATER = 'prater'
SEPOLIA = 'sepolia'
ZHEJIANG = 'zhejiang'
BIDAO = 'bidao'

# Mainnet setting
MainnetSetting = BaseChainSetting(
Expand All @@ -32,6 +33,10 @@ class BaseChainSetting(NamedTuple):
ZhejiangSetting = BaseChainSetting(
NETWORK_NAME=ZHEJIANG, GENESIS_FORK_VERSION=bytes.fromhex('00000069'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('53a92d8f2bb1d85f62d16a156e6ebcd1bcaba652d0900b2c2f387826f3481f6f'))
# Bidao setting
BidaoSetting = BaseChainSetting(
NETWORK_NAME=BIDAO, GENESIS_FORK_VERSION=bytes.fromhex('90000069'),
GENESIS_VALIDATORS_ROOT=bytes.fromhex('b40031bdb30d791403d39f15ebe860db6f29cc2ca416f94506b7059ccadff203'))


ALL_CHAINS: Dict[str, BaseChainSetting] = {
Expand All @@ -40,6 +45,7 @@ class BaseChainSetting(NamedTuple):
PRATER: GoerliSetting, # Prater is the old name of the Prater/Goerli testnet
SEPOLIA: SepoliaSetting,
ZHEJIANG: ZhejiangSetting,
BIDAO: BidaoSetting,
}


Expand Down
2 changes: 1 addition & 1 deletion staking_deposit/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

ETH2GWEI = 10 ** 9
MIN_DEPOSIT_AMOUNT = 2 ** 0 * ETH2GWEI
MAX_DEPOSIT_AMOUNT = 2 ** 5 * ETH2GWEI
MAX_DEPOSIT_AMOUNT = 960 * ETH2GWEI


# File/folder constants
Expand Down

0 comments on commit 4317c75

Please sign in to comment.