From edbe903da2e41b9e69130bdaa988da77486c515a Mon Sep 17 00:00:00 2001 From: swelf Date: Wed, 13 Nov 2024 21:02:29 +0300 Subject: [PATCH 1/2] allowed ccv,globalfee stargate queries --- network/hermes/create-conn.sh | 13 +++++++++++-- wasmbinding/stargate_allowlist.go | 18 +++++++++++++----- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/network/hermes/create-conn.sh b/network/hermes/create-conn.sh index eccb0a6ab..e513f390a 100755 --- a/network/hermes/create-conn.sh +++ b/network/hermes/create-conn.sh @@ -8,5 +8,14 @@ set -e echo "Initiating connection handshake..." $HERMES_BINARY --config $CONFIG_DIR create connection --a-chain test-1 --b-chain test-2 -sleep 2 -$HERMES_BINARY --config $CONFIG_DIR create channel --a-chain test-1 --a-connection connection-0 --a-port transfer --b-port transfer + + +# a short living client is needed for client update proposal test +echo "Initiating short living client..." +while ! $HERMES_BINARY --config $CONFIG_DIR create client --trusting-period 5s --host-chain test-1 --reference-chain test-2; do + sleep 1 +done +# wait until the short living client expires +sleep 5 + +$HERMES_BINARY --config $CONFIG_DIR create channel --a-chain test-1 --a-connection connection-0 --a-port transfer --b-port transfer \ No newline at end of file diff --git a/wasmbinding/stargate_allowlist.go b/wasmbinding/stargate_allowlist.go index 1364c94a4..915fc3b90 100644 --- a/wasmbinding/stargate_allowlist.go +++ b/wasmbinding/stargate_allowlist.go @@ -9,6 +9,8 @@ import ( ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" //nolint:staticcheck ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" ibcchanneltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types" + consumertypes "github.com/cosmos/interchain-security/v5/x/ccv/consumer/types" + globalfeetypes "github.com/neutron-org/neutron/v5/x/globalfee/types" feemarkettypes "github.com/skip-mev/feemarket/x/feemarket/types" marketmaptypes "github.com/skip-mev/slinky/x/marketmap/types" oracletypes "github.com/skip-mev/slinky/x/oracle/types" @@ -111,12 +113,18 @@ func AcceptedStargateQueries() wasmkeeper.AcceptedQueries { "/slinky.marketmap.v1.Query/Market": &marketmaptypes.MarketResponse{}, // feemarket - "feemarket.feemarket.v1.Query/Params": &feemarkettypes.ParamsResponse{}, - "feemarket.feemarket.v1.Query/State": &feemarkettypes.StateResponse{}, - "feemarket.feemarket.v1.Query/GasPrice": &feemarkettypes.GasPriceResponse{}, - "feemarket.feemarket.v1.Query/GasPrices": &feemarkettypes.GasPricesResponse{}, + "/feemarket.feemarket.v1.Query/Params": &feemarkettypes.ParamsResponse{}, + "/feemarket.feemarket.v1.Query/State": &feemarkettypes.StateResponse{}, + "/feemarket.feemarket.v1.Query/GasPrice": &feemarkettypes.GasPriceResponse{}, + "/feemarket.feemarket.v1.Query/GasPrices": &feemarkettypes.GasPricesResponse{}, // dynamicfees - "neutron.dynamicfees.v1.Query/Params": &dynamicfeestypes.QueryParamsResponse{}, + "/neutron.dynamicfees.v1.Query/Params": &dynamicfeestypes.QueryParamsResponse{}, + + // globalfee + "/gaia.globalfee.v1beta1.Query/Params": &globalfeetypes.QueryParamsResponse{}, + + // consumer + "/interchain_security.ccv.consumer.v1.Query/QueryParams": &consumertypes.QueryParamsResponse{}, } } From 66a8aa59ad60a782315c6ddfd6ef8435740afcc7 Mon Sep 17 00:00:00 2001 From: swelf Date: Tue, 26 Nov 2024 21:33:43 +0300 Subject: [PATCH 2/2] simplified hermes setup --- network/hermes/create-conn.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/network/hermes/create-conn.sh b/network/hermes/create-conn.sh index e513f390a..96f64a670 100755 --- a/network/hermes/create-conn.sh +++ b/network/hermes/create-conn.sh @@ -8,14 +8,5 @@ set -e echo "Initiating connection handshake..." $HERMES_BINARY --config $CONFIG_DIR create connection --a-chain test-1 --b-chain test-2 - - -# a short living client is needed for client update proposal test -echo "Initiating short living client..." -while ! $HERMES_BINARY --config $CONFIG_DIR create client --trusting-period 5s --host-chain test-1 --reference-chain test-2; do - sleep 1 -done -# wait until the short living client expires -sleep 5 - +sleep 2 $HERMES_BINARY --config $CONFIG_DIR create channel --a-chain test-1 --a-connection connection-0 --a-port transfer --b-port transfer \ No newline at end of file