Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xC6d9870DD4140Daaacd20fc7e4bcdB440BeAbdCA
Balance 0 ETH
Nonce 1
Code Size 19794 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19794 bytes
0x6080604052600436106102725760003560e01c8063715018a61161014f578063b071401b116100c1578063d5abeb011161007a578063d5abeb0114610934578063e0a808531461095f578063e985e9c514610988578063edec5f27146109c5578063efbd73f4146109ee578063f2fde38b14610a1757610272565b8063b071401b14610814578063b88d4fde1461083d578063ba4e5c4914610866578063ba7d2c76146108a3578063c87b56dd146108ce578063d0eb26b01461090b57610272565b806395d89b411161011357806395d89b41146107375780639c70b51214610762578063a0712d681461078d578063a22cb465146107a9578063a45ba8e7146107d2578063a50e89ff146107fd57610272565b8063715018a6146106975780637ec4a659146106ae578063853828b6146106d75780638da5cb5b146106e157806394354fd01461070c57610272565b80633c952764116101e857806351830227116101ac57806351830227146105715780635503a0e81461059c5780635c975abb146105c757806362b99ad4146105f25780636352211e1461061d57806370a082311461065a57610272565b80633c9527641461049057806342842e0e146104b9578063438b6300146104e257806344a0d68a1461051f5780634fdd43cb1461054857610272565b806316ba10e01161023a57806316ba10e01461037057806316c38b3c1461039957806318160ddd146103c257806318cae269146103ed57806323b872dd1461042a5780633af32abf1461045357610272565b806301ffc9a71461027757806306fdde03146102b4578063081812fc146102df578063095ea7b31461031c57806313faede614610345575b600080fd5b34801561028357600080fd5b5061029e60048036038101906102999190613524565b610a40565b6040516102ab919061356c565b60405180910390f35b3480156102c057600080fd5b506102c9610b22565b6040516102d69190613620565b60405180910390f35b3480156102eb57600080fd5b5061030660048036038101906103019190613678565b610bb4565b60405161031391906136e6565b60405180910390f35b34801561032857600080fd5b50610343600480360381019061033e919061372d565b610c39565b005b34801561035157600080fd5b5061035a610d51565b604051610367919061377c565b60405180910390f35b34801561037c57600080fd5b50610397600480360381019061039291906138cc565b610d57565b005b3480156103a557600080fd5b506103c060048036038101906103bb9190613941565b610ded565b005b3480156103ce57600080fd5b506103d7610e86565b6040516103e4919061377c565b60405180910390f35b3480156103f957600080fd5b50610414600480360381019061040f919061396e565b610e97565b604051610421919061377c565b60405180910390f35b34801561043657600080fd5b50610451600480360381019061044c919061399b565b610eaf565b005b34801561045f57600080fd5b5061047a6004803603810190610475919061396e565b610f0f565b604051610487919061356c565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613941565b610fbe565b005b3480156104c557600080fd5b506104e060048036038101906104db919061399b565b611057565b005b3480156104ee57600080fd5b506105096004803603810190610504919061396e565b611077565b6040516105169190613aac565b60405180910390f35b34801561052b57600080fd5b5061054660048036038101906105419190613678565b611182565b005b34801561055457600080fd5b5061056f600480360381019061056a91906138cc565b611208565b005b34801561057d57600080fd5b5061058661129e565b604051610593919061356c565b60405180910390f35b3480156105a857600080fd5b506105b16112b1565b6040516105be9190613620565b60405180910390f35b3480156105d357600080fd5b506105dc61133f565b6040516105e9919061356c565b60405180910390f35b3480156105fe57600080fd5b50610607611352565b6040516106149190613620565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f9190613678565b6113e0565b60405161065191906136e6565b60405180910390f35b34801561066657600080fd5b50610681600480360381019061067c919061396e565b611492565b60405161068e919061377c565b60405180910390f35b3480156106a357600080fd5b506106ac61154a565b005b3480156106ba57600080fd5b506106d560048036038101906106d091906138cc565b6115d2565b005b6106df611668565b005b3480156106ed57600080fd5b506106f6611764565b60405161070391906136e6565b60405180910390f35b34801561071857600080fd5b5061072161178e565b60405161072e919061377c565b60405180910390f35b34801561074357600080fd5b5061074c611794565b6040516107599190613620565b60405180910390f35b34801561076e57600080fd5b50610777611826565b604051610784919061356c565b60405180910390f35b6107a760048036038101906107a29190613678565b611839565b005b3480156107b557600080fd5b506107d060048036038101906107cb9190613ace565b611aa5565b005b3480156107de57600080fd5b506107e7611abb565b6040516107f49190613620565b60405180910390f35b34801561080957600080fd5b50610812611b49565b005b34801561082057600080fd5b5061083b60048036038101906108369190613678565b611daa565b005b34801561084957600080fd5b50610864600480360381019061085f9190613baf565b611e30565b005b34801561087257600080fd5b5061088d60048036038101906108889190613678565b611e92565b60405161089a91906136e6565b60405180910390f35b3480156108af57600080fd5b506108b8611ed1565b6040516108c5919061377c565b60405180910390f35b3480156108da57600080fd5b506108f560048036038101906108f09190613678565b611ed7565b6040516109029190613620565b60405180910390f35b34801561091757600080fd5b50610932600480360381019061092d9190613678565b612030565b005b34801561094057600080fd5b506109496120b6565b604051610956919061377c565b60405180910390f35b34801561096b57600080fd5b5061098660048036038101906109819190613941565b6120bc565b005b34801561099457600080fd5b506109af60048036038101906109aa9190613c32565b612155565b6040516109bc919061356c565b60405180910390f35b3480156109d157600080fd5b506109ec60048036038101906109e79190613cd2565b6121e9565b005b3480156109fa57600080fd5b50610a156004803603810190610a109190613d1f565b612289565b005b348015610a2357600080fd5b50610a3e6004803603810190610a39919061396e565b61243d565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b1b5750610b1a82612535565b5b9050919050565b606060008054610b3190613d8e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5d90613d8e565b8015610baa5780601f10610b7f57610100808354040283529160200191610baa565b820191906000526020600020905b815481529060010190602001808311610b8d57829003601f168201915b5050505050905090565b6000610bbf8261259f565b610bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf590613e32565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c44826113e0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cac90613ec4565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cd461260b565b73ffffffffffffffffffffffffffffffffffffffff161480610d035750610d0281610cfd61260b565b612155565b5b610d42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3990613f56565b60405180910390fd5b610d4c8383612613565b505050565b600b5481565b610d5f61260b565b73ffffffffffffffffffffffffffffffffffffffff16610d7d611764565b73ffffffffffffffffffffffffffffffffffffffff1614610dd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dca90613fc2565b60405180910390fd5b8060099080519060200190610de9929190613354565b5050565b610df561260b565b73ffffffffffffffffffffffffffffffffffffffff16610e13611764565b73ffffffffffffffffffffffffffffffffffffffff1614610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6090613fc2565b60405180910390fd5b80600f60006101000a81548160ff02191690831515021790555050565b6000610e9260076126cc565b905090565b60116020528060005260406000206000915090505481565b610ec0610eba61260b565b826126da565b610eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef690614054565b60405180910390fd5b610f0a8383836127b8565b505050565b600080600090505b601080549050811015610fb3578273ffffffffffffffffffffffffffffffffffffffff1660108281548110610f4f57610f4e614074565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fa0576001915050610fb9565b8080610fab906140d2565b915050610f17565b50600090505b919050565b610fc661260b565b73ffffffffffffffffffffffffffffffffffffffff16610fe4611764565b73ffffffffffffffffffffffffffffffffffffffff161461103a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103190613fc2565b60405180910390fd5b80600f60026101000a81548160ff02191690831515021790555050565b61107283838360405180602001604052806000815250611e30565b505050565b6060600061108483611492565b905060008167ffffffffffffffff8111156110a2576110a16137a1565b5b6040519080825280602002602001820160405280156110d05781602001602082028036833780820191505090505b50905060006001905060005b83811080156110ed5750600c548211155b156111765760006110fd836113e0565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611162578284838151811061114757611146614074565b5b602002602001018181525050818061115e906140d2565b9250505b828061116d906140d2565b935050506110dc565b82945050505050919050565b61118a61260b565b73ffffffffffffffffffffffffffffffffffffffff166111a8611764565b73ffffffffffffffffffffffffffffffffffffffff16146111fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f590613fc2565b60405180910390fd5b80600b8190555050565b61121061260b565b73ffffffffffffffffffffffffffffffffffffffff1661122e611764565b73ffffffffffffffffffffffffffffffffffffffff1614611284576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127b90613fc2565b60405180910390fd5b80600a908051906020019061129a929190613354565b5050565b600f60019054906101000a900460ff1681565b600980546112be90613d8e565b80601f01602080910402602001604051908101604052809291908181526020018280546112ea90613d8e565b80156113375780601f1061130c57610100808354040283529160200191611337565b820191906000526020600020905b81548152906001019060200180831161131a57829003601f168201915b505050505081565b600f60009054906101000a900460ff1681565b6008805461135f90613d8e565b80601f016020809104026020016040519081016040528092919081815260200182805461138b90613d8e565b80156113d85780601f106113ad576101008083540402835291602001916113d8565b820191906000526020600020905b8154815290600101906020018083116113bb57829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611489576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114809061418d565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611503576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fa9061421f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61155261260b565b73ffffffffffffffffffffffffffffffffffffffff16611570611764565b73ffffffffffffffffffffffffffffffffffffffff16146115c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bd90613fc2565b60405180910390fd5b6115d06000612a1f565b565b6115da61260b565b73ffffffffffffffffffffffffffffffffffffffff166115f8611764565b73ffffffffffffffffffffffffffffffffffffffff161461164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590613fc2565b60405180910390fd5b8060089080519060200190611664929190613354565b5050565b61167061260b565b73ffffffffffffffffffffffffffffffffffffffff1661168e611764565b73ffffffffffffffffffffffffffffffffffffffff16146116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90613fc2565b60405180910390fd5b60006116ee611764565b73ffffffffffffffffffffffffffffffffffffffff164760405161171190614270565b60006040518083038185875af1925050503d806000811461174e576040519150601f19603f3d011682016040523d82523d6000602084013e611753565b606091505b505090508061176157600080fd5b50565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d5481565b6060600180546117a390613d8e565b80601f01602080910402602001604051908101604052809291908181526020018280546117cf90613d8e565b801561181c5780601f106117f15761010080835404028352916020019161181c565b820191906000526020600020905b8154815290600101906020018083116117ff57829003601f168201915b5050505050905090565b600f60029054906101000a900460ff1681565b80611842611764565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146118c6576000811180156118865750600d548111155b6118c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bc906142d1565b60405180910390fd5b5b60008111611909576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119009061433d565b60405180910390fd5b600c548161191760076126cc565b611921919061435d565b1115611962576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611959906143ff565b60405180910390fd5b61196a611764565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a975760011515600f60029054906101000a900460ff1615151415611a96576119c133610f0f565b611a00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f7906144b7565b60405180910390fd5b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600e548382611a53919061435d565b1115611a94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8b90614549565b60405180910390fd5b505b5b611aa13383612ae5565b5050565b611ab7611ab061260b565b8383612b7a565b5050565b600a8054611ac890613d8e565b80601f0160208091040260200160405190810160405280929190818152602001828054611af490613d8e565b8015611b415780601f10611b1657610100808354040283529160200191611b41565b820191906000526020600020905b815481529060010190602001808311611b2457829003601f168201915b505050505081565b611b5161260b565b73ffffffffffffffffffffffffffffffffffffffff16611b6f611764565b73ffffffffffffffffffffffffffffffffffffffff1614611bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbc90613fc2565b60405180910390fd5b60006014606447611bd69190614598565b611be091906145c9565b90506000601e606447611bf39190614598565b611bfd91906145c9565b905060006032606447611c109190614598565b611c1a91906145c9565b9050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015611c84573d6000803e3d6000fd5b50601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611ced573d6000803e3d6000fd5b50601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611d56573d6000803e3d6000fd5b50611d5f611764565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611da4573d6000803e3d6000fd5b50505050565b611db261260b565b73ffffffffffffffffffffffffffffffffffffffff16611dd0611764565b73ffffffffffffffffffffffffffffffffffffffff1614611e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1d90613fc2565b60405180910390fd5b80600d8190555050565b611e41611e3b61260b565b836126da565b611e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7790614054565b60405180910390fd5b611e8c84848484612ce7565b50505050565b60108181548110611ea257600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b6060611ee28261259f565b611f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1890614695565b60405180910390fd5b60001515600f60019054906101000a900460ff1615151415611fcf57600a8054611f4a90613d8e565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7690613d8e565b8015611fc35780601f10611f9857610100808354040283529160200191611fc3565b820191906000526020600020905b815481529060010190602001808311611fa657829003601f168201915b5050505050905061202b565b6000611fd9612d43565b90506000815111611ff95760405180602001604052806000815250612027565b8061200384612dd5565b600960405160200161201793929190614785565b6040516020818303038152906040525b9150505b919050565b61203861260b565b73ffffffffffffffffffffffffffffffffffffffff16612056611764565b73ffffffffffffffffffffffffffffffffffffffff16146120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a390613fc2565b60405180910390fd5b80600e8190555050565b600c5481565b6120c461260b565b73ffffffffffffffffffffffffffffffffffffffff166120e2611764565b73ffffffffffffffffffffffffffffffffffffffff1614612138576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212f90613fc2565b60405180910390fd5b80600f60016101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121f161260b565b73ffffffffffffffffffffffffffffffffffffffff1661220f611764565b73ffffffffffffffffffffffffffffffffffffffff1614612265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225c90613fc2565b60405180910390fd5b6010600061227391906133da565b8181601091906122849291906133fb565b505050565b81612292611764565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612316576000811180156122d65750600d548111155b612315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230c906142d1565b60405180910390fd5b5b60008111612359576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123509061433d565b60405180910390fd5b600c548161236760076126cc565b612371919061435d565b11156123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a9906143ff565b60405180910390fd5b6123ba61260b565b73ffffffffffffffffffffffffffffffffffffffff166123d8611764565b73ffffffffffffffffffffffffffffffffffffffff161461242e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242590613fc2565b60405180910390fd5b6124388284612ae5565b505050565b61244561260b565b73ffffffffffffffffffffffffffffffffffffffff16612463611764565b73ffffffffffffffffffffffffffffffffffffffff16146124b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b090613fc2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612529576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252090614828565b60405180910390fd5b61253281612a1f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612686836113e0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b60006126e58261259f565b612724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271b906148ba565b60405180910390fd5b600061272f836113e0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061279e57508373ffffffffffffffffffffffffffffffffffffffff1661278684610bb4565b73ffffffffffffffffffffffffffffffffffffffff16145b806127af57506127ae8185612155565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127d8826113e0565b73ffffffffffffffffffffffffffffffffffffffff161461282e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128259061494c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561289e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612895906149de565b60405180910390fd5b6128a9838383612f36565b6128b4600082612613565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461290491906149fe565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461295b919061435d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a1a838383612f3b565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60005b81811015612b7557612afa6007612f40565b601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612b4a906140d2565b9190505550612b6283612b5d60076126cc565b612f56565b8080612b6d906140d2565b915050612ae8565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be090614a7e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612cda919061356c565b60405180910390a3505050565b612cf28484846127b8565b612cfe84848484612f74565b612d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3490614b10565b60405180910390fd5b50505050565b606060088054612d5290613d8e565b80601f0160208091040260200160405190810160405280929190818152602001828054612d7e90613d8e565b8015612dcb5780601f10612da057610100808354040283529160200191612dcb565b820191906000526020600020905b815481529060010190602001808311612dae57829003601f168201915b5050505050905090565b60606000821415612e1d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f31565b600082905060005b60008214612e4f578080612e38906140d2565b915050600a82612e489190614598565b9150612e25565b60008167ffffffffffffffff811115612e6b57612e6a6137a1565b5b6040519080825280601f01601f191660200182016040528015612e9d5781602001600182028036833780820191505090505b5090505b60008514612f2a57600182612eb691906149fe565b9150600a85612ec59190614b30565b6030612ed1919061435d565b60f81b818381518110612ee757612ee6614074565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f239190614598565b9450612ea1565b8093505050505b919050565b505050565b505050565b6001816000016000828254019250508190555050565b612f708282604051806020016040528060008152506130fc565b5050565b6000612f958473ffffffffffffffffffffffffffffffffffffffff16613157565b156130ef578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612fbe61260b565b8786866040518563ffffffff1660e01b8152600401612fe09493929190614bb6565b6020604051808303816000875af192505050801561301c57506040513d601f19601f820116820180604052508101906130199190614c17565b60015b61309f573d806000811461304c576040519150601f19603f3d011682016040523d82523d6000602084013e613051565b606091505b50600081511415613097576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308e90614b10565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130f4565b600190505b949350505050565b613106838361317a565b6131136000848484612f74565b613152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161314990614b10565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131e190614c90565b60405180910390fd5b6131f38161259f565b15613233576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161322a90614cfc565b60405180910390fd5b61323f60008383612f36565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461328f919061435d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461335060008383612f3b565b5050565b82805461336090613d8e565b90600052602060002090601f01602090048101928261338257600085556133c9565b82601f1061339b57805160ff19168380011785556133c9565b828001600101855582156133c9579182015b828111156133c85782518255916020019190600101906133ad565b5b5090506133d6919061349b565b5090565b50805460008255906000526020600020908101906133f8919061349b565b50565b82805482825590600052602060002090810192821561348a579160200282015b8281111561348957823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061341b565b5b509050613497919061349b565b5090565b5b808211156134b457600081600090555060010161349c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613501816134cc565b811461350c57600080fd5b50565b60008135905061351e816134f8565b92915050565b60006020828403121561353a576135396134c2565b5b60006135488482850161350f565b91505092915050565b60008115159050919050565b61356681613551565b82525050565b6000602082019050613581600083018461355d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156135c15780820151818401526020810190506135a6565b838111156135d0576000848401525b50505050565b6000601f19601f8301169050919050565b60006135f282613587565b6135fc8185613592565b935061360c8185602086016135a3565b613615816135d6565b840191505092915050565b6000602082019050818103600083015261363a81846135e7565b905092915050565b6000819050919050565b61365581613642565b811461366057600080fd5b50565b6000813590506136728161364c565b92915050565b60006020828403121561368e5761368d6134c2565b5b600061369c84828501613663565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136d0826136a5565b9050919050565b6136e0816136c5565b82525050565b60006020820190506136fb60008301846136d7565b92915050565b61370a816136c5565b811461371557600080fd5b50565b60008135905061372781613701565b92915050565b60008060408385031215613744576137436134c2565b5b600061375285828601613718565b925050602061376385828601613663565b9150509250929050565b61377681613642565b82525050565b6000602082019050613791600083018461376d565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6137d9826135d6565b810181811067ffffffffffffffff821117156137f8576137f76137a1565b5b80604052505050565b600061380b6134b8565b905061381782826137d0565b919050565b600067ffffffffffffffff821115613837576138366137a1565b5b613840826135d6565b9050602081019050919050565b82818337600083830152505050565b600061386f61386a8461381c565b613801565b90508281526020810184848401111561388b5761388a61379c565b5b61389684828561384d565b509392505050565b600082601f8301126138b3576138b2613797565b5b81356138c384826020860161385c565b91505092915050565b6000602082840312156138e2576138e16134c2565b5b600082013567ffffffffffffffff811115613900576138ff6134c7565b5b61390c8482850161389e565b91505092915050565b61391e81613551565b811461392957600080fd5b50565b60008135905061393b81613915565b92915050565b600060208284031215613957576139566134c2565b5b60006139658482850161392c565b91505092915050565b600060208284031215613984576139836134c2565b5b600061399284828501613718565b91505092915050565b6000806000606084860312156139b4576139b36134c2565b5b60006139c286828701613718565b93505060206139d386828701613718565b92505060406139e486828701613663565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613a2381613642565b82525050565b6000613a358383613a1a565b60208301905092915050565b6000602082019050919050565b6000613a59826139ee565b613a6381856139f9565b9350613a6e83613a0a565b8060005b83811015613a9f578151613a868882613a29565b9750613a9183613a41565b925050600181019050613a72565b5085935050505092915050565b60006020820190508181036000830152613ac68184613a4e565b905092915050565b60008060408385031215613ae557613ae46134c2565b5b6000613af385828601613718565b9250506020613b048582860161392c565b9150509250929050565b600067ffffffffffffffff821115613b2957613b286137a1565b5b613b32826135d6565b9050602081019050919050565b6000613b52613b4d84613b0e565b613801565b905082815260208101848484011115613b6e57613b6d61379c565b5b613b7984828561384d565b509392505050565b600082601f830112613b9657613b95613797565b5b8135613ba6848260208601613b3f565b91505092915050565b60008060008060808587031215613bc957613bc86134c2565b5b6000613bd787828801613718565b9450506020613be887828801613718565b9350506040613bf987828801613663565b925050606085013567ffffffffffffffff811115613c1a57613c196134c7565b5b613c2687828801613b81565b91505092959194509250565b60008060408385031215613c4957613c486134c2565b5b6000613c5785828601613718565b9250506020613c6885828601613718565b9150509250929050565b600080fd5b600080fd5b60008083601f840112613c9257613c91613797565b5b8235905067ffffffffffffffff811115613caf57613cae613c72565b5b602083019150836020820283011115613ccb57613cca613c77565b5b9250929050565b60008060208385031215613ce957613ce86134c2565b5b600083013567ffffffffffffffff811115613d0757613d066134c7565b5b613d1385828601613c7c565b92509250509250929050565b60008060408385031215613d3657613d356134c2565b5b6000613d4485828601613663565b9250506020613d5585828601613718565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613da657607f821691505b60208210811415613dba57613db9613d5f565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613e1c602c83613592565b9150613e2782613dc0565b604082019050919050565b60006020820190508181036000830152613e4b81613e0f565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613eae602183613592565b9150613eb982613e52565b604082019050919050565b60006020820190508181036000830152613edd81613ea1565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613f40603883613592565b9150613f4b82613ee4565b604082019050919050565b60006020820190508181036000830152613f6f81613f33565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613fac602083613592565b9150613fb782613f76565b602082019050919050565b60006020820190508181036000830152613fdb81613f9f565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061403e603183613592565b915061404982613fe2565b604082019050919050565b6000602082019050818103600083015261406d81614031565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006140dd82613642565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156141105761410f6140a3565b5b600182019050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614177602983613592565b91506141828261411b565b604082019050919050565b600060208201905081810360008301526141a68161416a565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614209602a83613592565b9150614214826141ad565b604082019050919050565b60006020820190508181036000830152614238816141fc565b9050919050565b600081905092915050565b50565b600061425a60008361423f565b91506142658261424a565b600082019050919050565b600061427b8261424d565b9150819050919050565b7f416d6f756e74206572726f722e00000000000000000000000000000000000000600082015250565b60006142bb600d83613592565b91506142c682614285565b602082019050919050565b600060208201905081810360008301526142ea816142ae565b9050919050565b7f4d757374206d696e74206d6f7265207468616e20302e00000000000000000000600082015250565b6000614327601683613592565b9150614332826142f1565b602082019050919050565b600060208201905081810360008301526143568161431a565b9050919050565b600061436882613642565b915061437383613642565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143a8576143a76140a3565b5b828201905092915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b60006143e9601483613592565b91506143f4826143b3565b602082019050919050565b60006020820190508181036000830152614418816143dc565b9050919050565b7f596f7520617265206e6f742077686974656c697374656420666f72204242767360008201527f45412e20506c6561736520636f6d65206261636b206c6174657220666f72207060208201527f75626c69632073616c652e000000000000000000000000000000000000000000604082015250565b60006144a1604b83613592565b91506144ac8261441f565b606082019050919050565b600060208201905081810360008301526144d081614494565b9050919050565b7f4d6178204e465473207065722077616c6c657420686173206265656e2065786360008201527f65656465642e0000000000000000000000000000000000000000000000000000602082015250565b6000614533602683613592565b915061453e826144d7565b604082019050919050565b6000602082019050818103600083015261456281614526565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006145a382613642565b91506145ae83613642565b9250826145be576145bd614569565b5b828204905092915050565b60006145d482613642565b91506145df83613642565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614618576146176140a3565b5b828202905092915050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061467f602f83613592565b915061468a82614623565b604082019050919050565b600060208201905081810360008301526146ae81614672565b9050919050565b600081905092915050565b60006146cb82613587565b6146d581856146b5565b93506146e58185602086016135a3565b80840191505092915050565b60008190508160005260206000209050919050565b6000815461471381613d8e565b61471d81866146b5565b9450600182166000811461473857600181146147495761477c565b60ff1983168652818601935061477c565b614752856146f1565b60005b8381101561477457815481890152600182019150602081019050614755565b838801955050505b50505092915050565b600061479182866146c0565b915061479d82856146c0565b91506147a98284614706565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614812602683613592565b915061481d826147b6565b604082019050919050565b6000602082019050818103600083015261484181614805565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006148a4602c83613592565b91506148af82614848565b604082019050919050565b600060208201905081810360008301526148d381614897565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614936602583613592565b9150614941826148da565b604082019050919050565b6000602082019050818103600083015261496581614929565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006149c8602483613592565b91506149d38261496c565b604082019050919050565b600060208201905081810360008301526149f7816149bb565b9050919050565b6000614a0982613642565b9150614a1483613642565b925082821015614a2757614a266140a3565b5b828203905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614a68601983613592565b9150614a7382614a32565b602082019050919050565b60006020820190508181036000830152614a9781614a5b565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614afa603283613592565b9150614b0582614a9e565b604082019050919050565b60006020820190508181036000830152614b2981614aed565b9050919050565b6000614b3b82613642565b9150614b4683613642565b925082614b5657614b55614569565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b6000614b8882614b61565b614b928185614b6c565b9350614ba28185602086016135a3565b614bab816135d6565b840191505092915050565b6000608082019050614bcb60008301876136d7565b614bd860208301866136d7565b614be5604083018561376d565b8181036060830152614bf78184614b7d565b905095945050505050565b600081519050614c11816134f8565b92915050565b600060208284031215614c2d57614c2c6134c2565b5b6000614c3b84828501614c02565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614c7a602083613592565b9150614c8582614c44565b602082019050919050565b60006020820190508181036000830152614ca981614c6d565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614ce6601c83613592565b9150614cf182614cb0565b602082019050919050565b60006020820190508181036000830152614d1581614cd9565b905091905056fea26469706673582212204bc4e118e5c4f463c91d3b1477ae09cd5dedac35686aa451e8cbbb8341fed8ae64736f6c634300080a0033

