SpectrumHub

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0xa94bc55a at 19887743
Slot Value
0x0000000000000000000000000000000000000000000000000000000000000000 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000001 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000002 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000003 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000004 0x0000000000000000000000000000000000000000000000000000000000000000

No balances found for "SpectrumHub"

No transactions found for "SpectrumHub"


Functions
Getter at block 20882660
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
getHubInfo(view returns (struct SpectrumHubStateHubInfo)
(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)
getHubStakeAssetLists(view returns (address[])
[]
getHubUnstakeAssetLists(view returns (address[])
[]
owner(view returns (address)
0x7d76ae60dcc2fdb57d3924024e2ad940b76ef81f
paused(view returns (bool)
false
pendingOwner(view returns (address)
0x0000000000000000000000000000000000000000
Read-only
getRoleAdmin(bytes32 roleview returns (bytes32)
getRoleMember(bytes32 roleuint256 indexview returns (address)
getRoleMemberCount(bytes32 roleview returns (uint256)
getSelectorRoleAdmin(bytes4 roleview returns (bytes32)
getSelectorRoleMember(bytes4 roleuint256 indexview returns (address)
getSelectorRoleMemberCount(bytes4 roleview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
hasSelectorRole(bytes4 roleaddress accountview returns (bool)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
acceptOwnership(
addHubStakeAsset(address assetstruct SpectrumHubStateAction assetInfo
addHubUnstakeAsset(address assetstruct SpectrumHubStateAction assetInfo
grantRole(bytes32 roleaddress account
grantSelectorRole(bytes4 selectoraddress account
initSelectorRoleControl(address initialOnwer
multicall(bytes[] datareturns (bytes[] results)
pause(
registerPendingOwner(address nextPendingOwner
removeHubStakeAsset(address asset
removeHubUnstakeAsset(address asset
renounceOwnership(
renounceRole(bytes32 roleaddress callerConfirmation
renounceSelectorRole(bytes4 roleaddress callerConfirmation
revokeRole(bytes32 roleaddress account
revokeSelectorRole(bytes4 selectoraddress account
setHubInfo(struct SpectrumHubStateHubInfo info
stake(address assetaddress touint256 assetAmountpayable returns (uint256 spAmount)
transferOwnership(address newOwner
unpause(
unstake(address assetaddress touint256 spAmountreturns (uint256 assetAmount)
Events
Initialized(uint64 version
OwnershipTransferStarted(address indexed previousOwneraddress indexed newOwner
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Paused(address account
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Stake(address indexed fromaddress indexed toaddress indexed assetuint256 assetAmountuint256 spAmount
Unpaused(address account
Unstake(address indexed fromaddress indexed toaddress indexed assetuint256 assetAmountuint256 spAmount
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
AddressInsufficientBalance(address account
EnforcedPause(
ExpectedPause(
FailedInnerCall(
InvalidInitialization(
NotInitializing(
OwnableInvalidOwner(address owner
OwnableUnauthorizedAccount(address account
SafeERC20FailedOperation(address token
SelectorRoleExist(
SelectorRoleNotExist(
Spectrum(uint8 e