fee_percentage: the percentage of the fee that will be paid per task
fee_contract: the EOS account that fees will be sent to
Implements a network fee on publish batch. The fee amount is fee_percentage of the total batch price. The network fee is "withdrawn" from the contract vAccount balance to an EOS account.
Converts the config table to a new settings table and migrates the data over. This is because config was a singleton from CDT which does not support binary extensions. As singleton is a very light wrapper for a 1-row table I decided to replicate this functionality in this contract with support with binary extensions.
There is a short amount of time where some contract instructions will stop working (until migrate has completed). During this time publishbatch and reclaimtask will give a message that the platform is in maintenance.
Important: all dApps will have to update to a new version of effect-js in order to account for the fees when publishing new batches.
This PR:
Add new settings:
fee_percentage
: the percentage of the fee that will be paid per taskfee_contract
: the EOS account that fees will be sent toImplements a network fee on publish batch. The fee amount is
fee_percentage
of the total batch price. The network fee is "withdrawn" from the contract vAccount balance to an EOS account.Converts the
config
table to a newsettings
table and migrates the data over. This is becauseconfig
was a singleton from CDT which does not support binary extensions. As singleton is a very light wrapper for a 1-row table I decided to replicate this functionality in this contract with support with binary extensions.There is a short amount of time where some contract instructions will stop working (until migrate has completed). During this time
publishbatch
andreclaimtask
will give a message that the platform is in maintenance.Important: all dApps will have to update to a new version of
effect-js
in order to account for the fees when publishing new batches.