Verified Source Code Full Match

Compiler: v0.8.10+commit.fc410830 EVM: london Optimization: No
BeachBabes.sol 1380 lines
// SPDX-License-Identifier: MIT

                                                                                                                                       
/**                                                                                                                                       
* BBBBBBBBBBBBBBBBB   BBBBBBBBBBBBBBBBB                                           EEEEEEEEEEEEEEEEEEEEEE               AAA               
* B::::::::::::::::B  B::::::::::::::::B                                          E::::::::::::::::::::E              A:::A              
* B::::::BBBBBB:::::B B::::::BBBBBB:::::B                                         E::::::::::::::::::::E             A:::::A             
* BB:::::B     B:::::BBB:::::B     B:::::B                                        EE::::::EEEEEEEEE::::E            A:::::::A            
*   B::::B     B:::::B  B::::B     B:::::Bvvvvvvv           vvvvvvv  ssssssssss     E:::::E       EEEEEE           A:::::::::A           
*   B::::B     B:::::B  B::::B     B:::::B v:::::v         v:::::v ss::::::::::s    E:::::E                       A:::::A:::::A          
*   B::::BBBBBB:::::B   B::::BBBBBB:::::B   v:::::v       v:::::vss:::::::::::::s   E::::::EEEEEEEEEE            A:::::A A:::::A         
*   B:::::::::::::BB    B:::::::::::::BB     v:::::v     v:::::v s::::::ssss:::::s  E:::::::::::::::E           A:::::A   A:::::A        
*   B::::BBBBBB:::::B   B::::BBBBBB:::::B     v:::::v   v:::::v   s:::::s  ssssss   E:::::::::::::::E          A:::::A     A:::::A       
*   B::::B     B:::::B  B::::B     B:::::B     v:::::v v:::::v      s::::::s        E::::::EEEEEEEEEE         A:::::AAAAAAAAA:::::A      
*   B::::B     B:::::B  B::::B     B:::::B      v:::::v:::::v          s::::::s     E:::::E                  A:::::::::::::::::::::A     
*   B::::B     B:::::B  B::::B     B:::::B       v:::::::::v     ssssss   s:::::s   E:::::E       EEEEEE    A:::::AAAAAAAAAAAAA:::::A    
* BB:::::BBBBBB::::::BBB:::::BBBBBB::::::B        v:::::::v      s:::::ssss::::::sEE::::::EEEEEEEE:::::E   A:::::A             A:::::A   
* B:::::::::::::::::B B:::::::::::::::::B          v:::::v       s::::::::::::::s E::::::::::::::::::::E  A:::::A               A:::::A  
* B::::::::::::::::B  B::::::::::::::::B            v:::v         s:::::::::::ss  E::::::::::::::::::::E A:::::A                 A:::::A 
* BBBBBBBBBBBBBBBBB   BBBBBBBBBBBBBBBBB              vvv           sssssssssss    EEEEEEEEEEEEEEEEEEEEEEAAAAAAA       .com        AAAAAAA
*/  





