Address Contract Partially Verified
Address
0x0a76dCd25c9EdBA6639D2b3F77F8aD522622f548
Balance
0 ETH
Nonce
1
Code Size
21645 bytes
Creator
0xdDcdFAb4...1963 at tx 0x15df8c75...1cd9fb
Indexed Transactions
0
Contract Bytecode
21645 bytes
0x6080604052600436106102cc5760003560e01c806370a0823111610175578063b0b92263116100dc578063c91c046211610095578063e8a3d4851161006f578063e8a3d48514610a2d578063e985e9c514610a58578063f2fde38b14610a95578063f8b2cb4f14610abe576102d3565b8063c91c0462146109c2578063d78c06fa146109d9578063e397950814610a02576102d3565b8063b0b92263146108d7578063b46dc27814610900578063b5b3e21414610929578063b88d4fde14610940578063ba419de014610969578063c87b56dd14610985576102d3565b806391b7f5ed1161012e57806391b7f5ed146107ea57806395d89b411461081357806397d888681461083e578063a035b1fe14610867578063a0712d6814610892578063a22cb465146108ae576102d3565b806370a0823114610700578063715018a61461073d578063717d57d3146107545780637e1c0c091461077d578063877b8644146107a85780638da5cb5b146107bf576102d3565b806329869c941161023457806342842e0e116101ed578063484b973c116101c7578063484b973c1461064657806349a772b51461066f57806355f804b31461069a5780636352211e146106c3576102d3565b806342842e0e146105cb57806342966c68146105f457806343d675651461061d576102d3565b806329869c941461051b5780632e56f71e14610532578063372c12b1146105495780633ba5939d146105725780633cb51994146105895780633ccfd60b146105b4576102d3565b8063095ea7b311610286578063095ea7b3146103f9578063150b7a021461042257806318160ddd1461045f5780631950c2181461048a57806323b872dd146104c757806325fd90f3146104f0576102d3565b8062b6849f146102d557806301ffc9a7146102fe57806302ce58131461033b57806306fdde03146103665780630743b80814610391578063081812fc146103bc576102d3565b366102d357005b005b3480156102e157600080fd5b506102fc60048036038101906102f79190613e04565b610afb565b005b34801561030a57600080fd5b5061032560048036038101906103209190613e4d565b610c92565b60405161033291906145ed565b60405180910390f35b34801561034757600080fd5b50610350610e1b565b60405161035d91906145ed565b60405180910390f35b34801561037257600080fd5b5061037b610e2e565b6040516103889190614623565b60405180910390f35b34801561039d57600080fd5b506103a6610ec0565b6040516103b391906149e5565b60405180910390f35b3480156103c857600080fd5b506103e360048036038101906103de9190613ef0565b610ec6565b6040516103f09190614586565b60405180910390f35b34801561040557600080fd5b50610420600480360381019061041b9190613dc4565b610f4b565b005b34801561042e57600080fd5b5061044960048036038101906104449190613c79565b611055565b6040516104569190614608565b60405180910390f35b34801561046b57600080fd5b5061047461106a565b60405161048191906149e5565b60405180910390f35b34801561049657600080fd5b506104b160048036038101906104ac9190613bb9565b611074565b6040516104be91906149e5565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e99190613c26565b6110bd565b005b3480156104fc57600080fd5b50610505611116565b60405161051291906145ed565b60405180910390f35b34801561052757600080fd5b50610530611129565b005b34801561053e57600080fd5b506105476111c2565b005b34801561055557600080fd5b50610570600480360381019061056b9190613bb9565b61125b565b005b34801561057e57600080fd5b50610587611320565b005b34801561059557600080fd5b5061059e6113b9565b6040516105ab91906149e5565b60405180910390f35b3480156105c057600080fd5b506105c96113bf565b005b3480156105d757600080fd5b506105f260048036038101906105ed9190613c26565b6117ec565b005b34801561060057600080fd5b5061061b60048036038101906106169190613ef0565b61180c565b005b34801561062957600080fd5b50610644600480360381019061063f9190613e04565b61185f565b005b34801561065257600080fd5b5061066d60048036038101906106689190613dc4565b61195e565b005b34801561067b57600080fd5b50610684611ad5565b60405161069191906149e5565b60405180910390f35b3480156106a657600080fd5b506106c160048036038101906106bc9190613ea7565b611adb565b005b3480156106cf57600080fd5b506106ea60048036038101906106e59190613ef0565b611b71565b6040516106f79190614586565b60405180910390f35b34801561070c57600080fd5b5061072760048036038101906107229190613bb9565b611c23565b60405161073491906149e5565b60405180910390f35b34801561074957600080fd5b50610752611cdb565b005b34801561076057600080fd5b5061077b60048036038101906107769190613ef0565b611d63565b005b34801561078957600080fd5b50610792611de9565b60405161079f91906149e5565b60405180910390f35b3480156107b457600080fd5b506107bd611def565b005b3480156107cb57600080fd5b506107d4611e88565b6040516107e19190614586565b60405180910390f35b3480156107f657600080fd5b50610811600480360381019061080c9190613ef0565b611eb1565b005b34801561081f57600080fd5b50610828611f37565b6040516108359190614623565b60405180910390f35b34801561084a57600080fd5b5061086560048036038101906108609190613ef0565b611fc9565b005b34801561087357600080fd5b5061087c61204f565b60405161088991906149e5565b60405180910390f35b6108ac60048036038101906108a79190613ef0565b612055565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190613d84565b61226e565b005b3480156108e357600080fd5b506108fe60048036038101906108f99190613ef0565b6123da565b005b34801561090c57600080fd5b5061092760048036038101906109229190613bb9565b612460565b005b34801561093557600080fd5b5061093e612550565b005b34801561094c57600080fd5b5061096760048036038101906109629190613d01565b6125e9565b005b610983600480360381019061097e9190613ef0565b612644565b005b34801561099157600080fd5b506109ac60048036038101906109a79190613ef0565b6128fd565b6040516109b99190614623565b60405180910390f35b3480156109ce57600080fd5b506109d76129bd565b005b3480156109e557600080fd5b50610a0060048036038101906109fb9190613ef0565b612a56565b005b348015610a0e57600080fd5b50610a17612adc565b604051610a2491906149e5565b60405180910390f35b348015610a3957600080fd5b50610a42612ae2565b604051610a4f9190614623565b60405180910390f35b348015610a6457600080fd5b50610a7f6004803603810190610a7a9190613be6565b612b0a565b604051610a8c91906145ed565b60405180910390f35b348015610aa157600080fd5b50610abc6004803603810190610ab79190613bb9565b612b9e565b005b348015610aca57600080fd5b50610ae56004803603810190610ae09190613bb9565b612c96565b604051610af291906149e5565b60405180910390f35b610b03612cf1565b73ffffffffffffffffffffffffffffffffffffffff16610b21611e88565b73ffffffffffffffffffffffffffffffffffffffff1614610b77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6e906148e5565b60405180910390fd5b600081519050600b5481600b54610b8e9190614b16565b11610bce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc5906149c5565b60405180910390fd5b600a5481600b54610bdf9190614b16565b1115610c20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1790614805565b60405180910390fd5b6000600b54905060005b82811015610c8c57610c61848281518110610c4857610c47614e4b565b5b60200260200101518284610c5c9190614b16565b612cf9565b600b6000815480929190610c7490614d44565b91905055508080610c8490614d44565b915050610c2a565b50505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d5d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dc557507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e14575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600860019054906101000a900460ff1681565b606060018054610e3d90614ce1565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6990614ce1565b8015610eb65780601f10610e8b57610100808354040283529160200191610eb6565b820191906000526020600020905b815481529060010190602001808311610e9957829003601f168201915b5050505050905090565b600d5481565b6000610ed182612d17565b610f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f07906146e5565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f5682611b71565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90614705565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061100757506110068133612b0a565b5b611046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103d90614825565b60405180910390fd5b6110508383612d83565b505050565b600063150b7a0260e01b905095945050505050565b6000600b54905090565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110c73382612e3c565b611106576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fd90614925565b60405180910390fd5b611111838383612f1a565b505050565b600860009054906101000a900460ff1681565b611131612cf1565b73ffffffffffffffffffffffffffffffffffffffff1661114f611e88565b73ffffffffffffffffffffffffffffffffffffffff16146111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c906148e5565b60405180910390fd5b6000600860016101000a81548160ff021916908315150217905550565b6111ca612cf1565b73ffffffffffffffffffffffffffffffffffffffff166111e8611e88565b73ffffffffffffffffffffffffffffffffffffffff161461123e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611235906148e5565b60405180910390fd5b6000600860006101000a81548160ff021916908315150217905550565b611263612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611281611e88565b73ffffffffffffffffffffffffffffffffffffffff16146112d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ce906148e5565b60405180910390fd5b600d54600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b611328612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611346611e88565b73ffffffffffffffffffffffffffffffffffffffff161461139c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611393906148e5565b60405180910390fd5b6000600860026101000a81548160ff021916908315150217905550565b600c5481565b6113c7612cf1565b73ffffffffffffffffffffffffffffffffffffffff166113e5611e88565b73ffffffffffffffffffffffffffffffffffffffff161461143b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611432906148e5565b60405180910390fd5b600047905060008060646055846114529190614b9d565b61145c9190614b6c565b9050601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16816040516114a490614571565b60006040518083038185875af1925050503d80600081146114e1576040519150601f19603f3d011682016040523d82523d6000602084013e6114e6565b606091505b5050809250508161152c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161152390614745565b60405180910390fd5b606460058461153b9190614b9d565b6115459190614b6c565b9050601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161158d90614571565b60006040518083038185875af1925050503d80600081146115ca576040519150601f19603f3d011682016040523d82523d6000602084013e6115cf565b606091505b50508092505081611615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161160c90614745565b60405180910390fd5b60646005846116249190614b9d565b61162e9190614b6c565b9050601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161167690614571565b60006040518083038185875af1925050503d80600081146116b3576040519150601f19603f3d011682016040523d82523d6000602084013e6116b8565b606091505b505080925050816116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590614745565b60405180910390fd5b606460058461170d9190614b9d565b6117179190614b6c565b9050601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168160405161175f90614571565b60006040518083038185875af1925050503d806000811461179c576040519150601f19603f3d011682016040523d82523d6000602084013e6117a1565b606091505b505080925050816117e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117de90614745565b60405180910390fd5b505050565b611807838383604051806020016040528060008152506125e9565b505050565b61181581611b71565b73ffffffffffffffffffffffffffffffffffffffff16611833612cf1565b73ffffffffffffffffffffffffffffffffffffffff161461185357600080fd5b61185c81613176565b50565b611867612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611885611e88565b73ffffffffffffffffffffffffffffffffffffffff16146118db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d2906148e5565b60405180910390fd5b60005b815181101561195a57600d54600f600084848151811061190157611900614e4b565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061195290614d44565b9150506118de565b5050565b611966612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611984611e88565b73ffffffffffffffffffffffffffffffffffffffff16146119da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d1906148e5565b60405180910390fd5b600b5481600b546119eb9190614b16565b11611a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a22906149c5565b60405180910390fd5b600a5481600b54611a3c9190614b16565b1115611a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7490614805565b60405180910390fd5b6000600b54905060005b82811015611acf57611aa4848284611a9f9190614b16565b612cf9565b600b6000815480929190611ab790614d44565b91905055508080611ac790614d44565b915050611a87565b50505050565b600b5481565b611ae3612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611b01611e88565b73ffffffffffffffffffffffffffffffffffffffff1614611b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4e906148e5565b60405180910390fd5b8060039080519060200190611b6d9291906138d9565b5050565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c11906147c5565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8b90614885565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611ce3612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611d01611e88565b73ffffffffffffffffffffffffffffffffffffffff1614611d57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4e906148e5565b60405180910390fd5b611d616000613287565b565b611d6b612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611d89611e88565b73ffffffffffffffffffffffffffffffffffffffff1614611ddf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd6906148e5565b60405180910390fd5b80600e8190555050565b600a5481565b611df7612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611e15611e88565b73ffffffffffffffffffffffffffffffffffffffff1614611e6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e62906148e5565b60405180910390fd5b6001600860016101000a81548160ff021916908315150217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611eb9612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611ed7611e88565b73ffffffffffffffffffffffffffffffffffffffff1614611f2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f24906148e5565b60405180910390fd5b8060098190555050565b606060028054611f4690614ce1565b80601f0160208091040260200160405190810160405280929190818152602001828054611f7290614ce1565b8015611fbf5780601f10611f9457610100808354040283529160200191611fbf565b820191906000526020600020905b815481529060010190602001808311611fa257829003601f168201915b5050505050905090565b611fd1612cf1565b73ffffffffffffffffffffffffffffffffffffffff16611fef611e88565b73ffffffffffffffffffffffffffffffffffffffff1614612045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203c906148e5565b60405180910390fd5b80600d8190555050565b60095481565b600060149054906101000a900460ff16156120a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209c90614845565b60405180910390fd5b6001600060146101000a81548160ff021916908315150217905550600860009054906101000a900460ff1661210f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612106906147a5565b60405180910390fd5b6009548161211d9190614b9d565b34101561215f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215690614905565b60405180910390fd5b600c548111156121a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219b90614985565b60405180910390fd5b600a54600b54826121b59190614b16565b11156121f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ed90614665565b60405180910390fd5b6000600b54905060005b8281101561224f57612224612213612cf1565b828461221f9190614b16565b612cf9565b600b600081548092919061223790614d44565b9190505550808061224790614d44565b915050612200565b505060008060146101000a81548160ff02191690831515021790555050565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d490614785565b60405180910390fd5b80600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123ce91906145ed565b60405180910390a35050565b6123e2612cf1565b73ffffffffffffffffffffffffffffffffffffffff16612400611e88565b73ffffffffffffffffffffffffffffffffffffffff1614612456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244d906148e5565b60405180910390fd5b80600a8190555050565b612468612cf1565b73ffffffffffffffffffffffffffffffffffffffff16612486611e88565b73ffffffffffffffffffffffffffffffffffffffff16146124dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d3906148e5565b60405180910390fd5b600a54600b541115612523576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251a90614645565b60405180910390fd5b6000600b549050600b600081548092919061253d90614d44565b919050555061254c8282612cf9565b5050565b612558612cf1565b73ffffffffffffffffffffffffffffffffffffffff16612576611e88565b73ffffffffffffffffffffffffffffffffffffffff16146125cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c3906148e5565b60405180910390fd5b6001600860026101000a81548160ff021916908315150217905550565b6125f33383612e3c565b612632576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161262990614925565b60405180910390fd5b61263e8484848461334b565b50505050565b600060149054906101000a900460ff1615612694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268b90614845565b60405180910390fd5b6001600060146101000a81548160ff021916908315150217905550600860019054906101000a900460ff166126fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126f5906148a5565b60405180910390fd5b600e548161270c9190614b9d565b341461274d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274490614725565b60405180910390fd5b600a54600b548261275e9190614b16565b111561279f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279690614965565b60405180910390fd5b80600f60006127ac612cf1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015612828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281f90614945565b60405180910390fd5b80600f6000612835612cf1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461287e9190614bf7565b925050819055506000600b54905060005b828110156128de576128b36128a2612cf1565b82846128ae9190614b16565b612cf9565b600b60008154809291906128c690614d44565b919050555080806128d690614d44565b91505061288f565b505060008060146101000a81548160ff02191690831515021790555050565b606061290882612d17565b612947576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293e906149a5565b60405180910390fd5b6060600860029054906101000a900460ff1615612986576003604051602001612970919061454f565b60405160208183030381529060405290506129b4565b6003612991846133a7565b6040516020016129a29291906144fe565b60405160208183030381529060405290505b80915050919050565b6129c5612cf1565b73ffffffffffffffffffffffffffffffffffffffff166129e3611e88565b73ffffffffffffffffffffffffffffffffffffffff1614612a39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a30906148e5565b60405180910390fd5b6001600860006101000a81548160ff021916908315150217905550565b612a5e612cf1565b73ffffffffffffffffffffffffffffffffffffffff16612a7c611e88565b73ffffffffffffffffffffffffffffffffffffffff1614612ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac9906148e5565b60405180910390fd5b80600c8190555050565b600e5481565b60606003604051602001612af6919061452d565b604051602081830303815290604052905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612ba6612cf1565b73ffffffffffffffffffffffffffffffffffffffff16612bc4611e88565b73ffffffffffffffffffffffffffffffffffffffff1614612c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c11906148e5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8190614765565b60405180910390fd5b612c9381613287565b50565b600066038d7ea4c68000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612cea9190614b6c565b9050919050565b600033905090565b612d13828260405180602001604052806000815250613508565b5050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612df683611b71565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e4782612d17565b612e86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7d90614685565b60405180910390fd5b6000612e9183611b71565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f0057508373ffffffffffffffffffffffffffffffffffffffff16612ee884610ec6565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f115750612f108185612b0a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f3a82611b71565b73ffffffffffffffffffffffffffffffffffffffff1614612f90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f87906148c5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff7906146a5565b60405180910390fd5b61300b838383613563565b613016600082612d83565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130669190614bf7565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130bd9190614b16565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061318182611b71565b905061318f81600084613563565b61319a600083612d83565b6001600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131ea9190614bf7565b925050819055506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613356848484612f1a565b61336284848484613568565b6133a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613398906147e5565b60405180910390fd5b50505050565b606060008214156133ef576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613503565b600082905060005b6000821461342157808061340a90614d44565b915050600a8261341a9190614b6c565b91506133f7565b60008167ffffffffffffffff81111561343d5761343c614e7a565b5b6040519080825280601f01601f19166020018201604052801561346f5781602001600182028036833780820191505090505b5090505b600085146134fc576001826134889190614bf7565b9150600a856134979190614d8d565b60306134a39190614b16565b60f81b8183815181106134b9576134b8614e4b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134f59190614b6c565b9450613473565b8093505050505b919050565b61351283836136f8565b61351f6000848484613568565b61355e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613555906147e5565b60405180910390fd5b505050565b505050565b60006135898473ffffffffffffffffffffffffffffffffffffffff166138c6565b156136eb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b81526004016135cd94939291906145a1565b602060405180830381600087803b1580156135e757600080fd5b505af192505050801561361857506040513d601f19601f820116820180604052508101906136159190613e7a565b60015b61369b573d8060008114613648576040519150601f19603f3d011682016040523d82523d6000602084013e61364d565b606091505b50600081511415613693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161368a906147e5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506136f0565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613768576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161375f90614865565b60405180910390fd5b61377181612d17565b156137b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137a8906146c5565b60405180910390fd5b6137bd60008383613563565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461380d9190614b16565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b8280546138e590614ce1565b90600052602060002090601f016020900481019282613907576000855561394e565b82601f1061392057805160ff191683800117855561394e565b8280016001018555821561394e579182015b8281111561394d578251825591602001919060010190613932565b5b50905061395b919061395f565b5090565b5b80821115613978576000816000905550600101613960565b5090565b600061398f61398a84614a25565b614a00565b905080838252602082019050828560208602820111156139b2576139b1614eb3565b5b60005b858110156139e257816139c88882613a70565b8452602084019350602083019250506001810190506139b5565b5050509392505050565b60006139ff6139fa84614a51565b614a00565b905082815260208101848484011115613a1b57613a1a614eb8565b5b613a26848285614c9f565b509392505050565b6000613a41613a3c84614a82565b614a00565b905082815260208101848484011115613a5d57613a5c614eb8565b5b613a68848285614c9f565b509392505050565b600081359050613a7f816153fb565b92915050565b600082601f830112613a9a57613a99614eae565b5b8135613aaa84826020860161397c565b91505092915050565b600081359050613ac281615412565b92915050565b600081359050613ad781615429565b92915050565b600081519050613aec81615429565b92915050565b60008083601f840112613b0857613b07614eae565b5b8235905067ffffffffffffffff811115613b2557613b24614ea9565b5b602083019150836001820283011115613b4157613b40614eb3565b5b9250929050565b600082601f830112613b5d57613b5c614eae565b5b8135613b6d8482602086016139ec565b91505092915050565b600082601f830112613b8b57613b8a614eae565b5b8135613b9b848260208601613a2e565b91505092915050565b600081359050613bb381615440565b92915050565b600060208284031215613bcf57613bce614ec2565b5b6000613bdd84828501613a70565b91505092915050565b60008060408385031215613bfd57613bfc614ec2565b5b6000613c0b85828601613a70565b9250506020613c1c85828601613a70565b9150509250929050565b600080600060608486031215613c3f57613c3e614ec2565b5b6000613c4d86828701613a70565b9350506020613c5e86828701613a70565b9250506040613c6f86828701613ba4565b9150509250925092565b600080600080600060808688031215613c9557613c94614ec2565b5b6000613ca388828901613a70565b9550506020613cb488828901613a70565b9450506040613cc588828901613ba4565b935050606086013567ffffffffffffffff811115613ce657613ce5614ebd565b5b613cf288828901613af2565b92509250509295509295909350565b60008060008060808587031215613d1b57613d1a614ec2565b5b6000613d2987828801613a70565b9450506020613d3a87828801613a70565b9350506040613d4b87828801613ba4565b925050606085013567ffffffffffffffff811115613d6c57613d6b614ebd565b5b613d7887828801613b48565b91505092959194509250565b60008060408385031215613d9b57613d9a614ec2565b5b6000613da985828601613a70565b9250506020613dba85828601613ab3565b9150509250929050565b60008060408385031215613ddb57613dda614ec2565b5b6000613de985828601613a70565b9250506020613dfa85828601613ba4565b9150509250929050565b600060208284031215613e1a57613e19614ec2565b5b600082013567ffffffffffffffff811115613e3857613e37614ebd565b5b613e4484828501613a85565b91505092915050565b600060208284031215613e6357613e62614ec2565b5b6000613e7184828501613ac8565b91505092915050565b600060208284031215613e9057613e8f614ec2565b5b6000613e9e84828501613add565b91505092915050565b600060208284031215613ebd57613ebc614ec2565b5b600082013567ffffffffffffffff811115613edb57613eda614ebd565b5b613ee784828501613b76565b91505092915050565b600060208284031215613f0657613f05614ec2565b5b6000613f1484828501613ba4565b91505092915050565b613f2681614c2b565b82525050565b613f3581614c3d565b82525050565b613f4481614c49565b82525050565b6000613f5582614ac8565b613f5f8185614ade565b9350613f6f818560208601614cae565b613f7881614ec7565b840191505092915050565b6000613f8e82614ad3565b613f988185614afa565b9350613fa8818560208601614cae565b613fb181614ec7565b840191505092915050565b6000613fc782614ad3565b613fd18185614b0b565b9350613fe1818560208601614cae565b80840191505092915050565b60008154613ffa81614ce1565b6140048186614b0b565b9450600182166000811461401f576001811461403057614063565b60ff19831686528186019350614063565b61403985614ab3565b60005b8381101561405b5781548189015260018201915060208101905061403c565b838801955050505b50505092915050565b6000614079601183614afa565b915061408482614ed8565b602082019050919050565b600061409c601e83614afa565b91506140a782614f01565b602082019050919050565b60006140bf602083614afa565b91506140ca82614f2a565b602082019050919050565b60006140e2600d83614b0b565b91506140ed82614f53565b600d82019050919050565b6000614105601b83614afa565b915061411082614f7c565b602082019050919050565b6000614128601c83614afa565b915061413382614fa5565b602082019050919050565b600061414b602083614afa565b915061415682614fce565b602082019050919050565b600061416e601e83614afa565b915061417982614ff7565b602082019050919050565b6000614191601483614afa565b915061419c82615020565b602082019050919050565b60006141b4601883614afa565b91506141bf82615049565b602082019050919050565b60006141d7602083614afa565b91506141e282615072565b602082019050919050565b60006141fa601983614afa565b91506142058261509b565b602082019050919050565b600061421d600c83614b0b565b9150614228826150c4565b600c82019050919050565b6000614240600d83614afa565b915061424b826150ed565b602082019050919050565b6000614263601e83614afa565b915061426e82615116565b602082019050919050565b6000614286601a83614afa565b91506142918261513f565b602082019050919050565b60006142a9601183614afa565b91506142b482615168565b602082019050919050565b60006142cc601f83614afa565b91506142d782615191565b602082019050919050565b60006142ef601f83614afa565b91506142fa826151ba565b602082019050919050565b6000614312602083614afa565b915061431d826151e3565b602082019050919050565b6000614335602083614afa565b91506143408261520c565b602082019050919050565b6000614358600b83614afa565b915061436382615235565b602082019050919050565b600061437b600583614b0b565b91506143868261525e565b600582019050919050565b600061439e601c83614afa565b91506143a982615287565b602082019050919050565b60006143c1602083614afa565b91506143cc826152b0565b602082019050919050565b60006143e4601883614afa565b91506143ef826152d9565b602082019050919050565b6000614407601c83614afa565b915061441282615302565b602082019050919050565b600061442a601183614afa565b91506144358261532b565b602082019050919050565b600061444d601c83614afa565b915061445882615354565b602082019050919050565b6000614470601b83614afa565b915061447b8261537d565b602082019050919050565b6000614493600083614aef565b915061449e826153a6565b600082019050919050565b60006144b6601d83614afa565b91506144c1826153a9565b602082019050919050565b60006144d9601383614afa565b91506144e4826153d2565b602082019050919050565b6144f881614c95565b82525050565b600061450a8285613fed565b91506145168284613fbc565b91506145218261436e565b91508190509392505050565b60006145398284613fed565b9150614544826140d5565b915081905092915050565b600061455b8284613fed565b915061456682614210565b915081905092915050565b600061457c82614486565b9150819050919050565b600060208201905061459b6000830184613f1d565b92915050565b60006080820190506145b66000830187613f1d565b6145c36020830186613f1d565b6145d060408301856144ef565b81810360608301526145e28184613f4a565b905095945050505050565b60006020820190506146026000830184613f2c565b92915050565b600060208201905061461d6000830184613f3b565b92915050565b6000602082019050818103600083015261463d8184613f83565b905092915050565b6000602082019050818103600083015261465e8161406c565b9050919050565b6000602082019050818103600083015261467e8161408f565b9050919050565b6000602082019050818103600083015261469e816140b2565b9050919050565b600060208201905081810360008301526146be816140f8565b9050919050565b600060208201905081810360008301526146de8161411b565b9050919050565b600060208201905081810360008301526146fe8161413e565b9050919050565b6000602082019050818103600083015261471e81614161565b9050919050565b6000602082019050818103600083015261473e81614184565b9050919050565b6000602082019050818103600083015261475e816141a7565b9050919050565b6000602082019050818103600083015261477e816141ca565b9050919050565b6000602082019050818103600083015261479e816141ed565b9050919050565b600060208201905081810360008301526147be81614233565b9050919050565b600060208201905081810360008301526147de81614256565b9050919050565b600060208201905081810360008301526147fe81614279565b9050919050565b6000602082019050818103600083015261481e8161429c565b9050919050565b6000602082019050818103600083015261483e816142bf565b9050919050565b6000602082019050818103600083015261485e816142e2565b9050919050565b6000602082019050818103600083015261487e81614305565b9050919050565b6000602082019050818103600083015261489e81614328565b9050919050565b600060208201905081810360008301526148be8161434b565b9050919050565b600060208201905081810360008301526148de81614391565b9050919050565b600060208201905081810360008301526148fe816143b4565b9050919050565b6000602082019050818103600083015261491e816143d7565b9050919050565b6000602082019050818103600083015261493e816143fa565b9050919050565b6000602082019050818103600083015261495e8161441d565b9050919050565b6000602082019050818103600083015261497e81614440565b9050919050565b6000602082019050818103600083015261499e81614463565b9050919050565b600060208201905081810360008301526149be816144a9565b9050919050565b600060208201905081810360008301526149de816144cc565b9050919050565b60006020820190506149fa60008301846144ef565b92915050565b6000614a0a614a1b565b9050614a168282614d13565b919050565b6000604051905090565b600067ffffffffffffffff821115614a4057614a3f614e7a565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614a6c57614a6b614e7a565b5b614a7582614ec7565b9050602081019050919050565b600067ffffffffffffffff821115614a9d57614a9c614e7a565b5b614aa682614ec7565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614b2182614c95565b9150614b2c83614c95565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614b6157614b60614dbe565b5b828201905092915050565b6000614b7782614c95565b9150614b8283614c95565b925082614b9257614b91614ded565b5b828204905092915050565b6000614ba882614c95565b9150614bb383614c95565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614bec57614beb614dbe565b5b828202905092915050565b6000614c0282614c95565b9150614c0d83614c95565b925082821015614c2057614c1f614dbe565b5b828203905092915050565b6000614c3682614c75565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614ccc578082015181840152602081019050614cb1565b83811115614cdb576000848401525b50505050565b60006002820490506001821680614cf957607f821691505b60208210811415614d0d57614d0c614e1c565b5b50919050565b614d1c82614ec7565b810181811067ffffffffffffffff82111715614d3b57614d3a614e7a565b5b80604052505050565b6000614d4f82614c95565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d8257614d81614dbe565b5b600182019050919050565b6000614d9882614c95565b9150614da383614c95565b925082614db357614db2614ded565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f43616e6e6f742046696c6c204f72646572000000000000000000000000000000600082015250565b7f4d696e743a204e6f7420656e6f7567682061766169616c6162696c6974790000600082015250565b7f4552433732313a206f70207175657279206e6f6e6578697374656e7420746b6e600082015250565b7f636f6e74726163742e6a736f6e00000000000000000000000000000000000000600082015250565b7f4552433732313a207478667220746f2030783020616464726573730000000000600082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a20617070726f766564206e6f6e6578697374656e7420746b6e600082015250565b7f4552433732313a20617070726f76616c2063757272656e74206f776e65720000600082015250565b7f574c3a2057726f6e672045746820416d6f756e74000000000000000000000000600082015250565b7f5472616e73616374696f6e20556e7375636365737366756c0000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e65722069732030782061646472657373600082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f6d7973746572792e6a736f6e0000000000000000000000000000000000000000600082015250565b7f6d696e74206e6f74206f70656e00000000000000000000000000000000000000600082015250565b7f4552433732313a206f776e207175657279206e6f6e657869737420746b6e0000600082015250565b7f7478667220746f206e6f6e204552433732315265636965766572000000000000600082015250565b7f43616e6e6f742066696c6c206f72646572000000000000000000000000000000600082015250565b7f4552433732313a2063616c6c657220216f776e65722f21617070726f76656400600082015250565b7f617474656d7074207265656e746572206c6f636b65642066756e6374696f6e00600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a2062616c2071727920666f72207a65726f2061646472657373600082015250565b7f574c206e6f74206f70656e000000000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207478667220746f6b656e206e6f74206f776e656400000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4d696e743a20496e73756666696369656e742046756e64730000000000000000600082015250565b7f4552433732313a207478667220216f776e65722f617070726f76656400000000600082015250565b7f574c3a20756e6175746820616d6f756e74000000000000000000000000000000600082015250565b7f574c3a204e6f7420656e6f7567682061766169616c6162696c69747900000000600082015250565b7f4d696e743a2041626f7665205472786e205468726573686f6c64210000000000600082015250565b50565b7f4552433732314d657461646174613a205552492030783020746f6b656e000000600082015250565b7f4d617468206f766572666c6f77206572726f7200000000000000000000000000600082015250565b61540481614c2b565b811461540f57600080fd5b50565b61541b81614c3d565b811461542657600080fd5b50565b61543281614c49565b811461543d57600080fd5b50565b61544981614c95565b811461545457600080fd5b5056fea26469706673582212203769da7659d20c17dd4be28d8ca8a4682459dc19c1e8f922d118906fbacb0a4064736f6c63430008070033
Verified Source Code Partial Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
Normies.sol 1057 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Fully commented standard ERC721 Distilled from OpenZeppelin Docs
Base for Building ERC721 by Martin McConnell
All the utility without the fluff.
*/
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
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`.
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;
}
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);
}
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);
}
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
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 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, "Addr: cant send val, rcpt revert");
}
/**
* @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, "Addr: low-level call value fail");
}
/**
* @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, "Addr: insufficient balance 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, "Addr: low-level static call fail");
}
/**
* @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), "Addr: static call 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, "Addr: low-level del 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), "Addr: delegate call 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
) private 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);
}
}
}
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
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() {
_setOwner(_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 {
_setOwner(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 0x address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
abstract contract Functional {
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);
}
bool private _reentryKey = false;
modifier reentryLock {
require(!_reentryKey, "attempt reenter locked function");
_reentryKey = true;
_;
_reentryKey = false;
}
}
// ******************************************************************************************************************************
// ************************************************** Start of Main Contract ***************************************************
// ******************************************************************************************************************************
contract Normies is IERC721, Ownable, Functional {
using Address for address;
// Token name
string private _name;
// Token symbol
string private _symbol;
// URI Root Location for Json Files
string private _baseURI;
// 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;
// Specific Functionality
bool public mintActive;
bool public whitelistActive;
bool private _hideTokens; //for URI redirects
uint256 public price;
uint256 public totalTokens;
uint256 public numberMinted;
uint256 public maxPerTxn;
uint256 public whiteListMax;
uint256 public WLprice;
mapping(address => uint256) private _whitelist;
//Distribution Wallets
address Founder = payable(0xD61344DBd5321C7583B1166705f993Ff126DACf8); //85%
address Developer = payable(0x2E07cd18E675c921E8c523E36D79788734E94f88); //5%
address Consulting = payable(0xe9A36d2d6820539ec2F3b4ddC68Fd337BF8Ce293); //5%
address Community = payable(0x9f4A549dD4415968f0279dB9Ae43AFfD7354CFDE); //5%
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor() {
_name = "Paranormies";
_symbol = "NORMIE";
_baseURI = "https://paranormies.io/metadata/";
_hideTokens = true;
totalTokens = 9700;
price = 69 * (10 ** 15); // Replace leading value with price in finney 0.069E
WLprice = 69 * (10 ** 15);
maxPerTxn = 20;
whiteListMax = 4;
}
//@dev See {IERC165-supportsInterface}. Interfaces Supported by this Standard
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
interfaceId == type(IERC165).interfaceId ||
interfaceId == Normies.onERC721Received.selector;
}
// Standard Withdraw function for the owner to pull the contract
function withdraw() external onlyOwner {
uint256 Funds = address(this).balance;
bool success;
uint256 sendAmount = (Funds * 85) / 100;
(success, ) = Founder.call{value: sendAmount}("");
require(success, "Transaction Unsuccessful");
sendAmount = (Funds * 5) / 100;
(success, ) = Developer.call{value: sendAmount}("");
require(success, "Transaction Unsuccessful");
sendAmount = (Funds * 5) / 100;
(success, ) = Consulting.call{value: sendAmount}("");
require(success, "Transaction Unsuccessful");
sendAmount = (Funds * 5) / 100;
(success, ) = Community.call{value: sendAmount}("");
require(success, "Transaction Unsuccessful");
}
function ownerMint(address _to, uint256 qty) external onlyOwner {
require((numberMinted + qty) > numberMinted, "Math overflow error");
require((numberMinted + qty) <= totalTokens, "Cannot fill order");
uint256 mintSeedValue = numberMinted; //Store the starting value of the mint batch
for(uint256 i = 0; i < qty; i++) {
_safeMint(_to, mintSeedValue + i);
numberMinted ++; //reservedTokens can be reset, numberMinted can not
}
}
function singleAirdrop(address _to) external onlyOwner {
require(numberMinted <= totalTokens, "Cannot Fill Order");
uint256 mintSeedValue = numberMinted; //Store the starting value of the mint batch
numberMinted ++; //reservedTokens can be reset, numberMinted can not
_safeMint(_to, mintSeedValue);
}
function airDrop(address[] memory _to) external onlyOwner {
uint256 qty = _to.length;
require((numberMinted + qty) > numberMinted, "Math overflow error");
require((numberMinted + qty) <= totalTokens, "Cannot fill order");
uint256 mintSeedValue = numberMinted;
for(uint256 i = 0; i < qty; i++) {
_safeMint(_to[i], mintSeedValue + i);
numberMinted ++; //reservedTokens can be reset, numberMinted can not
}
}
function mintWL(uint256 qty) external payable reentryLock {
require(whitelistActive, "WL not open");
require(msg.value == qty * WLprice, "WL: Wrong Eth Amount");
require((qty + numberMinted) <= totalTokens, "WL: Not enough avaialability");
require(_whitelist[_msgSender()] >= qty, "WL: unauth amount");
_whitelist[_msgSender()] -= qty;
uint256 mintSeedValue = numberMinted; //Store the starting value of the mint batch
//send tokens
for(uint256 i = 0; i < qty; i++) {
_safeMint(_msgSender(), mintSeedValue + i);
numberMinted ++;
}
}
function mint(uint256 qty) external payable reentryLock {
require(mintActive, "mint not open");
require(msg.value >= qty * price, "Mint: Insufficient Funds");
require(qty <= maxPerTxn, "Mint: Above Trxn Threshold!");
require((qty + numberMinted) <= totalTokens, "Mint: Not enough avaialability");
uint256 mintSeedValue = numberMinted; //Store the starting value of the mint batch
//send tokens
for(uint256 i = 0; i < qty; i++) {
_safeMint(_msgSender(), mintSeedValue + i);
numberMinted ++;
}
}
// allows holders to burn their own tokens if desired
function burn(uint256 tokenID) external {
require(_msgSender() == ownerOf(tokenID));
_burn(tokenID);
}
//////////////////////////////////////////////////////////////
//////////////////// Setters and Getters /////////////////////
//////////////////////////////////////////////////////////////
function whiteList(address account) external onlyOwner {
_whitelist[account] = whiteListMax;
}
function whiteListMany(address[] memory accounts) external onlyOwner {
for (uint256 i; i < accounts.length; i++) {
_whitelist[accounts[i]] = whiteListMax;
}
}
function checkWhitelist(address testAddress) external view returns (uint256) {
return _whitelist[testAddress];
}
function setMaxMintThreshold(uint256 maxMints) external onlyOwner {
maxPerTxn = maxMints;
}
function setWhitelistThreshold(uint whitelisterBuyLimit) external onlyOwner {
whiteListMax = whitelisterBuyLimit;
}
function setBaseURI(string memory newURI) public onlyOwner {
_baseURI = newURI;
}
function activateMint() public onlyOwner {
mintActive = true;
}
function deactivateMint() public onlyOwner {
mintActive = false;
}
function activateWL() public onlyOwner {
whitelistActive = true;
}
function deactivateWL() public onlyOwner {
whitelistActive = false;
}
function setPrice(uint256 newPrice) public onlyOwner {
price = newPrice;
}
function setWhitelistPrice(uint256 newPrice) public onlyOwner {
WLprice = newPrice;
}
function setTotalTokens(uint256 numTokens) public onlyOwner {
totalTokens = numTokens;
}
function totalSupply() external view returns (uint256) {
return numberMinted; //stupid bs for etherscan's call
}
function hideTokens() external onlyOwner {
_hideTokens = true;
}
function revealTokens() external onlyOwner {
_hideTokens = false;
}
function getBalance(address tokenAddress) view external returns (uint256) {
//return _balances[tokenAddress]; //shows 0 on etherscan due to overflow error
return _balances[tokenAddress] / (10**15); //temporary fix to report in finneys
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: bal qry for 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: own query nonexist tkn");
return owner;
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ownerOf(tokenId);
require(to != owner, "ERC721: approval current owner");
require(
msg.sender == owner || isApprovedForAll(owner, msg.sender),
"ERC721: caller !owner/!approved"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved nonexistent tkn");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != msg.sender, "ERC721: approve to caller");
_operatorApprovals[msg.sender][operator] = approved;
emit ApprovalForAll(msg.sender, 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(msg.sender, tokenId), "ERC721: txfr !owner/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(msg.sender, tokenId), "ERC721: txfr !owner/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), "txfr to non ERC721Reciever");
}
/**
* @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: op query nonexistent tkn");
address owner = 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),
"txfr to non ERC721Reciever"
);
}
/**
* @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);
}
/**
* @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 = 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);
}
/**
* @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(ownerOf(tokenId) == from, "ERC721: txfr token not owned");
require(to != address(0), "ERC721: txfr to 0x0 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);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ownerOf(tokenId), to, tokenId);
}
/**
* @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(msg.sender, from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("txfr to non ERC721Reciever");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
// *********************** ERC721 Token Receiver **********************
/**
* @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) {
//InterfaceID=0x150b7a02
return this.onERC721Received.selector;
}
/**
* @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 {}
// **************************************** Metadata Standard Functions **********
//@dev Returns the token collection name.
function name() external view returns (string memory){
return _name;
}
//@dev Returns the token collection symbol.
function symbol() external view returns (string memory){
return _symbol;
}
//@dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
function tokenURI(uint256 tokenId) external view returns (string memory){
require(_exists(tokenId), "ERC721Metadata: URI 0x0 token");
string memory tokenuri;
if (_hideTokens) {
//redirect to mystery box
tokenuri = string(abi.encodePacked(_baseURI, "mystery.json"));
} else {
//Input flag data here to send to reveal URI
tokenuri = string(abi.encodePacked(_baseURI, toString(tokenId), ".json"));
}
return tokenuri;
}
function contractURI() public view returns (string memory) {
return string(abi.encodePacked(_baseURI,"contract.json"));
}
// *******************************************************************************
receive() external payable {}
fallback() external payable {}
}
Read Contract
WLprice 0xe3979508 → uint256
balanceOf 0x70a08231 → uint256
checkWhitelist 0x1950c218 → uint256
contractURI 0xe8a3d485 → string
getApproved 0x081812fc → address
getBalance 0xf8b2cb4f → uint256
isApprovedForAll 0xe985e9c5 → bool
maxPerTxn 0x3cb51994 → uint256
mintActive 0x25fd90f3 → bool
name 0x06fdde03 → string
numberMinted 0x49a772b5 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
totalTokens 0x7e1c0c09 → uint256
whiteListMax 0x0743b808 → uint256
whitelistActive 0x02ce5813 → bool
Write Contract 29 functions
These functions modify contract state and require a wallet transaction to execute.
activateMint 0xc91c0462
No parameters
activateWL 0x877b8644
No parameters
airDrop 0x00b6849f
address[] _to
approve 0x095ea7b3
address to
uint256 tokenId
burn 0x42966c68
uint256 tokenID
deactivateMint 0x2e56f71e
No parameters
deactivateWL 0x29869c94
No parameters
hideTokens 0xb5b3e214
No parameters
mint 0xa0712d68
uint256 qty
mintWL 0xba419de0
uint256 qty
onERC721Received 0x150b7a02
address _operator
address _from
uint256 _tokenId
bytes _data
returns: bytes4
ownerMint 0x484b973c
address _to
uint256 qty
renounceOwnership 0x715018a6
No parameters
revealTokens 0x3ba5939d
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 newURI
setMaxMintThreshold 0xd78c06fa
uint256 maxMints
setPrice 0x91b7f5ed
uint256 newPrice
setTotalTokens 0xb0b92263
uint256 numTokens
setWhitelistPrice 0x717d57d3
uint256 newPrice
setWhitelistThreshold 0x97d88868
uint256 whitelisterBuyLimit
singleAirdrop 0xb46dc278
address _to
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whiteList 0x372c12b1
address account
whiteListMany 0x43d67565
address[] accounts
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address