You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to correctly test contracts is super important for avoiding expensive fiascoes. However, there is no easy way to mock / test the scheduling functionality of the Ethereum Alarm Clock on a private test network besides actually deploying the contracts first. Even then, the private network requires a TimeNode to be present to actually execute the transaction. For a better developer experience we need a way to mock the deploy of the EAC on private test networks and execute the transactions in a lightweight way.
One thing we can do is create a dumb Scheduler which will basically only be a TransactionRequest with a timelock, then have a lightweight TimeNode in a helper function exposed by this library. Something like mockSchedule(params) which will handle all the complicated stuff under the scenes. Or even a simple mockTimeNode() which will wrap over the execution. Add't we can add an easy deployEAC() function which can be ran early in a Truffle mocha test.
The text was updated successfully, but these errors were encountered:
The ability to correctly test contracts is super important for avoiding expensive fiascoes. However, there is no easy way to mock / test the scheduling functionality of the Ethereum Alarm Clock on a private test network besides actually deploying the contracts first. Even then, the private network requires a TimeNode to be present to actually execute the transaction. For a better developer experience we need a way to mock the deploy of the EAC on private test networks and execute the transactions in a lightweight way.
One thing we can do is create a dumb
Scheduler
which will basically only be aTransactionRequest
with a timelock, then have a lightweight TimeNode in a helper function exposed by this library. Something likemockSchedule(params)
which will handle all the complicated stuff under the scenes. Or even a simplemockTimeNode()
which will wrap over the execution. Add't we can add an easydeployEAC()
function which can be ran early in a Truffle mocha test.The text was updated successfully, but these errors were encountered: