Address Contract Partially Verified
Address
0xfCcDE6c8C5D6F5621eC6fE06c99BF8309ef83391
Balance
0 ETH
Nonce
1
Code Size
20110 bytes
Creator
0x127C3F59...c9aC at tx 0xf4a140a6...f4846b
Indexed Transactions
0
Contract Bytecode
20110 bytes
0x6080604052600436106102255760003560e01c8063715018a611610123578063b88d4fde116100ab578063dc33e6811161006f578063dc33e681146107d9578063e985e9c514610816578063f2fde38b14610853578063f6fa26ab1461087c578063f968adbe1461089357610225565b8063b88d4fde146106f4578063c87b56dd1461071d578063ca69e3231461075a578063d7224ba014610785578063dab5f340146107b057610225565b806394bf804d116100f257806394bf804d1461064257806395d89b411461065e578063a035b1fe14610689578063a10866ef146106b4578063a22cb465146106cb57610225565b8063715018a61461059a5780638da5cb5b146105b157806391b7f5ed146105dc5780639231ab2a1461060557610225565b806333bc1c5c116101b15780634f6ccce7116101755780634f6ccce71461048f57806355f804b3146104cc5780636352211e146104f5578063639814e01461053257806370a082311461055d57610225565b806333bc1c5c146103dd5780633bc36ede146104085780633ccfd60b146104245780633f9425c41461043b57806342842e0e1461046657610225565b80630aada278116101f85780630aada278146102f857806318160ddd1461032157806323b872dd1461034c5780632f745c591461037557806331ffd6f1146103b257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613693565b6108be565b60405161025e9190613d68565b60405180910390f35b34801561027357600080fd5b5061027c610a08565b6040516102899190613d83565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b4919061373a565b610a9a565b6040516102c69190613d01565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f19190613626565b610b1f565b005b34801561030457600080fd5b5061031f600480360381019061031a9190613626565b610c38565b005b34801561032d57600080fd5b50610336610cc2565b6040516103439190614140565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e9190613510565b610ccc565b005b34801561038157600080fd5b5061039c60048036038101906103979190613626565b610cdc565b6040516103a99190614140565b60405180910390f35b3480156103be57600080fd5b506103c7610eda565b6040516103d49190613d68565b60405180910390f35b3480156103e957600080fd5b506103f2610eed565b6040516103ff9190613d68565b60405180910390f35b610422600480360381019061041d919061373a565b610f00565b005b34801561043057600080fd5b50610439611195565b005b34801561044757600080fd5b5061045061125a565b60405161045d9190614140565b60405180910390f35b34801561047257600080fd5b5061048d60048036038101906104889190613510565b611260565b005b34801561049b57600080fd5b506104b660048036038101906104b1919061373a565b611280565b6040516104c39190614140565b60405180910390f35b3480156104d857600080fd5b506104f360048036038101906104ee91906136ed565b6112d3565b005b34801561050157600080fd5b5061051c6004803603810190610517919061373a565b611365565b6040516105299190613d01565b60405180910390f35b34801561053e57600080fd5b5061054761137b565b6040516105549190614140565b60405180910390f35b34801561056957600080fd5b50610584600480360381019061057f91906134a3565b611381565b6040516105919190614140565b60405180910390f35b3480156105a657600080fd5b506105af61146a565b005b3480156105bd57600080fd5b506105c66114f2565b6040516105d39190613d01565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe919061373a565b61151b565b005b34801561061157600080fd5b5061062c6004803603810190610627919061373a565b6115a1565b6040516106399190614125565b60405180910390f35b61065c60048036038101906106579190613767565b6115b9565b005b34801561066a57600080fd5b506106736117f0565b6040516106809190613d83565b60405180910390f35b34801561069557600080fd5b5061069e611882565b6040516106ab9190614140565b60405180910390f35b3480156106c057600080fd5b506106c9611888565b005b3480156106d757600080fd5b506106f260048036038101906106ed91906135e6565b611930565b005b34801561070057600080fd5b5061071b60048036038101906107169190613563565b611ab1565b005b34801561072957600080fd5b50610744600480360381019061073f919061373a565b611b0d565b6040516107519190613d83565b60405180910390f35b34801561076657600080fd5b5061076f611bab565b60405161077c9190614140565b60405180910390f35b34801561079157600080fd5b5061079a611bb1565b6040516107a79190614140565b60405180910390f35b3480156107bc57600080fd5b506107d760048036038101906107d29190613666565b611bb7565b005b3480156107e557600080fd5b5061080060048036038101906107fb91906134a3565b611c3d565b60405161080d9190614140565b60405180910390f35b34801561082257600080fd5b5061083d600480360381019061083891906134d0565b611c4f565b60405161084a9190613d68565b60405180910390f35b34801561085f57600080fd5b5061087a600480360381019061087591906134a3565b611ce3565b005b34801561088857600080fd5b50610891611ddb565b005b34801561089f57600080fd5b506108a8611e83565b6040516108b59190614140565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061098957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f157507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a015750610a0082611e89565b5b9050919050565b606060028054610a179061449d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a439061449d565b8015610a905780601f10610a6557610100808354040283529160200191610a90565b820191906000526020600020905b815481529060010190602001808311610a7357829003601f168201915b5050505050905090565b6000610aa582611ef3565b610ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adb906140e5565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2a82611365565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9290613fe5565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bba611f01565b73ffffffffffffffffffffffffffffffffffffffff161480610be95750610be881610be3611f01565b611c4f565b5b610c28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1f90613ec5565b60405180910390fd5b610c33838383611f09565b505050565b610c40611f01565b73ffffffffffffffffffffffffffffffffffffffff16610c5e6114f2565b73ffffffffffffffffffffffffffffffffffffffff1614610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab90613f25565b60405180910390fd5b610cbe8282611fbb565b5050565b6000600154905090565b610cd7838383611fd9565b505050565b6000610ce783611381565b8210610d28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1f90613da5565b60405180910390fd5b6000610d32610cc2565b905060008060005b83811015610e98576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610e2c57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e845786841415610e75578195505050505050610ed4565b8380610e8090614500565b9450505b508080610e9090614500565b915050610d3a565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ecb906140a5565b60405180910390fd5b92915050565b600a60019054906101000a900460ff1681565b600a60009054906101000a900460ff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6590613ea5565b60405180910390fd5b600a60019054906101000a900460ff16610fbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb490614005565b60405180910390fd5b60008111611000576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff790614085565b60405180910390fd5b600c54811115611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90613dc5565b60405180910390fd5b600e5481611051610cc2565b61105b919061423a565b111561109c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109390613fc5565b60405180910390fd5b60011515601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151415611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112790613e85565b60405180910390fd5b61113a3382611fbb565b6001601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b61119d611f01565b73ffffffffffffffffffffffffffffffffffffffff166111bb6114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120890613f25565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611257573d6000803e3d6000fd5b50565b600c5481565b61127b83838360405180602001604052806000815250611ab1565b505050565b600061128a610cc2565b82106112cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c290613e25565b60405180910390fd5b819050919050565b6112db611f01565b73ffffffffffffffffffffffffffffffffffffffff166112f96114f2565b73ffffffffffffffffffffffffffffffffffffffff161461134f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134690613f25565b60405180910390fd5b818160109190611360929190613282565b505050565b600061137082612592565b600001519050919050565b600d5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e990613ee5565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611472611f01565b73ffffffffffffffffffffffffffffffffffffffff166114906114f2565b73ffffffffffffffffffffffffffffffffffffffff16146114e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dd90613f25565b60405180910390fd5b6114f06000612795565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611523611f01565b73ffffffffffffffffffffffffffffffffffffffff166115416114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611597576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158e90613f25565b60405180910390fd5b80600f8190555050565b6115a9613308565b6115b282612592565b9050919050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611627576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161e90613ea5565b60405180910390fd5b600a60009054906101000a900460ff16611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166d90614005565b60405180910390fd5b600082116116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b090614085565b60405180910390fd5b600b548211156116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590613dc5565b60405180910390fd5b600e548261170a610cc2565b611714919061423a565b1115611755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174c90613fc5565b60405180910390fd5b81600f5461176391906142c1565b341015806117a357506117746114f2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990613fa5565b60405180910390fd5b6117ec8183611fbb565b5050565b6060600380546117ff9061449d565b80601f016020809104026020016040519081016040528092919081815260200182805461182b9061449d565b80156118785780601f1061184d57610100808354040283529160200191611878565b820191906000526020600020905b81548152906001019060200180831161185b57829003601f168201915b5050505050905090565b600f5481565b611890611f01565b73ffffffffffffffffffffffffffffffffffffffff166118ae6114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611904576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118fb90613f25565b60405180910390fd5b600a60009054906101000a900460ff1615600a60006101000a81548160ff021916908315150217905550565b611938611f01565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156119a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199d90613f65565b60405180910390fd5b80600760006119b3611f01565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a60611f01565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611aa59190613d68565b60405180910390a35050565b611abc848484611fd9565b611ac884848484612859565b611b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afe90614025565b60405180910390fd5b50505050565b6060611b1882611ef3565b611b57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4e90613f45565b60405180910390fd5b6000611b62836129f0565b90506000815111611b825760405180602001604052806000815250611ba3565b80604051602001611b939190613cdf565b6040516020818303038152906040525b915050919050565b600e5481565b60085481565b611bbf611f01565b73ffffffffffffffffffffffffffffffffffffffff16611bdd6114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2a90613f25565b60405180910390fd5b8060128190555050565b6000611c4882612a97565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ceb611f01565b73ffffffffffffffffffffffffffffffffffffffff16611d096114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611d5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5690613f25565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc690613de5565b60405180910390fd5b611dd881612795565b50565b611de3611f01565b73ffffffffffffffffffffffffffffffffffffffff16611e016114f2565b73ffffffffffffffffffffffffffffffffffffffff1614611e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4e90613f25565b60405180910390fd5b600a60019054906101000a900460ff1615600a60016101000a81548160ff021916908315150217905550565b600b5481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b611fd5828260405180602001604052806000815250612b80565b5050565b6000611fe482612592565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff1661200b611f01565b73ffffffffffffffffffffffffffffffffffffffff1614806120675750612030611f01565b73ffffffffffffffffffffffffffffffffffffffff1661204f84610a9a565b73ffffffffffffffffffffffffffffffffffffffff16145b806120835750612082826000015161207d611f01565b611c4f565b5b9050806120c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bc90613f85565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612137576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212e90613f05565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156121a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219e90613e45565b60405180910390fd5b6121b48585856001613060565b6121c46000848460000151611f09565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff16612232919061431b565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166122d691906141f4565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555090505060006001846123dc919061423a565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156125225761245281611ef3565b15612521576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461258a8686866001613066565b505050505050565b61259a613308565b6125a382611ef3565b6125e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d990613e05565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000003e883106126465760017f00000000000000000000000000000000000000000000000000000000000003e884612639919061434f565b612643919061423a565b90505b60008390505b818110612754576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461274057809350505050612790565b50808061274c90614473565b91505061264c565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612787906140c5565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061287a8473ffffffffffffffffffffffffffffffffffffffff1661306c565b156129e3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026128a3611f01565b8786866040518563ffffffff1660e01b81526004016128c59493929190613d1c565b602060405180830381600087803b1580156128df57600080fd5b505af192505050801561291057506040513d601f19601f8201168201806040525081019061290d91906136c0565b60015b612993573d8060008114612940576040519150601f19603f3d011682016040523d82523d6000602084013e612945565b606091505b5060008151141561298b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298290614025565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506129e8565b600190505b949350505050565b60606129fb82611ef3565b612a3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3190613f45565b60405180910390fd5b6000612a4461308f565b90506000815111612a645760405180602001604052806000815250612a8f565b80612a6e84613121565b604051602001612a7f929190613cbb565b6040516020818303038152906040525b915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aff90613e65565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612bf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bee90614065565b60405180910390fd5b612c0081611ef3565b15612c40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3790614045565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000003e8831115612ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9a90614105565b60405180910390fd5b612cb06000858386613060565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152505090506040518060400160405280858360000151612dad91906141f4565b6fffffffffffffffffffffffffffffffff168152602001858360200151612dd491906141f4565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b8581101561304357818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612fe36000888488612859565b613022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161301990614025565b60405180910390fd5b818061302d90614500565b925050808061303b90614500565b915050612f72565b50806001819055506130586000878588613066565b505050505050565b50505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60606010805461309e9061449d565b80601f01602080910402602001604051908101604052809291908181526020018280546130ca9061449d565b80156131175780601f106130ec57610100808354040283529160200191613117565b820191906000526020600020905b8154815290600101906020018083116130fa57829003601f168201915b5050505050905090565b60606000821415613169576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061327d565b600082905060005b6000821461319b57808061318490614500565b915050600a826131949190614290565b9150613171565b60008167ffffffffffffffff8111156131b7576131b6614636565b5b6040519080825280601f01601f1916602001820160405280156131e95781602001600182028036833780820191505090505b5090505b6000851461327657600182613202919061434f565b9150600a856132119190614549565b603061321d919061423a565b60f81b81838151811061323357613232614607565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561326f9190614290565b94506131ed565b8093505050505b919050565b82805461328e9061449d565b90600052602060002090601f0160209004810192826132b057600085556132f7565b82601f106132c957803560ff19168380011785556132f7565b828001600101855582156132f7579182015b828111156132f65782358255916020019190600101906132db565b5b5090506133049190613342565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561335b576000816000905550600101613343565b5090565b600061337261336d84614180565b61415b565b90508281526020810184848401111561338e5761338d614674565b5b613399848285614431565b509392505050565b6000813590506133b081614de5565b92915050565b6000813590506133c581614dfc565b92915050565b6000813590506133da81614e13565b92915050565b6000813590506133ef81614e2a565b92915050565b60008151905061340481614e2a565b92915050565b600082601f83011261341f5761341e61466a565b5b813561342f84826020860161335f565b91505092915050565b60008083601f84011261344e5761344d61466a565b5b8235905067ffffffffffffffff81111561346b5761346a614665565b5b6020830191508360018202830111156134875761348661466f565b5b9250929050565b60008135905061349d81614e41565b92915050565b6000602082840312156134b9576134b861467e565b5b60006134c7848285016133a1565b91505092915050565b600080604083850312156134e7576134e661467e565b5b60006134f5858286016133a1565b9250506020613506858286016133a1565b9150509250929050565b6000806000606084860312156135295761352861467e565b5b6000613537868287016133a1565b9350506020613548868287016133a1565b92505060406135598682870161348e565b9150509250925092565b6000806000806080858703121561357d5761357c61467e565b5b600061358b878288016133a1565b945050602061359c878288016133a1565b93505060406135ad8782880161348e565b925050606085013567ffffffffffffffff8111156135ce576135cd614679565b5b6135da8782880161340a565b91505092959194509250565b600080604083850312156135fd576135fc61467e565b5b600061360b858286016133a1565b925050602061361c858286016133b6565b9150509250929050565b6000806040838503121561363d5761363c61467e565b5b600061364b858286016133a1565b925050602061365c8582860161348e565b9150509250929050565b60006020828403121561367c5761367b61467e565b5b600061368a848285016133cb565b91505092915050565b6000602082840312156136a9576136a861467e565b5b60006136b7848285016133e0565b91505092915050565b6000602082840312156136d6576136d561467e565b5b60006136e4848285016133f5565b91505092915050565b600080602083850312156137045761370361467e565b5b600083013567ffffffffffffffff81111561372257613721614679565b5b61372e85828601613438565b92509250509250929050565b6000602082840312156137505761374f61467e565b5b600061375e8482850161348e565b91505092915050565b6000806040838503121561377e5761377d61467e565b5b600061378c8582860161348e565b925050602061379d858286016133a1565b9150509250929050565b6137b081614383565b82525050565b6137bf81614383565b82525050565b6137ce81614395565b82525050565b60006137df826141b1565b6137e981856141c7565b93506137f9818560208601614440565b61380281614683565b840191505092915050565b6000613818826141bc565b61382281856141d8565b9350613832818560208601614440565b61383b81614683565b840191505092915050565b6000613851826141bc565b61385b81856141e9565b935061386b818560208601614440565b80840191505092915050565b60006138846022836141d8565b915061388f82614694565b604082019050919050565b60006138a76015836141d8565b91506138b2826146e3565b602082019050919050565b60006138ca6026836141d8565b91506138d58261470c565b604082019050919050565b60006138ed602a836141d8565b91506138f88261475b565b604082019050919050565b60006139106023836141d8565b915061391b826147aa565b604082019050919050565b60006139336025836141d8565b915061393e826147f9565b604082019050919050565b60006139566031836141d8565b915061396182614848565b604082019050919050565b6000613979600c836141d8565b915061398482614897565b602082019050919050565b600061399c601e836141d8565b91506139a7826148c0565b602082019050919050565b60006139bf6039836141d8565b91506139ca826148e9565b604082019050919050565b60006139e2602b836141d8565b91506139ed82614938565b604082019050919050565b6000613a056026836141d8565b9150613a1082614987565b604082019050919050565b6000613a286020836141d8565b9150613a33826149d6565b602082019050919050565b6000613a4b602f836141d8565b9150613a56826149ff565b604082019050919050565b6000613a6e601a836141d8565b9150613a7982614a4e565b602082019050919050565b6000613a916032836141d8565b9150613a9c82614a77565b604082019050919050565b6000613ab46011836141d8565b9150613abf82614ac6565b602082019050919050565b6000613ad76028836141d8565b9150613ae282614aef565b604082019050919050565b6000613afa6022836141d8565b9150613b0582614b3e565b604082019050919050565b6000613b1d6000836141e9565b9150613b2882614b8d565b600082019050919050565b6000613b406018836141d8565b9150613b4b82614b90565b602082019050919050565b6000613b636033836141d8565b9150613b6e82614bb9565b604082019050919050565b6000613b86601d836141d8565b9150613b9182614c08565b602082019050919050565b6000613ba96021836141d8565b9150613bb482614c31565b604082019050919050565b6000613bcc6010836141d8565b9150613bd782614c80565b602082019050919050565b6000613bef602e836141d8565b9150613bfa82614ca9565b604082019050919050565b6000613c12602f836141d8565b9150613c1d82614cf8565b604082019050919050565b6000613c35602d836141d8565b9150613c4082614d47565b604082019050919050565b6000613c586022836141d8565b9150613c6382614d96565b604082019050919050565b604082016000820151613c8460008501826137a7565b506020820151613c976020850182613cac565b50505050565b613ca681614413565b82525050565b613cb58161441d565b82525050565b6000613cc78285613846565b9150613cd38284613846565b91508190509392505050565b6000613ceb8284613846565b9150613cf682613b10565b915081905092915050565b6000602082019050613d1660008301846137b6565b92915050565b6000608082019050613d3160008301876137b6565b613d3e60208301866137b6565b613d4b6040830185613c9d565b8181036060830152613d5d81846137d4565b905095945050505050565b6000602082019050613d7d60008301846137c5565b92915050565b60006020820190508181036000830152613d9d818461380d565b905092915050565b60006020820190508181036000830152613dbe81613877565b9050919050565b60006020820190508181036000830152613dde8161389a565b9050919050565b60006020820190508181036000830152613dfe816138bd565b9050919050565b60006020820190508181036000830152613e1e816138e0565b9050919050565b60006020820190508181036000830152613e3e81613903565b9050919050565b60006020820190508181036000830152613e5e81613926565b9050919050565b60006020820190508181036000830152613e7e81613949565b9050919050565b60006020820190508181036000830152613e9e8161396c565b9050919050565b60006020820190508181036000830152613ebe8161398f565b9050919050565b60006020820190508181036000830152613ede816139b2565b9050919050565b60006020820190508181036000830152613efe816139d5565b9050919050565b60006020820190508181036000830152613f1e816139f8565b9050919050565b60006020820190508181036000830152613f3e81613a1b565b9050919050565b60006020820190508181036000830152613f5e81613a3e565b9050919050565b60006020820190508181036000830152613f7e81613a61565b9050919050565b60006020820190508181036000830152613f9e81613a84565b9050919050565b60006020820190508181036000830152613fbe81613aa7565b9050919050565b60006020820190508181036000830152613fde81613aca565b9050919050565b60006020820190508181036000830152613ffe81613aed565b9050919050565b6000602082019050818103600083015261401e81613b33565b9050919050565b6000602082019050818103600083015261403e81613b56565b9050919050565b6000602082019050818103600083015261405e81613b79565b9050919050565b6000602082019050818103600083015261407e81613b9c565b9050919050565b6000602082019050818103600083015261409e81613bbf565b9050919050565b600060208201905081810360008301526140be81613be2565b9050919050565b600060208201905081810360008301526140de81613c05565b9050919050565b600060208201905081810360008301526140fe81613c28565b9050919050565b6000602082019050818103600083015261411e81613c4b565b9050919050565b600060408201905061413a6000830184613c6e565b92915050565b60006020820190506141556000830184613c9d565b92915050565b6000614165614176565b905061417182826144cf565b919050565b6000604051905090565b600067ffffffffffffffff82111561419b5761419a614636565b5b6141a482614683565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006141ff826143d7565b915061420a836143d7565b9250826fffffffffffffffffffffffffffffffff0382111561422f5761422e61457a565b5b828201905092915050565b600061424582614413565b915061425083614413565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142855761428461457a565b5b828201905092915050565b600061429b82614413565b91506142a683614413565b9250826142b6576142b56145a9565b5b828204905092915050565b60006142cc82614413565b91506142d783614413565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156143105761430f61457a565b5b828202905092915050565b6000614326826143d7565b9150614331836143d7565b9250828210156143445761434361457a565b5b828203905092915050565b600061435a82614413565b915061436583614413565b9250828210156143785761437761457a565b5b828203905092915050565b600061438e826143f3565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b8381101561445e578082015181840152602081019050614443565b8381111561446d576000848401525b50505050565b600061447e82614413565b915060008214156144925761449161457a565b5b600182039050919050565b600060028204905060018216806144b557607f821691505b602082108114156144c9576144c86145d8565b5b50919050565b6144d882614683565b810181811067ffffffffffffffff821117156144f7576144f6614636565b5b80604052505050565b600061450b82614413565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561453e5761453d61457a565b5b600182019050919050565b600061455482614413565b915061455f83614413565b92508261456f5761456e6145a9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b7f43414e4e4f545f4d494e545f544841545f4d414e590000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a206e756d626572206d696e74656420717565727920666f7260008201527f20746865207a65726f2061646472657373000000000000000000000000000000602082015250565b7f4e6f2077686974656c6973740000000000000000000000000000000000000000600082015250565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f56616c75652062656c6f77207072696365000000000000000000000000000000600082015250565b7f4e4f545f454e4f5547485f535550504c595f544f5f4d494e545f44455349524560008201527f445f414d4f554e54000000000000000000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f53414c455f4841535f4e4f545f535441525445445f5945540000000000000000600082015250565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f494e56414c49445f5155414e5449545900000000000000000000000000000000600082015250565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b614dee81614383565b8114614df957600080fd5b50565b614e0581614395565b8114614e1057600080fd5b50565b614e1c816143a1565b8114614e2757600080fd5b50565b614e33816143ab565b8114614e3e57600080fd5b50565b614e4a81614413565b8114614e5557600080fd5b5056fea26469706673582212204f1d0c5099ac1634c7ea2c07f7e5ff6f340d3da44234036237fb864f47aa0bb164736f6c63430008070033
Verified Source Code Partial Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
TheRealBanditos.sol 882 lines
// SPDX-License-Identifier: MIT
/**
*/
pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
pragma solidity ^0.8.0;
interface IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
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;
}
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);
}
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);
function tokenByIndex(uint256 index) external view returns (uint256);
}
pragma solidity ^0.8.1;
library Address {
function isContract(address account) internal view returns (bool) {
return account.code.length > 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);
}
}
}
}
// OpenZeppelin Contracts v4.4.1 (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;
}
}
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);
}
}
// OpenZeppelin Contracts v4.4.1 (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) {
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
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);
}
}
// OpenZeppelin Contracts v4.4.1 (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;
}
}
pragma solidity ^0.8.0;
abstract contract ReentrancyGuard {
// word because each write operation emits an extra SLOAD to first read the
// back. This is the compiler's defense against contract upgrades and
// but in exchange the refund on every call to nonReentrant will be lower in
// transaction's gas, it is best to keep them low in cases like this one, to
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
_status = _ENTERED;
_;
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
pragma solidity ^0.8.0;
contract ERC721A is
Context,
ERC165,
IERC721,
IERC721Metadata,
IERC721Enumerable
{
using Address for address;
using Strings for uint256;
struct TokenOwnership {
address addr;
uint64 startTimestamp;
}
struct AddressData {
uint128 balance;
uint128 numberMinted;
}
uint256 private currentIndex = 0;
uint256 internal immutable collectionSize;
uint256 internal immutable maxBatchSize;
string private _name;
string private _symbol;
// An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) private _ownerships;
mapping(address => AddressData) private _addressData;
mapping(uint256 => address) private _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(
string memory name_,
string memory symbol_,
uint256 maxBatchSize_,
uint256 collectionSize_
) {
require(
collectionSize_ > 0,
"ERC721A: collection must have a nonzero supply"
);
require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
_name = name_;
_symbol = symbol_;
maxBatchSize = maxBatchSize_;
collectionSize = collectionSize_;
}
function totalSupply() public view override returns (uint256) {
return currentIndex;
}
function tokenByIndex(uint256 index)
public
view
override
returns (uint256)
{
require(index < totalSupply(), "ERC721A: global index out of bounds");
return index;
}
function tokenOfOwnerByIndex(address owner, uint256 index)
public
view
override
returns (uint256)
{
require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
uint256 numMintedSoFar = totalSupply();
uint256 tokenIdsIdx = 0;
address currOwnershipAddr = address(0);
for (uint256 i = 0; i < numMintedSoFar; i++) {
TokenOwnership memory ownership = _ownerships[i];
if (ownership.addr != address(0)) {
currOwnershipAddr = ownership.addr;
}
if (currOwnershipAddr == owner) {
if (tokenIdsIdx == index) {
return i;
}
tokenIdsIdx++;
}
}
revert("ERC721A: unable to get token of owner by index");
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
function balanceOf(address owner) public view override returns (uint256) {
require(
owner != address(0),
"ERC721A: balance query for the zero address"
);
return uint256(_addressData[owner].balance);
}
function _numberMinted(address owner) internal view returns (uint256) {
require(
owner != address(0),
"ERC721A: number minted query for the zero address"
);
return uint256(_addressData[owner].numberMinted);
}
function ownershipOf(uint256 tokenId)
internal
view
returns (TokenOwnership memory)
{
require(_exists(tokenId), "ERC721A: owner query for nonexistent token");
uint256 lowestTokenToCheck;
if (tokenId >= maxBatchSize) {
lowestTokenToCheck = tokenId - maxBatchSize + 1;
}
for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
TokenOwnership memory ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
revert("ERC721A: unable to determine the owner of token");
}
function ownerOf(uint256 tokenId) public view override returns (address) {
return ownershipOf(tokenId).addr;
}
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 override {
address owner = ERC721A.ownerOf(tokenId);
require(to != owner, "ERC721A: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721A: approve caller is not owner nor approved for all"
);
_approve(to, tokenId, owner);
}
function getApproved(uint256 tokenId)
public
view
override
returns (address)
{
require(
_exists(tokenId),
"ERC721A: approved query for nonexistent token"
);
return _tokenApprovals[tokenId];
}
function setApprovalForAll(address operator, bool approved)
public
override
{
require(operator != _msgSender(), "ERC721A: 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 override {
_transfer(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public override {
safeTransferFrom(from, to, tokenId, "");
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public override {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"ERC721A: transfer to non ERC721Receiver implementer"
);
}
function _exists(uint256 tokenId) internal view returns (bool) {
return tokenId < currentIndex;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, "");
}
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
uint256 startTokenId = currentIndex;
require(to != address(0), "ERC721A: mint to the zero address");
require(!_exists(startTokenId), "ERC721A: token already minted");
require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
AddressData memory addressData = _addressData[to];
_addressData[to] = AddressData(
addressData.balance + uint128(quantity),
addressData.numberMinted + uint128(quantity)
);
_ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));
uint256 updatedIndex = startTokenId;
for (uint256 i = 0; i < quantity; i++) {
emit Transfer(address(0), to, updatedIndex);
require(
_checkOnERC721Received(address(0), to, updatedIndex, _data),
"ERC721A: transfer to non ERC721Receiver implementer"
);
updatedIndex++;
}
currentIndex = updatedIndex;
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
function _transfer(
address from,
address to,
uint256 tokenId
) private {
TokenOwnership memory prevOwnership = ownershipOf(tokenId);
bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
getApproved(tokenId) == _msgSender() ||
isApprovedForAll(prevOwnership.addr, _msgSender()));
require(
isApprovedOrOwner,
"ERC721A: transfer caller is not owner nor approved"
);
require(
prevOwnership.addr == from,
"ERC721A: transfer from incorrect owner"
);
require(to != address(0), "ERC721A: transfer to the zero address");
_beforeTokenTransfers(from, to, tokenId, 1);
_approve(address(0), tokenId, prevOwnership.addr);
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
_ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
if (_ownerships[nextTokenId].addr == address(0)) {
if (_exists(nextTokenId)) {
_ownerships[nextTokenId] = TokenOwnership(
prevOwnership.addr,
prevOwnership.startTimestamp
);
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
uint256 public nextOwnerToExplicitlySet = 0;
function _setOwnersExplicit(uint256 quantity) internal {
uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
require(quantity > 0, "quantity must be nonzero");
uint256 endIndex = oldNextOwnerToSet + quantity - 1;
if (endIndex > collectionSize - 1) {
endIndex = collectionSize - 1;
}
require(_exists(endIndex), "not enough minted yet for this cleanup");
for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
if (_ownerships[i].addr == address(0)) {
TokenOwnership memory ownership = ownershipOf(i);
_ownerships[i] = TokenOwnership(
ownership.addr,
ownership.startTimestamp
);
}
}
nextOwnerToExplicitlySet = endIndex + 1;
}
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(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert(
"ERC721A: transfer to non ERC721Receiver implementer"
);
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}
pragma solidity ^0.8.0;
library MerkleProof {
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
function processProof(bytes32[] memory proof, bytes32 leaf)
internal
pure
returns (bytes32)
{
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
computedHash = _efficientHash(computedHash, proofElement);
} else {
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b)
private
pure
returns (bytes32 value)
{
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
contract TheRealBanditos is Ownable, ERC721A, ReentrancyGuard {
bool public publicSale = false;
bool public whitelistSale = false;
uint256 public maxPerTx = 30;
uint256 public maxPerTxWl = 3;
uint256 public maxPerAddress = 100;
uint256 public maxToken = 3333;
uint256 public price = 0.03 ether;
string private _baseTokenURI = "";
mapping(address => bool) private _whitelist;
bytes32 root;
constructor(string memory _NAME, string memory _SYMBOL)
ERC721A(_NAME, _SYMBOL, 1000, maxToken)
{}
modifier callerIsUser() {
require(tx.origin == msg.sender, "The caller is another contract");
_;
}
function numberMinted(address owner) public view returns (uint256) {
return _numberMinted(owner);
}
function getOwnershipData(uint256 tokenId)
external
view
returns (TokenOwnership memory)
{
return ownershipOf(tokenId);
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
string memory _tokenURI = super.tokenURI(tokenId);
return
bytes(_tokenURI).length > 0
? string(abi.encodePacked(_tokenURI, ""))
: "";
}
function verify(bytes32[] memory proof) internal view returns (bool) {
bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
return MerkleProof.verify(proof, root, leaf);
}
function mint(uint256 quantity, address _to) external payable callerIsUser {
require(publicSale, "SALE_HAS_NOT_STARTED_YET");
require(quantity > 0, "INVALID_QUANTITY");
require(quantity <= maxPerTx, "CANNOT_MINT_THAT_MANY");
require(totalSupply() + quantity <= maxToken, "NOT_ENOUGH_SUPPLY_TO_MINT_DESIRED_AMOUNT");
require(msg.value >= price * quantity || msg.sender == owner() , "Value below price");
_safeMint(_to, quantity);
}
function mint_(uint256 quantity) external payable callerIsUser {
require(whitelistSale, "SALE_HAS_NOT_STARTED_YET");
require(quantity > 0, "INVALID_QUANTITY");
require(quantity <= maxPerTxWl, "CANNOT_MINT_THAT_MANY");
require(totalSupply() + quantity <= maxToken, "NOT_ENOUGH_SUPPLY_TO_MINT_DESIRED_AMOUNT");
require(_whitelist[msg.sender] != true, "No whitelist");
_safeMint(msg.sender, quantity);
_whitelist[msg.sender] = true;
}
function teamAllocationMint(address _address, uint256 quantity) external onlyOwner {
_safeMint(_address, quantity);
}
function _baseURI() internal view virtual override returns (string memory) {
return _baseTokenURI;
}
function setPrice(uint256 _PriceInWEI) external onlyOwner {
price = _PriceInWEI;
}
function setRoot(bytes32 _root) external onlyOwner {
root = _root;
}
function flipPublicSaleState() external onlyOwner {
publicSale = !publicSale;
}
function flipWhitelistState() external onlyOwner {
whitelistSale = !whitelistSale;
}
function setBaseURI(string calldata baseURI) external onlyOwner {
_baseTokenURI = baseURI;
}
function withdraw() external onlyOwner {
payable(msg.sender).transfer(address(this).balance);
}
}
Read Contract
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
getOwnershipData 0x9231ab2a → tuple
isApprovedForAll 0xe985e9c5 → bool
maxPerAddress 0x639814e0 → uint256
maxPerTx 0xf968adbe → uint256
maxPerTxWl 0x3f9425c4 → uint256
maxToken 0xca69e323 → uint256
name 0x06fdde03 → string
nextOwnerToExplicitlySet 0xd7224ba0 → uint256
numberMinted 0xdc33e681 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
publicSale 0x33bc1c5c → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
whitelistSale 0x31ffd6f1 → bool
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
flipPublicSaleState 0xa10866ef
No parameters
flipWhitelistState 0xf6fa26ab
No parameters
mint 0x94bf804d
uint256 quantity
address _to
mint_ 0x3bc36ede
uint256 quantity
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 baseURI
setPrice 0x91b7f5ed
uint256 _PriceInWEI
setRoot 0xdab5f340
bytes32 _root
teamAllocationMint 0x0aada278
address _address
uint256 quantity
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address