Solidity API
ISpanning
_This module provides a number of utility functions and modifiers for interacting with the Spanning Network.
It includes:
- Functions abstracting delegate state and methods
- Functions for multi-domain ownership
Note: This module is meant to be used through inheritance._
isSpanning
function isSpanning() external pure returns (bool)
Name | Type | Description |
---|---|---|
[0] | bool | bool - true if the contract is a Spanning contract |
isSpanningCall
function isSpanningCall() external returns (bool)
Name | Type | Description |
---|---|---|
[0] | bool | bool - true if a sender is a Spanning Delegate |
updateDelegate
function updateDelegate(address newDelegateLegacyAddress) external
Updates Delegate's legacy (local) address.
Name | Type | Description |
---|---|---|
newDelegateLegacyAddress | address | - Desired address for Spanning Delegate |
owner
function owner() external returns (bytes32)
Name | Type | Description |
---|---|---|
[0] | bytes32 | bytes32 - Address of current owner |
renounceOwnership
function renounceOwnership() external
_Sets the owner to null, effectively removing contract ownership.
Note: It will not be possible to call onlyOwner
functions anymore Note: Can only be called by the current owner_
transferOwnership
function transferOwnership(bytes32 newOwnerAddress) external
_Assigns new owner for the contract.
Note: Can only be called by the current owner_
Name | Type | Description |
---|---|---|
newOwnerAddress | bytes32 | - Address for desired owner |
OwnershipTransferred
event OwnershipTransferred(bytes32 previousOwnerAddress, bytes32 newOwnerAddress)
Emitted when an ownership change has occurred.
Name | Type | Description |
---|---|---|
previousOwnerAddress | bytes32 | - Address for previous owner |
newOwnerAddress | bytes32 | - Address for new owner |
DelegateUpdated
event DelegateUpdated(address delegateLegacyAddress, address newDelegateLegacyAddress)
Emitted when a Delegate endpoint change has occurred.
Name | Type | Description |
---|---|---|
delegateLegacyAddress | address | - Address for previous delegate |
newDelegateLegacyAddress | address | - Address for new delegate |