File tree Expand file tree Collapse file tree 3 files changed +22
-25
lines changed
lib/go/contracts/internal/assets Expand file tree Collapse file tree 3 files changed +22
-25
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ access(all) contract FlowCallbackScheduler {
17
17
}
18
18
19
19
access (all) enum Status : UInt8 {
20
+ /// unknown statuses are used for handling historic callbacks with null statuses
21
+ access (all) case Unknown
20
22
/// mutable statuses
21
23
access (all) case Scheduled
22
24
access (all) case Processed
@@ -247,7 +249,8 @@ access(all) contract FlowCallbackScheduler {
247
249
/// refund multiplier is the portion of the fees that are refunded when a callback is cancelled
248
250
access (all) var refundMultiplier : UFix64
249
251
250
- /// historic status limit is the maximum age of a historic canceled callback status we keep before getting pruned
252
+ /// historic status age limit is the maximum age in timestamp seconds
253
+ /// of a historic canceled callback status to keep before getting pruned
251
254
access (all) var historicStatusAgeLimit : UFix64
252
255
253
256
access (all) init (
@@ -426,7 +429,7 @@ access(all) contract FlowCallbackScheduler {
426
429
Priority.Low: 2 .0
427
430
},
428
431
refundMultiplier : 0 .5 ,
429
- historicStatusAgeLimit : 30 .0 * 24 .0 * 60 .0 * 60 .0 // 5 days
432
+ historicStatusAgeLimit : 30 .0 * 24 .0 * 60 .0 * 60 .0 // 30 days
430
433
)
431
434
}
432
435
@@ -482,7 +485,7 @@ access(all) contract FlowCallbackScheduler {
482
485
return Status.Succeeded
483
486
}
484
487
485
- return nil
488
+ return Status.Unknown
486
489
}
487
490
488
491
/// schedule is the primary entry point for scheduling a new callback within the scheduler contract.
You can’t perform that action at this time.
0 commit comments