Disable transfers in bank module in the generated genesis file (#3)
* Disbale transfers in bank module in the generated genesis file * Use bash to run the fixturenet script * Trust local certs for fetching account holdings
This commit is contained in:
parent
06fedd6a03
commit
e5c637e716
@ -2,7 +2,7 @@ services:
|
||||
laconicd:
|
||||
restart: unless-stopped
|
||||
image: cerc/laconic2d:local
|
||||
command: ["sh", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
||||
command: ["bash", "/docker-entrypoint-scripts.d/create-fixturenet.sh"]
|
||||
environment:
|
||||
TEST_AUCTION_ENABLED: ${TEST_AUCTION_ENABLED:-false}
|
||||
TEST_REGISTRY_EXPIRY: ${TEST_REGISTRY_EXPIRY:-false}
|
||||
|
@ -74,7 +74,7 @@ Instructions for running a laconicd fixturenet along with registry CLI and conso
|
||||
* Create deployment from the spec files:
|
||||
|
||||
```bash
|
||||
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy create --spec-file fixturenet-laconicd-spec.yml --deployment-dir fixturenet-laconicd-deployment
|
||||
laconic-so --stack ~/cerc/fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd deploy create --spec-file fixturenet-laconicd-spec.yml --deployment-dir fixturenet-laconicd-deployment
|
||||
|
||||
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console deploy create --spec-file laconic-console-spec.yml --deployment-dir laconic-console-deployment
|
||||
|
||||
|
@ -16,6 +16,9 @@ fi
|
||||
|
||||
OUTPUT_FILE=$1
|
||||
|
||||
# Trust locally-trusted development certificates created by mkcert
|
||||
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
|
||||
|
||||
# Run the nitro-rpc-client command and process the output with jq
|
||||
npm exec -c "nitro-rpc-client get-all-ledger-channels -p 4006" | jq -s '[.[] | {ethereum_address: .Balance.Them, balance: .Balance.TheirBalance}]' > "$OUTPUT_FILE"
|
||||
|
||||
|
@ -19,6 +19,9 @@ laconicd init $STAGE1_MONIKER --chain-id $CHAINID --default-denom photon
|
||||
participants=$(jq -c '.participants' $onboarding_state_file)
|
||||
jq --argjson p "$participants" '.app_state.onboarding.participants = $p' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file"
|
||||
|
||||
# Disable bank module transfers
|
||||
jq '.app_state["bank"]["params"]["default_send_enabled"]=false' "$stage1_genesis_file" > tmp.$$.json && mv tmp.$$.json "$stage1_genesis_file"
|
||||
|
||||
# Read and assign allocations
|
||||
jq -c '.[]' "$stage1_allocations_file" | while IFS= read -r line; do
|
||||
cosmos_address=$(jq -r '.cosmos_address' <<< "$line")
|
||||
|
Loading…
Reference in New Issue
Block a user