Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update versions to babylon v013 #20

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion babylon
Submodule babylon updated 124 files
4 changes: 2 additions & 2 deletions deployments/faucet/artifacts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
babylondnode0:
container_name: babylondnode0
image: "babylonchain/babylond"
image: "babylonlabs-io/babylond"
command: >
babylond --home /babylondhome start --log_format 'plain' 2>&1 | tee /babylondhome/babylond.log
cap_add:
Expand All @@ -23,7 +23,7 @@ services:

babylondnode1:
container_name: babylondnode1
image: "babylonchain/babylond"
image: "babylonlabs-io/babylond"
command: >
babylond --home /babylondhome start --log_format 'plain' 2>&1 | tee /babylondhome/babylond.log
cap_add:
Expand Down
5 changes: 3 additions & 2 deletions deployments/faucet/post-deployment.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash -eux

echo "Creating keyring and sending funds to the Faucet"

Expand All @@ -7,9 +7,10 @@ docker exec babylondnode0 /bin/sh -c '
FAUCET_ADDR=$(/bin/babylond --home /babylondhome/.tmpdir keys add \
faucet --output json --keyring-backend test | jq -r .address) && \
/bin/babylond --home /babylondhome tx bank send test-spending-key \
${FAUCET_ADDR} 100000000ubbn --fees 2ubbn -y --chain-id chain-test --keyring-backend test
${FAUCET_ADDR} 100000000ubbn --fees 600000ubbn -y --chain-id chain-test --keyring-backend test
'
mkdir -p .testnets/faucet/keyring-test
mv .testnets/node0/babylond/.tmpdir/keyring-test/* .testnets/faucet/keyring-test
[[ "$(uname)" == "Linux" ]] && chown -R 1138:1138 .testnets/faucet

echo "Created keyring and sent funds"
27 changes: 14 additions & 13 deletions deployments/faucet/pre-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

# Create new directory that will hold node and services' configuration
mkdir -p .testnets && chmod o+w .testnets
docker run --rm -v $(pwd)/.testnets:/data babylonchain/babylond \
babylond testnet init-files --v 2 -o /data \
--starting-ip-address 192.168.10.2 --keyring-backend=test \
--chain-id chain-test --epoch-interval 10 \
--btc-finalization-timeout 2 --btc-confirmation-depth 1 \
--minimum-gas-prices 0.000006ubbn \
--btc-base-header 0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4adae5494dffff7f2002000000 \
--btc-network regtest --additional-sender-account \
--slashing-address "mfcGAzvis9JQAb6avB6WBGiGrgWzLxuGaC" \
--slashing-rate 0.1 \
--min-commission-rate 0.05 \
--covenant-quorum 1 \
--covenant-pks "2d4ccbe538f846a750d82a77cd742895e51afcf23d86d05004a356b783902748" # should be updated if `covenant-keyring` dir is changed`
docker run --rm -v $(pwd)/.testnets:/data babylonlabs-io/babylond \
babylond testnet --v 2 -o /data \
--starting-ip-address 192.168.10.2 --keyring-backend=test \
--chain-id chain-test --epoch-interval 10 \
--btc-finalization-timeout 2 --btc-confirmation-depth 1 \
--minimum-gas-prices 1ubbn \
--btc-base-header 0100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4adae5494dffff7f2002000000 \
--btc-network regtest --additional-sender-account \
--slashing-pk-script "76a914010101010101010101010101010101010101010188ac" \
--slashing-rate 0.1 \
--min-staking-time-blocks 10 \
--min-commission-rate 0.05 \
--covenant-quorum 1 \
--covenant-pks "2d4ccbe538f846a750d82a77cd742895e51afcf23d86d05004a356b783902748" # should be updated if `covenant-keyring` dir is changed`

# Create separate subpaths for each component and copy relevant configuration
mkdir -p .testnets/faucet
Expand Down
2 changes: 1 addition & 1 deletion faucet
2 changes: 1 addition & 1 deletion vigilante
Submodule vigilante updated 48 files
+38 −0 .github/workflows/backport.yml
+11 −0 .github/workflows/changelog-reminder.yml
+2 −2 .github/workflows/ci.yml
+11 −0 .github/workflows/goreleaser.yml
+2 −2 .github/workflows/publish.yml
+1 −0 .gitignore
+80 −0 .goreleaser.yml
+35 −277 CHANGELOG.md
+57 −1 Makefile
+3 −3 btcclient/interface.go
+9 −9 btcclient/query.go
+2 −0 btcstaking-tracker/btcslasher/bootstrapping_test.go
+4 −3 btcstaking-tracker/btcslasher/slasher.go
+3 −0 btcstaking-tracker/btcslasher/slasher_test.go
+2 −0 btcstaking-tracker/btcslasher/slasher_utils.go
+2 −1 btcstaking-tracker/stakingeventwatcher/expected_babylon_client.go
+5 −4 btcstaking-tracker/stakingeventwatcher/stakingeventwatcher.go
+2 −2 btcstaking-tracker/stakingeventwatcher/tracked_delegations.go
+1 −0 cmd/vigilante/cmd/submitter.go
+1 −0 e2etest/monitor_e2e_test.go
+4 −3 e2etest/reporter_e2e_test.go
+2 −0 e2etest/submitter_e2e_test.go
+6 −5 e2etest/test_manager_btcstaking.go
+1 −1 go.mod
+2 −2 go.sum
+2 −1 monitor/btcscanner/block_handler.go
+16 −15 monitor/btcscanner/btc_scanner.go
+6 −6 monitor/btcscanner/btc_scanner_test.go
+4 −4 monitor/liveness_checker.go
+11 −10 monitor/liveness_checker_test.go
+7 −6 monitor/monitor.go
+15 −1 monitor/monitor_test.go
+24 −1 monitor/query.go
+1 −1 monitor/query_test.go
+1 −1 monitor/utils.go
+10 −10 reporter/bootstrapping.go
+5 −4 reporter/reporter.go
+1 −1 submitter/relayer/change_address_test.go
+48 −21 submitter/relayer/relayer.go
+2 −0 submitter/submitter.go
+3 −2 testutil/datagen/datagen.go
+4 −4 testutil/mocks/btcclient.go
+2 −2 types/btccache.go
+3 −2 types/btccache_test.go
+4 −5 types/ckpt_info.go
+2 −2 types/ckpt_record.go
+5 −5 types/genesis_info.go
+1 −1 types/genesis_info_test.go