Skip to main content

Module OriginAssignment

Module OriginAssignment 

Source
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§

InactiveOriginPruned
An operator that left the active set (unbonded, deregistered, or ejected) was permissionlessly pruned from namespaceId’s authorized set. Same cache effect as a removal (remove one). Event with signature InactiveOriginPruned(uint256,address,address) and selector 0x751d784ea42c1febd75b10de365adad031845ff22ac1c3bd93ed2aa5fa163ba2.
OriginAdded
One operator was seated as an authorized origin for namespaceId by its vetted publisher. The single “origin seated” event: there is no wholesale set replacement. Event with signature OriginAdded(uint256,address,address) and selector 0x72c95105598b0802c374f4ace940473389882cdfa304d5af6622ec1a36d6da7b.
OriginAssignmentInstance
A OriginAssignment instance.
OriginRemoved
A single operator was unseated from namespaceId’s authorized set (by the namespace owner or governance). Event with signature OriginRemoved(uint256,address,address) and selector 0xc86d2ecd696a1e5eae138c12b40cd89201ac5773a0dbc5fdcc3eb2770845dd6c.
addOriginCall
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 signature addOrigin(uint256,address) and selector 0xfe079ca7.
addOriginReturn
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 the addOrigin(uint256,address) function.
assignedNamespaceCountCall
How many namespaces currently have a non-empty authorized set. Function with signature assignedNamespaceCount() and selector 0xce544401.
assignedNamespaceCountReturn
How many namespaces currently have a non-empty authorized set. Container type for the return parameters of the assignedNamespaceCount() function.
assignedNamespacesCall
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.
assignedNamespacesReturn
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.
getOriginsCall
Current authorized-origin operator addresses for a namespace. namespaceId == 0 has no set and always returns empty. Returns the live EnumerableSet values. Function with signature getOrigins(uint256) and selector 0xfce3eff0.
getOriginsReturn
Current authorized-origin operator addresses for a namespace. namespaceId == 0 has no set and always returns empty. Returns the live EnumerableSet values. Container type for the return parameters of the getOrigins(uint256) function.
isVettedPublisherCall
Whether the installed policy vets publisher to seat origins for its own namespaces. addOrigin reverts PublisherNotVetted while false. A passthrough to vettingPolicy().isVetted(publisher). Function with signature isVettedPublisher(address) and selector 0xd6f7aa30.
isVettedPublisherReturn
Whether the installed policy vets publisher to seat origins for its own namespaces. addOrigin reverts PublisherNotVetted while false. A passthrough to vettingPolicy().isVetted(publisher). Container type for the return parameters of the isVettedPublisher(address) function.
removeOriginCall
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 selector 0xee1fb9d2.
removeOriginReturn
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.
vettingPolicyCall
The installed vetting authority (an IVettingPolicy). Exposed for tooling that wants to read the policy address; vetting itself is a VETTER_ROLE action on that policy, not a CLI flow. Function with signature vettingPolicy() and selector 0x7663569c.
vettingPolicyReturn
The installed vetting authority (an IVettingPolicy). Exposed for tooling that wants to read the policy address; vetting itself is a VETTER_ROLE action on that policy, not a CLI flow. Container type for the return parameters of the vettingPolicy() function.

Enums§

OriginAssignmentCalls
Container for all the OriginAssignment function calls.
OriginAssignmentEvents
Container for all the OriginAssignment events.

Functions§

new
Creates a new wrapper around an on-chain OriginAssignment contract instance.