Skip to content

Commit

Permalink
fix for stayking message type
Browse files Browse the repository at this point in the history
  • Loading branch information
jongseokleedev committed May 8, 2023
1 parent 01039ea commit 900de3c
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion interchaintest/stride/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/cosmos/cosmos-sdk/types/module/testutil"
rlystride "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stride"
rlystride "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stayking"
"github.com/icza/dyno"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/stride/stride_icq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
chantypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
rlystride "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stride"
rlystride "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stayking"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
"github.com/strangelove-ventures/interchaintest/v7/chain/cosmos"
"github.com/strangelove-ventures/interchaintest/v7/ibc"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

syntax = "proto3";
package stride.interchainquery.v1;
package stayking.interchainquery.v1;

import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";
import "tendermint/crypto/proof.proto";

// NOTE: copied into this repository from
// "github.com/Stride-Labs/stride/v5/x/interchainquery/types"
option go_package = "github.com/cosmos/relayer/relayer/chains/cosmos/stride";
option go_package = "github.com/cosmos/relayer/relayer/chains/cosmos/stayking";

// MsgSubmitQueryResponse represents a message type to fulfil a query request.
message MsgSubmitQueryResponse {
Expand Down
4 changes: 2 additions & 2 deletions relayer/chains/cosmos/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
ibc "github.com/cosmos/ibc-go/v7/modules/core"

cosmosmodule "github.com/cosmos/relayer/v2/relayer/chains/cosmos/module"
"github.com/cosmos/relayer/v2/relayer/chains/cosmos/stride"
"github.com/cosmos/relayer/v2/relayer/chains/cosmos/stayking"
ethermintcodecs "github.com/cosmos/relayer/v2/relayer/codecs/ethermint"
injectivecodecs "github.com/cosmos/relayer/v2/relayer/codecs/injective"
)
Expand Down Expand Up @@ -57,7 +57,7 @@ var ModuleBasics = []module.AppModuleBasic{
transfer.AppModuleBasic{},
ibc.AppModuleBasic{},
cosmosmodule.AppModuleBasic{},
stride.AppModuleBasic{},
stayking.AppModuleBasic{},
}

type Codec struct {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stride
package stayking

import (
"cosmossdk.io/api/tendermint/crypto"
Expand All @@ -18,7 +18,7 @@ var (
)

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
cdc.RegisterConcrete(&MsgSubmitQueryResponse{}, "/stride.interchainquery.MsgSubmitQueryResponse", nil)
cdc.RegisterConcrete(&MsgSubmitQueryResponse{}, "/stayking.interchainquery.MsgSubmitQueryResponse", nil)
}

func RegisterInterfaces(registry types.InterfaceRegistry) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stride
package stayking

import (
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package stride
package stayking

import (
"encoding/json"
Expand Down
4 changes: 2 additions & 2 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
host "github.com/cosmos/ibc-go/v7/modules/core/24-host"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
tmclient "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
strideicqtypes "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stride"
staykingicqtypes "github.com/cosmos/relayer/v2/relayer/chains/cosmos/stayking"
"github.com/cosmos/relayer/v2/relayer/provider"
"go.uber.org/zap"
"google.golang.org/grpc/codes"
Expand Down Expand Up @@ -1016,7 +1016,7 @@ func (cc *CosmosProvider) MsgSubmitQueryResponse(chainID string, queryID provide
if err != nil {
return nil, err
}
msg := &strideicqtypes.MsgSubmitQueryResponse{
msg := &staykingicqtypes.MsgSubmitQueryResponse{
ChainId: chainID,
QueryId: string(queryID),
Result: proof.Result,
Expand Down

0 comments on commit 900de3c

Please # to comment.