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
{{ message }}
Repository navigation
Commit e5ef15d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: crates/core/src/scenarios/README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,11 @@ This is a cumbersome process in most cases.
88
88
Override templates that are registered in the Surfpool repo will automatically be available in Surfpool Studio's drag-and-drop UI for creating scenarios.
89
89
This UI will automatically create the `surfnet_registerScenario` payload for you, eliminating the complexity from the process.
90
90
91
+
A collection tagged `clock-sensitive` holds accounts with a time or slot the program checks against the Clock, such as a
92
+
Pyth price's `publish_time` or the oracle staleness window of Phoenix markets. Playing such a scenario with the clock paused
93
+
leaves fetched accounts ahead of the surfnet's time, and the program can refuse transactions; Studio warns before pausing for
94
+
them. The tag applies to every template in the collection, including ones without a time check.
95
+
91
96
## Creating Native Scenario Support for a Protocol
92
97
Having a protocol being natively supported by Surfpool Scenarios will allow users to easily create scenarios to override account states for that protocol.
93
98
All accounts in a surfnet's account db that are owned by the protocol will include automatic IDL-parsing, and the protocol's account overrides will be available in Surfpool Studio's drag-and-drop UI.
0 commit comments