ERC721Staking

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x7b53a0f8 at 20718391
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "ERC721Staking"

No transactions found for "ERC721Staking"


Functions
Getter at block 21276128
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
DEVELOPER_ROLE(view returns (bytes32)
0x2714cbbaddbb71bcae9366d8bf7770636ec7ae63227b573986d2f54fffacb39d
defaultAdmin(view returns (address)
0x0000000000000000000000000000000000000000
defaultAdminDelay(view returns (uint48)
0
defaultAdminDelayIncreaseWait(view returns (uint48)
432000
getStakingScheduleIds(view returns (uint256[] scheduleIds)
[]
getStakingSchedules(view returns (uint256[] allStakingScheduleIdsstruct ERC721StakingStakingSchedule[] allStakingSchedules)
(allStakingScheduleIds=[], allStakingSchedules=[])
owner(view returns (address)
0x0000000000000000000000000000000000000000
paused(view returns (bool)
false
pendingDefaultAdmin(view returns (address newAdminuint48 schedule)
(newAdmin=0x0000000000000000000000000000000000000000, schedule=0)
pendingDefaultAdminDelay(view returns (uint48 newDelayuint48 schedule)
(newDelay=0, schedule=0)
Read-only
balanceOf(address ownerview returns (uint256 balance)
balancesOf(address[] ownersview returns (uint256[] balances)
getRoleAdmin(bytes32 roleview returns (bytes32)
getStakedTokenData(address collectionAddressuint256 tokenIdview returns (struct ERC721StakingStakedToken stakedToken)
getStakedTokensData(address collectionAddressuint256[] tokenIdsview returns (struct ERC721StakingStakedToken[] stakedTokens)
getStakingSchedule(uint256 stakingScheduleIdview returns (struct ERC721StakingStakingSchedule stakingSchedule)
getUserStakedTokenByCollection(address owneraddress collectionAddressview returns (uint256[] tokenIds)
getUserStakedTokens(address ownerview returns (struct ERC721StakingUserStakedTokenInfo[] userStakedTokens)
hasRole(bytes32 roleaddress accountview returns (bool)
onERC721Received(addressaddressuint256bytespure returns (bytes4)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
acceptDefaultAdminTransfer(
batchStake(address[] _collectionAddressesuint256[] _tokenIdsuint256[] _stakingScheduleIds
batchUnstake(address[] _collectionAddressesuint256[] _tokenIds
batchUpdateTokenStakeStartTime(address[] _collectionAddressesuint256[] _tokenIdsuint256[] _newStakeStartTimes
beginDefaultAdminTransfer(address newAdmin
cancelDefaultAdminTransfer(
changeDefaultAdminDelay(uint48 newDelay
createStakingSchedule(struct ERC721StakingStakingSchedule _stakingSchedulereturns (uint256 stakingScheduleId)
emergencyUnlock(address[] _collectionAddressesuint256[] _tokenIds
emergencyUnlockAndTransfer(address[] _collectionAddressesuint256[] _tokenIds
grantRole(bytes32 roleaddress account
initialize(address _defaultAdminAddressaddress[] _developers
pause(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
rollbackDefaultAdminDelay(
unpause(
updateStakingSchedule(uint256 _stakingScheduleIdstruct ERC721StakingStakingSchedule _stakingSchedule
updateTokenStakeStartTime(address _collectionAddressuint256 _tokenIduint256 _newStakeStartTime
Events
DefaultAdminDelayChangeCanceled(
DefaultAdminDelayChangeScheduled(uint48 newDelayuint48 effectSchedule
DefaultAdminTransferCanceled(
DefaultAdminTransferScheduled(address indexed newAdminuint48 acceptSchedule
Initialized(uint64 version
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
StakingScheduleCreated(uint256 indexed stakingScheduleIdstruct ERC721StakingStakingSchedule stakingSchedule
StakingScheduleUpdated(uint256 indexed stakingScheduleIdstruct ERC721StakingStakingSchedule stakingSchedule
TokenEmergencyUnlocked(address indexed useraddress indexed collectionAddressuint256 indexed tokenId
TokenEmergencyUnlockedAndTransferred(address indexed useraddress indexed collectionAddressuint256 indexed tokenId
TokenStakeStartTimeUpdated(address indexed collectionAddressuint256 indexed tokenIduint256 currentStakeStartTimeuint256 newStakeStartTime
TokenStaked(address indexed useraddress indexed collectionAddressuint256 indexed tokenIduint256 stakingScheduleId
TokenWithdrawn(address indexed useraddress indexed collectionAddressuint256 indexed tokenId
Unpaused(address account
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlEnforcedDefaultAdminDelay(uint48 schedule
AccessControlEnforcedDefaultAdminRules(
AccessControlInvalidDefaultAdmin(address defaultAdmin
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
CollectionNotWhitelisted(
EnforcedPause(
ExpectedPause(
InvalidCollectionAddress(
InvalidInitialization(
InvalidLockDuration(
InvalidPageSize(
InvalidSchedule(
InvalidScheduleId(
MismatchedArrays(
NotInitializing(
NotOwner(
ReentrancyGuardReentrantCall(
SafeCastOverflowedUintDowncast(uint8 bitsuint256 value
ScheduleInactive(
StakingDurationNotEnded(
TokenNotStaked(