Skip to content

Commit

Permalink
Add bnb genesis config
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Dobrev authored and PetarKirov committed Oct 13, 2023
1 parent 7e66153 commit 5222ced
Show file tree
Hide file tree
Showing 11 changed files with 1,008 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
rec {
cosmos-theta-testnet = callPackage ./cosmos-theta-testnet {};
blst = callPackage ./blst {};
bnb-beacon-node = callPackage ./bnb-beacon-node {};

circom = callPackage ./circom/default.nix {};
circ = callPackage ./circ/default.nix {};
Expand Down
50 changes: 50 additions & 0 deletions packages/bnb-beacon-node/config/gentxs/node0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"type": "auth/StdTx",
"value": {
"msg": [
{
"type": "cosmos-sdk/MsgCreateValidatorProposal",
"value": {
"MsgCreateValidator": {
"Description": {
"moniker": "node0",
"identity": "",
"website": "",
"details": ""
},
"Commission": {
"rate": "0",
"max_rate": "0",
"max_change_rate": "0"
},
"delegator_address": "bnb16sju6kxjcz7sxa2g3kf6kp3zvzf4g84jwvjh0h",
"validator_address": "bva16sju6kxjcz7sxa2g3kf6kp3zvzf4g84jwsn83n",
"pubkey": {
"type": "tendermint/PubKeyEd25519",
"value": "UaSCGHI+ZgEU+HPpPjtoWzro9k05g0UIdI8G/QrPFDs="
},
"delegation": {
"denom": "BNB",
"amount": "9000000000000"
}
},
"proposal_id": "0"
}
}
],
"signatures": [
{
"pub_key": {
"type": "tendermint/PubKeySecp256k1",
"value": "A/oj5bQgZ8GduPeclMYVH4ARYtg7cBQWnDLL8oTSwDDv"
},
"signature": "kNT3hPTKMUhEqOS7F6VjQSZY8w5zTfmSM1merVgMOcIEoeqXYiWUSxWUzwBcIL7FfI2LOWHbUnrj5i4nZWR8pQ==",
"account_number": "0",
"sequence": "0"
}
],
"memo": "be338514882979ae579208fe61485499f3e75b0a@172.20.0.2:26656",
"source": "0",
"data": null
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"secret":"paddle bullet neck stage bottom link require hawk rough consider fold zebra tissue wreck cake produce subway double cram cereal open ice element salt"}
208 changes: 208 additions & 0 deletions packages/bnb-beacon-node/config/node0/gaiad/config/app.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml

[base]
# Interval blocks of breathe block, if breatheBlockInterval is 0, breathe block will be created every day.
breatheBlockInterval = 0
# Size of account cache
accountCacheSize = 30000
# Size of signature cache
signatureCacheSize = 30000
# Running mode when start up, 0: Normal, 1: TransferOnly, 2: RecoverOnly
startMode = 0
# Concurrency of OrderKeeper, should be power of 2
orderKeeperConcurrency = 2
# Days count back for breathe block
breatheBlockDaysCountBack = 7

[upgrade]
# Block height of BEP6 upgrade
BEP6Height = 1
# Block height of BEP9 upgrade
BEP9Height = 1
# Block height of BEP10 upgrade
BEP10Height = 1
# Block height of BEP19 upgrade
BEP19Height = 1
# Block height of BEP12 upgrade
BEP12Height = 1
# Block height of BEP3 upgrade
BEP3Height = 1
# Block height of FixSignBytesOverflow upgrade
FixSignBytesOverflowHeight = 1
# Block height of LotSizeOptimization upgrade
LotSizeUpgradeHeight = 1
# Block height of changing listing rule upgrade
ListingRuleUpgradeHeight = 1
# Block height of FixZeroBalanceHeight upgrade
FixZeroBalanceHeight = 1
# Block height of smart chain upgrade
LaunchBscUpgradeHeight = 1
# Block height of BEP8 upgrade
BEP8Height = 1
# Block height of BEP67 upgrade
BEP67Height = 1
# Block height of BEP70 upgrade
BEP70Height = 1
# Block height of BEP82 upgrade
BEP82Height = 9223372036854775807
# Block height of BEP84 upgrade
BEP84Height = 9223372036854775807
# Block height of BEP87 upgrade
BEP87Height = 9223372036854775807
# Block height of FixFailAckPackage upgrade
FixFailAckPackageHeight = 9223372036854775807
# Block height of EnableAccountScriptsForCrossChainTransferHeight upgrade
EnableAccountScriptsForCrossChainTransferHeight = 9223372036854775807
# Block height of BEP128 upgrade
BEP128Height = 9223372036854775807
# Block height of BEP151 upgrade
BEP151Height = 9223372036854775807
# Block height of BEP153 upgrade
BEP153Height = 9223372036854775807
# Block height of BEP159 upgrade
BEP159Height = 9223372036854775807
# Block height of BEP159Phase2 upgrade
BEP159Phase2Height = 9223372036854775807
# Block height of LimitConsAddrUpdateInterval upgrade
LimitConsAddrUpdateIntervalHeight = 9223372036854775807
# Block height of BEP173 upgrade
BEP173Height = 9223372036854775807
# Block height of FixDoubleSignChainIdHeight upgrade
FixDoubleSignChainIdHeight = 9223372036854775807
# Block height of BEP126 upgrade
BEP126Height = 9223372036854775807
# Block height of BEP255 upgrade
BEP255Height = 9223372036854775807

[query]
# ABCI query interface black list, suggested value: ["custom/gov/proposals", "custom/timelock/timelocks", "custom/atomicSwap/swapcreator", "custom/atomicSwap/swaprecipient"]
ABCIQueryBlackList = []

[addr]
# Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
bech32PrefixAccAddr = "bnb"
# Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
bech32PrefixAccPub = "bnbp"
# Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
bech32PrefixValAddr = "bva"
# Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
bech32PrefixValPub = "bvap"
# Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
bech32PrefixConsAddr = "bca"
# Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
bech32PrefixConsPub = "bcap"

##### publication related configurations #####
[publication]
# configurations ends with Kafka can be a semi-colon separated host-port list
# Whether we want publish market data (this includes trades and order)
publishOrderUpdates = false
orderUpdatesTopic = "orders"
orderUpdatesKafka = "127.0.0.1:9092"

# Whether we want publish account balance to notify browser db indexer persist latest account balance change
publishAccountBalance = false
accountBalanceTopic = "accounts"
accountBalanceKafka = "127.0.0.1:9092"

# Whether we want publish order book changes
publishOrderBook = false
orderBookTopic = "orders"
orderBookKafka = "127.0.0.1:9092"

# Whether we want publish block fee changes
publishBlockFee = false
blockFeeTopic = "accounts"
blockFeeKafka = "127.0.0.1:9092"

# Whether we want publish transfers
publishTransfer = false
transferTopic = "transfers"
transferKafka = "127.0.0.1:9092"

# Whether we want publish block
publishBlock = false
blockTopic = "block"
blockKafka = "127.0.0.1:9092"

# Whether we want publish distribution
publishDistributeReward = false
distributeRewardTopic = "distribution"
distributeRewardKafka = "127.0.0.1:9092"

# Whether we want publish staking
publishStaking = false
stakingTopic = "staking"
stakingKafka = "127.0.0.1:9092"

# Whether we want publish slashing
publishSlashing = false
slashingTopic = "slashing"
slashingKafka = "127.0.0.1:9092"

# Whether we want publish cross transfer
publishCrossTransfer = false
crossTransferTopic = "crossTransfer"
crossTransferKafka = "127.0.0.1:9092"

# Whether we want publish mirror events
publishMirror = false
mirrorTopic = "mirror"
mirrorKafka = "127.0.0.1:9092"

# Whether we want publish side proposals
publishSideProposal = false
sideProposalTopic = "sideProposal"
sideProposalKafka = "127.0.0.1:9092"

# Whether we want publish breatheBlock
publishBreatheBlock = false
breatheBlockTopic = "breatheBlock"
breatheBlockKafka = "127.0.0.1:9092"

# Global setting
publicationChannelSize = 10000
publishKafka = false
publishLocal = false
# max size in megabytes of marketdata json file before rotate
localMaxSize = 1024
# max days of marketdata json files to keep before deleted
localMaxAge = 7

# whether the kafka open SASL_PLAINTEXT auth
auth = false
kafkaUserName = ""
kafkaPassword = ""

# stop process when publish to Kafka failed
stopOnKafkaFail = false

# please modify the default value into the version of Kafka you are using
# kafka broker version, default (and most recommended) is 2.1.0. Minimal supported version could be 0.8.2.0
kafkaVersion = "2.1.0"

[log]

# Write logs to console instead of file
logToConsole = true

## The below parameters take effect only when logToConsole is false
# Log file root, if not set, use home path
logFileRoot = ""
# Log file path relative to log file root path
logFilePath = "bnc.log"
# Number of logs keep in memory before writing to file
logBuffSize = 10000

[cross_chain]
# IBC chain-id for current chain
ibcChainId = 1
# chain-id for bsc chain
bscChainId = "bsc"
# IBC chain-id for bsc chain
bscIbcChainId = 2

[dex]
# The suffixed symbol of BUSD
BUSDSymbol = ""
Loading

0 comments on commit 5222ced

Please sign in to comment.