Skip to content

Commit

Permalink
chore(run-protocol): psm Makefile for local-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 24, 2022
1 parent bbfd9d7 commit 846f19c
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions packages/run-protocol/scripts/Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@

TITLE = "Start RUN Protocol Preview on Stage - PSM"
TITLE = Start RUN Protocol Preview on Stage - PSM
DESCRIPTION = $(shell cat ../docs/run-protocol-preview.md)
NETWORK_CONFIG = https://stage.agoric.net/network-config
AG_SOLO_BASEDIR = /tmp/stage22

EVAL_DEPOSIT = 1000000ubld
GAS_ADJUSTMENT = 1.2

CHAIN_ID = $(shell curl -Ss "$(NETWORK_CONFIG)" | jq -r .chainName)
RPC_IP = $(shell curl -Ss "$(NETWORK_CONFIG)" | jq -r .rpcAddrs[0] | cut -d":" -f1)
# AG_SOLO_BASEDIR = /tmp/stage22
# NETWORK_CONFIG = https://stage.agoric.net/network-config
# CHAIN_ID = $(shell curl -Ss "$(NETWORK_CONFIG)" | jq -r .chainName)
# RPC_IP = $(shell curl -Ss "$(NETWORK_CONFIG)" | jq -r .rpcAddrs[0] | cut -d":" -f1)
# CHAIN_OPTS = --node=http://$(RPC_IP):26657 --chain-id=$(CHAIN_ID)

#../cosmic-swingset/scripts/clean-core-eval.js gov-psm.js >gov-psm.js-clean.js
#../cosmic-swingset/scripts/clean-core-eval.js gov-econ-committee.js >gov-econ-committee.js-clean.js

# local-chain
AG_SOLO_BASEDIR=../../cosmic-swingset/t1/8000
CHAIN_OPTS = --chain-id=agoric

quoting:
echo $(DESCRIPTION)

EVALS=gov-startPSM-permit.json gov-startPSM.js
submit-proposal: $(EVALS)
agd --node=http://$(RPC_IP):26657 \
agd $(CHAIN_OPTS) \
--home=$(AG_SOLO_BASEDIR)/ag-cosmos-helper-statedir --keyring-backend=test \
tx gov submit-proposal swingset-core-eval \
$(EVALS) \
--title=$(TITLE) --description="$(DESCRIPTION)" \
--title="$(TITLE)" --description="$(DESCRIPTION)" \
--deposit=$(EVAL_DEPOSIT) \
--gas=auto --gas-adjustment=$(GAS_ADJUSTMENT) \
--yes --chain-id=$(CHAIN_ID) --from=ag-solo -b block
--yes --from=ag-solo -b block


gov-q:
agd query gov proposals --output json | \
jq -c '.proposals[] | [.proposal_id,.voting_end_time,.status]';

0 comments on commit 846f19c

Please sign in to comment.