PublicLock

Verified contract

Implementation

Active on Base with 1 txns
Deployed by via 0xd0819406 at 1787443
Slot
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

No balances found for "PublicLock"

0xbfdec2f13b1df790335c152a8f7047fcff9b94770ddecbafcbdedd86455acbec
From

Functions
Getter at block 22442306
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 _keyOwnerview returns (uint256 balance)
getApproved(uint256 _tokenIdview returns (address)
getCancelAndRefundValue(uint256 _tokenIdview returns (uint256 refund)
getHasValidKey(address _keyOwnerview returns (bool isValid)
getRoleAdmin(bytes32 roleview returns (bytes32)
getTransferFee(uint256 _tokenIduint256 _timeview returns (uint256)
hasRole(bytes32 roleaddress accountview returns (bool)
isApprovedForAll(address _owneraddress _operatorview returns (bool)
isLockManager(address accountview returns (bool)
isOwner(address accountview returns (bool)
isRenewable(uint256 _tokenIdaddress _referrerview returns (bool)
isValidKey(uint256 _tokenIdview returns (bool)
keyExpirationTimestampFor(uint256 _tokenIdview returns (uint256)
keyManagerOf(uint256view returns (address)
ownerOf(uint256 _tokenIdview returns (address)
purchasePriceFor(address _recipientaddress _referrerbytes _dataview returns (uint256 minKeyPrice)
referrerFees(addressview returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenByIndex(uint256 _indexview returns (uint256)
tokenOfOwnerByIndex(address _keyOwneruint256 _indexview returns (uint256)
tokenURI(uint256 _tokenIdview returns (string)
totalKeys(address _keyOwnerview returns (uint256)
State-modifying
addLockManager(address account
approve(address _approveduint256 _tokenId
burn(uint256 _tokenId
cancelAndRefund(uint256 _tokenId
expireAndRefundFor(uint256 _tokenIduint256 _amount
extend(uint256 _valueuint256 _tokenIdaddress _referrerbytes _datapayable 
grantKeyExtension(uint256 _tokenIduint256 _duration
grantKeys(address[] _recipientsuint256[] _expirationTimestampsaddress[] _keyManagersreturns (uint256[])
grantRole(bytes32 roleaddress account
initialize(address _lockCreatoruint256 _expirationDurationaddress _tokenAddressuint256 _keyPriceuint256 _maxNumberOfKeysstring _lockName
lendKey(address _fromaddress _recipientuint256 _tokenId
mergeKeys(uint256 _tokenIdFromuint256 _tokenIdTouint256 _amount
migrate(bytes
purchase(uint256[] _valuesaddress[] _recipientsaddress[] _referrersaddress[] _keyManagersbytes[] _datapayable returns (uint256[])
renewMembershipFor(uint256 _tokenIdaddress _referrer
renounceLockManager(
renounceRole(bytes32 roleaddress account
revokeRole(bytes32 roleaddress account
safeTransferFrom(address _fromaddress _touint256 _tokenId
safeTransferFrom(address _fromaddress _touint256 _tokenIdbytes _data
setApprovalForAll(address _tobool _approved
setEventHooks(address _onKeyPurchaseHookaddress _onKeyCancelHookaddress _onValidKeyHookaddress _onTokenURIHookaddress _onKeyTransferHookaddress _onKeyExtendHookaddress _onKeyGrantHook
setGasRefundValue(uint256 _refundValue
setKeyManagerOf(uint256 _tokenIdaddress _keyManager
setLockMetadata(string _lockNamestring _lockSymbolstring _baseTokenURI
setOwner(address account
setReferrerFee(address _referreruint256 _feeBasisPoint
shareKey(address _touint256 _tokenIdFromuint256 _timeShared
transferFrom(address _fromaddress _recipientuint256 _tokenId
unlendKey(address _recipientuint256 _tokenId
updateKeyPricing(uint256 _keyPriceaddress _tokenAddress
updateLockConfig(uint256 _newExpirationDurationuint256 _maxNumberOfKeysuint256 _maxKeysPerAcccount
updateRefundPenalty(uint256 _freeTrialLengthuint256 _refundPenaltyBasisPoints
updateSchemaVersion(
updateTransferFee(uint256 _transferFeeBasisPoints
withdraw(address _tokenAddressaddress _recipientuint256 _amount
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
CancelKey(uint256 indexed tokenIdaddress indexed owneraddress indexed sendTouint256 refund
EventHooksUpdated(address onKeyPurchaseHookaddress onKeyCancelHookaddress onValidKeyHookaddress onTokenURIHookaddress onKeyTransferHookaddress onKeyExtendHookaddress onKeyGrantHook
ExpirationChanged(uint256 indexed tokenIduint256 newExpirationuint256 amountbool timeAdded
ExpireKey(uint256 indexed tokenId
GasRefundValueChanged(uint256 refundValue
GasRefunded(address indexed receiveruint256 refundedAmountaddress tokenAddress
Initialized(uint8 version
KeyExtended(uint256 indexed tokenIduint256 newTimestamp
KeyGranterAdded(address indexed account
KeyGranterRemoved(address indexed account
KeyManagerChanged(uint256 indexed _tokenIdaddress indexed _newManager
KeysMigrated(uint256 updatedRecordsCount
LockConfig(uint256 expirationDurationuint256 maxNumberOfKeysuint256 maxKeysPerAcccount
LockManagerAdded(address indexed account
LockManagerRemoved(address indexed account
LockMetadata(string namestring symbolstring baseTokenURI
OwnershipTransferred(address previousOwneraddress newOwner
PricingChanged(uint256 oldKeyPriceuint256 keyPriceaddress oldTokenAddressaddress tokenAddress
ReferrerFee(address indexed referreruint256 fee
RefundPenaltyChanged(uint256 freeTrialLengthuint256 refundPenaltyBasisPoints
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
TransferFeeChanged(uint256 transferFeeBasisPoints
UnlockCallFailed(address indexed lockAddressaddress unlockAddress
Withdrawal(address indexed senderaddress indexed tokenAddressaddress indexed recipientuint256 amount
Constructor

This contract contains no constructor objects.

Fallback and receive
receive(
Errors
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(