mesg-foundation / engine

Build apps or autonomous workflows with reusable, shareable integrations connecting any service, app, blockchain or decentralized network.
https://mesg.com/
Apache License 2.0
130 stars 13 forks source link

Add optional task fee #1840

Closed antho1404 closed 4 years ago

antho1404 commented 4 years ago

We can now set a fee to a task that will be added to the default execution min price while executing it. This allows us to have different prices for different tasks. An error is thrown if the user/orchestrator doesn't provide the minimal execution price + task fee.

I also changed the way the orchestrator is initialized. the minExecPrice was given in string but and only throwing an error if the format is invalid on the first execution created by the orchestrator (which can take a while). Now the error is thrown directly in the main so if the formatting is wrong, the orchestrator will not start.

antho1404 commented 4 years ago

merged into https://github.com/mesg-foundation/engine/pull/1842