Timestamp
Description
Trigger contract that verifies if current timestamp is higher than the one in sub data,
Trigger ID
0xa051d9a9
SDK Action
const timestampTrigger = new dfs.triggers.TimestampTrigger(
nextTimestamp
);
Subscription Parameters
/// @param timestamp The next timestamp in which it should trigger
/// @param interval How much to increase the next timestamp after executing strategy
struct SubParams {
uint256 timestamp;
uint256 interval;
}
Calldata Parameters
None
IsChangeable
true
changedSubData: new sub-data is created by adding the interval parameter to the timestamp parameter. This is later on updated in the RecipeExecutor and SubStorage.
Last updated
Was this helpful?