Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions wasmbinding/bindings/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ type NeutronMsg struct {
/// that they are the admin of.
/// Currently, the burn from address must be the admin contract.
BurnTokens *BurnTokens `json:"burn_tokens,omitempty"`
/// Contracts can set before send hook for an existing factory denom
/// Contracts can set a before-send hook for an existing factory denom
/// that they are the admin of.
/// Currently, the set before hook call should be performed from address that must be the admin contract.
/// Currently, the before-send hook must be set by the admin contract.
SetBeforeSendHook *SetBeforeSendHook `json:"set_before_send_hook,omitempty"`
/// Force transferring of a specific denom is only allowed for the creator of the denom registered during CreateDenom.
/// Force-transferring a specific denom is only allowed for the admin of the denom.
ForceTransfer *ForceTransfer `json:"force_transfer,omitempty"`
/// Setting of metadata for a specific denom is only allowed for the admin of the denom.
/// It allows the overwriting of the denom metadata in the bank module.
Expand Down Expand Up @@ -171,19 +171,19 @@ type BurnTokens struct {
BurnFromAddress string `json:"burn_from_address"`
}

// SetBeforeSendHook Allowing to assign a CosmWasm contract to call with a BeforeSend hook for a specific denom is only
// allowed for the creator of the denom registered during CreateDenom.
// SetBeforeSendHook assigns a CosmWasm contract as the BeforeSend hook for a specific denom.
// Only the denom admin can set it.
type SetBeforeSendHook struct {
Denom string `json:"denom"`
ContractAddr string `json:"contract_addr"`
}

// SetDenomMetadata is sets the denom's bank metadata
// SetDenomMetadata sets the denom's bank metadata.
type SetDenomMetadata struct {
banktypes.Metadata
}

// ForceTransfer forces transferring of a specific denom is only allowed for the creator of the denom registered during CreateDenom.
// ForceTransfer force-transfers a specific denom. Only the denom admin can perform this action.
type ForceTransfer struct {
Denom string `json:"denom"`
Amount math.Int `json:"amount"`
Expand Down
2 changes: 1 addition & 1 deletion wasmbinding/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func PerformCreateDenom(f *tokenfactorykeeper.Keeper, ctx sdk.Context, contractA
return nil
}

// createDenom forces a transfer of a tokenFactory token
// forceTransfer forces a transfer of a tokenfactory token.
func (m *CustomMessenger) forceTransfer(ctx sdk.Context, contractAddr sdk.AccAddress, forceTransfer *bindings.ForceTransfer) ([]sdk.Event, [][]byte, [][]*types.Any, error) {
err := PerformForceTransfer(m.TokenFactory, ctx, contractAddr, forceTransfer)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions x/coinfactory/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (m MsgBurn) GetSigners() []sdk.AccAddress {

var _ sdk.Msg = &MsgForceTransfer{}

// NewMsgForceTransfer creates a transfer funds from one account to another
// NewMsgForceTransfer creates a message to force-transfer funds from one account to another.
func NewMsgForceTransfer(sender string, amount sdk.Coin, fromAddr, toAddr string) *MsgForceTransfer {
return &MsgForceTransfer{
Sender: sender,
Expand Down Expand Up @@ -196,7 +196,7 @@ func (m MsgForceTransfer) GetSigners() []sdk.AccAddress {

var _ sdk.Msg = &MsgChangeAdmin{}

// NewMsgChangeAdmin creates a message to burn tokens
// NewMsgChangeAdmin creates a message to change the admin of a denom.
func NewMsgChangeAdmin(sender, denom, newAdmin string) *MsgChangeAdmin {
return &MsgChangeAdmin{
Sender: sender,
Expand Down
4 changes: 2 additions & 2 deletions x/tokenfactory/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (m MsgBurn) GetSigners() []sdk.AccAddress {

var _ sdk.Msg = &MsgForceTransfer{}

// NewMsgForceTransfer creates a transfer funds from one account to another
// NewMsgForceTransfer creates a message to force-transfer funds from one account to another.
func NewMsgForceTransfer(sender string, amount sdk.Coin, fromAddr, toAddr string) *MsgForceTransfer {
return &MsgForceTransfer{
Sender: sender,
Expand Down Expand Up @@ -196,7 +196,7 @@ func (m MsgForceTransfer) GetSigners() []sdk.AccAddress {

var _ sdk.Msg = &MsgChangeAdmin{}

// NewMsgChangeAdmin creates a message to burn tokens
// NewMsgChangeAdmin creates a message to change the admin of a denom.
func NewMsgChangeAdmin(sender, denom, newAdmin string) *MsgChangeAdmin {
return &MsgChangeAdmin{
Sender: sender,
Expand Down