PublicLock
Verified contract
Implementation
Active on
Base with 1 txns
Storage
Map
Table
Raw
Constants and immutables
5
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
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 999 additional slots
-
variable spans 999 additional slots
-
variable spans 999 additional slots
35 additional
variables
Balances ($0.00)
No balances found for "PublicLock"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2781057 | a year ago | | | 0 | 0.000000000003723952 |
ABI
ABI objects
Getter at block 21786817
DEFAULT_ADMIN_ROLE() view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
expirationDuration() view returns (uint256)
0
freeTrialLength() view returns (uint256)
0
gasRefundValue() view returns (uint256 _refundValue)
0
keyPrice() view returns (uint256)
0
maxKeysPerAddress() view returns (uint256)
1
maxNumberOfKeys() view returns (uint256)
0
name() view returns (string)
numberOfOwners() view returns (uint256)
0
onKeyCancelHook() view returns (address)
0x0000000000000000000000000000000000000000
onKeyExtendHook() view returns (address)
0x0000000000000000000000000000000000000000
onKeyGrantHook() view returns (address)
0x0000000000000000000000000000000000000000
onKeyPurchaseHook() view returns (address)
0x0000000000000000000000000000000000000000
onKeyTransferHook() view returns (address)
0x0000000000000000000000000000000000000000
onTokenURIHook() view returns (address)
0x0000000000000000000000000000000000000000
onValidKeyHook() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0xd0b14797b9d08493392865647384974470202a78
publicLockVersion() pure returns (uint16)
13
refundPenaltyBasisPoints() view returns (uint256)
1000
schemaVersion() view returns (uint256)
13
symbol() view returns (string)
KEY
tokenAddress() view returns (address)
0x0000000000000000000000000000000000000000
totalSupply() view returns (uint256)
0
transferFeeBasisPoints() view returns (uint256)
0
unlockProtocol() view returns (address)
0xd0b14797b9d08493392865647384974470202a78
Read-only
balanceOf(address _keyOwner) view returns (uint256 balance)
getApproved(uint256 _tokenId) view returns (address)
getCancelAndRefundValue(uint256 _tokenId) view returns (uint256 refund)
getHasValidKey(address _keyOwner) view returns (bool isValid)
getRoleAdmin(bytes32 role) view returns (bytes32)
getTransferFee(uint256 _tokenId, uint256 _time) view returns (uint256)
hasRole(bytes32 role, address account) view returns (bool)
isApprovedForAll(address _owner, address _operator) view returns (bool)
isLockManager(address account) view returns (bool)
isOwner(address account) view returns (bool)
isRenewable(uint256 _tokenId, address _referrer) view returns (bool)
isValidKey(uint256 _tokenId) view returns (bool)
keyExpirationTimestampFor(uint256 _tokenId) view returns (uint256)
keyManagerOf(uint256) view returns (address)
ownerOf(uint256 _tokenId) view returns (address)
purchasePriceFor(address _recipient, address _referrer, bytes _data) view returns (uint256 minKeyPrice)
referrerFees(address) view returns (uint256)
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)
totalKeys(address _keyOwner) view returns (uint256)
State-modifying
Events addLockManager(address account)
approve(address _approved, uint256 _tokenId)
burn(uint256 _tokenId)
cancelAndRefund(uint256 _tokenId)
expireAndRefundFor(uint256 _tokenId, uint256 _amount)
extend(uint256 _value, uint256 _tokenId, address _referrer, bytes _data) payable
grantKeyExtension(uint256 _tokenId, uint256 _duration)
grantKeys(address[] _recipients, uint256[] _expirationTimestamps, address[] _keyManagers) returns (uint256[])
grantRole(bytes32 role, address account)
initialize(address _lockCreator, uint256 _expirationDuration, address _tokenAddress, uint256 _keyPrice, uint256 _maxNumberOfKeys, string _lockName)
lendKey(address _from, address _recipient, uint256 _tokenId)
mergeKeys(uint256 _tokenIdFrom, uint256 _tokenIdTo, uint256 _amount)
migrate(bytes)
purchase(uint256[] _values, address[] _recipients, address[] _referrers, address[] _keyManagers, bytes[] _data) payable returns (uint256[])
renewMembershipFor(uint256 _tokenId, address _referrer)
renounceLockManager()
renounceRole(bytes32 role, address account)
revokeRole(bytes32 role, address account)
safeTransferFrom(address _from, address _to, uint256 _tokenId)
safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes _data)
setApprovalForAll(address _to, bool _approved)
setEventHooks(address _onKeyPurchaseHook, address _onKeyCancelHook, address _onValidKeyHook, address _onTokenURIHook, address _onKeyTransferHook, address _onKeyExtendHook, address _onKeyGrantHook)
setGasRefundValue(uint256 _refundValue)
setKeyManagerOf(uint256 _tokenId, address _keyManager)
setLockMetadata(string _lockName, string _lockSymbol, string _baseTokenURI)
setOwner(address account)
setReferrerFee(address _referrer, uint256 _feeBasisPoint)
shareKey(address _to, uint256 _tokenIdFrom, uint256 _timeShared)
transferFrom(address _from, address _recipient, uint256 _tokenId)
unlendKey(address _recipient, uint256 _tokenId)
updateKeyPricing(uint256 _keyPrice, address _tokenAddress)
updateLockConfig(uint256 _newExpirationDuration, uint256 _maxNumberOfKeys, uint256 _maxKeysPerAcccount)
updateRefundPenalty(uint256 _freeTrialLength, uint256 _refundPenaltyBasisPoints)
updateSchemaVersion()
updateTransferFee(uint256 _transferFeeBasisPoints)
withdraw(address _tokenAddress, address _recipient, 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)
EventHooksUpdated(address onKeyPurchaseHook, address onKeyCancelHook, address onValidKeyHook, address onTokenURIHook, address onKeyTransferHook, address onKeyExtendHook, address onKeyGrantHook)
ExpirationChanged(uint256 indexed tokenId, uint256 newExpiration, uint256 amount, bool timeAdded)
ExpireKey(uint256 indexed tokenId)
GasRefundValueChanged(uint256 refundValue)
GasRefunded(address indexed receiver, uint256 refundedAmount, address tokenAddress)
Initialized(uint8 version)
KeyExtended(uint256 indexed tokenId, uint256 newTimestamp)
KeyGranterAdded(address indexed account)
KeyGranterRemoved(address indexed account)
KeyManagerChanged(uint256 indexed _tokenId, address indexed _newManager)
KeysMigrated(uint256 updatedRecordsCount)
LockConfig(uint256 expirationDuration, uint256 maxNumberOfKeys, uint256 maxKeysPerAcccount)
LockManagerAdded(address indexed account)
LockManagerRemoved(address indexed account)
LockMetadata(string name, string symbol, string baseTokenURI)
OwnershipTransferred(address previousOwner, address newOwner)
PricingChanged(uint256 oldKeyPrice, uint256 keyPrice, address oldTokenAddress, address tokenAddress)
ReferrerFee(address indexed referrer, uint256 fee)
RefundPenaltyChanged(uint256 freeTrialLength, uint256 refundPenaltyBasisPoints)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
TransferFeeChanged(uint256 transferFeeBasisPoints)
UnlockCallFailed(address indexed lockAddress, address unlockAddress)
Withdrawal(address indexed sender, address indexed tokenAddress, address indexed recipient, uint256 amount)
This contract contains no constructor objects.
receive()
CANNOT_APPROVE_SELF()
CANT_BE_SMALLER_THAN_SUPPLY()
CANT_EXTEND_NON_EXPIRING_KEY()
GAS_REFUND_FAILED()
INSUFFICIENT_ERC20_VALUE()
INSUFFICIENT_VALUE()
INVALID_ADDRESS()
INVALID_HOOK(uint8 hookIndex)
INVALID_LENGTH()
INVALID_TOKEN()
KEY_NOT_VALID()
KEY_TRANSFERS_DISABLED()
LOCK_HAS_CHANGED()
LOCK_SOLD_OUT()
MAX_KEYS_REACHED()
MIGRATION_REQUIRED()
NON_COMPLIANT_ERC721_RECEIVER()
NON_RENEWABLE_LOCK()
NOT_ENOUGH_FUNDS()
NOT_ENOUGH_TIME()
NOT_READY_FOR_RENEWAL()
NO_SUCH_KEY()
NULL_VALUE()
ONLY_KEY_MANAGER_OR_APPROVED()
ONLY_LOCK_MANAGER()
ONLY_LOCK_MANAGER_OR_KEY_GRANTER()
OUT_OF_RANGE()
OWNER_CANT_BE_ADDRESS_ZERO()
SCHEMA_VERSION_NOT_CORRECT()
TRANSFER_TO_SELF()
TransferFailed()
UNAUTHORIZED()
UNAUTHORIZED_KEY_MANAGER_UPDATE()