Skip to content

simplify the token timelock example #359

@tomerweller

Description

@tomerweller

The token timelock example is important because it's a well understood simple concept that touches on how to work with tokens. I propose implementing a few simplifications/clarifications in order to enhance it's readability and usability as learning material:

  • Consistent naming: the folder is named timelock but the contract is called CalimbaleBalance. I suggest standardizing on token-timelock and TokenTimelockContract
  • Remove Timebound and only support "valid after" semantics
  • Support a single claimant instead of a vector of claimants
  • Migrate from deposit() to a p22 constructor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions