Address Contract Verified
Address
0x402491a577373995fF3382e6da3c282cb0564902
Balance
0 ETH
Nonce
1
Code Size
23996 bytes
Creator
0x4a960A86...e829 at tx 0x6c11cab1...584f62
Indexed Transactions
0
Contract Bytecode
23996 bytes
0x6080604052600436106102675760003560e01c80636373a6b1116101445780639ffdb65a116100b6578063d5a849e91161007a578063d5a849e91461091f578063e985e9c51461095c578063ec75d62214610999578063efe5a15d146109d6578063f2fde38b14610a01578063fe55932a14610a2a57610267565b80639ffdb65a14610816578063a22cb46514610853578063b88d4fde1461087c578063c87b56dd146108a5578063cb03fb1e146108e257610267565b8063715018a611610108578063715018a6146107185780638da5cb5b1461072f57806391b7f5ed1461075a5780639416b4231461078357806395d89b41146107c057806398d5fdca146107eb57610267565b80636373a6b11461061f578063664e97041461064a5780636b0b13a5146106755780636d5224181461069e57806370a08231146106db57610267565b80632e1a7d4d116101dd57806344a6b86c116101a157806344a6b86c146105235780634d97e6e61461054e5780635322f9d11461057757806354b6f1611461058e57806355f804b3146105b95780636352211e146105e257610267565b80632e1a7d4d146104645780633075f5521461048d57806333bc1c5c146104b85780633d18b912146104e357806342842e0e146104fa57610267565b8063109695231161022f578063109695231461037757806318160ddd146103a05780631f5800e2146103cb5780631fe9eabc146103f657806321603f431461041f57806323b872dd1461043b57610267565b806301ffc9a71461026c57806306fdde03146102a95780630700037d146102d4578063081812fc14610311578063095ea7b31461034e575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190614930565b610a53565b6040516102a09190614fca565b60405180910390f35b3480156102b557600080fd5b506102be610b35565b6040516102cb9190615000565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190614789565b610bc7565b6040516103089190615302565b60405180910390f35b34801561031d57600080fd5b50610338600480360381019061033391906149c3565b610bdf565b6040516103459190614f3a565b60405180910390f35b34801561035a57600080fd5b50610375600480360381019061037091906148f4565b610c64565b005b34801561038357600080fd5b5061039e60048036038101906103999190614982565b610d7c565b005b3480156103ac57600080fd5b506103b5610e12565b6040516103c29190615302565b60405180910390f35b3480156103d757600080fd5b506103e0610e1c565b6040516103ed9190615302565b60405180910390f35b34801561040257600080fd5b5061041d600480360381019061041891906149c3565b610e22565b005b610439600480360381019061043491906149c3565b610ea8565b005b34801561044757600080fd5b50610462600480360381019061045d91906147ee565b611239565b005b34801561047057600080fd5b5061048b600480360381019061048691906149c3565b611544565b005b34801561049957600080fd5b506104a261160a565b6040516104af9190615302565b60405180910390f35b3480156104c457600080fd5b506104cd611614565b6040516104da9190614fca565b60405180910390f35b3480156104ef57600080fd5b506104f8611627565b005b34801561050657600080fd5b50610521600480360381019061051c91906147ee565b611a94565b005b34801561052f57600080fd5b50610538611d9f565b6040516105459190615302565b60405180910390f35b34801561055a57600080fd5b5061057560048036038101906105709190614789565b611dac565b005b34801561058357600080fd5b5061058c611e6c565b005b34801561059a57600080fd5b506105a3611f14565b6040516105b09190615302565b60405180910390f35b3480156105c557600080fd5b506105e060048036038101906105db9190614982565b611f21565b005b3480156105ee57600080fd5b50610609600480360381019061060491906149c3565b611fb7565b6040516106169190614f3a565b60405180910390f35b34801561062b57600080fd5b50610634612069565b6040516106419190615000565b60405180910390f35b34801561065657600080fd5b5061065f6120f7565b60405161066c9190615302565b60405180910390f35b34801561068157600080fd5b5061069c600480360381019061069791906149ec565b612103565b005b3480156106aa57600080fd5b506106c560048036038101906106c091906149c3565b612427565b6040516106d29190615000565b60405180910390f35b3480156106e757600080fd5b5061070260048036038101906106fd9190614789565b6124cc565b60405161070f9190615302565b60405180910390f35b34801561072457600080fd5b5061072d612584565b005b34801561073b57600080fd5b5061074461260c565b6040516107519190614f3a565b60405180910390f35b34801561076657600080fd5b50610781600480360381019061077c91906149c3565b612636565b005b34801561078f57600080fd5b506107aa60048036038101906107a59190614982565b6126bc565b6040516107b79190615000565b60405180910390f35b3480156107cc57600080fd5b506107d561297e565b6040516107e29190615000565b60405180910390f35b3480156107f757600080fd5b50610800612a10565b60405161080d9190615302565b60405180910390f35b34801561082257600080fd5b5061083d60048036038101906108389190614982565b612a1a565b60405161084a9190614fca565b60405180910390f35b34801561085f57600080fd5b5061087a600480360381019061087591906148b8565b612d7f565b005b34801561088857600080fd5b506108a3600480360381019061089e919061483d565b612f00565b005b3480156108b157600080fd5b506108cc60048036038101906108c791906149c3565b61320d565b6040516108d99190615000565b60405180910390f35b3480156108ee57600080fd5b5061090960048036038101906109049190614789565b613289565b6040516109169190615302565b60405180910390f35b34801561092b57600080fd5b5061094660048036038101906109419190614789565b6132a1565b6040516109539190615302565b60405180910390f35b34801561096857600080fd5b50610983600480360381019061097e91906147b2565b6133ca565b6040516109909190614fca565b60405180910390f35b3480156109a557600080fd5b506109c060048036038101906109bb9190614982565b61345e565b6040516109cd9190614fca565b60405180910390f35b3480156109e257600080fd5b506109eb61349b565b6040516109f89190614fe5565b60405180910390f35b348015610a0d57600080fd5b50610a286004803603810190610a239190614789565b6134c1565b005b348015610a3657600080fd5b50610a516004803603810190610a4c9190614a28565b6135b9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b1e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b2e5750610b2d82613911565b5b9050919050565b606060008054610b449061562f565b80601f0160208091040260200160405190810160405280929190818152602001828054610b709061562f565b8015610bbd5780601f10610b9257610100808354040283529160200191610bbd565b820191906000526020600020905b815481529060010190602001808311610ba057829003601f168201915b5050505050905090565b600f6020528060005260406000206000915090505481565b6000610bea8261397b565b610c29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c20906151c2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6f82611fb7565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ce0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd790615242565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cff6139e7565b73ffffffffffffffffffffffffffffffffffffffff161480610d2e5750610d2d81610d286139e7565b6133ca565b5b610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6490615142565b60405180910390fd5b610d7783836139ef565b505050565b610d846139e7565b73ffffffffffffffffffffffffffffffffffffffff16610da261260c565b73ffffffffffffffffffffffffffffffffffffffff1614610df8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610def906151e2565b60405180910390fd5b80600d9080519060200190610e0e9291906145ad565b5050565b6000600b54905090565b600e5481565b610e2a6139e7565b73ffffffffffffffffffffffffffffffffffffffff16610e4861260c565b73ffffffffffffffffffffffffffffffffffffffff1614610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e95906151e2565b60405180910390fd5b8060098190555050565b33816000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610fea576863345a083e94d8000081610f0791906154ba565b62015180601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442610f569190615514565b678ac7230489e80000610f6991906154ba565b610f72856124cc565b610f7c91906154ba565b610f869190615489565b610f9091906153fc565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fde91906153fc565b92505081905550611055565b6863345a083e94d8000081610fff91906154ba565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461104d91906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600c60009054906101000a900460ff166110e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110df90615102565b60405180910390fd5b60095483111561112d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611124906152c2565b60405180910390fd5b600e5483611139610e12565b61114391906153fc565b1115611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90615082565b60405180910390fd5b6000600a548461119491906154ba565b9050803410156111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d0906152e2565b60405180910390fd5b60005b84811015611232576111ee6007613aa8565b60006111fa6007613abe565b90506112063382613acc565b600b600081548092919061121990615692565b919050555050808061122a90615692565b9150506111dc565b5050505050565b82826000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156113585762015180601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426112d29190615514565b678ac7230489e800006112e4856124cc565b6112ee91906154ba565b6112f891906154ba565b6113029190615489565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461135091906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611532576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156114ed5762015180601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426114679190615514565b678ac7230489e80000611479846124cc565b61148391906154ba565b61148d91906154ba565b6114979190615489565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114e591906153fc565b925050819055505b42601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b61153d858585613aea565b5050505050565b61154c6139e7565b73ffffffffffffffffffffffffffffffffffffffff1661156a61260c565b73ffffffffffffffffffffffffffffffffffffffff16146115c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b7906151e2565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611606573d6000803e3d6000fd5b5050565b6000600954905090565b600c60009054906101000a900460ff1681565b33600080601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156117465762015180601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426116c09190615514565b678ac7230489e800006116d2856124cc565b6116dc91906154ba565b6116e691906154ba565b6116f09190615489565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461173e91906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611920576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156118db5762015180601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426118559190615514565b678ac7230489e80000611867846124cc565b61187191906154ba565b61187b91906154ba565b6118859190615489565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118d391906153fc565b925050819055505b42601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611a8f576000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b8152600401611a0f929190614fa1565b600060405180830381600087803b158015611a2957600080fd5b505af1158015611a3d573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167e5ee589794d375199f9f70cada6fbc240fd09fddf0bf970294f348662f8d8d282604051611a869190615302565b60405180910390a25b505050565b82826000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611bb35762015180601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442611b2d9190615514565b678ac7230489e80000611b3f856124cc565b611b4991906154ba565b611b5391906154ba565b611b5d9190615489565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bab91906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611d8d576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115611d485762015180601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442611cc29190615514565b678ac7230489e80000611cd4846124cc565b611cde91906154ba565b611ce891906154ba565b611cf29190615489565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d4091906153fc565b925050819055505b42601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b611d98858585613b4a565b5050505050565b6863345a083e94d8000081565b611db46139e7565b73ffffffffffffffffffffffffffffffffffffffff16611dd261260c565b73ffffffffffffffffffffffffffffffffffffffff1614611e28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1f906151e2565b60405180910390fd5b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611e746139e7565b73ffffffffffffffffffffffffffffffffffffffff16611e9261260c565b73ffffffffffffffffffffffffffffffffffffffff1614611ee8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edf906151e2565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6863345a083e94d8000081565b611f296139e7565b73ffffffffffffffffffffffffffffffffffffffff16611f4761260c565b73ffffffffffffffffffffffffffffffffffffffff1614611f9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f94906151e2565b60405180910390fd5b8060089080519060200190611fb39291906145ad565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205790615182565b60405180910390fd5b80915050919050565b600d80546120769061562f565b80601f01602080910402602001604051908101604052809291908181526020018280546120a29061562f565b80156120ef5780601f106120c4576101008083540402835291602001916120ef565b820191906000526020600020905b8154815290600101906020018083116120d257829003601f168201915b505050505081565b678ac7230489e8000081565b80826000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115612245576863345a083e94d800008161216291906154ba565b62015180601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054426121b19190615514565b678ac7230489e800006121c491906154ba565b6121cd856124cc565b6121d791906154ba565b6121e19190615489565b6121eb91906153fc565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461223991906153fc565b925050819055506122b0565b6863345a083e94d800008161225a91906154ba565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122a891906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506122fc6139e7565b73ffffffffffffffffffffffffffffffffffffffff1661231a61260c565b73ffffffffffffffffffffffffffffffffffffffff1614612370576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612367906151e2565b60405180910390fd5b600e548461237c610e12565b61238691906153fc565b11156123c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123be90615082565b60405180910390fd5b60005b84811015612420576123dc6007613aa8565b60006123e86007613abe565b90506123f48582613acc565b600b600081548092919061240790615692565b919050555050808061241890615692565b9150506123ca565b5050505050565b60606011600083815260200190815260200160002080546124479061562f565b80601f01602080910402602001604051908101604052809291908181526020018280546124739061562f565b80156124c05780601f10612495576101008083540402835291602001916124c0565b820191906000526020600020905b8154815290600101906020018083116124a357829003601f168201915b50505050509050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561253d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253490615162565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61258c6139e7565b73ffffffffffffffffffffffffffffffffffffffff166125aa61260c565b73ffffffffffffffffffffffffffffffffffffffff1614612600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f7906151e2565b60405180910390fd5b61260a6000613b6a565b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61263e6139e7565b73ffffffffffffffffffffffffffffffffffffffff1661265c61260c565b73ffffffffffffffffffffffffffffffffffffffff16146126b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a9906151e2565b60405180910390fd5b80600a8190555050565b606060008290506000815167ffffffffffffffff811115612706577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156127385781602001600182028036833780820191505090505b50905060005b8251811015612973576041838281518110612782577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff16101580156127eb5750605a8382815181106127d7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b156128b357602083828151811061282b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6128439190615452565b60f81b82828151811061287f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612960565b8281815181106128ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b828281518110612930577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b808061296b90615692565b91505061273e565b508092505050919050565b60606001805461298d9061562f565b80601f01602080910402602001604051908101604052809291908181526020018280546129b99061562f565b8015612a065780601f106129db57610100808354040283529160200191612a06565b820191906000526020600020905b8154815290600101906020018083116129e957829003601f168201915b5050505050905090565b6000600a54905090565b600080829050600381511015612a34576000915050612d7a565b602081511115612a48576000915050612d7a565b602060f81b81600081518110612a87577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612ac4576000915050612d7a565b602060f81b8160018351612ad89190615514565b81518110612b0f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612b4c576000915050612d7a565b600081600081518110612b88577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b905060005b8251811015612d72576000838281518110612bdc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b9050602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148015612c435750602060f81b837effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15612c55576000945050505050612d7a565b604160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612cb15750605a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b158015612d175750606160f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191610158015612d155750607a60f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b155b8015612d495750602060f81b817effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15612d5b576000945050505050612d7a565b809250508080612d6a90615692565b915050612b98565b506001925050505b919050565b612d876139e7565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dec906150c2565b60405180910390fd5b8060056000612e026139e7565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612eaf6139e7565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ef49190614fca565b60405180910390a35050565b83836000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054111561301f5762015180601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205442612f999190615514565b678ac7230489e80000612fab856124cc565b612fb591906154ba565b612fbf91906154ba565b612fc99190615489565b600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461301791906153fc565b925050819055505b42601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146131f9576000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156131b45762015180601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261312e9190615514565b678ac7230489e80000613140846124cc565b61314a91906154ba565b61315491906154ba565b61315e9190615489565b600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131ac91906153fc565b925050819055505b42601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b61320586868686613c30565b505050505050565b60606132188261397b565b613257576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324e90615122565b60405180910390fd5b600861326283613c92565b604051602001613273929190614f16565b6040516020818303038152906040529050919050565b60106020528060005260406000206000915090505481565b6000806000601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411156133bc5762015180601060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544261333b9190615514565b678ac7230489e8000061334d866124cc565b61335791906154ba565b61336191906154ba565b61336b9190615489565b600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546133b591906153fc565b90506133c1565b600090505b80915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000601261346b836126bc565b6040516134789190614eff565b908152602001604051809103902060009054906101000a900460ff169050919050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6134c96139e7565b73ffffffffffffffffffffffffffffffffffffffff166134e761260c565b73ffffffffffffffffffffffffffffffffffffffff161461353d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613534906151e2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156135ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a490615042565b60405180910390fd5b6135b681613b6a565b50565b60006135c483611fb7565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613634576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161362b90615202565b60405180910390fd5b6001151561364183612a1a565b151514613683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367a90615282565b60405180910390fd5b600015156136908361345e565b1515146136d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136c9906152a2565b60405180910390fd5b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636328bc05336863345a083e94d800006040518363ffffffff1660e01b8152600401613738929190614fa1565b600060405180830381600087803b15801561375257600080fd5b505af1158015613766573d6000803e3d6000fd5b50505050600060116000858152602001908152602001600020805461378a9061562f565b9050111561386d576000601261383a6011600087815260200190815260200160002080546137b79061562f565b80601f01602080910402602001604051908101604052809291908181526020018280546137e39061562f565b80156138305780601f1061380557610100808354040283529160200191613830565b820191906000526020600020905b81548152906001019060200180831161381357829003601f168201915b50505050506126bc565b6040516138479190614eff565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505b6001601261387a846126bc565b6040516138879190614eff565b908152602001604051809103902060006101000a81548160ff021916908315150217905550816011600085815260200190815260200160002090805190602001906138d39291906145ad565b50827f9726e950b835e1f7f4fe747cca4223de678452a4f67c102d50408e22e94e9485836040516139049190615000565b60405180910390a2505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16613a6283611fb7565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001816000016000828254019250508190555050565b600081600001549050919050565b613ae6828260405180602001604052806000815250613e3f565b5050565b613afb613af56139e7565b82613e9a565b613b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b3190615262565b60405180910390fd5b613b45838383613f78565b505050565b613b6583838360405180602001604052806000815250612f00565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613c41613c3b6139e7565b83613e9a565b613c80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c7790615262565b60405180910390fd5b613c8c848484846141d4565b50505050565b60606000821415613cda576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613e3a565b600082905060005b60008214613d0c578080613cf590615692565b915050600a82613d059190615489565b9150613ce2565b60008167ffffffffffffffff811115613d4e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613d805781602001600182028036833780820191505090505b5090505b60008514613e3357600182613d999190615514565b9150600a85613da891906156db565b6030613db491906153fc565b60f81b818381518110613df0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613e2c9190615489565b9450613d84565b8093505050505b919050565b613e498383614230565b613e5660008484846143fe565b613e95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e8c90615022565b60405180910390fd5b505050565b6000613ea58261397b565b613ee4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613edb906150e2565b60405180910390fd5b6000613eef83611fb7565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613f5e57508373ffffffffffffffffffffffffffffffffffffffff16613f4684610bdf565b73ffffffffffffffffffffffffffffffffffffffff16145b80613f6f5750613f6e81856133ca565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16613f9882611fb7565b73ffffffffffffffffffffffffffffffffffffffff1614613fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613fe590615222565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561405e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614055906150a2565b60405180910390fd5b614069838383614595565b6140746000826139ef565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546140c49190615514565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461411b91906153fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6141df848484613f78565b6141eb848484846143fe565b61422a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161422190615022565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156142a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401614297906151a2565b60405180910390fd5b6142a98161397b565b156142e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142e090615062565b60405180910390fd5b6142f560008383614595565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461434591906153fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600061441f8473ffffffffffffffffffffffffffffffffffffffff1661459a565b15614588578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026144486139e7565b8786866040518563ffffffff1660e01b815260040161446a9493929190614f55565b602060405180830381600087803b15801561448457600080fd5b505af19250505080156144b557506040513d601f19601f820116820180604052508101906144b29190614959565b60015b614538573d80600081146144e5576040519150601f19603f3d011682016040523d82523d6000602084013e6144ea565b606091505b50600081511415614530576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161452790615022565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061458d565b600190505b949350505050565b505050565b600080823b905060008111915050919050565b8280546145b99061562f565b90600052602060002090601f0160209004810192826145db5760008555614622565b82601f106145f457805160ff1916838001178555614622565b82800160010185558215614622579182015b82811115614621578251825591602001919060010190614606565b5b50905061462f9190614633565b5090565b5b8082111561464c576000816000905550600101614634565b5090565b600061466361465e84615342565b61531d565b90508281526020810184848401111561467b57600080fd5b6146868482856155ed565b509392505050565b60006146a161469c84615373565b61531d565b9050828152602081018484840111156146b957600080fd5b6146c48482856155ed565b509392505050565b6000813590506146db81615d2a565b92915050565b6000813590506146f081615d41565b92915050565b60008135905061470581615d58565b92915050565b60008151905061471a81615d58565b92915050565b600082601f83011261473157600080fd5b8135614741848260208601614650565b91505092915050565b600082601f83011261475b57600080fd5b813561476b84826020860161468e565b91505092915050565b60008135905061478381615d6f565b92915050565b60006020828403121561479b57600080fd5b60006147a9848285016146cc565b91505092915050565b600080604083850312156147c557600080fd5b60006147d3858286016146cc565b92505060206147e4858286016146cc565b9150509250929050565b60008060006060848603121561480357600080fd5b6000614811868287016146cc565b9350506020614822868287016146cc565b925050604061483386828701614774565b9150509250925092565b6000806000806080858703121561485357600080fd5b6000614861878288016146cc565b9450506020614872878288016146cc565b935050604061488387828801614774565b925050606085013567ffffffffffffffff8111156148a057600080fd5b6148ac87828801614720565b91505092959194509250565b600080604083850312156148cb57600080fd5b60006148d9858286016146cc565b92505060206148ea858286016146e1565b9150509250929050565b6000806040838503121561490757600080fd5b6000614915858286016146cc565b925050602061492685828601614774565b9150509250929050565b60006020828403121561494257600080fd5b6000614950848285016146f6565b91505092915050565b60006020828403121561496b57600080fd5b60006149798482850161470b565b91505092915050565b60006020828403121561499457600080fd5b600082013567ffffffffffffffff8111156149ae57600080fd5b6149ba8482850161474a565b91505092915050565b6000602082840312156149d557600080fd5b60006149e384828501614774565b91505092915050565b600080604083850312156149ff57600080fd5b6000614a0d85828601614774565b9250506020614a1e858286016146cc565b9150509250929050565b60008060408385031215614a3b57600080fd5b6000614a4985828601614774565b925050602083013567ffffffffffffffff811115614a6657600080fd5b614a728582860161474a565b9150509250929050565b614a8581615548565b82525050565b614a948161555a565b82525050565b6000614aa5826153b9565b614aaf81856153cf565b9350614abf8185602086016155fc565b614ac8816157c8565b840191505092915050565b614adc816155c9565b82525050565b6000614aed826153c4565b614af781856153e0565b9350614b078185602086016155fc565b614b10816157c8565b840191505092915050565b6000614b26826153c4565b614b3081856153f1565b9350614b408185602086016155fc565b80840191505092915050565b60008154614b598161562f565b614b6381866153f1565b94506001821660008114614b7e5760018114614b8f57614bc2565b60ff19831686528186019350614bc2565b614b98856153a4565b60005b83811015614bba57815481890152600182019150602081019050614b9b565b838801955050505b50505092915050565b6000614bd86032836153e0565b9150614be3826157d9565b604082019050919050565b6000614bfb6026836153e0565b9150614c0682615828565b604082019050919050565b6000614c1e601c836153e0565b9150614c2982615877565b602082019050919050565b6000614c41600a836153e0565b9150614c4c826158a0565b602082019050919050565b6000614c646024836153e0565b9150614c6f826158c9565b604082019050919050565b6000614c876019836153e0565b9150614c9282615918565b602082019050919050565b6000614caa602c836153e0565b9150614cb582615941565b604082019050919050565b6000614ccd6010836153e0565b9150614cd882615990565b602082019050919050565b6000614cf06006836153e0565b9150614cfb826159b9565b602082019050919050565b6000614d136038836153e0565b9150614d1e826159e2565b604082019050919050565b6000614d36602a836153e0565b9150614d4182615a31565b604082019050919050565b6000614d596029836153e0565b9150614d6482615a80565b604082019050919050565b6000614d7c6020836153e0565b9150614d8782615acf565b602082019050919050565b6000614d9f602c836153e0565b9150614daa82615af8565b604082019050919050565b6000614dc26020836153e0565b9150614dcd82615b47565b602082019050919050565b6000614de5600c836153e0565b9150614df082615b70565b602082019050919050565b6000614e086029836153e0565b9150614e1382615b99565b604082019050919050565b6000614e2b6021836153e0565b9150614e3682615be8565b604082019050919050565b6000614e4e6031836153e0565b9150614e5982615c37565b604082019050919050565b6000614e71600b836153e0565b9150614e7c82615c86565b602082019050919050565b6000614e946009836153e0565b9150614e9f82615caf565b602082019050919050565b6000614eb76009836153e0565b9150614ec282615cd8565b602082019050919050565b6000614eda600e836153e0565b9150614ee582615d01565b602082019050919050565b614ef9816155b2565b82525050565b6000614f0b8284614b1b565b915081905092915050565b6000614f228285614b4c565b9150614f2e8284614b1b565b91508190509392505050565b6000602082019050614f4f6000830184614a7c565b92915050565b6000608082019050614f6a6000830187614a7c565b614f776020830186614a7c565b614f846040830185614ef0565b8181036060830152614f968184614a9a565b905095945050505050565b6000604082019050614fb66000830185614a7c565b614fc36020830184614ef0565b9392505050565b6000602082019050614fdf6000830184614a8b565b92915050565b6000602082019050614ffa6000830184614ad3565b92915050565b6000602082019050818103600083015261501a8184614ae2565b905092915050565b6000602082019050818103600083015261503b81614bcb565b9050919050565b6000602082019050818103600083015261505b81614bee565b9050919050565b6000602082019050818103600083015261507b81614c11565b9050919050565b6000602082019050818103600083015261509b81614c34565b9050919050565b600060208201905081810360008301526150bb81614c57565b9050919050565b600060208201905081810360008301526150db81614c7a565b9050919050565b600060208201905081810360008301526150fb81614c9d565b9050919050565b6000602082019050818103600083015261511b81614cc0565b9050919050565b6000602082019050818103600083015261513b81614ce3565b9050919050565b6000602082019050818103600083015261515b81614d06565b9050919050565b6000602082019050818103600083015261517b81614d29565b9050919050565b6000602082019050818103600083015261519b81614d4c565b9050919050565b600060208201905081810360008301526151bb81614d6f565b9050919050565b600060208201905081810360008301526151db81614d92565b9050919050565b600060208201905081810360008301526151fb81614db5565b9050919050565b6000602082019050818103600083015261521b81614dd8565b9050919050565b6000602082019050818103600083015261523b81614dfb565b9050919050565b6000602082019050818103600083015261525b81614e1e565b9050919050565b6000602082019050818103600083015261527b81614e41565b9050919050565b6000602082019050818103600083015261529b81614e64565b9050919050565b600060208201905081810360008301526152bb81614e87565b9050919050565b600060208201905081810360008301526152db81614eaa565b9050919050565b600060208201905081810360008301526152fb81614ecd565b9050919050565b60006020820190506153176000830184614ef0565b92915050565b6000615327615338565b90506153338282615661565b919050565b6000604051905090565b600067ffffffffffffffff82111561535d5761535c615799565b5b615366826157c8565b9050602081019050919050565b600067ffffffffffffffff82111561538e5761538d615799565b5b615397826157c8565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000615407826155b2565b9150615412836155b2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154475761544661570c565b5b828201905092915050565b600061545d826155bc565b9150615468836155bc565b92508260ff0382111561547e5761547d61570c565b5b828201905092915050565b6000615494826155b2565b915061549f836155b2565b9250826154af576154ae61573b565b5b828204905092915050565b60006154c5826155b2565b91506154d0836155b2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156155095761550861570c565b5b828202905092915050565b600061551f826155b2565b915061552a836155b2565b92508282101561553d5761553c61570c565b5b828203905092915050565b600061555382615592565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006155d4826155db565b9050919050565b60006155e682615592565b9050919050565b82818337600083830152505050565b60005b8381101561561a5780820151818401526020810190506155ff565b83811115615629576000848401525b50505050565b6000600282049050600182168061564757607f821691505b6020821081141561565b5761565a61576a565b5b50919050565b61566a826157c8565b810181811067ffffffffffffffff8211171561568957615688615799565b5b80604052505050565b600061569d826155b2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156d0576156cf61570c565b5b600182019050919050565b60006156e6826155b2565b91506156f1836155b2565b9250826157015761570061573b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f3e4d6178537570706c7900000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c65206e6f74207374617274656400000000000000000000000000000000600082015250565b7f21746f6b656e0000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f21746f6b656e2e6f776e65720000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f216e616d652e76616c6964000000000000000000000000000000000000000000600082015250565b7f6e616d652e757365640000000000000000000000000000000000000000000000600082015250565b7f3e4d617850757263680000000000000000000000000000000000000000000000600082015250565b7f6e6f7420656e6f75676820657468000000000000000000000000000000000000600082015250565b615d3381615548565b8114615d3e57600080fd5b50565b615d4a8161555a565b8114615d5557600080fd5b50565b615d6181615566565b8114615d6c57600080fd5b50565b615d78816155b2565b8114615d8357600080fd5b5056fea264697066735822122016428731538bd8dbd1461d781256c3de025e72e3101b215eb28313e6dfb2f63964736f6c63430008040033
Verified Source Code Full Match
Compiler: v0.8.4+commit.c7e474f2
EVM: istanbul
Optimization: No
WBMC.sol 290 lines
/*
██╗ ██╗ █████╗ ███╗ ██╗███╗ ██╗ █████╗ ██████╗ ███████╗███████╗
██║ ██║██╔══██╗████╗ ██║████╗ ██║██╔══██╗██╔══██╗██╔════╝██╔════╝
██║ █╗ ██║███████║██╔██╗ ██║██╔██╗ ██║███████║██████╔╝█████╗ ███████╗
██║███╗██║██╔══██║██║╚██╗██║██║╚██╗██║██╔══██║██╔══██╗██╔══╝ ╚════██║
╚███╔███╔╝██║ ██║██║ ╚████║██║ ╚████║██║ ██║██████╔╝███████╗███████║
╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═════╝ ╚══════╝╚══════╝
███╗ ███╗██╗ ██╗███████╗██╗ ██████╗ ██████╗██╗ ██╗ ██╗██████╗
████╗ ████║██║ ██║██╔════╝██║██╔════╝ ██╔════╝██║ ██║ ██║██╔══██╗
██╔████╔██║██║ ██║███████╗██║██║ ██║ ██║ ██║ ██║██████╔╝
██║╚██╔╝██║██║ ██║╚════██║██║██║ ██║ ██║ ██║ ██║██╔══██╗
██║ ╚═╝ ██║╚██████╔╝███████║██║╚██████╗ ╚██████╗███████╗╚██████╔╝██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝
We're all Wannabes!
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./IVIBE20.sol";
contract WBMC is ERC721, Ownable {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private _tokenIds;
string internal baseURI;
uint internal maxPurchase = 10;
uint internal wbPrice = 70000000000000000; //0,07 eth
uint internal _totalSupply = 0;
bool public publicSale = false;
string public PROVENANCE = "";
uint256 public MAX_WANNABES = 10027;
uint256 public constant NAME_CHANGE_PRICE = 1830 * (10 ** 18);
uint256 constant public RATE = 10 * (10 ** 18);
uint256 constant public INITIAL_ISSUANCE = 1830 * (10 ** 18);
mapping(address => uint256) public rewards;
mapping(address => uint256) public lastUpdate;
mapping(uint256 => string) private _tokenNames;
mapping(string => bool) private _namesUsed;
IVIBE20 public vibeToken;
event ERC20RewardPaid(address indexed user, uint256 reward);
event Named(uint256 indexed index, string name);
constructor(string memory myBase, address _vibe20address) ERC721("WannabesMusicClub", "WBMC") {
setBaseURI(myBase);
vibeToken = IVIBE20(_vibe20address);
}
function switchSale() external onlyOwner {
publicSale = !publicSale;
}
function order(uint256 _wbQty) updateRewardOnMint(msg.sender, _wbQty)
public
payable
{
require(publicSale, "Sale not started");
require(_wbQty <= maxPurchase, ">MaxPurch");
require(totalSupply() + _wbQty <= MAX_WANNABES, ">MaxSupply");
uint salePrice = _wbQty*wbPrice;
require(msg.value >= salePrice, "not enough eth");
for (uint256 i = 0; i < _wbQty; i++) {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_safeMint(msg.sender, newItemId);
_totalSupply++;
}
}
function adminOrder(uint256 _wbQty, address _to) updateRewardOnMint(_to, _wbQty) onlyOwner
public
{
require(totalSupply() + _wbQty <= MAX_WANNABES, ">MaxSupply");
for (uint256 i = 0; i < _wbQty; i++) {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_safeMint(_to, newItemId);
_totalSupply++;
}
}
// Get current price
function getPrice() public view returns (uint) {
return wbPrice;
}
// Get total Supply
function totalSupply() public view returns (uint) {
return _totalSupply;
}
// Set price
// Just in case ETH does crazy things
function setPrice(uint _newPrice) public onlyOwner {
wbPrice = _newPrice;
}
// Get Max Purch
function getMax() public view returns (uint) {
return maxPurchase;
}
// Set Max Purch
function setMax(uint _newMax) public onlyOwner {
maxPurchase = _newMax;
}
//withdraw
function withdraw(uint256 amt) public onlyOwner {
payable(msg.sender).transfer(amt);
}
/*
* =====================================
* Metadata
* =====================================
*/
function setBaseURI(string memory newBaseURI) public onlyOwner {
baseURI = newBaseURI;
}
function setProvenanceHash(string memory provenanceHash) public onlyOwner {
PROVENANCE = provenanceHash;
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "!token");
return string(abi.encodePacked(baseURI, tokenId.toString()));
}
/*
* =====================================
* VIBE20 Rewards
* Everything is about vibe here!
* =====================================
*/
// set vibe token address
function setVIBE(address _newVibeAddress) public onlyOwner {
vibeToken = IVIBE20(_newVibeAddress);
}
// called on transfers or at getRewards
modifier updateReward(address _from, address _to) {
if (lastUpdate[_from] > 0)
rewards[_from] += balanceOf(_from) * RATE*(block.timestamp - lastUpdate[_from]) / 86400;
lastUpdate[_from] = block.timestamp;
if (_to != address(0)) {
if (lastUpdate[_to] > 0)
rewards[_to] += balanceOf(_to) * RATE*(block.timestamp - lastUpdate[_to]) / 86400;
lastUpdate[_to] = block.timestamp;
}
_;
}
// called when minting many NFTs
modifier updateRewardOnMint(address _user, uint256 _amount) {
if (lastUpdate[_user] > 0)
rewards[_user] += balanceOf(_user) * (RATE * (block.timestamp - lastUpdate[_user])) / 86400
+ (_amount * INITIAL_ISSUANCE);
else
rewards[_user] += _amount * (INITIAL_ISSUANCE);
lastUpdate[_user] = block.timestamp;
_;
}
function getReward() external updateReward(msg.sender, address(0)) {
uint256 reward = rewards[msg.sender];
if (reward > 0) {
rewards[msg.sender] = 0;
vibeToken.mint(msg.sender, reward);
emit ERC20RewardPaid(msg.sender, reward);
}
}
function getRewardBalance(address holder) external view returns (uint) {
uint256 holderReward;
if (lastUpdate[holder] > 0)
holderReward = rewards[holder] + balanceOf(holder) * RATE*(block.timestamp - lastUpdate[holder]) / 86400;
else
holderReward = 0;
return holderReward;
}
function transferFrom(address from, address to, uint256 tokenId) public override updateReward(from, to){
ERC721.transferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId) public override updateReward(from, to) {
ERC721.safeTransferFrom(from, to, tokenId);
}
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data)
public
override
updateReward(from, to) {
ERC721.safeTransferFrom(from, to, tokenId, _data);
}
/*
* ==========================================================================
* NAMING
* Be careful with it. They say, your fate depends on your name!
* ==========================================================================
*/
function setName(uint256 tokenId, string memory name) public {
address owner = ownerOf(tokenId);
require(msg.sender == owner, "!token.owner");
require(validateName(name) == true, "!name.valid");
require(isNameUsed(name) == false, "name.used");
vibeToken.burnBurner(msg.sender, NAME_CHANGE_PRICE);
if (bytes(_tokenNames[tokenId]).length > 0) {
_namesUsed[toLower(_tokenNames[tokenId])] = false;
}
_namesUsed[toLower(name)] = true;
_tokenNames[tokenId] = name;
emit Named(tokenId, name);
}
function tokenNameByIndex(uint256 index)
public
view
returns (string memory)
{
return _tokenNames[index];
}
function isNameUsed(string memory nameString) public view returns (bool) {
return _namesUsed[toLower(nameString)];
}
function validateName(string memory str) public pure returns (bool) {
bytes memory b = bytes(str);
if (b.length < 3) return false;
if (b.length > 32) return false;
if (b[0] == 0x20) return false;
if (b[b.length - 1] == 0x20) return false;
bytes1 lastChar = b[0];
for (uint256 i; i < b.length; i++) {
bytes1 char = b[i];
if (char == 0x20 && lastChar == 0x20) return false;
if (
!(char >= 0x41 && char <= 0x5A) &&
!(char >= 0x61 && char <= 0x7A) &&
!(char == 0x20)
) return false;
lastChar = char;
}
return true;
}
function toLower(string memory str) public pure returns (string memory) {
bytes memory bStr = bytes(str);
bytes memory bLower = new bytes(bStr.length);
for (uint256 i = 0; i < bStr.length; i++) {
if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
bLower[i] = bytes1(uint8(bStr[i]) + 32);
} else {
bLower[i] = bStr[i];
}
}
return string(bLower);
}
}
/*
Thanks for reading! May the force be with you!
*/
IVIBE20.sol 13 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IVIBE20 is IERC20 {
function mint(address to, uint256 amount) external;
function burnBurner(address from, uint256 amount) external;
}
Address.sol 210 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
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, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
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);
}
}
}
}
Context.sol 23 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Strings.sol 66 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
Ownable.sol 71 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_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 the zero address");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
Counters.sol 42 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
IERC20.sol 81 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
ERC721.sol 411 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
IERC721.sol 142 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
ERC165.sol 28 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
IERC165.sol 24 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
IERC721Receiver.sol 26 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
IERC721Metadata.sol 26 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
Read Contract
INITIAL_ISSUANCE 0x44a6b86c → uint256
MAX_WANNABES 0x1f5800e2 → uint256
NAME_CHANGE_PRICE 0x54b6f161 → uint256
PROVENANCE 0x6373a6b1 → string
RATE 0x664e9704 → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
getMax 0x3075f552 → uint256
getPrice 0x98d5fdca → uint256
getRewardBalance 0xd5a849e9 → uint256
isApprovedForAll 0xe985e9c5 → bool
isNameUsed 0xec75d622 → bool
lastUpdate 0xcb03fb1e → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
publicSale 0x33bc1c5c → bool
rewards 0x0700037d → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
toLower 0x9416b423 → string
tokenNameByIndex 0x6d522418 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
validateName 0x9ffdb65a → bool
vibeToken 0xefe5a15d → address
Write Contract 18 functions
These functions modify contract state and require a wallet transaction to execute.
adminOrder 0x6b0b13a5
uint256 _wbQty
address _to
approve 0x095ea7b3
address to
uint256 tokenId
getReward 0x3d18b912
No parameters
order 0x21603f43
uint256 _wbQty
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 newBaseURI
setMax 0x1fe9eabc
uint256 _newMax
setName 0xfe55932a
uint256 tokenId
string name
setPrice 0x91b7f5ed
uint256 _newPrice
setProvenanceHash 0x10969523
string provenanceHash
setVIBE 0x4d97e6e6
address _newVibeAddress
switchSale 0x5322f9d1
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x2e1a7d4d
uint256 amt
Recent Transactions
No transactions found for this address