Skip to content

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)
NameTypeDescription
[0]boolbool - true if the contract is a Spanning contract

isSpanningCall

function isSpanningCall() external returns (bool)
NameTypeDescription
[0]boolbool - true if a sender is a Spanning Delegate

updateDelegate

function updateDelegate(address newDelegateLegacyAddress) external

Updates Delegate's legacy (local) address.

NameTypeDescription
newDelegateLegacyAddressaddress- Desired address for Spanning Delegate

owner

function owner() external returns (bytes32)
NameTypeDescription
[0]bytes32bytes32 - 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_

NameTypeDescription
newOwnerAddressbytes32- Address for desired owner

OwnershipTransferred

event OwnershipTransferred(bytes32 previousOwnerAddress, bytes32 newOwnerAddress)

Emitted when an ownership change has occurred.

NameTypeDescription
previousOwnerAddressbytes32- Address for previous owner
newOwnerAddressbytes32- Address for new owner

DelegateUpdated

event DelegateUpdated(address delegateLegacyAddress, address newDelegateLegacyAddress)

Emitted when a Delegate endpoint change has occurred.

NameTypeDescription
delegateLegacyAddressaddress- Address for previous delegate
newDelegateLegacyAddressaddress- Address for new delegate