Expand description
Module containing a contract’s types and functions.
contract OriginAssignment {
function getOrigins(uint256 namespaceId) external view returns (address[] memory);
function assignedNamespaceCount() external view returns (uint256);
function assignedNamespaces(uint256 offset, uint256 limit) external view returns (uint256[] memory);
function isVettedPublisher(address publisher) external view returns (bool);
function vettingPolicy() external view returns (address);
function addOrigin(uint256 namespaceId, address operator) external;
function removeOrigin(uint256 namespaceId, address operator) external;
event OriginAdded(uint256 indexed namespaceId, address indexed operator, address indexed by);
event OriginRemoved(uint256 indexed namespaceId, address indexed operator, address indexed by);
event InactiveOriginPruned(uint256 indexed namespaceId, address indexed operator, address indexed pruner);
}Structs§
- Inactive
Origin Pruned - An
operatorthat left the active set (unbonded, deregistered, or ejected) was permissionlessly pruned fromnamespaceId’s authorized set. Same cache effect as a removal (remove one). Event with signatureInactiveOriginPruned(uint256,address,address)and selector0x751d784ea42c1febd75b10de365adad031845ff22ac1c3bd93ed2aa5fa163ba2. - Origin
Added - One
operatorwas seated as an authorized origin fornamespaceIdby its vetted publisher. The single “origin seated” event: there is no wholesale set replacement. Event with signatureOriginAdded(uint256,address,address)and selector0x72c95105598b0802c374f4ace940473389882cdfa304d5af6622ec1a36d6da7b. - Origin
Assignment Instance - A
OriginAssignmentinstance. - Origin
Removed - A single
operatorwas unseated fromnamespaceId’s authorized set (by the namespace owner or governance). Event with signatureOriginRemoved(uint256,address,address)and selector0xc86d2ecd696a1e5eae138c12b40cd89201ac5773a0dbc5fdcc3eb2770845dd6c. - addOrigin
Call - Vetted namespace owner seats one more authorized origin. Instant:
there is no pending state and no governance step. Reverts if the
caller does not own the namespace, is not vetted, or the operator
is not an active bonded node, is already seated, or would exceed
maxOriginsPerNamespace. Function with signatureaddOrigin(uint256,address)and selector0xfe079ca7. - addOrigin
Return - Vetted namespace owner seats one more authorized origin. Instant:
there is no pending state and no governance step. Reverts if the
caller does not own the namespace, is not vetted, or the operator
is not an active bonded node, is already seated, or would exceed
maxOriginsPerNamespace. Container type for the return parameters of theaddOrigin(uint256,address)function. - assigned
Namespace Count Call - How many namespaces currently have a non-empty authorized set.
Function with signature
assignedNamespaceCount()and selector0xce544401. - assigned
Namespace Count Return - How many namespaces currently have a non-empty authorized set.
Container type for the return parameters of the
assignedNamespaceCount()function. - assigned
Namespaces Call - A page of the namespaces that currently have origins. Membership
within a namespace was always readable via
getOrigins; this is the key set, whose absence was the sole reason a bootstrap had to replay the seating events from the deploy block. - assigned
Namespaces Return - A page of the namespaces that currently have origins. Membership
within a namespace was always readable via
getOrigins; this is the key set, whose absence was the sole reason a bootstrap had to replay the seating events from the deploy block. - getOrigins
Call - Current authorized-origin operator addresses for a namespace.
namespaceId == 0has no set and always returns empty. Returns the liveEnumerableSetvalues. Function with signaturegetOrigins(uint256)and selector0xfce3eff0. - getOrigins
Return - Current authorized-origin operator addresses for a namespace.
namespaceId == 0has no set and always returns empty. Returns the liveEnumerableSetvalues. Container type for the return parameters of thegetOrigins(uint256)function. - isVetted
Publisher Call - Whether the installed policy vets
publisherto seat origins for its own namespaces.addOriginrevertsPublisherNotVettedwhile false. A passthrough tovettingPolicy().isVetted(publisher). Function with signatureisVettedPublisher(address)and selector0xd6f7aa30. - isVetted
Publisher Return - Whether the installed policy vets
publisherto seat origins for its own namespaces.addOriginrevertsPublisherNotVettedwhile false. A passthrough tovettingPolicy().isVetted(publisher). Container type for the return parameters of theisVettedPublisher(address)function. - remove
Origin Call - Namespace owner (own namespace) or governance (any) unseats one
authorized origin. Instant; reverts if the operator is not seated.
Function with signature
removeOrigin(uint256,address)and selector0xee1fb9d2. - remove
Origin Return - Namespace owner (own namespace) or governance (any) unseats one
authorized origin. Instant; reverts if the operator is not seated.
Container type for the return parameters of the
removeOrigin(uint256,address)function. - vetting
Policy Call - The installed vetting authority (an
IVettingPolicy). Exposed for tooling that wants to read the policy address; vetting itself is aVETTER_ROLEaction on that policy, not a CLI flow. Function with signaturevettingPolicy()and selector0x7663569c. - vetting
Policy Return - The installed vetting authority (an
IVettingPolicy). Exposed for tooling that wants to read the policy address; vetting itself is aVETTER_ROLEaction on that policy, not a CLI flow. Container type for the return parameters of thevettingPolicy()function.
Enums§
- Origin
Assignment Calls - Container for all the
OriginAssignmentfunction calls. - Origin
Assignment Events - Container for all the
OriginAssignmentevents.
Functions§
- new
- Creates a new wrapper around an on-chain
OriginAssignmentcontract instance.