Address Contract Verified
Address
0x0dc423f1b3b75e67924d69385155a6Fa54FA0fb6
Balance
0 ETH
Nonce
1
Code Size
14229 bytes
Creator
0xBFf9EE73...4B5E at tx 0x2c43e098...2f762e
Indexed Transactions
0
Contract Bytecode
14229 bytes
0x6080604052600436106102255760003560e01c806370a0823111610123578063b723b34e116100ab578063dd473d2b1161006f578063dd473d2b146107af578063e43ec5f0146107c6578063e985e9c5146107f1578063f2fde38b1461082e578063f309455a1461085757610225565b8063b723b34e146106de578063b78f9de714610707578063b88d4fde14610732578063c87b56dd1461075b578063ca3cb5221461079857610225565b80638da5cb5b116100f25780638da5cb5b1461060b57806391860f781461063657806395d89b4114610661578063a22cb4651461068c578063a2b40d19146106b557610225565b806370a0823114610577578063715018a6146105b45780637d8966e4146105cb5780638606d938146105e257610225565b806323b872dd116101b157806355f804b31161017557806355f804b3146104925780635a7adf7f146104bb5780635c909bf4146104e65780636197180b146105115780636352211e1461053a57610225565b806323b872dd146103be5780633af32abf146103e757806342842e0e1461042457806343d675651461044d5780635367de6a1461047657610225565b80630b4b9878116101f85780630b4b9878146102f8578063121dbc311461031457806315e569521461033d57806318160ddd14610368578063235b6ea11461039357610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906129e0565b610882565b60405161025e9190612a28565b60405180910390f35b34801561027357600080fd5b5061027c610914565b6040516102899190612adc565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b49190612b34565b6109a6565b6040516102c69190612ba2565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190612be9565b610a22565b005b610312600480360381019061030d9190612b34565b610bc9565b005b34801561032057600080fd5b5061033b60048036038101906103369190612b34565b610d0f565b005b34801561034957600080fd5b50610352610d95565b60405161035f9190612c38565b60405180910390f35b34801561037457600080fd5b5061037d610d9f565b60405161038a9190612c38565b60405180910390f35b34801561039f57600080fd5b506103a8610db6565b6040516103b59190612c38565b60405180910390f35b3480156103ca57600080fd5b506103e560048036038101906103e09190612c53565b610dbc565b005b3480156103f357600080fd5b5061040e60048036038101906104099190612ca6565b610dcc565b60405161041b9190612a28565b60405180910390f35b34801561043057600080fd5b5061044b60048036038101906104469190612c53565b610e22565b005b34801561045957600080fd5b50610474600480360381019061046f9190612e1b565b610e42565b005b610490600480360381019061048b9190612b34565b610f53565b005b34801561049e57600080fd5b506104b960048036038101906104b49190612f19565b610fc1565b005b3480156104c757600080fd5b506104d0611057565b6040516104dd9190612a28565b60405180910390f35b3480156104f257600080fd5b506104fb61106e565b6040516105089190612c38565b60405180910390f35b34801561051d57600080fd5b5061053860048036038101906105339190612b34565b611074565b005b34801561054657600080fd5b50610561600480360381019061055c9190612b34565b6110fa565b60405161056e9190612ba2565b60405180910390f35b34801561058357600080fd5b5061059e60048036038101906105999190612ca6565b61110c565b6040516105ab9190612c38565b60405180910390f35b3480156105c057600080fd5b506105c96111c5565b005b3480156105d757600080fd5b506105e061124d565b005b3480156105ee57600080fd5b5061060960048036038101906106049190612b34565b6112f5565b005b34801561061757600080fd5b5061062061137b565b60405161062d9190612ba2565b60405180910390f35b34801561064257600080fd5b5061064b6113a5565b6040516106589190612adc565b60405180910390f35b34801561066d57600080fd5b50610676611433565b6040516106839190612adc565b60405180910390f35b34801561069857600080fd5b506106b360048036038101906106ae9190612f8e565b6114c5565b005b3480156106c157600080fd5b506106dc60048036038101906106d79190612b34565b61163d565b005b3480156106ea57600080fd5b5061070560048036038101906107009190612fce565b6116c3565b005b34801561071357600080fd5b5061071c61174d565b6040516107299190612a28565b60405180910390f35b34801561073e57600080fd5b50610759600480360381019061075491906130af565b611764565b005b34801561076757600080fd5b50610782600480360381019061077d9190612b34565b6117d7565b60405161078f9190612adc565b60405180910390f35b3480156107a457600080fd5b506107ad611848565b005b3480156107bb57600080fd5b506107c46118f0565b005b3480156107d257600080fd5b506107db611b47565b6040516107e89190612c38565b60405180910390f35b3480156107fd57600080fd5b5061081860048036038101906108139190613132565b611b4d565b6040516108259190612a28565b60405180910390f35b34801561083a57600080fd5b5061085560048036038101906108509190612ca6565b611be1565b005b34801561086357600080fd5b5061086c611cd9565b6040516108799190612c38565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108dd57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061090d5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610923906131a1565b80601f016020809104026020016040519081016040528092919081815260200182805461094f906131a1565b801561099c5780601f106109715761010080835404028352916020019161099c565b820191906000526020600020905b81548152906001019060200180831161097f57829003601f168201915b5050505050905090565b60006109b182611ce8565b6109e7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a2d82611d47565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a95576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ab4611e15565b73ffffffffffffffffffffffffffffffffffffffff1614610b1757610ae081610adb611e15565b611b4d565b610b16576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600e60019054906101000a900460ff16610be257600080fd5b60106000610bee611e1d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6c9061321f565b60405180910390fd5b600d54811115610cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb19061328b565b60405180910390fd5b6000610cc4610d9f565b9050600a548282610cd591906132da565b1115610ce057600080fd5b600c5482610cee9190613330565b341015610cfa57600080fd5b610d0b610d05611e1d565b83611e25565b5050565b610d17611e1d565b73ffffffffffffffffffffffffffffffffffffffff16610d3561137b565b73ffffffffffffffffffffffffffffffffffffffff1614610d8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d82906133d6565b60405180910390fd5b80600a8190555050565b6000600a54905090565b6000610da9611e43565b6001546000540303905090565b600b5481565b610dc7838383611e48565b505050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b610e3d83838360405180602001604052806000815250611764565b505050565b610e4a611e1d565b73ffffffffffffffffffffffffffffffffffffffff16610e6861137b565b73ffffffffffffffffffffffffffffffffffffffff1614610ebe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb5906133d6565b60405180910390fd5b60005b8151811015610f4f57600160106000848481518110610ee357610ee26133f6565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080610f4790613425565b915050610ec1565b5050565b600e60009054906101000a900460ff16610f6c57600080fd5b6000610f76610d9f565b9050600a548282610f8791906132da565b1115610f9257600080fd5b600b5482610fa09190613330565b341015610fac57600080fd5b610fbd610fb7611e1d565b83611e25565b5050565b610fc9611e1d565b73ffffffffffffffffffffffffffffffffffffffff16610fe761137b565b73ffffffffffffffffffffffffffffffffffffffff161461103d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611034906133d6565b60405180910390fd5b80600f90805190602001906110539291906128d1565b5050565b6000600e60019054906101000a900460ff16905090565b600c5481565b61107c611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661109a61137b565b73ffffffffffffffffffffffffffffffffffffffff16146110f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e7906133d6565b60405180910390fd5b80600d8190555050565b600061110582611d47565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611174576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6111cd611e1d565b73ffffffffffffffffffffffffffffffffffffffff166111eb61137b565b73ffffffffffffffffffffffffffffffffffffffff1614611241576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611238906133d6565b60405180910390fd5b61124b60006121f2565b565b611255611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661127361137b565b73ffffffffffffffffffffffffffffffffffffffff16146112c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c0906133d6565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b6112fd611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661131b61137b565b73ffffffffffffffffffffffffffffffffffffffff1614611371576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611368906133d6565b60405180910390fd5b80600c8190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f80546113b2906131a1565b80601f01602080910402602001604051908101604052809291908181526020018280546113de906131a1565b801561142b5780601f106114005761010080835404028352916020019161142b565b820191906000526020600020905b81548152906001019060200180831161140e57829003601f168201915b505050505081565b606060038054611442906131a1565b80601f016020809104026020016040519081016040528092919081815260200182805461146e906131a1565b80156114bb5780601f10611490576101008083540402835291602001916114bb565b820191906000526020600020905b81548152906001019060200180831161149e57829003601f168201915b5050505050905090565b6114cd611e15565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611532576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061153f611e15565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115ec611e15565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116319190612a28565b60405180910390a35050565b611645611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661166361137b565b73ffffffffffffffffffffffffffffffffffffffff16146116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b0906133d6565b60405180910390fd5b80600b8190555050565b6116cb611e1d565b73ffffffffffffffffffffffffffffffffffffffff166116e961137b565b73ffffffffffffffffffffffffffffffffffffffff161461173f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611736906133d6565b60405180910390fd5b6117498183611e25565b5050565b6000600e60009054906101000a900460ff16905090565b61176f848484611e48565b60008373ffffffffffffffffffffffffffffffffffffffff163b146117d15761179a848484846122b8565b6117d0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60606117e282611ce8565b6117eb57600080fd5b60006117f5612409565b905060008151116118155760405180602001604052806000815250611840565b8061181f8461249b565b6040516020016118309291906134f6565b6040516020818303038152906040525b915050919050565b611850611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661186e61137b565b73ffffffffffffffffffffffffffffffffffffffff16146118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb906133d6565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b6118f8611e1d565b73ffffffffffffffffffffffffffffffffffffffff1661191661137b565b73ffffffffffffffffffffffffffffffffffffffff161461196c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611963906133d6565b60405180910390fd5b60004790507258052333e3f818c2f3a795c449325a93f3258873ffffffffffffffffffffffffffffffffffffffff166108fc6127106107e9846119af9190613330565b6119b99190613554565b9081150290604051600060405180830381858888f193505050501580156119e4573d6000803e3d6000fd5b50731f819ea2dca46fcc2b8bc46f8cac68d3eb3d58b673ffffffffffffffffffffffffffffffffffffffff166108fc61271061054684611a249190613330565b611a2e9190613554565b9081150290604051600060405180830381858888f19350505050158015611a59573d6000803e3d6000fd5b50735d2fb1bc2dd42a74e19fbe16f4c5d7f8c0860ce373ffffffffffffffffffffffffffffffffffffffff166108fc61271061046584611a999190613330565b611aa39190613554565b9081150290604051600060405180830381858888f19350505050158015611ace573d6000803e3d6000fd5b5073f2ae765bcc2108e77384dfff6edf1fcf8c10e46173ffffffffffffffffffffffffffffffffffffffff166108fc61271061157c84611b0e9190613330565b611b189190613554565b9081150290604051600060405180830381858888f19350505050158015611b43573d6000803e3d6000fd5b5050565b600d5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611be9611e1d565b73ffffffffffffffffffffffffffffffffffffffff16611c0761137b565b73ffffffffffffffffffffffffffffffffffffffff1614611c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c54906133d6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ccd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc4906135f7565b60405180910390fd5b611cd6816121f2565b50565b6000611ce3610d9f565b905090565b600081611cf3611e43565b11158015611d02575060005482105b8015611d40575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008082905080611d56611e43565b11611dde57600054811015611ddd5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415611ddb575b6000811415611dd1576004600083600190039350838152602001908152602001600020549050611da6565b8092505050611e10565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b600033905090565b600033905090565b611e3f8282604051806020016040528060008152506125fc565b5050565b600090565b6000611e5382611d47565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611eba576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff16611edb611e15565b73ffffffffffffffffffffffffffffffffffffffff161480611f0a5750611f0985611f04611e15565b611b4d565b5b80611f4f5750611f18611e15565b73ffffffffffffffffffffffffffffffffffffffff16611f37846109a6565b73ffffffffffffffffffffffffffffffffffffffff16145b905080611f88576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611fef576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611ffc85858560016128b1565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055507c020000000000000000000000000000000000000000000000000000000060a042901b6120f9866128b7565b1717600460008581526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000083161415612183576000600184019050600060046000838152602001908152602001600020541415612181576000548114612180578260046000838152602001908152602001600020819055505b5b505b828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121eb85858560016128c1565b5050505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026122de611e15565b8786866040518563ffffffff1660e01b8152600401612300949392919061366c565b6020604051808303816000875af192505050801561233c57506040513d601f19601f8201168201806040525081019061233991906136cd565b60015b6123b6573d806000811461236c576040519150601f19603f3d011682016040523d82523d6000602084013e612371565b606091505b506000815114156123ae576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054612418906131a1565b80601f0160208091040260200160405190810160405280929190818152602001828054612444906131a1565b80156124915780601f1061246657610100808354040283529160200191612491565b820191906000526020600020905b81548152906001019060200180831161247457829003601f168201915b5050505050905090565b606060008214156124e3576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506125f7565b600082905060005b600082146125155780806124fe90613425565b915050600a8261250e9190613554565b91506124eb565b60008167ffffffffffffffff81111561253157612530612cd8565b5b6040519080825280601f01601f1916602001820160405280156125635781602001600182028036833780820191505090505b5090505b600085146125f05760018261257c91906136fa565b9150600a8561258b919061372e565b603061259791906132da565b60f81b8183815181106125ad576125ac6133f6565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125e99190613554565b9450612567565b8093505050505b919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612669576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008314156126a4576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126b160008583866128b1565b600160406001901b178302600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060e1612716600185146128c7565b901b60a042901b612726866128b7565b1717600460008381526020019081526020016000208190555060008190506000848201905060008673ffffffffffffffffffffffffffffffffffffffff163b1461282a575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127da60008784806001019550876122b8565b612810576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821061276b57826000541461282557600080fd5b612895565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821061282b575b8160008190555050506128ab60008583866128c1565b50505050565b50505050565b6000819050919050565b50505050565b6000819050919050565b8280546128dd906131a1565b90600052602060002090601f0160209004810192826128ff5760008555612946565b82601f1061291857805160ff1916838001178555612946565b82800160010185558215612946579182015b8281111561294557825182559160200191906001019061292a565b5b5090506129539190612957565b5090565b5b80821115612970576000816000905550600101612958565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6129bd81612988565b81146129c857600080fd5b50565b6000813590506129da816129b4565b92915050565b6000602082840312156129f6576129f561297e565b5b6000612a04848285016129cb565b91505092915050565b60008115159050919050565b612a2281612a0d565b82525050565b6000602082019050612a3d6000830184612a19565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a7d578082015181840152602081019050612a62565b83811115612a8c576000848401525b50505050565b6000601f19601f8301169050919050565b6000612aae82612a43565b612ab88185612a4e565b9350612ac8818560208601612a5f565b612ad181612a92565b840191505092915050565b60006020820190508181036000830152612af68184612aa3565b905092915050565b6000819050919050565b612b1181612afe565b8114612b1c57600080fd5b50565b600081359050612b2e81612b08565b92915050565b600060208284031215612b4a57612b4961297e565b5b6000612b5884828501612b1f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612b8c82612b61565b9050919050565b612b9c81612b81565b82525050565b6000602082019050612bb76000830184612b93565b92915050565b612bc681612b81565b8114612bd157600080fd5b50565b600081359050612be381612bbd565b92915050565b60008060408385031215612c0057612bff61297e565b5b6000612c0e85828601612bd4565b9250506020612c1f85828601612b1f565b9150509250929050565b612c3281612afe565b82525050565b6000602082019050612c4d6000830184612c29565b92915050565b600080600060608486031215612c6c57612c6b61297e565b5b6000612c7a86828701612bd4565b9350506020612c8b86828701612bd4565b9250506040612c9c86828701612b1f565b9150509250925092565b600060208284031215612cbc57612cbb61297e565b5b6000612cca84828501612bd4565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612d1082612a92565b810181811067ffffffffffffffff82111715612d2f57612d2e612cd8565b5b80604052505050565b6000612d42612974565b9050612d4e8282612d07565b919050565b600067ffffffffffffffff821115612d6e57612d6d612cd8565b5b602082029050602081019050919050565b600080fd5b6000612d97612d9284612d53565b612d38565b90508083825260208201905060208402830185811115612dba57612db9612d7f565b5b835b81811015612de35780612dcf8882612bd4565b845260208401935050602081019050612dbc565b5050509392505050565b600082601f830112612e0257612e01612cd3565b5b8135612e12848260208601612d84565b91505092915050565b600060208284031215612e3157612e3061297e565b5b600082013567ffffffffffffffff811115612e4f57612e4e612983565b5b612e5b84828501612ded565b91505092915050565b600080fd5b600067ffffffffffffffff821115612e8457612e83612cd8565b5b612e8d82612a92565b9050602081019050919050565b82818337600083830152505050565b6000612ebc612eb784612e69565b612d38565b905082815260208101848484011115612ed857612ed7612e64565b5b612ee3848285612e9a565b509392505050565b600082601f830112612f0057612eff612cd3565b5b8135612f10848260208601612ea9565b91505092915050565b600060208284031215612f2f57612f2e61297e565b5b600082013567ffffffffffffffff811115612f4d57612f4c612983565b5b612f5984828501612eeb565b91505092915050565b612f6b81612a0d565b8114612f7657600080fd5b50565b600081359050612f8881612f62565b92915050565b60008060408385031215612fa557612fa461297e565b5b6000612fb385828601612bd4565b9250506020612fc485828601612f79565b9150509250929050565b60008060408385031215612fe557612fe461297e565b5b6000612ff385828601612b1f565b925050602061300485828601612bd4565b9150509250929050565b600067ffffffffffffffff82111561302957613028612cd8565b5b61303282612a92565b9050602081019050919050565b600061305261304d8461300e565b612d38565b90508281526020810184848401111561306e5761306d612e64565b5b613079848285612e9a565b509392505050565b600082601f83011261309657613095612cd3565b5b81356130a684826020860161303f565b91505092915050565b600080600080608085870312156130c9576130c861297e565b5b60006130d787828801612bd4565b94505060206130e887828801612bd4565b93505060406130f987828801612b1f565b925050606085013567ffffffffffffffff81111561311a57613119612983565b5b61312687828801613081565b91505092959194509250565b600080604083850312156131495761314861297e565b5b600061315785828601612bd4565b925050602061316885828601612bd4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806131b957607f821691505b602082108114156131cd576131cc613172565b5b50919050565b7f4d696e743a20556e617574686f72697a65642041636365737300000000000000600082015250565b6000613209601983612a4e565b9150613214826131d3565b602082019050919050565b60006020820190508181036000830152613238816131fc565b9050919050565b7f4d696e743a20596f75206d6179206f6e6c79206d696e7420757020746f203130600082015250565b6000613275602083612a4e565b91506132808261323f565b602082019050919050565b600060208201905081810360008301526132a481613268565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132e582612afe565b91506132f083612afe565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613325576133246132ab565b5b828201905092915050565b600061333b82612afe565b915061334683612afe565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561337f5761337e6132ab565b5b828202905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006133c0602083612a4e565b91506133cb8261338a565b602082019050919050565b600060208201905081810360008301526133ef816133b3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061343082612afe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613463576134626132ab565b5b600182019050919050565b600081905092915050565b600061348482612a43565b61348e818561346e565b935061349e818560208601612a5f565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006134e060058361346e565b91506134eb826134aa565b600582019050919050565b60006135028285613479565b915061350e8284613479565b9150613519826134d3565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061355f82612afe565b915061356a83612afe565b92508261357a57613579613525565b5b828204905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006135e1602683612a4e565b91506135ec82613585565b604082019050919050565b60006020820190508181036000830152613610816135d4565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061363e82613617565b6136488185613622565b9350613658818560208601612a5f565b61366181612a92565b840191505092915050565b60006080820190506136816000830187612b93565b61368e6020830186612b93565b61369b6040830185612c29565b81810360608301526136ad8184613633565b905095945050505050565b6000815190506136c7816129b4565b92915050565b6000602082840312156136e3576136e261297e565b5b60006136f1848285016136b8565b91505092915050565b600061370582612afe565b915061371083612afe565b925082821015613723576137226132ab565b5b828203905092915050565b600061373982612afe565b915061374483612afe565b92508261375457613753613525565b5b82820690509291505056fea264697066735822122057cb4396f45ad563dbf92151298d36089dc4df40ba3424538996f51a822e00b664736f6c634300080a0033
Verified Source Code Full Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: No
Lazy8YachtClub.sol 152 lines
pragma solidity ^0.8.10;
//SPDX-License-Identifier: MIT
import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract Lazy8YachtClub is ERC721A, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
uint256 private _maxTokens = 8888;
uint256 public _price = 95000000000000000; // 0.095 ETH
uint256 public _presale_price = 95000000000000000; // 0.095 ETH
uint256 public _max_whitelist_mint = 8888; // can be changed
bool private _saleActive = false;
bool private _presaleActive = false;
string public _prefixURI = "ipfs://QmSTMJw7y1PbFtf6NmyHfJPazVfg5aetV6eL1XXZwtoJ95/"; //pre-reveal json
mapping(address => bool) private _whitelist;
constructor() ERC721A("Lazy8YachtClub", "LAZY8")
{
}
//view functions
function _baseURI() internal view override returns (string memory) {
return _prefixURI;
}
function Sale() public view returns (bool) {
return _saleActive;
}
function preSale() public view returns (bool) {
return _presaleActive;
}
function numSold() public view returns (uint256) {
return totalSupply();
}
function displayMax() public view returns (uint256) {
return _maxTokens;
}
function isWhitelisted(address _addr) public view returns (bool) {
return _whitelist[_addr];
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(_exists(tokenId));
string memory baseURI = _baseURI();
return
bytes(baseURI).length > 0
? string(
abi.encodePacked(
baseURI,
Strings.toString(tokenId),
".json"
)
)
: "";
}
//variable changing functions
function changeMax(uint256 _newMax) public onlyOwner {
_maxTokens = _newMax;
}
function changeWhitelistMaxMint(uint256 _newMax) public onlyOwner {
_max_whitelist_mint = _newMax;
}
function toggleSale() public onlyOwner {
_saleActive = !_saleActive;
}
function togglePreSale() public onlyOwner {
_presaleActive = !_presaleActive;
}
function setBaseURI(string memory _uri) public onlyOwner {
_prefixURI = _uri;
}
function changePrice(uint256 _newPrice) public onlyOwner {
_price = _newPrice;
}
function changePresalePrice(uint256 _newPrice) public onlyOwner {
_presale_price = _newPrice;
}
function whiteListMany(address[] memory accounts) external onlyOwner {
for (uint256 i; i < accounts.length; i++) {
_whitelist[accounts[i]] = true;
}
}
//onlyOwner contract interactions
function mintTo(uint256 quantity, address _addr) public onlyOwner {
_safeMint(_addr, quantity);
}
function withdraw_all() external onlyOwner {
uint256 balance = address(this).balance;
//divides the withdraw between everybody
payable(0x0058052333e3F818C2F3A795c449325A93F32588).transfer(balance * 2025 / 10000); //investor
payable(0x1F819EA2dCa46FCc2B8BC46F8cAC68d3Eb3d58b6).transfer(balance * 1350 / 10000); //development
payable(0x5d2FB1BC2Dd42a74E19FBe16f4c5D7f8c0860CE3).transfer(balance * 1125 / 10000); //marketing
payable(0xF2aE765BCC2108E77384dFFf6EDf1fCf8C10E461).transfer(balance * 5500 / 10000); //operating wallet
}
//minting functionality
function mintItems(uint256 amount) public payable {
require(_saleActive);
uint256 totalMinted = totalSupply();
require(totalMinted + amount <= _maxTokens);
require(msg.value >= amount * _price);
_safeMint(_msgSender(), amount);
}
function presaleMintItems(uint256 amount) public payable {
require(_presaleActive);
require(_whitelist[_msgSender()], "Mint: Unauthorized Access");
require(amount <= _max_whitelist_mint, "Mint: You may only mint up to 10");
uint256 totalMinted = totalSupply();
require(totalMinted + amount <= _maxTokens);
require(msg.value >= amount * _presale_price);
_safeMint(_msgSender(), amount);
//_whitelist[_msgSender()] = false; Unlimited TXN allowed for WL
}
}
ERC721A.sol 816 lines
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev ERC721 token receiver interface.
*/
interface ERC721A__IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is IERC721A {
// Mask of an entry in packed address data.
uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;
// The bit position of `numberMinted` in packed address data.
uint256 private constant BITPOS_NUMBER_MINTED = 64;
// The bit position of `numberBurned` in packed address data.
uint256 private constant BITPOS_NUMBER_BURNED = 128;
// The bit position of `aux` in packed address data.
uint256 private constant BITPOS_AUX = 192;
// Mask of all 256 bits in packed address data except the 64 bits for `aux`.
uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;
// The bit position of `startTimestamp` in packed ownership.
uint256 private constant BITPOS_START_TIMESTAMP = 160;
// The bit mask of the `burned` bit in packed ownership.
uint256 private constant BITMASK_BURNED = 1 << 224;
// The bit position of the `nextInitialized` bit in packed ownership.
uint256 private constant BITPOS_NEXT_INITIALIZED = 225;
// The bit mask of the `nextInitialized` bit in packed ownership.
uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;
// The tokenId of the next token to be minted.
uint256 private _currentIndex;
// The number of tokens burned.
uint256 private _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned.
// See `_packedOwnershipOf` implementation for details.
//
// Bits Layout:
// - [0..159] `addr`
// - [160..223] `startTimestamp`
// - [224] `burned`
// - [225] `nextInitialized`
mapping(uint256 => uint256) private _packedOwnerships;
// Mapping owner address to address data.
//
// Bits Layout:
// - [0..63] `balance`
// - [64..127] `numberMinted`
// - [128..191] `numberBurned`
// - [192..255] `aux`
mapping(address => uint256) private _packedAddressData;
// Mapping from token ID to approved address.
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* @dev Returns the starting token ID.
* To change the starting token ID, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 0;
}
/**
* @dev Returns the next token ID to be minted.
*/
function _nextTokenId() internal view returns (uint256) {
return _currentIndex;
}
/**
* @dev Returns the total number of tokens in existence.
* Burned tokens will reduce the count.
* To get the total number of tokens minted, please see `_totalMinted`.
*/
function totalSupply() public view override returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than `_currentIndex - _startTokenId()` times.
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* @dev Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to `_startTokenId()`
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @dev Returns the total number of tokens burned.
*/
function _totalBurned() internal view returns (uint256) {
return _burnCounter;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
// The interface IDs are constants representing the first 4 bytes of the XOR of
// all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
// e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
return
interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
}
/**
* Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return uint64(_packedAddressData[owner] >> BITPOS_AUX);
}
/**
* Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
uint256 packed = _packedAddressData[owner];
uint256 auxCasted;
assembly { // Cast aux without masking.
auxCasted := aux
}
packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
_packedAddressData[owner] = packed;
}
/**
* Returns the packed ownership data of `tokenId`.
*/
function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
// If not burned.
if (packed & BITMASK_BURNED == 0) {
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
//
// We can directly compare the packed value.
// If the address is zero, packed is zero.
while (packed == 0) {
packed = _packedOwnerships[--curr];
}
return packed;
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* Returns the unpacked `TokenOwnership` struct from `packed`.
*/
function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
ownership.addr = address(uint160(packed));
ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
ownership.burned = packed & BITMASK_BURNED != 0;
}
/**
* Returns the unpacked `TokenOwnership` struct at `index`.
*/
function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnerships[index]);
}
/**
* @dev Initializes the ownership slot minted at `index` for efficiency purposes.
*/
function _initializeOwnershipAt(uint256 index) internal {
if (_packedOwnerships[index] == 0) {
_packedOwnerships[index] = _packedOwnershipOf(index);
}
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
return _unpackedOwnership(_packedOwnershipOf(tokenId));
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return address(uint160(_packedOwnershipOf(tokenId)));
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return '';
}
/**
* @dev Casts the address to uint256 without masking.
*/
function _addressToUint256(address value) private pure returns (uint256 result) {
assembly {
result := value
}
}
/**
* @dev Casts the boolean to uint256 without branching.
*/
function _boolToUint256(bool value) private pure returns (uint256 result) {
assembly {
result := value
}
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public override {
address owner = address(uint160(_packedOwnershipOf(tokenId)));
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSenderERC721A() != owner)
if (!isApprovedForAll(owner, _msgSenderERC721A())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSenderERC721A()) revert ApproveToCaller();
_operatorApprovals[_msgSenderERC721A()][operator] = approved;
emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, '');
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
_transfer(from, to, tokenId);
if (to.code.length != 0)
if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return
_startTokenId() <= tokenId &&
tokenId < _currentIndex && // If within bounds,
_packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
}
/**
* @dev Equivalent to `_safeMint(to, quantity, '')`.
*/
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement
* {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the balance and number minted.
_packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
(_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
if (to.code.length != 0) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex < end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex < end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 quantity) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
// Updates:
// - `balance += quantity`.
// - `numberMinted += quantity`.
//
// We can directly add to the balance and number minted.
_packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);
// Updates:
// - `address` to the owner.
// - `startTimestamp` to the timestamp of minting.
// - `burned` to `false`.
// - `nextInitialized` to `quantity == 1`.
_packedOwnerships[startTokenId] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
(_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex < end);
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) private {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();
bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
isApprovedForAll(from, _msgSenderERC721A()) ||
getApproved(tokenId) == _msgSenderERC721A());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner.
delete _tokenApprovals[tokenId];
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
// We can directly increment and decrement the balances.
--_packedAddressData[from]; // Updates: `balance -= 1`.
++_packedAddressData[to]; // Updates: `balance += 1`.
// Updates:
// - `address` to the next owner.
// - `startTimestamp` to the timestamp of transfering.
// - `burned` to `false`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] =
_addressToUint256(to) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
BITMASK_NEXT_INITIALIZED;
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev Equivalent to `_burn(tokenId, false)`.
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);
address from = address(uint160(prevOwnershipPacked));
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
isApprovedForAll(from, _msgSenderERC721A()) ||
getApproved(tokenId) == _msgSenderERC721A());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner.
delete _tokenApprovals[tokenId];
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
// Updates:
// - `balance -= 1`.
// - `numberBurned += 1`.
//
// We can directly decrement the balance, and increment the number burned.
// This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
_packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;
// Updates:
// - `address` to the last owner.
// - `startTimestamp` to the timestamp of burning.
// - `burned` to `true`.
// - `nextInitialized` to `true`.
_packedOwnerships[tokenId] =
_addressToUint256(from) |
(block.timestamp << BITPOS_START_TIMESTAMP) |
BITMASK_BURNED |
BITMASK_NEXT_INITIALIZED;
// If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
uint256 nextTokenId = tokenId + 1;
// If the next slot's address is zero and not burned (i.e. packed value is zero).
if (_packedOwnerships[nextTokenId] == 0) {
// If the next slot is within bounds.
if (nextTokenId != _currentIndex) {
// Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
_packedOwnerships[nextTokenId] = prevOwnershipPacked;
}
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
bytes4 retval
) {
return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Returns the message sender (defaults to `msg.sender`).
*
* If you are writing GSN compatible contracts, you need to override this function.
*/
function _msgSenderERC721A() internal view virtual returns (address) {
return msg.sender;
}
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function _toString(uint256 value) internal pure returns (string memory ptr) {
assembly {
// The maximum value of a uint256 contains 78 digits (1 byte per digit),
// but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
// We will need 1 32-byte word to store the length,
// and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
ptr := add(mload(0x40), 128)
// Update the free memory pointer to allocate.
mstore(0x40, ptr)
// Cache the end of the memory to calculate the length later.
let end := ptr
// We write the string from the rightmost digit to the leftmost digit.
// The following is essentially a do-while loop that also handles the zero case.
// Costs a bit more than early returning for the zero case,
// but cheaper in terms of deployment and overall runtime costs.
for {
// Initialize and perform the first pass without check.
let temp := value
// Move the pointer 1 byte leftwards to point to an empty character slot.
ptr := sub(ptr, 1)
// Write the character to the pointer. 48 is the ASCII index of '0'.
mstore8(ptr, add(48, mod(temp, 10)))
temp := div(temp, 10)
} temp {
// Keep dividing `temp` until zero.
temp := div(temp, 10)
} { // Body of the for loop.
ptr := sub(ptr, 1)
mstore8(ptr, add(48, mod(temp, 10)))
}
let length := sub(end, ptr)
// Move the pointer 32 bytes leftwards to make room for the length.
ptr := sub(ptr, 32)
// Store the length.
mstore(ptr, length)
}
}
}
IERC721A.sol 260 lines
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of an ERC721A compliant contract.
*/
interface IERC721A {
/**
* The caller must own the token or be an approved operator.
*/
error ApprovalCallerNotOwnerNorApproved();
/**
* The token does not exist.
*/
error ApprovalQueryForNonexistentToken();
/**
* The caller cannot approve to their own address.
*/
error ApproveToCaller();
/**
* The caller cannot approve to the current owner.
*/
error ApprovalToCurrentOwner();
/**
* Cannot query the balance for the zero address.
*/
error BalanceQueryForZeroAddress();
/**
* Cannot mint to the zero address.
*/
error MintToZeroAddress();
/**
* The quantity of tokens minted must be more than zero.
*/
error MintZeroQuantity();
/**
* The token does not exist.
*/
error OwnerQueryForNonexistentToken();
/**
* The caller must own the token or be an approved operator.
*/
error TransferCallerNotOwnerNorApproved();
/**
* The token must be owned by `from`.
*/
error TransferFromIncorrectOwner();
/**
* Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
*/
error TransferToNonERC721ReceiverImplementer();
/**
* Cannot transfer to the zero address.
*/
error TransferToZeroAddress();
/**
* The token does not exist.
*/
error URIQueryForNonexistentToken();
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
/**
* @dev Returns the total amount of tokens stored by the contract.
*
* Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
*/
function totalSupply() external view returns (uint256);
// ==============================
// IERC165
// ==============================
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
// ==============================
// IERC721
// ==============================
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
// ==============================
// IERC721Metadata
// ==============================
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Strings.sol 67 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
Counters.sol 43 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
Read Contract
Sale 0xb78f9de7 → bool
_max_whitelist_mint 0xe43ec5f0 → uint256
_prefixURI 0x91860f78 → string
_presale_price 0x5c909bf4 → uint256
_price 0x235b6ea1 → uint256
balanceOf 0x70a08231 → uint256
displayMax 0x15e56952 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
name 0x06fdde03 → string
numSold 0xf309455a → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
preSale 0x5a7adf7f → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 19 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
changeMax 0x121dbc31
uint256 _newMax
changePresalePrice 0x8606d938
uint256 _newPrice
changePrice 0xa2b40d19
uint256 _newPrice
changeWhitelistMaxMint 0x6197180b
uint256 _newMax
mintItems 0x5367de6a
uint256 amount
mintTo 0xb723b34e
uint256 quantity
address _addr
presaleMintItems 0x0b4b9878
uint256 amount
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _uri
togglePreSale 0xca3cb522
No parameters
toggleSale 0x7d8966e4
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whiteListMany 0x43d67565
address[] accounts
withdraw_all 0xdd473d2b
No parameters
Recent Transactions
No transactions found for this address