Skip to content

Create Vesting Account Message #4287

Closed
@alexanderbez

Description

Summary

Currently, the only way to define and utilize vesting accounts is through genesis. Now that the hub has launched, there is essentially no longer a way to create new vesting accounts.

Proposal

  • Create a new message and corresponding handler:
type MsgCreateVestingAccount struct {
	FromAddress sdk.AccAddress `json:"from_address"`
	ToAddress   sdk.AccAddress `json:"to_address"`
	Amount      sdk.Coins      `json:"amount"`
	EndTime     int64          `json:"end_time"`
        Delayed     bool           `json:"delayed"`
}

The handler for this would not differ much from a traditional MsgSend except that it would modify the newly created account to now include the new vesting fields.

Also, I decided to omit start_time and allow that to be inferred from the block time (ie. it starts vesting immediately).

/cc @cwgoes @zmanian


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions