Unlock Advent Calendar 2023 - Day 3

Verified contract

Proxy

Active on Base with 3,139 txns
Deployed by via 0x6c82aa2a at 7329524
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
ERC-20
--
0x17c4da82da5952c680a8871f082639ca1180580e5ba4481541e49745ff1a7050
0x168adb2ab4d5e88dd43427519b89f601238df12503f0568ab0e419ecb005ef60
0xcb1b7e7a2558a4df99e8d4418d2493768658bd791a1e6702ebc49e08c820f750
0xaec86d3820a7a30ac0a52235537c86e732cb0da6fae1efc2988229f90b679659
0xf1a40761543408b2e1227ba6a33754f5704568bf0d5503a2f484e6908ff21ab0
0x1cb31b0f09904b486af6952d0891cfdbaa1d47636586ce95ef8fc56ce3da9613
0x19f308b616583089b3cb0d5e2fcc06b8019dd8560c7ca4b5f0025646ffd1e2e7
0x8454138fa41d52525c55ba2be5cd37c3e4241dfe387c11c77996987a7415e55b
0x2780d842acd21b02aab5939aa2cdde27daf20329445660c47285fb33287e884c
0x0b779c91fff915e44f8acb219a4b33e61286b17733a4e9db850ef2ea13449022

Functions
Getter at block 22767951
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
expirationDuration(view returns (uint256)
115792089237316195423570985008687907853269984665640564039457584007913129639935
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)
115792089237316195423570985008687907853269984665640564039457584007913129639935
name(view returns (string)
Unlock Advent Calendar 2023 - Day 3
numberOfOwners(view returns (uint256)
3072
onKeyCancelHook(view returns (address)
0x0000000000000000000000000000000000000000
onKeyExtendHook(view returns (address)
0x0000000000000000000000000000000000000000
onKeyGrantHook(view returns (address)
0x0000000000000000000000000000000000000000
onKeyPurchaseHook(view returns (address)
0x9ce8d6b62b8980bf8579cfe5f1af1cc7576aec20
onKeyTransferHook(view returns (address)
0x0000000000000000000000000000000000000000
onTokenURIHook(view returns (address)
0x0000000000000000000000000000000000000000
onValidKeyHook(view returns (address)
0x0000000000000000000000000000000000000000
owner(view returns (address)
0x9d3ea9e9adde71141f4534db3b9b80df3d03ee5f
publicLockVersion(pure returns (uint16)
13
refundPenaltyBasisPoints(view returns (uint256)
1000
schemaVersion(view returns (uint256)
13
symbol(view returns (string)
GIFT
tokenAddress(view returns (address)
0x0000000000000000000000000000000000000000
totalSupply(view returns (uint256)
3072
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
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
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
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
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
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
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(