// File: @openzeppelin/contracts/utils/Counters.sol
// 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;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// 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);
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// 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;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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);
    }
}

// File: @openzeppelin/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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);
}

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
     * @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;
}

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // 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;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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 See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), 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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: BeachBabes.sol

pragma solidity >=0.7.0 <0.9.0;




contract BeachBabes is ERC721, Ownable {
  using Strings for uint256;
  using Counters for Counters.Counter;

  Counters.Counter private supply;

  string public uriPrefix = "";
  string public uriSuffix = ".json";
  string public hiddenMetadataUri;
  
  uint256 public cost = 0.07 ether;
  uint256 public maxSupply = 10000;
  uint256 public maxMintAmountPerTx = 3;
  uint256 public nftPerAddressLimit = 6;

  bool public paused = true;
  bool public revealed = false;

  bool public onlyWhitelisted = true;
  address[] public whitelistedAddresses;
  mapping(address => uint256) public addressMintedBalance;

  address payable private _t0x0 = payable(0xC83aCDC2A913282E55710e6D6ACa5De034cB74FF);
  address payable private _x0x0 = payable(0x7d6983D3A336bBfDF940A56226DCc65242e2cBEA);
  address payable private _m0x0 = payable(0x7e3a955CF25553c7893062153B42eefF0c102872); 


  constructor() ERC721("Beach Babes", "BBABE") {
    setHiddenMetadataUri("https://bbvsea.mypinata.cloud/ipfs/QmTbn7av4pDBegkRje9tXu6f2cPhVKXApnRifQPXpfL6TU");
  }

  modifier mintCompliance(uint256 _mintAmount) {
    if (msg.sender != owner()) {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Amount error.");
    }
    require(_mintAmount > 0, "Must mint more than 0.");
    require(supply.current() + _mintAmount <= maxSupply, "Max supply exceeded!");
    _;
  }

  function totalSupply() public view returns (uint256) {
    return supply.current();
  }

  function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount){

    if (msg.sender != owner()) {
        if(onlyWhitelisted == true) {
            require(isWhitelisted(msg.sender), "You are not whitelisted for BBvsEA. Please come back later for public sale.");
            uint256 ownerMintedCount = addressMintedBalance[msg.sender];
            require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "Max NFTs per wallet has been exceeded.");
        }
    }

        _mintLoop(msg.sender, _mintAmount);
  }


  function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner {
    _mintLoop(_receiver, _mintAmount);
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = 1;
    uint256 ownedTokenIndex = 0;

    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
      address currentTokenOwner = ownerOf(currentTokenId);

      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;

        ownedTokenIndex++;
      }

      currentTokenId++;
    }

    return ownedTokenIds;
  }

  function tokenURI(uint256 _tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(_tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    if (revealed == false) {
      return hiddenMetadataUri;
    }

    string memory currentBaseURI = _baseURI();
    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix))
        : "";
  }

