Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion specs/interop/managed-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jwt should be generated and stored in hex encoded format.
## Node `->` Supervisor

Events that a supervisor should subscribe to, originating from the node, handled by the supervisor. For the used types,
refer [this](#Types) section.
refer [this](#types) section.

Every event sent from the node is of type `ManagedEvent` whose fields are populated with the events that occurred. All
non-null events are sent at once. The other fields are omitted.
Expand Down
28 changes: 27 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)
- [`DependencySetConfigV1`](#dependencysetconfigv1)
- [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_dependencySetV1`](#supervisor_dependencysetv1)
- [`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,19 @@ Corresponds to a verifier [SafetyLevel](./verifier.md#safety).
- `safe`: matching cross-safe, named `safe` to match the RPC label.
- `finalized`

#### `DependencySetConfigV1`

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

This type is versioned: the format of this configuration may change over 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 +273,16 @@ Parameters: (none)

Returns: `SupervisorSyncStatus`

#### `supervisor_dependencySetV1`

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: `DependencySetConfigV1`

#### `supervisor_allSafeDerivedAt`

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