Skip to content

Commit

Permalink
feat: add missing fields to asset profile messages (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-vagabond authored Dec 18, 2023
1 parent 5966f0c commit 6664ea0
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 37 deletions.
4 changes: 4 additions & 0 deletions proto/elys/assetprofile/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ message MsgCreateEntry {
string unit_denom = 15;
string ibc_counterparty_denom = 16;
string ibc_counterparty_chain_id = 17;
bool commit_enabled = 18;
bool withdraw_enabled = 19;
}

message MsgCreateEntryResponse {}
Expand All @@ -52,6 +54,8 @@ message MsgUpdateEntry {
string unit_denom = 15;
string ibc_counterparty_denom = 16;
string ibc_counterparty_chain_id = 17;
bool commit_enabled = 18;
bool withdraw_enabled = 19;
}

message MsgUpdateEntryResponse {}
Expand Down
4 changes: 4 additions & 0 deletions x/assetprofile/keeper/msg_server_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ func (k msgServer) CreateEntry(goCtx context.Context, msg *types.MsgCreateEntry)
UnitDenom: msg.UnitDenom,
IbcCounterpartyDenom: msg.IbcCounterpartyDenom,
IbcCounterpartyChainId: msg.IbcCounterpartyChainId,
CommitEnabled: msg.CommitEnabled,
WithdrawEnabled: msg.WithdrawEnabled,
}

k.SetEntry(ctx, entry)
Expand Down Expand Up @@ -83,6 +85,8 @@ func (k msgServer) UpdateEntry(goCtx context.Context, msg *types.MsgUpdateEntry)
UnitDenom: msg.UnitDenom,
IbcCounterpartyDenom: msg.IbcCounterpartyDenom,
IbcCounterpartyChainId: msg.IbcCounterpartyChainId,
CommitEnabled: msg.CommitEnabled,
WithdrawEnabled: msg.WithdrawEnabled,
}

k.SetEntry(ctx, entry)
Expand Down
249 changes: 212 additions & 37 deletions x/assetprofile/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 6664ea0

Please sign in to comment.