Skip to content

Commit

Permalink
feat: add possibility for unordered ica channels
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Aug 7, 2024
1 parent 8170243 commit b0d127f
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 62 deletions.
2 changes: 2 additions & 0 deletions proto/neutron/interchaintxs/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import "google/api/http.proto";
import "google/protobuf/any.proto";
import "neutron/feerefunder/fee.proto";
import "neutron/interchaintxs/v1/params.proto";
import "ibc/core/channel/v1/channel.proto";

option go_package = "github.com/neutron-org/neutron/v4/x/interchaintxs/types";

Expand All @@ -36,6 +37,7 @@ message MsgRegisterInterchainAccount {
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
];
ibc.core.channel.v1.Order ordering = 5;
}

// MsgRegisterInterchainAccountResponse is the response type for
Expand Down
5 changes: 3 additions & 2 deletions x/dex/types/limit_order_tranche_user.pb.go

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

2 changes: 1 addition & 1 deletion x/interchaintxs/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (k Keeper) RegisterInterchainAccount(goCtx context.Context, msg *ictxtypes.
Owner: icaOwner,
ConnectionId: msg.ConnectionId,
Version: "", // FIXME: empty version string doesn't look good
Ordering: channeltypes.ORDERED,
Ordering: msg.ChannelOrdering,

Check failure on line 69 in x/interchaintxs/keeper/msg_server.go

View workflow job for this annotation

GitHub Actions / lint

msg.ChannelOrdering undefined (type *"github.com/neutron-org/neutron/v4/x/interchaintxs/types".MsgRegisterInterchainAccount has no field or method ChannelOrdering) (typecheck)

Check failure on line 69 in x/interchaintxs/keeper/msg_server.go

View workflow job for this annotation

GitHub Actions / lint

msg.ChannelOrdering undefined (type *"github.com/neutron-org/neutron/v4/x/interchaintxs/types".MsgRegisterInterchainAccount has no field or method ChannelOrdering)) (typecheck)

Check failure on line 69 in x/interchaintxs/keeper/msg_server.go

View workflow job for this annotation

GitHub Actions / lint

msg.ChannelOrdering undefined (type *"github.com/neutron-org/neutron/v4/x/interchaintxs/types".MsgRegisterInterchainAccount has no field or method ChannelOrdering)) (typecheck)

Check failure on line 69 in x/interchaintxs/keeper/msg_server.go

View workflow job for this annotation

GitHub Actions / lint

msg.ChannelOrdering undefined (type *"github.com/neutron-org/neutron/v4/x/interchaintxs/types".MsgRegisterInterchainAccount has no field or method ChannelOrdering)) (typecheck)

Check failure on line 69 in x/interchaintxs/keeper/msg_server.go

View workflow job for this annotation

GitHub Actions / lint

msg.ChannelOrdering undefined (type *"github.com/neutron-org/neutron/v4/x/interchaintxs/types".MsgRegisterInterchainAccount has no field or method ChannelOrdering)) (typecheck)
})
if err != nil {
k.Logger(ctx).Debug("RegisterInterchainAccount: failed to RegisterInterchainAccount:", "error", err, "owner", icaOwner, "msg", &msg)
Expand Down
150 changes: 91 additions & 59 deletions x/interchaintxs/types/tx.pb.go

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

0 comments on commit b0d127f

Please sign in to comment.