Skip to content

Commit 44c0f6b

Browse files
authored
Merge branch 'main' into amino-type
2 parents 9623678 + daabf6e commit 44c0f6b

11 files changed

Lines changed: 369 additions & 152 deletions

File tree

proto/hyperlane/core/interchain_security/v1/tx.proto

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ message MsgCreateMessageIdMultisigIsmResponse {
7070
];
7171
}
7272

73-
// MsgCreateMultisigIsm ...
73+
// MsgCreateMerkleRootMultisigIsm ...
7474
message MsgCreateMerkleRootMultisigIsm {
7575
option (cosmos.msg.v1.signer) = "creator";
7676
option (amino.name) = "hyperlane/v1/MsgCreateMerkleRootMultisigIsm";
@@ -86,7 +86,7 @@ message MsgCreateMerkleRootMultisigIsm {
8686
uint32 threshold = 3;
8787
}
8888

89-
// MsgCreateMultisigIsmResponse ...
89+
// MsgCreateMerkleRootMultisigIsmResponse ...
9090
message MsgCreateMerkleRootMultisigIsmResponse {
9191
string id = 1 [
9292
(gogoproto.customtype) =
@@ -165,8 +165,7 @@ message MsgCreateRoutingIsmResponse {
165165
// MsgSetRoutingIsmDomain ...
166166
message MsgSetRoutingIsmDomain {
167167
option (cosmos.msg.v1.signer) = "owner";
168-
option (amino.name) =
169-
"hyperlane/v1/MsgCreateRoMsgSetRoutingIsmDomainutingIsm";
168+
option (amino.name) = "hyperlane/v1/MsgSetRoutingIsmDomain";
170169

171170
// ism_id ...
172171
string ism_id = 1 [

proto/hyperlane/core/post_dispatch/v1/tx.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ service Msg {
4141
// MsgCreateIgp ...
4242
message MsgCreateIgp {
4343
option (cosmos.msg.v1.signer) = "owner";
44-
option (amino.name) = "hyperlane/v1/MsgCreateInterchainGasPaymaster";
44+
option (amino.name) = "hyperlane/v1/MsgCreateIgp";
4545

4646
// owner is the message sender.
4747
string owner = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
@@ -81,7 +81,7 @@ message MsgSetIgpOwner {
8181
bool renounce_ownership = 4;
8282
}
8383

84-
// MsgCreateIgpResponse ...
84+
// MsgSetIgpOwnerResponse ...
8585
message MsgSetIgpOwnerResponse {}
8686

8787
// MsgSetDestinationGasConfig ...
@@ -164,7 +164,7 @@ message MsgClaim {
164164
// MsgClaimResponse ...
165165
message MsgClaimResponse {}
166166

167-
// MsgMerkleTreeHook ...
167+
// MsgCreateMerkleTreeHook ...
168168
message MsgCreateMerkleTreeHook {
169169
option (cosmos.msg.v1.signer) = "owner";
170170
option (amino.name) = "hyperlane/v1/MsgCreateMerkleTreeHook";
@@ -188,16 +188,16 @@ message MsgCreateMerkleTreeHookResponse {
188188
];
189189
}
190190

191-
// MsgMerkleTreeHook ...
191+
// MsgCreateNoopHook ...
192192
message MsgCreateNoopHook {
193193
option (cosmos.msg.v1.signer) = "owner";
194-
option (amino.name) = "hyperlane/v1/MsgCreateMerkleTreeHook";
194+
option (amino.name) = "hyperlane/v1/MsgCreateNoopHook";
195195

196196
// sender ...
197197
string owner = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
198198
}
199199

200-
// MsgCreateMerkleTreeHookResponse ...
200+
// MsgCreateNoopHookResponse ...
201201
message MsgCreateNoopHookResponse {
202202
string id = 1 [
203203
(gogoproto.customtype) =

x/core/01_interchain_security/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
3535
cdc.RegisterConcrete(&types.MsgCreateMerkleRootMultisigIsm{}, "hyperlane/v1/MsgCreateMerkleRootMultisigIsm", nil)
3636
cdc.RegisterConcrete(&types.MsgCreateNoopIsm{}, "hyperlane/v1/MsgCreateNoopIsm", nil)
3737
cdc.RegisterConcrete(&types.MsgCreateRoutingIsm{}, "hyperlane/v1/MsgCreateRoutingIsm", nil)
38-
cdc.RegisterConcrete(&types.MsgSetRoutingIsmDomain{}, "hyperlane/v1/MsgCreateRoMsgSetRoutingIsmDomainutingIsm", nil)
38+
cdc.RegisterConcrete(&types.MsgSetRoutingIsmDomain{}, "hyperlane/v1/MsgSetRoutingIsmDomain", nil)
3939
cdc.RegisterConcrete(&types.MsgRemoveRoutingIsmDomain{}, "hyperlane/v1/MsgRemoveRoutingIsmDomain", nil)
4040
cdc.RegisterConcrete(&types.MsgUpdateRoutingIsmOwner{}, "hyperlane/v1/MsgUpdateRoutingIsmOwner", nil)
4141
}

x/core/01_interchain_security/types/tx.pb.go

Lines changed: 66 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/core/02_post_dispatch/keeper/hook_igp.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (i InterchainGasPaymasterHookHandler) PayForGas(ctx context.Context, hookId
5252
return sdk.NewCoins(), err
5353
}
5454

55-
if requiredPayment.IsAllGT(maxFee) {
55+
if !maxFee.IsAllGTE(requiredPayment) {
5656
return sdk.NewCoins(), fmt.Errorf("required payment exceeds max hyperlane fee: %v", requiredPayment)
5757
}
5858

@@ -69,7 +69,8 @@ func (i InterchainGasPaymasterHookHandler) PayForGasWithoutQuote(ctx context.Con
6969
}
7070

7171
if amount.IsZero() {
72-
return fmt.Errorf("amount must be greater than zero")
72+
// Nothing to charge
73+
return nil
7374
}
7475

7576
senderAcc, err := sdk.AccAddressFromBech32(sender)

0 commit comments

Comments
 (0)