Skip to content

Commit

Permalink
add new instantiate parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Jun 28, 2024
1 parent 50b9009 commit 46138bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/.env.instantiate.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ UNBONDING_SAFE_PERIOD=3600
UNBOND_BATCH_SWITCH_TIME=259200
# 14 days
PUPPETEER_TIMEOUT=1209600
# 14 days
STAKER_TIMEOUT=1209600
ARTIFACTS_DIR="../artifacts"

INITIAL_VALIDATORS='[{"valoper_address":"cosmosvaloper1...","weight":10},{"valoper_address":"cosmosvaloper1...","weight":10}]'
Expand Down
1 change: 1 addition & 0 deletions scripts/instantiate.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ UNBONDING_PERIOD="${UNBONDING_PERIOD:-1814400}"
UNBONDING_SAFE_PERIOD="${UNBONDING_SAFE_PERIOD:-3600}"
UNBOND_BATCH_SWITCH_TIME="${UNBOND_BATCH_SWITCH_TIME:-259200}"
PUPPETEER_TIMEOUT="${PUPPETEER_TIMEOUT:-1209600}"
STAKER_TIMEOUT="${STAKER_TIMEOUT:-1209600}"


source ./utils.bash
Expand Down
7 changes: 5 additions & 2 deletions scripts/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ deploy_factory() {
"base_denom":"'"$uatom_on_neutron_denom"'",
"core_params":{
"idle_min_interval":60,
"puppeteer_timeout":'$PUPPETEER_TIMEOUT',
"unbond_batch_switch_time":'$UNBOND_BATCH_SWITCH_TIME',
"unbonding_safe_period":'$UNBONDING_SAFE_PERIOD',
"unbonding_period":'$UNBONDING_PERIOD',
Expand All @@ -179,7 +178,11 @@ deploy_factory() {
},
"staker_params":{
"min_stake_amount":"10000",
"min_ibc_transfer":"10000"
"min_ibc_transfer":"10000",
"timeout":'$STAKER_TIMEOUT'
},
"puppeteer_params":{
"timeout":'$PUPPETEER_TIMEOUT'
}
}'
factory_address="$(neutrond tx wasm instantiate "$factory_code_id" "$msg" \
Expand Down

0 comments on commit 46138bc

Please sign in to comment.