Unlock Advent Calendar 2023 - Day 1

Verified contract

Proxy

Active on Base with 16,788 txns
Deployed by via 0x04ad4717 at 7329520
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
Value $0
ERC-20
--
0x583bdf7a7b54abc1de6a1f812797bcb2ccfa3e82e7352ad5580a865891841dce
0x4c6f34f7aec1d635498e05a6930dd8bfe4583f078329e253b1a1feac5d4e7c86
0x97fb37667bf2e34f690e3b9aef3f910b9a422189d2396c6ebfe193abadc12c8d
0x1fbf51d4bda230ce16c6e6e36ef9af283eb76d4cd705912a6f23dc313a5c6154
0x3c7e3039d2b46e0e391e8918a1c4a752eb638c5abaaad1e16ccc476bc5f114c7
0xf57ddf127b5b4e8ff7d96dc02c6e1e4a81a6cedc9e4562d320db2ee33222d2f8
0xb088799d5c397237246c9dc862597278056522a7401c489b12701780de3cc59d
0x1505d36725f69f35ab4c496b4e1ea35f4961e2081b5696dc083b4c45b57db20e
0x2b3ec136c71c4825243776522f1aeca307f1e5b201625cfab406138945b0db31
0xdde788a9e2711f049cc8443d527c2a14d6fa1e5846973d36bf28d0ef43d0077b

Functions
Getter at block 22756888
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)
14700
name(view returns (string)
Unlock Advent Calendar 2023 - Day 1
numberOfOwners(view returns (uint256)
14700
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)
0x81dd955d02d337db81ba6c9c5f6213e647672052
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)
14700
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(