Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion specs/interop/supervisor.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
- [`SupervisorChainSyncStatus`](#supervisorchainsyncstatus)
- [`SuperRootResponse`](#superrootresponse)
- [`SafetyLevel`](#safetylevel)
- [`DependencySetConfig`](#dependencysetconfig)
- [Methods](#methods)
- [`supervisor_crossDerivedToSource`](#supervisor_crossderivedtosource)
- [`supervisor_localUnsafe`](#supervisor_localunsafe)
Expand All @@ -31,6 +32,7 @@
- [`supervisor_finalizedL1`](#supervisor_finalizedl1)
- [`supervisor_superRootAtTimestamp`](#supervisor_superrootattimestamp)
- [`supervisor_syncStatus`](#supervisor_syncstatus)
- [`supervisor_dependencySet`](#supervisor_dependencyset)
- [`supervisor_allSafeDerivedAt`](#supervisor_allsafederivedat)
- [`supervisor_checkAccessList`](#supervisor_checkaccesslist)
- [Access-list contents](#access-list-contents)
Expand Down Expand Up @@ -121,7 +123,8 @@ Regular JSON number, always integer. Assumed to always fit in 51 bits.
#### `ChainID`

`STRING`:
Hex-encoded big-endian number, variable length up to 256 bits, prefixed with `0x`.
Decimal-encoded string, variable length up to 256 bits.
This supports decoding of hex-encoded values when prefixed with `0x`.
Comment on lines +126 to +127
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


#### `Hash`

Expand Down Expand Up @@ -204,6 +207,17 @@ Corresponds to a verifier [SafetyLevel](./verifier.md#safety).
- `safe`: matching cross-safe, named `safe` to match the RPC label.
- `finalized`

#### `DependencySetConfig`

Defines an interop dependency set.
Includes information to determine the active set of chains at any particular block time.

`OBJECT`:
- `dependencies`: `MAP`:
- key: `ChainID`
- value: `ConfigDependency`: `OBJECT`: empty object. This may be extended in the future.
- `overrideMessageExpiryWindow`: `uint64`: changes the default protocol expiry window time.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this isn't something we only use in tests, but want to have in the specs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already suggested to change it to just be messageExpiryWindow, but there is no support/momentum on all the usages of this config code to change it.


### Methods

#### `supervisor_crossDerivedToSource`
Expand Down Expand Up @@ -257,6 +271,16 @@ Parameters: (none)

Returns: `SupervisorSyncStatus`

#### `supervisor_dependencySet`

Retrieves the full dependency set configuration,
to determine which chains are available at any particular block.
The returned configuration may change with new chain upgrades.

Parameters: (none)

Returns: `DependencySetConfig`

#### `supervisor_allSafeDerivedAt`

Returns the last derived block for each chain, from the given L1 block.
Expand Down