Skip to content

Time Based Minting

Compare
Choose a tag to compare
@cthacker cthacker released this 31 Oct 19:11
· 5 commits to master since this release
582aec2

v1.1 - Time Based Minting

The main feature added in v1.1 is the ability to mint tokens in a time limited fashion instead of
supply limited. To do this, one sets the available window time in days and sets max_supply to 0.
This enables tokens to be minted until the window has elapsed. Once the window has elapsed, or if
the contract owner wants to end it early the freezemaxsup() action may be called. This will set
the window time to 0 and the current supply will become the max supply, ensuring no more tokens may
be minted. To mint as before, just set max_issue_days to 0 in the create call. Alternatively,
one may set both a max issue time and max supply.

  • added time based minting
  • ensure dgood_id is unique even with tokens being burned (aka replace available_primary_key() )