PublicLock
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
4
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots
6 additional
variables
Balances ($0.00)
No balances found for "PublicLock"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "PublicLock"
ABI
ABI objects
Getter at block 21309932
beneficiary() view returns (address)
0x3d5409cce1d45233de1d4ebdee74b8e004abdd13
expirationDuration() view returns (uint256)
0
freeTrialLength() view returns (uint256)
0
isAlive() view returns (bool)
true
keyPrice() view returns (uint256)
0
maxNumberOfKeys() view returns (uint256)
0
name() view returns (string)
numberOfOwners() view returns (uint256)
0
onKeyCancelHook() view returns (address)
0x0000000000000000000000000000000000000000
onKeyPurchaseHook() view returns (address)
0x0000000000000000000000000000000000000000
publicLockVersion() pure returns (uint256)
8
refundPenaltyBasisPoints() view returns (uint256)
1000
symbol() view returns (string)
UDT
tokenAddress() view returns (address)
0x0000000000000000000000000000000000000000
totalSupply() view returns (uint256)
0
transferFeeBasisPoints() view returns (uint256)
0
unlockProtocol() view returns (address)
0x3d5409cce1d45233de1d4ebdee74b8e004abdd13
Read-only
balanceOf(address _keyOwner) view returns (uint256)
getApproved(uint256 _tokenId) view returns (address)
getBalance(address _tokenAddress, address _account) view returns (uint256)
getCancelAndRefundApprovalHash(address _keyManager, address _txSender) view returns (bytes32 approvalHash)
getCancelAndRefundValueFor(address _keyOwner) view returns (uint256 refund)
getHasValidKey(address _keyOwner) view returns (bool)
getOwnersByPage(uint256 _page, uint256 _pageSize) view returns (address[])
getTokenIdFor(address _account) view returns (uint256)
getTransferFee(address _keyOwner, uint256 _time) view returns (uint256)
isApprovedForAll(address _owner, address _operator) view returns (bool)
isKeyGranter(address account) view returns (bool)
isKeyOwner(uint256 _tokenId, address _keyOwner) view returns (bool)
isLockManager(address account) view returns (bool)
keyExpirationTimestampFor(address _keyOwner) view returns (uint256)
keyManagerOf(uint256) view returns (address)
keyManagerToNonce(address) view returns (uint256)
ownerOf(uint256 _tokenId) view returns (address)
owners(uint256) view returns (address)
purchasePriceFor(address _recipient, address _referrer, bytes _data) view returns (uint256 minKeyPrice)
supportsInterface(bytes4 interfaceId) view returns (bool)
tokenByIndex(uint256 _index) view returns (uint256)
tokenOfOwnerByIndex(address _keyOwner, uint256 _index) view returns (uint256)
tokenURI(uint256 _tokenId) view returns (string)
State-modifying
Events addKeyGranter(address account)
addLockManager(address account)
approve(address _approved, uint256 _tokenId)
approveBeneficiary(address _spender, uint256 _amount) returns (bool)
cancelAndRefund(uint256 _tokenId)
cancelAndRefundFor(address _keyManager, uint8 _v, bytes32 _r, bytes32 _s, uint256 _tokenId)
disableLock()
expireAndRefundFor(address _keyOwner, uint256 amount)
grantKeys(address[] _recipients, uint256[] _expirationTimestamps, address[] _keyManagers)
initialize()
initialize(address _lockCreator, uint256 _expirationDuration, address _tokenAddress, uint256 _keyPrice, uint256 _maxNumberOfKeys, string _lockName)
invalidateOffchainApproval(uint256 _nextAvailableNonce)
purchase(uint256 _value, address _recipient, address _referrer, bytes _data) payable
renounceLockManager()
revokeKeyGranter(address _granter)
safeTransferFrom(address _from, address _to, uint256 _tokenId)
safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes _data)
setApprovalForAll(address _to, bool _approved)
setBaseTokenURI(string _baseTokenURI)
setEventHooks(address _onKeyPurchaseHook, address _onKeyCancelHook)
setKeyManagerOf(uint256 _tokenId, address _keyManager)
shareKey(address _to, uint256 _tokenId, uint256 _timeShared)
transfer(address _to, uint256 _value) returns (bool success)
transferFrom(address _from, address _recipient, uint256 _tokenId)
updateBeneficiary(address _beneficiary)
updateKeyPricing(uint256 _keyPrice, address _tokenAddress)
updateLockName(string _lockName)
updateLockSymbol(string _lockSymbol)
updateRefundPenalty(uint256 _freeTrialLength, uint256 _refundPenaltyBasisPoints)
updateTransferFee(uint256 _transferFeeBasisPoints)
withdraw(address _tokenAddress, uint256 _amount)
Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll(address indexed owner, address indexed operator, bool approved)
CancelKey(uint256 indexed tokenId, address indexed owner, address indexed sendTo, uint256 refund)
Disable()
ExpirationChanged(uint256 indexed _tokenId, uint256 _amount, bool _timeAdded)
ExpireKey(uint256 indexed tokenId)
KeyGranterAdded(address indexed account)
KeyGranterRemoved(address indexed account)
KeyManagerChanged(uint256 indexed _tokenId, address indexed _newManager)
LockManagerAdded(address indexed account)
LockManagerRemoved(address indexed account)
NewLockSymbol(string symbol)
NonceChanged(address indexed keyManager, uint256 nextAvailableNonce)
PricingChanged(uint256 oldKeyPrice, uint256 keyPrice, address oldTokenAddress, address tokenAddress)
RefundPenaltyChanged(uint256 freeTrialLength, uint256 refundPenaltyBasisPoints)
RenewKeyPurchase(address indexed owner, uint256 newExpiration)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
TransferFeeChanged(uint256 transferFeeBasisPoints)
Withdrawal(address indexed sender, address indexed tokenAddress, address indexed beneficiary, uint256 amount)
This contract contains no constructor objects.
fallback()
This contract contains no error objects.