// private functions

  function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
    nftPerAddressLimit = _limit;
  }

  function setRevealed(bool _state) public onlyOwner {
    revealed = _state;
  }

  function setCost(uint256 _cost) public onlyOwner {
    cost = _cost;
  }

  function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner {
    maxMintAmountPerTx = _maxMintAmountPerTx;
  }

  function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner {
    hiddenMetadataUri = _hiddenMetadataUri;
  }

  function setUriPrefix(string memory _uriPrefix) public onlyOwner {
    uriPrefix = _uriPrefix;
  }

  function setUriSuffix(string memory _uriSuffix) public onlyOwner {
    uriSuffix = _uriSuffix;
  }

  function setPaused(bool _state) public onlyOwner {
    paused = _state;
  }

  function _mintLoop(address _receiver, uint256 _mintAmount) internal {
    for (uint256 i = 0; i < _mintAmount; i++) {
      supply.increment();
      addressMintedBalance[msg.sender]++;
      _safeMint(_receiver, supply.current());
    }
  }

  function _baseURI() internal view virtual override returns (string memory) {
    return uriPrefix;
  }

  function withdrawAll() public payable onlyOwner {
    (bool os, ) = payable(owner()).call{value: address(this).balance}("");
    require(os);
  }

  function withdrawSplit() external onlyOwner {
    uint _tc = address(this).balance / 100 * 20;
    uint _mc = address(this).balance / 100 * 30;
    uint _xc = address(this).balance / 100 * 50;
    _t0x0.transfer(_tc);
    _m0x0.transfer(_mc);
    _x0x0.transfer(_xc);
    payable(owner()).transfer(address(this).balance);
    }


