Skip to content

Commit

Permalink
allowed ccv,globalfee stargate queries
Browse files Browse the repository at this point in the history
  • Loading branch information
swelf19 committed Nov 13, 2024
1 parent 954660e commit edbe903
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
13 changes: 11 additions & 2 deletions network/hermes/create-conn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 13 additions & 5 deletions wasmbinding/stargate_allowlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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{},
}
}

0 comments on commit edbe903

Please sign in to comment.