Skip to content

Commit

Permalink
feat: add registered asset name to fee paid event
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Aug 9, 2023
1 parent 49a1859 commit 8b9b105
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 53 deletions.
1 change: 1 addition & 0 deletions docs/proto/proto-docs.md

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

1 change: 1 addition & 0 deletions proto/axelar/axelarnet/v1beta1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ message FeePaid {
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
cosmos.base.v1beta1.Coin fee = 3 [ (gogoproto.nullable) = false ];
string refund_recipient = 4;
string asset = 5; // registered asset name in nexus
}

message ContractCallSubmitted {
Expand Down
1 change: 1 addition & 0 deletions x/axelarnet/message_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ func deductFee(ctx sdk.Context, b types.BankKeeper, fee *Fee, token keeper.Coin,
MessageID: msgID,
Recipient: recipient,
Fee: coin,
Asset: token.GetDenom(),
}
if fee.RefundRecipient != nil {
feePaidEvent.RefundRecipient = *fee.RefundRecipient
Expand Down
157 changes: 104 additions & 53 deletions x/axelarnet/types/events.pb.go

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

0 comments on commit 8b9b105

Please sign in to comment.