Skip to content

Commit

Permalink
support namada v0.40.0 (#31)
Browse files Browse the repository at this point in the history
support hermes v1.9.0-namada-beta13-rc2
  • Loading branch information
0x4r45h authored Jul 8, 2024
1 parent 461a565 commit c120780
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
10 changes: 6 additions & 4 deletions config/genesis-chain-b/parameters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ native_token = "NAM"
is_native_token_transferable = true
# Minimum number of blocks in an epoch.
min_num_of_blocks = 4
# Maximum expected time per block (in seconds).
max_expected_time_per_block = 30
# Max payload size, in bytes, for a tx.
max_tx_bytes = 1048576
# Max payload size, in bytes, for a tx batch proposal.
Expand All @@ -21,10 +19,12 @@ implicit_vp = "vp_implicit"
epochs_per_year = 31_536
# The multiplier for masp epochs
masp_epoch_multiplier = 2
# Maximum number of signature per transaction
max_signatures_per_transaction = 15
# Max gas for block
max_block_gas = 20000000
# Masp fee payment gas limit
masp_fee_payment_gas_limit = 20000
# Gas scale
gas_scale = 100_000_000
# Fee unshielding gas limit
fee_unshielding_gas_limit = 20000

Expand Down Expand Up @@ -100,6 +100,8 @@ stewards = []
pgf_inflation_rate = "0.1"
# The pgf stewards inflation rate
stewards_inflation_rate = "0.01"
# The maximum number of pgf stewards
maximum_number_of_stewards = 5

# IBC parameters
[ibc_params]
Expand Down
10 changes: 6 additions & 4 deletions config/genesis/parameters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ native_token = "NAM"
is_native_token_transferable = true
# Minimum number of blocks in an epoch.
min_num_of_blocks = 4
# Maximum expected time per block (in seconds).
max_expected_time_per_block = 30
# Max payload size, in bytes, for a tx.
max_tx_bytes = 1048576
# Max payload size, in bytes, for a tx batch proposal.
Expand All @@ -21,10 +19,12 @@ implicit_vp = "vp_implicit"
epochs_per_year = 31_536
# The multiplier for masp epochs
masp_epoch_multiplier = 2
# Maximum number of signature per transaction
max_signatures_per_transaction = 15
# Max gas for block
max_block_gas = 20000000
# Masp fee payment gas limit
masp_fee_payment_gas_limit = 20000
# Gas scale
gas_scale = 100_000_000
# Fee unshielding gas limit
fee_unshielding_gas_limit = 20000

Expand Down Expand Up @@ -100,6 +100,8 @@ stewards = ["steward-1"]
pgf_inflation_rate = "0.1"
# The pgf stewards inflation rate
stewards_inflation_rate = "0.01"
# The maximum number of pgf stewards
maximum_number_of_stewards = 5

# IBC parameters
[ibc_params]
Expand Down
3 changes: 1 addition & 2 deletions config/start-chain-b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ if [ ! -f "/root/.namada-shared/chain-b.config" ]; then

python3 /scripts/make_balances.py /root/.namada-chain-b /genesis/balances.toml /root/.namada-chain-b/genesis/balances.toml

genesis_time=$(date -d "+${GENESIS_DELAY} seconds" +"%Y-%m-%dT%H:%M:%SZ")

genesis_time=$(date -d "+${GENESIS_DELAY} seconds" +"%Y-%m-%dT%H:%M:%S.%N+00:00")
INIT_OUTPUT=$(namadac utils init-network \
--genesis-time "$genesis_time" \
--wasm-checksums-path /wasm/checksums.json \
Expand Down
2 changes: 1 addition & 1 deletion config/start-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ generate_chain_configs() {
python3 /scripts/update_params.py /genesis/parameters.toml "$STEWARD_TNAM" /root/.namada-shared/genesis/parameters.toml


genesis_time=$(date -d "+${GENESIS_DELAY} seconds" +"%Y-%m-%dT%H:%M:%SZ")
genesis_time=$(date -d "+${GENESIS_DELAY} seconds" +"%Y-%m-%dT%H:%M:%S.%N+00:00")

INIT_OUTPUT=$(namadac utils init-network \
--genesis-time "$genesis_time" \
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ x-namada: &namada-common
dockerfile: docker/Dockerfile
context: .
args:
- NAMADA_TAG=${NAMADA_TAG:-v0.39.0}
- NAMADA_TAG=${NAMADA_TAG:-v0.40.0}
- BUILD_WASM=true
image: arashidos/namada:${NAMADA_TAG:-v0.39.0}
image: arashidos/namada:${NAMADA_TAG:-v0.40.0}
entrypoint: ["sh", "/docker-entrypoint-scripts.d/start-node.sh"]
networks:
namada:
Expand Down Expand Up @@ -77,12 +77,12 @@ services:
- namada-chain-b_data:/root/.local/share/namada

hermes:
image: arashidos/hermes:${HERMES_TAG:-v1.8.2-namada-beta10}
image: arashidos/hermes:${HERMES_TAG:-v1.9.0-namada-beta13-rc2}
build:
dockerfile: docker/hermes.Dockerfile
context: .
args:
- HERMES_TAG=${HERMES_TAG:-v1.8.2-namada-beta10}
- HERMES_TAG=${HERMES_TAG:-v1.9.0-namada-beta13-rc2}
hostname: hermes
profiles:
- hermes
Expand Down

0 comments on commit c120780

Please sign in to comment.