0 txs
1.2k calls
constructor
constructor()
functions
balanceOf
viewfunction balanceOf(address owner) view returns (uint256)
baseURI
viewfunction baseURI() view returns (string)
getApproved
viewfunction getApproved(uint256 tokenId) view returns (address)
isApprovedForAll
viewfunction isApprovedForAll(address owner, address operator) view returns (bool)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
ownerOf
viewfunction ownerOf(uint256 tokenId) view returns (address)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
psyDaoMasterBase
viewfunction psyDaoMasterBase() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
symbol
viewfunction symbol() view returns (string)
tokenId
viewfunction tokenId() view returns (uint256)
tokenURI
viewfunction tokenURI(uint256 tokenId) view returns (string)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
approve
nonpayablefunction approve(address to, uint256 tokenId)
initialize
nonpayablefunction initialize(string _name, string _symbol)
mint
nonpayablefunction mint(address _to)
renounceOwnership
nonpayablefunction renounceOwnership()
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId, bytes data)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 tokenId)
setApprovalForAll
nonpayablefunction setApprovalForAll(address operator, bool approved)
setBaseURI
nonpayablefunction setBaseURI(string _baseTokenURI)
setPsyDaoMasterBase
nonpayablefunction setPsyDaoMasterBase(address _psyDaoMasterBase)
transferFrom
nonpayablefunction transferFrom(address from, address to, uint256 tokenId)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
Approval
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
ApprovalForAll
event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
FreebaseNftMinted
event FreebaseNftMinted(address to, uint256 tokenId)
Initialized
event Initialized(uint64 version)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PermittedAddressesUpdated
event PermittedAddressesUpdated(address psyDaoBaseMaster)
Transfer
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
Upgraded
event Upgraded(address indexed implementation)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressEqualsZero
error AddressEqualsZero()
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
ERC721IncorrectOwner
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner)
ERC721InsufficientApproval
error ERC721InsufficientApproval(address operator, uint256 tokenId)
ERC721InvalidApprover
error ERC721InvalidApprover(address approver)
ERC721InvalidOperator
error ERC721InvalidOperator(address operator)
ERC721InvalidOwner
error ERC721InvalidOwner(address owner)
ERC721InvalidReceiver
error ERC721InvalidReceiver(address receiver)
ERC721InvalidSender
error ERC721InvalidSender(address sender)
ERC721NonexistentToken
error ERC721NonexistentToken(uint256 tokenId)
FailedInnerCall
error FailedInnerCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
NotPsyDAOMasterBase
error NotPsyDAOMasterBase()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a06040523060805234801561001457600080fd5b5061001d610022565b6100d4565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100725760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d15780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b608051611e976100fd60003960008181610cfd01528181610d260152610e670152611e976000f3fe6080604052600436106101815760003560e01c80636c0360eb116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610470578063e985e9c514610490578063f2fde38b146104b0578063fc5e160a146104d057600080fd5b8063a22cb465146103ff578063ad3cb1cc1461041f578063b88d4fde1461045057600080fd5b80636c0360eb1461034357806370a0823114610358578063715018a6146103785780638490e2b31461038d5780638da5cb5b146103ad57806395d89b41146103ea57600080fd5b806342842e0e1161013e57806352d1902d1161011857806352d1902d146102ce57806355f804b3146102e35780636352211e146103035780636a6278421461032357600080fd5b806342842e0e1461027b5780634cd88b761461029b5780634f1ef286146102bb57600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806317d70f7c1461023757806323b872dd1461025b575b600080fd5b34801561019257600080fd5b506101a66101a1366004611865565b6104f0565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d0610542565b6040516101b291906118d2565b3480156101e957600080fd5b506101fd6101f83660046118e5565b6105e6565b6040516001600160a01b0390911681526020016101b2565b34801561022157600080fd5b5061023561023036600461191a565b6105fb565b005b34801561024357600080fd5b5061024d60015481565b6040519081526020016101b2565b34801561026757600080fd5b50610235610276366004611944565b61060a565b34801561028757600080fd5b50610235610296366004611944565b61069a565b3480156102a757600080fd5b506102356102b6366004611a23565b6106ba565b6102356102c9366004611a87565b6107d9565b3480156102da57600080fd5b5061024d6107f4565b3480156102ef57600080fd5b506102356102fe366004611acb565b610811565b34801561030f57600080fd5b506101fd61031e3660046118e5565b610825565b34801561032f57600080fd5b5061023561033e366004611b00565b610830565b34801561034f57600080fd5b506101d06108ee565b34801561036457600080fd5b5061024d610373366004611b00565b6108fd565b34801561038457600080fd5b50610235610959565b34801561039957600080fd5b506000546101fd906001600160a01b031681565b3480156103b957600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101fd565b3480156103f657600080fd5b506101d061096d565b34801561040b57600080fd5b5061023561041a366004611b1b565b6109ac565b34801561042b57600080fd5b506101d0604051806040016040528060058152602001640352e302e360dc1b81525081565b34801561045c57600080fd5b5061023561046b366004611b57565b6109b7565b34801561047c57600080fd5b506101d061048b3660046118e5565b6109ce565b34801561049c57600080fd5b506101a66104ab366004611bbf565b610a36565b3480156104bc57600080fd5b506102356104cb366004611b00565b610a83565b3480156104dc57600080fd5b506102356104eb366004611b00565b610ac1565b60006001600160e01b031982166380ac58cd60e01b148061052157506001600160e01b03198216635b5e139f60e01b145b8061053c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600080516020611e22833981519152805460609190819061056290611bf2565b80601f016020809104026020016040519081016040528092919081815260200182805461058e90611bf2565b80156105db5780601f106105b0576101008083540402835291602001916105db565b820191906000526020600020905b8154815290600101906020018083116105be57829003601f168201915b505050505091505090565b60006105f182610b46565b5061053c82610b7e565b610606828233610bb8565b5050565b6001600160a01b03821661063957604051633250574960e11b8152600060048201526024015b60405180910390fd5b6000610646838333610bc5565b9050836001600160a01b0316816001600160a01b031614610694576040516364283d7b60e01b81526001600160a01b0380861660048301526024820184905282166044820152606401610630565b50505050565b6106b5838383604051806020016040528060008152506109b7565b505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff166000811580156107005750825b905060008267ffffffffffffffff16600114801561071d5750303b155b90508115801561072b575080155b156107495760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561077357845460ff60401b1916600160401b1785555b61077c33610ccf565b6107868787610ce0565b6001805583156107d057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50505050505050565b6107e1610cf2565b6107ea82610d97565b6106068282610d9f565b60006107fe610e5c565b50600080516020611e4283398151915290565b610819610ea5565b60026106068282611c7c565b600061053c82610b46565b806001600160a01b038116610858576040516327ab53f160e01b815260040160405180910390fd5b6000546001600160a01b03163314610883576040516319265e6160e01b815260040160405180910390fd5b61088f82600154610f00565b600154604080516001600160a01b038516815260208101929092527fabcc15821bffc463c7459df5cb00bd74ee80dec7f18d896c698f66434af37c0e910160405180910390a1600180549060006108e583611d3c565b91905055505050565b60606108f8610f1a565b905090565b6000600080516020611e228339815191526001600160a01b038316610938576040516322718ad960e21b815260006004820152602401610630565b6001600160a01b039092166000908152600390920160205250604090205490565b610961610ea5565b61096b6000610fac565b565b7f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab00793018054606091600080516020611e228339815191529161056290611bf2565b61060633838361101d565b6109c284848461060a565b610694848484846110ce565b60606109d982610b46565b5060006109e4610f1a565b90506000815111610a045760405180602001604052806000815250610a2f565b80610a0e846111f7565b604051602001610a1f929190611d63565b6040516020818303038152906040525b9392505050565b6001600160a01b0391821660009081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab00793056020908152604080832093909416825291909152205460ff1690565b610a8b610ea5565b6001600160a01b038116610ab557604051631e4fbdf760e01b815260006004820152602401610630565b610abe81610fac565b50565b610ac9610ea5565b806001600160a01b038116610af1576040516327ab53f160e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0384169081179091556040519081527fe0fb111fdd97a683d23561bdfc75882c739dbb099db9b3d5c93b389588525e109060200160405180910390a15050565b600080610b528361128a565b90506001600160a01b03811661053c57604051637e27328960e01b815260048101849052602401610630565b60009081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930460205260409020546001600160a01b031690565b6106b583838360016112c4565b6000600080516020611e2283398151915281610be08561128a565b90506001600160a01b03841615610bfc57610bfc8185876113da565b6001600160a01b03811615610c3c57610c196000866000806112c4565b6001600160a01b0381166000908152600383016020526040902080546000190190555b6001600160a01b03861615610c6d576001600160a01b03861660009081526003830160205260409020805460010190555b600085815260028301602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a495945050505050565b610cd761143e565b610abe81611487565b610ce861143e565b610606828261148f565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610d7957507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d6d600080516020611e42833981519152546001600160a01b031690565b6001600160a01b031614155b1561096b5760405163703e46dd60e11b815260040160405180910390fd5b610abe610ea5565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610df9575060408051601f3d908101601f19168201909252610df691810190611d92565b60015b610e2157604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610630565b600080516020611e428339815191528114610e5257604051632a87526960e21b815260048101829052602401610630565b6106b583836114c0565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461096b5760405163703e46dd60e11b815260040160405180910390fd5b33610ed77f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b03161461096b5760405163118cdaa760e01b8152336004820152602401610630565b610606828260405180602001604052806000815250611516565b606060028054610f2990611bf2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5590611bf2565b8015610fa25780601f10610f7757610100808354040283529160200191610fa2565b820191906000526020600020905b815481529060010190602001808311610f8557829003601f168201915b5050505050905090565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b600080516020611e228339815191526001600160a01b03831661105e57604051630b61174360e31b81526001600160a01b0384166004820152602401610630565b6001600160a01b038481166000818152600584016020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a350505050565b6001600160a01b0383163b1561069457604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290611110903390889087908790600401611dab565b6020604051808303816000875af192505050801561114b575060408051601f3d908101601f1916820190925261114891810190611de8565b60015b6111b4573d808015611179576040519150601f19603f3d011682016040523d82523d6000602084013e61117e565b606091505b5080516000036111ac57604051633250574960e11b81526001600160a01b0385166004820152602401610630565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b146111f057604051633250574960e11b81526001600160a01b0385166004820152602401610630565b5050505050565b606060006112048361152d565b600101905060008167ffffffffffffffff81111561122457611224611980565b6040519080825280601f01601f19166020018201604052801561124e576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461125857509392505050565b60009081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930260205260409020546001600160a01b031690565b600080516020611e2283398151915281806112e757506001600160a01b03831615155b156113a95760006112f785610b46565b90506001600160a01b038416158015906113235750836001600160a01b0316816001600160a01b031614155b801561133657506113348185610a36565b155b1561135f5760405163a9fbf51f60e01b81526001600160a01b0385166004820152602401610630565b82156113a75784866001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b600093845260040160205250506040902080546001600160a01b0319166001600160a01b0392909216919091179055565b6113e5838383611605565b6106b5576001600160a01b03831661141357604051637e27328960e01b815260048101829052602401610630565b60405163177e802f60e01b81526001600160a01b038316600482015260248101829052604401610630565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff1661096b57604051631afcd79f60e31b815260040160405180910390fd5b610a8b61143e565b61149761143e565b600080516020611e22833981519152806114b18482611c7c565b50600181016106948382611c7c565b6114c98261166b565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561150e576106b582826116d0565b610606611746565b6115208383611765565b6106b560008484846110ce565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061156c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611598576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106115b657662386f26fc10000830492506010015b6305f5e10083106115ce576305f5e100830492506008015b61271083106115e257612710830492506004015b606483106115f4576064830492506002015b600a831061053c5760010192915050565b60006001600160a01b038316158015906116635750826001600160a01b0316846001600160a01b0316148061163f575061163f8484610a36565b806116635750826001600160a01b031661165883610b7e565b6001600160a01b0316145b949350505050565b806001600160a01b03163b6000036116a157604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610630565b600080516020611e4283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b0316846040516116ed9190611e05565b600060405180830381855af49150503d8060008114611728576040519150601f19603f3d011682016040523d82523d6000602084013e61172d565b606091505b509150915061173d8583836117ca565b95945050505050565b341561096b5760405163b398979f60e01b815260040160405180910390fd5b6001600160a01b03821661178f57604051633250574960e11b815260006004820152602401610630565b600061179d83836000610bc5565b90506001600160a01b038116156106b5576040516339e3563760e11b815260006004820152602401610630565b6060826117df576117da82611826565b610a2f565b81511580156117f657506001600160a01b0384163b155b1561181f57604051639996b31560e01b81526001600160a01b0385166004820152602401610630565b5080610a2f565b8051156118365780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160e01b031981168114610abe57600080fd5b60006020828403121561187757600080fd5b8135610a2f8161184f565b60005b8381101561189d578181015183820152602001611885565b50506000910152565b600081518084526118be816020860160208601611882565b601f01601f19169290920160200192915050565b602081526000610a2f60208301846118a6565b6000602082840312156118f757600080fd5b5035919050565b80356001600160a01b038116811461191557600080fd5b919050565b6000806040838503121561192d57600080fd5b611936836118fe565b946020939093013593505050565b60008060006060848603121561195957600080fd5b611962846118fe565b9250611970602085016118fe565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126119a757600080fd5b813567ffffffffffffffff808211156119c2576119c2611980565b604051601f8301601f19908116603f011681019082821181831017156119ea576119ea611980565b81604052838152866020858801011115611a0357600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215611a3657600080fd5b823567ffffffffffffffff80821115611a4e57600080fd5b611a5a86838701611996565b93506020850135915080821115611a7057600080fd5b50611a7d85828601611996565b9150509250929050565b60008060408385031215611a9a57600080fd5b611aa3836118fe565b9150602083013567ffffffffffffffff811115611abf57600080fd5b611a7d85828601611996565b600060208284031215611add57600080fd5b813567ffffffffffffffff811115611af457600080fd5b61166384828501611996565b600060208284031215611b1257600080fd5b610a2f826118fe565b60008060408385031215611b2e57600080fd5b611b37836118fe565b915060208301358015158114611b4c57600080fd5b809150509250929050565b60008060008060808587031215611b6d57600080fd5b611b76856118fe565b9350611b84602086016118fe565b925060408501359150606085013567ffffffffffffffff811115611ba757600080fd5b611bb387828801611996565b91505092959194509250565b60008060408385031215611bd257600080fd5b611bdb836118fe565b9150611be9602084016118fe565b90509250929050565b600181811c90821680611c0657607f821691505b602082108103611c2657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156106b5576000816000526020600020601f850160051c81016020861015611c555750805b601f850160051c820191505b81811015611c7457828155600101611c61565b505050505050565b815167ffffffffffffffff811115611c9657611c96611980565b611caa81611ca48454611bf2565b84611c2c565b602080601f831160018114611cdf5760008415611cc75750858301515b600019600386901b1c1916600185901b178555611c74565b600085815260208120601f198616915b82811015611d0e57888601518255948401946001909101908401611cef565b5085821015611d2c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201611d5c57634e487b7160e01b600052601160045260246000fd5b5060010190565b60008351611d75818460208801611882565b835190830190611d89818360208801611882565b01949350505050565b600060208284031215611da457600080fd5b5051919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611dde908301846118a6565b9695505050505050565b600060208284031215611dfa57600080fd5b8151610a2f8161184f565b60008251611e17818460208701611882565b919091019291505056fe80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab0079300360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca2646970667358221220f4999d88a4ddd81617d7d73372a37771472e63aa994709e416103a5e1902ea9764736f6c63430008170033