//whitelist
  function setOnlyWhitelisted(bool _state) public onlyOwner {
    onlyWhitelisted = _state;
  }
  
  function whitelistUsers(address[] calldata _users) public onlyOwner {
    delete whitelistedAddresses;
    whitelistedAddresses = _users;
  }

  function isWhitelisted(address _user) public view returns (bool) {
    for (uint i = 0; i < whitelistedAddresses.length; i++) {
      if (whitelistedAddresses[i] == _user) {
          return true;
      }
    }
    return false;
  }

}

Read Contract

addressMintedBalance 0x18cae269 → uint256
balanceOf 0x70a08231 → uint256
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
hiddenMetadataUri 0xa45ba8e7 → string
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
maxMintAmountPerTx 0x94354fd0 → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
nftPerAddressLimit 0xba7d2c76 → uint256
onlyWhitelisted 0x9c70b512 → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
uriPrefix 0x62b99ad4 → string
uriSuffix 0x5503a0e8 → string
walletOfOwner 0x438b6300 → uint256[]
whitelistedAddresses 0xba4e5c49 → address

Write Contract 21 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _mintAmount
mintForAddress 0xefbd73f4
uint256 _mintAmount
address _receiver
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
setCost 0x44a0d68a
uint256 _cost
setHiddenMetadataUri 0x4fdd43cb
string _hiddenMetadataUri
setMaxMintAmountPerTx 0xb071401b
uint256 _maxMintAmountPerTx
setNftPerAddressLimit 0xd0eb26b0
uint256 _limit
setOnlyWhitelisted 0x3c952764
bool _state
setPaused 0x16c38b3c
bool _state
setRevealed 0xe0a80853
bool _state
setUriPrefix 0x7ec4a659
string _uriPrefix
setUriSuffix 0x16ba10e0
string _uriSuffix
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whitelistUsers 0xedec5f27
address[] _users
withdrawAll 0x853828b6
No parameters
withdrawSplit 0xa50e89ff
No parameters

Recent Transactions

No transactions found for this address