From e9f17a50e6fbbdb22c367b80cec8f99cc77f4b44 Mon Sep 17 00:00:00 2001 From: Tuan Pham Anh Date: Tue, 12 Sep 2023 03:20:46 +0700 Subject: [PATCH] fix upgrading.sh for agoric --- rpc/scripts/upgrading.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rpc/scripts/upgrading.sh b/rpc/scripts/upgrading.sh index c0eaacf2..b184ce52 100644 --- a/rpc/scripts/upgrading.sh +++ b/rpc/scripts/upgrading.sh @@ -90,6 +90,21 @@ buid_chain () { # if [ "$use_gvm" = true ]; then # cp /root/.gvm/pkgsets/go1.18.10/global/bin/$daemon_name /root/go/bin/ # fi + + + # fix agoric + if [[ $chain_name == "agoric" ]]; then + cd $HOME/agoric-sdk + yarn install + yarn build + + cd $HOME/agoric-sdk/packages/cosmic-swingset && make + + cd $HOME/agoric-sdk/golang/cosmos + go build -buildmode=exe -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb $opt_forcesync" -o build/agd ./cmd/agd + go build -buildmode=exe -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb $opt_forcesync" -o build/ag-cosmos-helper ./cmd/helper + go build -buildmode=c-shared -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb $opt_forcesync" -o build/libagcosmosdaemon.so ./cmd/libdaemon/main.go + fi } ########################################################################################################################