CityOfZion / props

Ecosystem props than can be used to enhance project functionality
5 stars 3 forks source link

Puppets: Enhancements to Puppet Epochs #16

Closed lllwvlvwlll closed 2 years ago

lllwvlvwlll commented 2 years ago

This enhancement will update the handling of puppet epochs by making the following changes:

1) Implement create_puppet_epoch(epoch_id, epoch_instance_id, max_mint, mint_fee) 2) Implement a puppet epoch incrementor 2) Update set_current_epoch to reference the puppet incrementor 3) Implement a check on max_mint when minting from an epoch 4) Update mint methods to support puppet_epoch and use the stored mint fee 5) Update set_mint_fee to accept a puppet_epoch 6) set an incrementor on the puppet_epoch to track how many mints have occurred

These enhancements will allow us to manage multiple concurrent mintings of puppets in parallel