Address Contract Verified
Address
0xBB1684894A11edc106781ebF2a715303d241aC08
Balance
0 ETH
Nonce
1
Code Size
17897 bytes
Creator
0x922Fed87...a37e at tx 0x2fb8da99...be742f
Indexed Transactions
0
Contract Bytecode
17897 bytes
0x6080604052600436106102255760003560e01c806370a0823111610123578063bb51f32d116100ab578063d96a094a1161006f578063d96a094a146107e1578063e081b781146107fd578063e985e9c514610828578063ecc9339d14610865578063f2fde38b1461089057610225565b8063bb51f32d1461070e578063c029efa914610725578063c87b56dd14610750578063cb9eb5331461078d578063d94df301146107b657610225565b8063940f1ada116100f2578063940f1ada1461063d57806395d89b4114610668578063a22cb46514610693578063a5dd8000146106bc578063b88d4fde146106e557610225565b806370a0823114610595578063715018a6146105d25780638da5cb5b146105e957806391b7f5ed1461061457610225565b806323b872dd116101b157806355f804b31161017557806355f804b3146104ae5780635945cc1c146104d75780635b97a972146105025780636352211e1461052d57806368fc75001461056a57610225565b806323b872dd146103b95780632f745c59146103e257806342842e0e1461041f5780634f6ccce714610448578063544867581461048557610225565b8063095ea7b3116101f8578063095ea7b3146102e65780630badc92b1461030f578063163e1e611461033a57806318160ddd146103635780631b57190e1461038e57610225565b806301ffc9a71461022a578063049c5c491461026757806306fdde031461027e578063081812fc146102a9575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906130cc565b6108b9565b60405161025e9190613708565b60405180910390f35b34801561027357600080fd5b5061027c610933565b005b34801561028a57600080fd5b506102936109db565b6040516102a09190613723565b60405180910390f35b3480156102b557600080fd5b506102d060048036038101906102cb9190613173565b610a6d565b6040516102dd91906136a1565b60405180910390f35b3480156102f257600080fd5b5061030d6004803603810190610308919061303f565b610af2565b005b34801561031b57600080fd5b50610324610c0a565b6040516103319190613a85565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c919061307f565b610c10565b005b34801561036f57600080fd5b50610378610dcf565b6040516103859190613a85565b60405180910390f35b34801561039a57600080fd5b506103a3610ddc565b6040516103b09190613a85565b60405180910390f35b3480156103c557600080fd5b506103e060048036038101906103db9190612f29565b610de2565b005b3480156103ee57600080fd5b506104096004803603810190610404919061303f565b610e42565b6040516104169190613a85565b60405180910390f35b34801561042b57600080fd5b5061044660048036038101906104419190612f29565b610ee7565b005b34801561045457600080fd5b5061046f600480360381019061046a9190613173565b610f07565b60405161047c9190613a85565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a79190613173565b610f78565b005b3480156104ba57600080fd5b506104d560048036038101906104d09190613126565b610ffe565b005b3480156104e357600080fd5b506104ec611090565b6040516104f99190613a85565b60405180910390f35b34801561050e57600080fd5b50610517611096565b6040516105249190613a85565b60405180910390f35b34801561053957600080fd5b50610554600480360381019061054f9190613173565b61109b565b60405161056191906136a1565b60405180910390f35b34801561057657600080fd5b5061057f61114d565b60405161058c9190613a85565b60405180910390f35b3480156105a157600080fd5b506105bc60048036038101906105b79190612ebc565b611153565b6040516105c99190613a85565b60405180910390f35b3480156105de57600080fd5b506105e761120b565b005b3480156105f557600080fd5b506105fe611293565b60405161060b91906136a1565b60405180910390f35b34801561062057600080fd5b5061063b60048036038101906106369190613173565b6112bd565b005b34801561064957600080fd5b50610652611343565b60405161065f9190613a85565b60405180910390f35b34801561067457600080fd5b5061067d611349565b60405161068a9190613723565b60405180910390f35b34801561069f57600080fd5b506106ba60048036038101906106b59190612fff565b6113db565b005b3480156106c857600080fd5b506106e360048036038101906106de9190613173565b61155c565b005b3480156106f157600080fd5b5061070c60048036038101906107079190612f7c565b6115f8565b005b34801561071a57600080fd5b5061072361165a565b005b34801561073157600080fd5b5061073a611725565b6040516107479190613a85565b60405180910390f35b34801561075c57600080fd5b5061077760048036038101906107729190613173565b61172b565b6040516107849190613723565b60405180910390f35b34801561079957600080fd5b506107b460048036038101906107af9190613173565b6117a7565b005b3480156107c257600080fd5b506107cb611843565b6040516107d89190613a85565b60405180910390f35b6107fb60048036038101906107f69190613173565b611849565b005b34801561080957600080fd5b50610812611aa9565b60405161081f9190613708565b60405180910390f35b34801561083457600080fd5b5061084f600480360381019061084a9190612ee9565b611abc565b60405161085c9190613708565b60405180910390f35b34801561087157600080fd5b5061087a611b50565b6040516108879190613a85565b60405180910390f35b34801561089c57600080fd5b506108b760048036038101906108b29190612ebc565b611b56565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092c575061092b82611c4e565b5b9050919050565b61093b611d30565b73ffffffffffffffffffffffffffffffffffffffff16610959611293565b73ffffffffffffffffffffffffffffffffffffffff16146109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a690613965565b60405180910390fd5b601460009054906101000a900460ff1615601460006101000a81548160ff021916908315150217905550565b6060600080546109ea90613d19565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1690613d19565b8015610a635780601f10610a3857610100808354040283529160200191610a63565b820191906000526020600020905b815481529060010190602001808311610a4657829003601f168201915b5050505050905090565b6000610a7882611d38565b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae90613945565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afd8261109b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590613a05565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8d611d30565b73ffffffffffffffffffffffffffffffffffffffff161480610bbc5750610bbb81610bb6611d30565b611abc565b5b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290613885565b60405180910390fd5b610c058383611da4565b505050565b600e5481565b610c18611d30565b73ffffffffffffffffffffffffffffffffffffffff16610c36611293565b73ffffffffffffffffffffffffffffffffffffffff1614610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8390613965565b60405180910390fd5b600d54828290506001610c9d610dcf565b610ca79190613b4e565b610cb19190613b4e565b1115610cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce990613905565b60405180910390fd5b600b5482829050601254610d069190613b4e565b1115610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e906139a5565b60405180910390fd5b60005b82829050811015610dca5760006001610d61610dcf565b610d6b9190613b4e565b9050610d9e848484818110610d8357610d82613eb2565b5b9050602002016020810190610d989190612ebc565b82611e5d565b60126000815480929190610db190613d7c565b9190505550508080610dc290613d7c565b915050610d4a565b505050565b6000600880549050905090565b60125481565b610df3610ded611d30565b82611e7b565b610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990613a45565b60405180910390fd5b610e3d838383611f59565b505050565b6000610e4d83611153565b8210610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590613745565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f02838383604051806020016040528060008152506115f8565b505050565b6000610f11610dcf565b8210610f52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4990613a65565b60405180910390fd5b60088281548110610f6657610f65613eb2565b5b90600052602060002001549050919050565b610f80611d30565b73ffffffffffffffffffffffffffffffffffffffff16610f9e611293565b73ffffffffffffffffffffffffffffffffffffffff1614610ff4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610feb90613965565b60405180910390fd5b8060108190555050565b611006611d30565b73ffffffffffffffffffffffffffffffffffffffff16611024611293565b73ffffffffffffffffffffffffffffffffffffffff161461107a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107190613965565b60405180910390fd5b81816011919061108b929190612c94565b505050565b60105481565b600181565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611144576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113b906138c5565b60405180910390fd5b80915050919050565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb906138a5565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611213611d30565b73ffffffffffffffffffffffffffffffffffffffff16611231611293565b73ffffffffffffffffffffffffffffffffffffffff1614611287576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127e90613965565b60405180910390fd5b61129160006121b5565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112c5611d30565b73ffffffffffffffffffffffffffffffffffffffff166112e3611293565b73ffffffffffffffffffffffffffffffffffffffff1614611339576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133090613965565b60405180910390fd5b80600e8190555050565b60135481565b60606001805461135890613d19565b80601f016020809104026020016040519081016040528092919081815260200182805461138490613d19565b80156113d15780601f106113a6576101008083540402835291602001916113d1565b820191906000526020600020905b8154815290600101906020018083116113b457829003601f168201915b5050505050905090565b6113e3611d30565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890613805565b60405180910390fd5b806005600061145e611d30565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661150b611d30565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516115509190613708565b60405180910390a35050565b611564611d30565b73ffffffffffffffffffffffffffffffffffffffff16611582611293565b73ffffffffffffffffffffffffffffffffffffffff16146115d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cf90613965565b60405180910390fd5b80600b81905550600c54600b546115ef9190613b4e565b600d8190555050565b611609611603611d30565b83611e7b565b611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163f90613a45565b60405180910390fd5b6116548484848461227b565b50505050565b611662611d30565b73ffffffffffffffffffffffffffffffffffffffff16611680611293565b73ffffffffffffffffffffffffffffffffffffffff16146116d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116cd90613965565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611721573d6000803e3d6000fd5b5050565b600f5481565b606061173682611d38565b611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c906139e5565b60405180910390fd5b6011611780836122d7565b60405160200161179192919061367d565b6040516020818303038152906040529050919050565b6117af611d30565b73ffffffffffffffffffffffffffffffffffffffff166117cd611293565b73ffffffffffffffffffffffffffffffffffffffff1614611823576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181a90613965565b60405180910390fd5b80600c81905550600c54600b5461183a9190613b4e565b600d8190555050565b600c5481565b601460009054906101000a900460ff16611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f90613825565b60405180910390fd5b600d5460016118a5610dcf565b6118af9190613b4e565b106118ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e6906137c5565b60405180910390fd5b600c54816013546119009190613b4e565b1115611941576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193890613a25565b60405180910390fd5b601054811115611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d906138e5565b60405180910390fd5b60005b81811015611aa5576000600161199d610dcf565b6119a79190613b4e565b905061022b811015611a1e5760018311156119f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ee90613865565b60405180910390fd5b611a013382611e5d565b60136000815480929190611a1490613d7c565b9190505550611a91565b3483600e54611a2d9190613bd5565b1115611a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6590613985565b60405180910390fd5b611a783382611e5d565b60136000815480929190611a8b90613d7c565b91905055505b508080611a9d90613d7c565b915050611989565b5050565b601460009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600b5481565b611b5e611d30565b73ffffffffffffffffffffffffffffffffffffffff16611b7c611293565b73ffffffffffffffffffffffffffffffffffffffff1614611bd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc990613965565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3990613785565b60405180910390fd5b611c4b816121b5565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d1957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611d295750611d2882612438565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e178361109b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611e778282604051806020016040528060008152506124a2565b5050565b6000611e8682611d38565b611ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebc90613845565b60405180910390fd5b6000611ed08361109b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f3f57508373ffffffffffffffffffffffffffffffffffffffff16611f2784610a6d565b73ffffffffffffffffffffffffffffffffffffffff16145b80611f505750611f4f8185611abc565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611f798261109b565b73ffffffffffffffffffffffffffffffffffffffff1614611fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fc6906139c5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561203f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612036906137e5565b60405180910390fd5b61204a8383836124fd565b612055600082611da4565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120a59190613c2f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120fc9190613b4e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612286848484611f59565b61229284848484612611565b6122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c890613765565b60405180910390fd5b50505050565b6060600082141561231f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612433565b600082905060005b6000821461235157808061233a90613d7c565b915050600a8261234a9190613ba4565b9150612327565b60008167ffffffffffffffff81111561236d5761236c613ee1565b5b6040519080825280601f01601f19166020018201604052801561239f5781602001600182028036833780820191505090505b5090505b6000851461242c576001826123b89190613c2f565b9150600a856123c79190613dc5565b60306123d39190613b4e565b60f81b8183815181106123e9576123e8613eb2565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856124259190613ba4565b94506123a3565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6124ac83836127a8565b6124b96000848484612611565b6124f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ef90613765565b60405180910390fd5b505050565b612508838383612976565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561254b576125468161297b565b61258a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146125895761258883826129c4565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125cd576125c881612b31565b61260c565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461260b5761260a8282612c02565b5b5b505050565b60006126328473ffffffffffffffffffffffffffffffffffffffff16612c81565b1561279b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261265b611d30565b8786866040518563ffffffff1660e01b815260040161267d94939291906136bc565b602060405180830381600087803b15801561269757600080fd5b505af19250505080156126c857506040513d601f19601f820116820180604052508101906126c591906130f9565b60015b61274b573d80600081146126f8576040519150601f19603f3d011682016040523d82523d6000602084013e6126fd565b606091505b50600081511415612743576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273a90613765565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127a0565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612818576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161280f90613925565b60405180910390fd5b61282181611d38565b15612861576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612858906137a5565b60405180910390fd5b61286d600083836124fd565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128bd9190613b4e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016129d184611153565b6129db9190613c2f565b9050600060076000848152602001908152602001600020549050818114612ac0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612b459190613c2f565b9050600060096000848152602001908152602001600020549050600060088381548110612b7557612b74613eb2565b5b906000526020600020015490508060088381548110612b9757612b96613eb2565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612be657612be5613e83565b5b6001900381819060005260206000200160009055905550505050565b6000612c0d83611153565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054612ca090613d19565b90600052602060002090601f016020900481019282612cc25760008555612d09565b82601f10612cdb57803560ff1916838001178555612d09565b82800160010185558215612d09579182015b82811115612d08578235825591602001919060010190612ced565b5b509050612d169190612d1a565b5090565b5b80821115612d33576000816000905550600101612d1b565b5090565b6000612d4a612d4584613ac5565b613aa0565b905082815260208101848484011115612d6657612d65613f1f565b5b612d71848285613cd7565b509392505050565b600081359050612d8881614557565b92915050565b60008083601f840112612da457612da3613f15565b5b8235905067ffffffffffffffff811115612dc157612dc0613f10565b5b602083019150836020820283011115612ddd57612ddc613f1a565b5b9250929050565b600081359050612df38161456e565b92915050565b600081359050612e0881614585565b92915050565b600081519050612e1d81614585565b92915050565b600082601f830112612e3857612e37613f15565b5b8135612e48848260208601612d37565b91505092915050565b60008083601f840112612e6757612e66613f15565b5b8235905067ffffffffffffffff811115612e8457612e83613f10565b5b602083019150836001820283011115612ea057612e9f613f1a565b5b9250929050565b600081359050612eb68161459c565b92915050565b600060208284031215612ed257612ed1613f29565b5b6000612ee084828501612d79565b91505092915050565b60008060408385031215612f0057612eff613f29565b5b6000612f0e85828601612d79565b9250506020612f1f85828601612d79565b9150509250929050565b600080600060608486031215612f4257612f41613f29565b5b6000612f5086828701612d79565b9350506020612f6186828701612d79565b9250506040612f7286828701612ea7565b9150509250925092565b60008060008060808587031215612f9657612f95613f29565b5b6000612fa487828801612d79565b9450506020612fb587828801612d79565b9350506040612fc687828801612ea7565b925050606085013567ffffffffffffffff811115612fe757612fe6613f24565b5b612ff387828801612e23565b91505092959194509250565b6000806040838503121561301657613015613f29565b5b600061302485828601612d79565b925050602061303585828601612de4565b9150509250929050565b6000806040838503121561305657613055613f29565b5b600061306485828601612d79565b925050602061307585828601612ea7565b9150509250929050565b6000806020838503121561309657613095613f29565b5b600083013567ffffffffffffffff8111156130b4576130b3613f24565b5b6130c085828601612d8e565b92509250509250929050565b6000602082840312156130e2576130e1613f29565b5b60006130f084828501612df9565b91505092915050565b60006020828403121561310f5761310e613f29565b5b600061311d84828501612e0e565b91505092915050565b6000806020838503121561313d5761313c613f29565b5b600083013567ffffffffffffffff81111561315b5761315a613f24565b5b61316785828601612e51565b92509250509250929050565b60006020828403121561318957613188613f29565b5b600061319784828501612ea7565b91505092915050565b6131a981613c63565b82525050565b6131b881613c75565b82525050565b60006131c982613b0b565b6131d38185613b21565b93506131e3818560208601613ce6565b6131ec81613f2e565b840191505092915050565b600061320282613b16565b61320c8185613b32565b935061321c818560208601613ce6565b61322581613f2e565b840191505092915050565b600061323b82613b16565b6132458185613b43565b9350613255818560208601613ce6565b80840191505092915050565b6000815461326e81613d19565b6132788186613b43565b9450600182166000811461329357600181146132a4576132d7565b60ff198316865281860193506132d7565b6132ad85613af6565b60005b838110156132cf578154818901526001820191506020810190506132b0565b838801955050505b50505092915050565b60006132ed602b83613b32565b91506132f882613f3f565b604082019050919050565b6000613310603283613b32565b915061331b82613f8e565b604082019050919050565b6000613333602683613b32565b915061333e82613fdd565b604082019050919050565b6000613356601c83613b32565b91506133618261402c565b602082019050919050565b6000613379600d83613b32565b915061338482614055565b602082019050919050565b600061339c602483613b32565b91506133a78261407e565b604082019050919050565b60006133bf601983613b32565b91506133ca826140cd565b602082019050919050565b60006133e2600b83613b32565b91506133ed826140f6565b602082019050919050565b6000613405602c83613b32565b91506134108261411f565b604082019050919050565b6000613428601d83613b32565b91506134338261416e565b602082019050919050565b600061344b603883613b32565b915061345682614197565b604082019050919050565b600061346e602a83613b32565b9150613479826141e6565b604082019050919050565b6000613491602983613b32565b915061349c82614235565b604082019050919050565b60006134b4601883613b32565b91506134bf82614284565b602082019050919050565b60006134d7600883613b32565b91506134e2826142ad565b602082019050919050565b60006134fa602083613b32565b9150613505826142d6565b602082019050919050565b600061351d602c83613b32565b9150613528826142ff565b604082019050919050565b6000613540602083613b32565b915061354b8261434e565b602082019050919050565b6000613563601183613b32565b915061356e82614377565b602082019050919050565b6000613586600b83613b32565b9150613591826143a0565b602082019050919050565b60006135a9602983613b32565b91506135b4826143c9565b604082019050919050565b60006135cc601f83613b32565b91506135d782614418565b602082019050919050565b60006135ef602183613b32565b91506135fa82614441565b604082019050919050565b6000613612600d83613b32565b915061361d82614490565b602082019050919050565b6000613635603183613b32565b9150613640826144b9565b604082019050919050565b6000613658602c83613b32565b915061366382614508565b604082019050919050565b61367781613ccd565b82525050565b60006136898285613261565b91506136958284613230565b91508190509392505050565b60006020820190506136b660008301846131a0565b92915050565b60006080820190506136d160008301876131a0565b6136de60208301866131a0565b6136eb604083018561366e565b81810360608301526136fd81846131be565b905095945050505050565b600060208201905061371d60008301846131af565b92915050565b6000602082019050818103600083015261373d81846131f7565b905092915050565b6000602082019050818103600083015261375e816132e0565b9050919050565b6000602082019050818103600083015261377e81613303565b9050919050565b6000602082019050818103600083015261379e81613326565b9050919050565b600060208201905081810360008301526137be81613349565b9050919050565b600060208201905081810360008301526137de8161336c565b9050919050565b600060208201905081810360008301526137fe8161338f565b9050919050565b6000602082019050818103600083015261381e816133b2565b9050919050565b6000602082019050818103600083015261383e816133d5565b9050919050565b6000602082019050818103600083015261385e816133f8565b9050919050565b6000602082019050818103600083015261387e8161341b565b9050919050565b6000602082019050818103600083015261389e8161343e565b9050919050565b600060208201905081810360008301526138be81613461565b9050919050565b600060208201905081810360008301526138de81613484565b9050919050565b600060208201905081810360008301526138fe816134a7565b9050919050565b6000602082019050818103600083015261391e816134ca565b9050919050565b6000602082019050818103600083015261393e816134ed565b9050919050565b6000602082019050818103600083015261395e81613510565b9050919050565b6000602082019050818103600083015261397e81613533565b9050919050565b6000602082019050818103600083015261399e81613556565b9050919050565b600060208201905081810360008301526139be81613579565b9050919050565b600060208201905081810360008301526139de8161359c565b9050919050565b600060208201905081810360008301526139fe816135bf565b9050919050565b60006020820190508181036000830152613a1e816135e2565b9050919050565b60006020820190508181036000830152613a3e81613605565b9050919050565b60006020820190508181036000830152613a5e81613628565b9050919050565b60006020820190508181036000830152613a7e8161364b565b9050919050565b6000602082019050613a9a600083018461366e565b92915050565b6000613aaa613abb565b9050613ab68282613d4b565b919050565b6000604051905090565b600067ffffffffffffffff821115613ae057613adf613ee1565b5b613ae982613f2e565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613b5982613ccd565b9150613b6483613ccd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613b9957613b98613df6565b5b828201905092915050565b6000613baf82613ccd565b9150613bba83613ccd565b925082613bca57613bc9613e25565b5b828204905092915050565b6000613be082613ccd565b9150613beb83613ccd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613c2457613c23613df6565b5b828202905092915050565b6000613c3a82613ccd565b9150613c4583613ccd565b925082821015613c5857613c57613df6565b5b828203905092915050565b6000613c6e82613cad565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613d04578082015181840152602081019050613ce9565b83811115613d13576000848401525b50505050565b60006002820490506001821680613d3157607f821691505b60208210811415613d4557613d44613e54565b5b50919050565b613d5482613f2e565b810181811067ffffffffffffffff82111715613d7357613d72613ee1565b5b80604052505050565b6000613d8782613ccd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613dba57613db9613df6565b5b600182019050919050565b6000613dd082613ccd565b9150613ddb83613ccd565b925082613deb57613dea613e25565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4f7574206f662073746f636b2e00000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f53414c455f434c4f534544000000000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4558434545445f46454d56455253455f5045525f465245455f4d494e54000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4558434545445f46454d56455253455f5045525f4d494e540000000000000000600082015250565b7f4d41585f4d494e54000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f496e73756666696369656e74204554482e000000000000000000000000000000600082015250565b7f47494654535f454d505459000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74207175657279206e6f6e2d6578697374656e7420746f6b656e00600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4558434545445f5055424c494300000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b61456081613c63565b811461456b57600080fd5b50565b61457781613c75565b811461458257600080fd5b50565b61458e81613c81565b811461459957600080fd5b50565b6145a581613ccd565b81146145b057600080fd5b5056fea264697066735822122028c569c095673c9f6f3baa0dae3d9cec63f9bf169454f99e6fffe29e44b6e2ae64736f6c63430008070033
Verified Source Code Full Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
Femverse.sol 767 lines
// SPDX-License-Identifier: GPL-3.0
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
pragma solidity ^0.8.0;
interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
function balanceOf(address owner) external view returns (uint256 balance);
function ownerOf(uint256 tokenId) external view returns (address owner);
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
function approve(address to, uint256 tokenId) external;
function getApproved(uint256 tokenId) external view returns (address operator);
function setApprovalForAll(address operator, bool _approved) external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
pragma solidity ^0.8.0;
interface IERC721Metadata is IERC721 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
pragma solidity ^0.8.0;
abstract contract ERC165 is IERC165 {
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
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/token/ERC721/ERC721.sol
pragma solidity ^0.8.0;
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) private _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
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;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
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())) : "";
}
function _baseURI() internal view virtual returns (string memory) {
return "";
}
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);
}
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
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);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
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);
}
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");
}
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
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));
}
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
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"
);
}
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);
}
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
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;
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol
pragma solidity ^0.8.0;
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
pragma solidity ^0.8.0;
interface IERC721Enumerable is IERC721 {
function totalSupply() external view returns (uint256);
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
function tokenByIndex(uint256 index) external view returns (uint256);
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
pragma solidity ^0.8.0;
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
mapping(uint256 => uint256) private _ownedTokensIndex;
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId;
_ownedTokensIndex[lastTokenId] = tokenIndex;
}
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId;
_allTokensIndex[lastTokenId] = tokenIndex;
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
function toString(uint256 value) internal pure returns (string memory) {
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);
}
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);
}
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/Address.sol
pragma solidity ^0.8.0;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
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");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
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");
}
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);
}
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
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);
}
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
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);
}
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
pragma solidity ^0.8.0;
interface IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_setOwner(_msgSender());
}
function owner() public view virtual returns (address) {
return _owner;
}
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
_setOwner(address(0));
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: contracts/Femverse.sol
// Written by: @zestrells
pragma solidity ^0.8.4;
contract Femverse is ERC721Enumerable, Ownable {
using Strings for uint256;
using ECDSA for bytes32;
uint256 public FEMVERSE_GIFT = 555; // first 555 NFTs free
// uint256 public FEMVERSE_PRESALE = 0;
uint256 public FEMVERSE_PUBLIC = 5000;
// uint256 public FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PRESALE + FEMVERSE_PUBLIC;
uint256 public FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PUBLIC;
uint256 public FEMVERSE_PRICE = .0555 ether;
uint256 public FEMVERSE_FREE_PRICE = 0 ether;
// uint256 public FEMVERSE_PRESALE_PRICE = .03 ether;
uint256 public FEMVERSE_PER_MINT = 5;
uint256 public constant FEMVERSE_PER_FREE_MINT = 1;
// mapping(address => bool) public presalerList;
// mapping(address => uint256) public presalerListPurchases;
string private _tokenBaseURI = "https://mint.femverse.org/api/";
uint256 public giftedAmount;
uint256 public publicAmountMinted;
// uint256 public privateAmountMinted;
// uint256 public presalePurchaseLimit = 13;
// bool public presaleLive;
bool public saleLive;
constructor() ERC721("FemVerse", "Fem") payable { }
// function addToPresaleList(address[] calldata entries) external onlyOwner {
// for(uint256 i = 0; i < entries.length; i++) {
// address entry = entries[i];
// require(entry != address(0), "NULL_ADDRESS");
// require(!presalerList[entry], "DUPLICATE_ENTRY");
// presalerList[entry] = true;
// }
// }
// function removeFromPresaleList(address[] calldata entries) external onlyOwner {
// for(uint256 i = 0; i < entries.length; i++) {
// address entry = entries[i];
// require(entry != address(0), "NULL_ADDRESS");
// presalerList[entry] = false;
// }
// }
// function togglePresaleStatus() external onlyOwner {
// presaleLive = !presaleLive;
// }
function toggleSaleStatus() external onlyOwner {
saleLive = !saleLive;
}
function buy(uint256 tokenQuantity) external payable {
require(saleLive, "SALE_CLOSED");
// require(!presaleLive, "ONLY_PRESALE");
require((totalSupply() + 1) < FEMVERSE_MAX, "Out of stock.");
require(publicAmountMinted + tokenQuantity <= FEMVERSE_PUBLIC, "EXCEED_PUBLIC");
require(tokenQuantity <= FEMVERSE_PER_MINT, "EXCEED_FEMVERSE_PER_MINT");
for(uint i = 0; i < tokenQuantity; i++) {
uint _mintId = totalSupply() + 1; // iterate from 1
// if (_mintId > 100 && _mintId < 301) {
if (_mintId < 555) {
require(tokenQuantity <= FEMVERSE_PER_FREE_MINT, "EXCEED_FEMVERSE_PER_FREE_MINT");
_safeMint(msg.sender, _mintId);
publicAmountMinted++;
} else {
require(FEMVERSE_PRICE * tokenQuantity <= msg.value, "Insufficient ETH.");
_safeMint(msg.sender, _mintId);
publicAmountMinted++;
}
}
}
// function presaleBuy(uint256 tokenQuantity) external payable {
// // require(!saleLive && presaleLive, "The presale has finished.");
// require(presalerList[msg.sender], "You are not qualified for the presale.");
// require((totalSupply() + 1) < FEMVERSE_MAX, "Out of stock.");
// require(privateAmountMinted + tokenQuantity <= FEMVERSE_PRESALE, "EXCEED_PRIVATE");
// require(presalerListPurchases[msg.sender] + tokenQuantity <= presalePurchaseLimit, "You have reached your maximum purchase amount.");
// require(FEMVERSE_PRESALE_PRICE * tokenQuantity <= msg.value, "Insufficient ETH.");
// for (uint256 i = 0; i < tokenQuantity; i++) {
// uint _mintId = totalSupply() + 1; // iterate from 1
// presalerListPurchases[msg.sender]++;
// _safeMint(msg.sender, _mintId);
// privateAmountMinted++;
// }
// }
function gift(address[] calldata receivers) external onlyOwner {
require((totalSupply() + 1) + receivers.length <= FEMVERSE_MAX, "MAX_MINT");
require(giftedAmount + receivers.length <= FEMVERSE_GIFT, "GIFTS_EMPTY");
for (uint256 i = 0; i < receivers.length; i++) {
uint _mintId = totalSupply() + 1; // iterate from 1
_safeMint(receivers[i], _mintId);
giftedAmount++;
}
}
function withdrawTeam() external onlyOwner {
uint balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
// function isPresaler(address addr) external view returns (bool) {
// return presalerList[addr];
// }
// function presalePurchasedCount(address addr) external view returns (uint256) {
// return presalerListPurchases[addr];
// }
function setBaseURI(string calldata URI) external onlyOwner {
_tokenBaseURI = URI;
}
// function setPresaleAmount(uint256 number) external onlyOwner {
// FEMVERSE_PRESALE = number;
// FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PRESALE + FEMVERSE_PUBLIC;
// }
function setPublicAmount(uint256 number) external onlyOwner {
FEMVERSE_PUBLIC = number;
// FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PRESALE + FEMVERSE_PUBLIC;
FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PUBLIC;
}
function setGiftAmount(uint256 number) external onlyOwner {
FEMVERSE_GIFT = number;
// FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PRESALE + FEMVERSE_PUBLIC;
FEMVERSE_MAX = FEMVERSE_GIFT + FEMVERSE_PUBLIC;
}
function setFemVersePerMint(uint256 number) external onlyOwner {
FEMVERSE_PER_MINT = number;
}
function setPrice(uint256 number) external onlyOwner {
FEMVERSE_PRICE = number;
}
// function setPresalePrice(uint256 number) external onlyOwner {
// FEMVERSE_PRESALE_PRICE = number;
// }
function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
require(_exists(tokenId), "Cannot query non-existent token");
return string(abi.encodePacked(_tokenBaseURI, tokenId.toString()));
}
}
Read Contract
FEMVERSE_FREE_PRICE 0xc029efa9 → uint256
FEMVERSE_GIFT 0xecc9339d → uint256
FEMVERSE_MAX 0x68fc7500 → uint256
FEMVERSE_PER_FREE_MINT 0x5b97a972 → uint256
FEMVERSE_PER_MINT 0x5945cc1c → uint256
FEMVERSE_PRICE 0x0badc92b → uint256
FEMVERSE_PUBLIC 0xd94df301 → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
giftedAmount 0x1b57190e → uint256
isApprovedForAll 0xe985e9c5 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
publicAmountMinted 0x940f1ada → uint256
saleLive 0xe081b781 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
buy 0xd96a094a
uint256 tokenQuantity
gift 0x163e1e61
address[] receivers
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
setFemVersePerMint 0x54486758
uint256 number
setGiftAmount 0xa5dd8000
uint256 number
setPrice 0x91b7f5ed
uint256 number
setPublicAmount 0xcb9eb533
uint256 number
toggleSaleStatus 0x049c5c49
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdrawTeam 0xbb51f32d
No parameters
Recent Transactions
No transactions found for this address