Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x83f1d1396B19Fed8FBb31Ed189579D07362d661d
Balance 0 ETH
Nonce 1
Code Size 23609 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

23609 bytes
0x6080604052600436106102035760003560e01c80635a64ad951161011857806395d89b41116100a0578063e2adb2521161006f578063e2adb252146106ab578063e985e9c5146106d6578063ee601f2114610713578063f242432a1461073c578063f2fde38b1461076557610203565b806395d89b411461060157806396532d1c1461062c578063a22cb46514610657578063a8af32e91461068057610203565b8063715018a6116100e7578063715018a614610554578063762cda3c1461056b5780637d9677a2146105945780638456cb59146105bf5780638da5cb5b146105d657610203565b80635a64ad95146104aa5780635c975abb146104d55780635ec88893146105005780636c0360eb1461052957610203565b8063238a47091161019b5780633ccfd60b1161016a5780633ccfd60b1461040a5780633f4ba83a146104145780634e1273f41461042b578063598125d11461046857806359c74f291461049357610203565b8063238a4709146103645780632693ebf21461038d5780632eb2c2d6146103ca57806334918dfd146103f357610203565b80630e89341c116101d75780630e89341c146102d65780631249c58b14610313578063174654711461031d57806320e409b41461034857610203565b8062fdd58e1461020857806301ffc9a71461024557806302fe53051461028257806306fdde03146102ab575b600080fd5b34801561021457600080fd5b5061022f600480360381019061022a91906141a7565b61078e565b60405161023c9190614e94565b60405180910390f35b34801561025157600080fd5b5061026c600480360381019061026791906142bb565b610857565b6040516102799190614b37565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190614336565b610939565b005b3480156102b757600080fd5b506102c06109d8565b6040516102cd9190614b52565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190614377565b610a66565b60405161030a9190614b52565b60405180910390f35b61031b610a9a565b005b34801561032957600080fd5b50610332610fac565b60405161033f9190614e94565b60405180910390f35b610362600480360381019061035d9190614377565b610fb2565b005b34801561037057600080fd5b5061038b60048036038101906103869190614377565b61144b565b005b34801561039957600080fd5b506103b460048036038101906103af9190614377565b6114d1565b6040516103c19190614e94565b60405180910390f35b3480156103d657600080fd5b506103f160048036038101906103ec919061401d565b6114e9565b005b3480156103ff57600080fd5b5061040861158a565b005b610412611632565b005b34801561042057600080fd5b5061042961172b565b005b34801561043757600080fd5b50610452600480360381019061044d91906141e3565b6117b1565b60405161045f9190614ade565b60405180910390f35b34801561047457600080fd5b5061047d611962565b60405161048a9190614e94565b60405180910390f35b34801561049f57600080fd5b506104a8611968565b005b3480156104b657600080fd5b506104bf611a10565b6040516104cc9190614e94565b60405180910390f35b3480156104e157600080fd5b506104ea611a16565b6040516104f79190614b37565b60405180910390f35b34801561050c57600080fd5b5061052760048036038101906105229190614377565b611a2d565b005b34801561053557600080fd5b5061053e611ab3565b60405161054b9190614b52565b60405180910390f35b34801561056057600080fd5b50610569611b41565b005b34801561057757600080fd5b50610592600480360381019061058d9190614377565b611bc9565b005b3480156105a057600080fd5b506105a9611c4f565b6040516105b69190614e94565b60405180910390f35b3480156105cb57600080fd5b506105d4611c55565b005b3480156105e257600080fd5b506105eb611cdb565b6040516105f89190614a01565b60405180910390f35b34801561060d57600080fd5b50610616611d05565b6040516106239190614b52565b60405180910390f35b34801561063857600080fd5b50610641611d93565b60405161064e9190614b37565b60405180910390f35b34801561066357600080fd5b5061067e6004803603810190610679919061416b565b611da6565b005b34801561068c57600080fd5b50610695611f27565b6040516106a29190614a01565b60405180910390f35b3480156106b757600080fd5b506106c0611f4d565b6040516106cd9190614b37565b60405180910390f35b3480156106e257600080fd5b506106fd60048036038101906106f89190613fe1565b611f60565b60405161070a9190614b37565b60405180910390f35b34801561071f57600080fd5b5061073a6004803603810190610735919061424f565b612062565b005b34801561074857600080fd5b50610763600480360381019061075e91906140dc565b6122e0565b005b34801561077157600080fd5b5061078c60048036038101906107879190613fb8565b612381565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156107ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f690614bf4565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061092257507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610932575061093182612479565b5b9050919050565b6109416124e3565b73ffffffffffffffffffffffffffffffffffffffff1661095f611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146109b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ac90614d94565b60405180910390fd5b6109be816124eb565b80600890805190602001906109d4929190613c86565b5050565b600680546109e59061527b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a119061527b565b8015610a5e5780601f10610a3357610100808354040283529160200191610a5e565b820191906000526020600020905b815481529060010190602001808311610a4157829003601f168201915b505050505081565b60606008610a7383612505565b604051602001610a849291906149a6565b6040516020818303038152906040529050919050565b60026004541415610ae0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad790614e74565b60405180910390fd5b6002600481905550600560149054906101000a900460ff16610b37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2e90614dd4565b60405180910390fd5b600954600c5410610b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7490614d54565b60405180910390fd5b600560159054906101000a900460ff1615610c87576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231610bda6124e3565b6040518263ffffffff1660e01b8152600401610bf69190614a01565b60206040518083038186803b158015610c0e57600080fd5b505afa158015610c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4691906143a0565b11610c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7d90614c54565b60405180910390fd5b5b34600b541115610ccc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc390614db4565b60405180910390fd5b600080610cd960016126da565b91509150610dbc610ce86124e3565b83600081518110610d22577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015183600081518110610d64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151610d746128f4565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612901565b610dc46124e3565b73ffffffffffffffffffffffffffffffffffffffff167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe83600081518110610e35577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151604051610e4a9190614e94565b60405180910390a280600081518110610e8c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600f600084600081518110610ed2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002054610ef39190615048565b600f600084600081518110610f31577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080600081518110610f85577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600c54610f9a9190615048565b600c8190555050506001600481905550565b600a5481565b60026004541415610ff8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fef90614e74565b60405180910390fd5b6002600481905550600560149054906101000a900460ff1661104f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104690614dd4565b60405180910390fd5b600954600c5410611095576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108c90614d54565b60405180910390fd5b600560159054906101000a900460ff161561119f576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316110f26124e3565b6040518263ffffffff1660e01b815260040161110e9190614a01565b60206040518083038186803b15801561112657600080fd5b505afa15801561113a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115e91906143a0565b1161119e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119590614c54565b60405180910390fd5b5b600a548111156111e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111db90614cf4565b60405180910390fd5b60095481600c546111f59190615048565b1115611236576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122d90614cb4565b60405180910390fd5b3481600b546112459190615106565b1115611286576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127d90614db4565b60405180910390fd5b600080611292836126da565b915091506112f36112a16124e3565b83836112ab6128f4565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a97565b6112fb6124e3565b73ffffffffffffffffffffffffffffffffffffffff167f0fccc44f8f4572066001d167eac735aa3f72308ef306fd3af1b0bb0b6a7ba90f836040516113409190614ade565b60405180910390a260005b825181101561143d57600083828151811061138f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008383815181106113d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080600f6000848152602001908152602001600020546113fd9190615048565b600f60008481526020019081526020016000208190555080600c546114229190615048565b600c8190555050508080611435906152de565b91505061134b565b505050600160048190555050565b6114536124e3565b73ffffffffffffffffffffffffffffffffffffffff16611471611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146114c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114be90614d94565b60405180910390fd5b80600b8190555050565b600f6020528060005260406000206000915090505481565b6114f16124e3565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806115375750611536856115316124e3565b611f60565b5b611576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156d90614d34565b60405180910390fd5b6115838585858585612d01565b5050505050565b6115926124e3565b73ffffffffffffffffffffffffffffffffffffffff166115b0611cdb565b73ffffffffffffffffffffffffffffffffffffffff1614611606576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fd90614d94565b60405180910390fd5b600560159054906101000a900460ff1615600560156101000a81548160ff021916908315150217905550565b61163a6124e3565b73ffffffffffffffffffffffffffffffffffffffff16611658611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146116ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116a590614d94565b60405180910390fd5b6116b66124e3565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090614c34565b60405180910390fd5b565b6117336124e3565b73ffffffffffffffffffffffffffffffffffffffff16611751611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146117a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179e90614d94565b60405180910390fd5b6117af613061565b565b606081518351146117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee90614e14565b60405180910390fd5b6000835167ffffffffffffffff81111561183a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156118685781602001602082028036833780820191505090505b50905060005b8451811015611957576119018582815181106118b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101518583815181106118f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161078e565b82828151811061193a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080611950906152de565b905061186e565b508091505092915050565b600c5481565b6119706124e3565b73ffffffffffffffffffffffffffffffffffffffff1661198e611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146119e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119db90614d94565b60405180910390fd5b600560149054906101000a900460ff1615600560146101000a81548160ff021916908315150217905550565b600b5481565b6000600360009054906101000a900460ff16905090565b611a356124e3565b73ffffffffffffffffffffffffffffffffffffffff16611a53611cdb565b73ffffffffffffffffffffffffffffffffffffffff1614611aa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa090614d94565b60405180910390fd5b8060098190555050565b60088054611ac09061527b565b80601f0160208091040260200160405190810160405280929190818152602001828054611aec9061527b565b8015611b395780601f10611b0e57610100808354040283529160200191611b39565b820191906000526020600020905b815481529060010190602001808311611b1c57829003601f168201915b505050505081565b611b496124e3565b73ffffffffffffffffffffffffffffffffffffffff16611b67611cdb565b73ffffffffffffffffffffffffffffffffffffffff1614611bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb490614d94565b60405180910390fd5b611bc76000613103565b565b611bd16124e3565b73ffffffffffffffffffffffffffffffffffffffff16611bef611cdb565b73ffffffffffffffffffffffffffffffffffffffff1614611c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3c90614d94565b60405180910390fd5b80600a8190555050565b60095481565b611c5d6124e3565b73ffffffffffffffffffffffffffffffffffffffff16611c7b611cdb565b73ffffffffffffffffffffffffffffffffffffffff1614611cd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc890614d94565b60405180910390fd5b611cd96131c9565b565b6000600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60078054611d129061527b565b80601f0160208091040260200160405190810160405280929190818152602001828054611d3e9061527b565b8015611d8b5780601f10611d6057610100808354040283529160200191611d8b565b820191906000526020600020905b815481529060010190602001808311611d6e57829003601f168201915b505050505081565b600560149054906101000a900460ff1681565b8173ffffffffffffffffffffffffffffffffffffffff16611dc56124e3565b73ffffffffffffffffffffffffffffffffffffffff161415611e1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1390614df4565b60405180910390fd5b8060016000611e296124e3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ed66124e3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611f1b9190614b37565b60405180910390a35050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600560159054906101000a900460ff1681565b600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401611fd89190614a01565b60206040518083038186803b158015611ff057600080fd5b505afa158015612004573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612028919061430d565b73ffffffffffffffffffffffffffffffffffffffff16141561204e57600191505061205c565b612058848461326c565b9150505b92915050565b600260045414156120a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209f90614e74565b60405180910390fd5b60026004819055506120b86124e3565b73ffffffffffffffffffffffffffffffffffffffff166120d6611cdb565b73ffffffffffffffffffffffffffffffffffffffff161461212c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212390614d94565b60405180910390fd5b6121896121376124e3565b83836121416128f4565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612a97565b6121916124e3565b73ffffffffffffffffffffffffffffffffffffffff167f0fccc44f8f4572066001d167eac735aa3f72308ef306fd3af1b0bb0b6a7ba90f836040516121d69190614ade565b60405180910390a260005b82518110156122d3576000838281518110612225577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600083838151811061226a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080600f6000848152602001908152602001600020546122939190615048565b600f60008481526020019081526020016000208190555080600c546122b89190615048565b600c81905550505080806122cb906152de565b9150506121e1565b5060016004819055505050565b6122e86124e3565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061232e575061232d856123286124e3565b611f60565b5b61236d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236490614c94565b60405180910390fd5b61237a8585858585613300565b5050505050565b6123896124e3565b73ffffffffffffffffffffffffffffffffffffffff166123a7611cdb565b73ffffffffffffffffffffffffffffffffffffffff16146123fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f490614d94565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561246d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246490614c14565b60405180910390fd5b61247681613103565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b8060029080519060200190612501929190613c86565b5050565b6060600082141561254d576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126d5565b600082905060005b6000821461257f578080612568906152de565b915050600a8261257891906150d5565b9150612555565b60008167ffffffffffffffff8111156125c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125f35781602001600182028036833780820191505090505b50905060008290505b600086146126cd576001816126119190615160565b90506000600a808861262391906150d5565b61262d9190615106565b876126389190615160565b6030612644919061509e565b905060008160f81b905080848481518110612688577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a886126c491906150d5565b975050506125fc565b819450505050505b919050565b60608060008367ffffffffffffffff81111561271f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561274d5781602001602082028036833780820191505090505b50905060008467ffffffffffffffff811115612792577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156127c05781602001602082028036833780820191505090505b50905060005b858110156128e65760006127d8613582565b905060006127e582613697565b9050600081101580156128055750600160346128019190615160565b8111155b612844576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283b90614bd4565b60405180910390fd5b8085848151811061287e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505060018484815181106128c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050505080806128de906152de565b9150506127c6565b508181935093505050915091565b3660008036915091509091565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296890614e54565b60405180910390fd5b600061297b6124e3565b905061299c8160008761298d88613779565b61299688613779565b8761383f565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129fb9190615048565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612a79929190614eaf565b60405180910390a4612a908160008787878761389d565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afe90614e54565b60405180910390fd5b8151835114612b4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4290614e34565b60405180910390fd5b6000612b556124e3565b9050612b668160008787878761383f565b60005b8451811015612c6b57838181518110612bab577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600080878481518110612bef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c519190615048565b925050819055508080612c63906152de565b915050612b69565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612ce3929190614b00565b60405180910390a4612cfa81600087878787613a84565b5050505050565b8151835114612d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3c90614e34565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612db5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dac90614d14565b60405180910390fd5b6000612dbf6124e3565b9050612dcf81878787878761383f565b60005b8451811015612fcc576000858281518110612e16577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000858381518110612e5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef390614d74565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fb19190615048565b9250508190555050505080612fc5906152de565b9050612dd2565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613043929190614b00565b60405180910390a4613059818787878787613a84565b505050505050565b613069611a16565b6130a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161309f90614bb4565b60405180910390fd5b6000600360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6130ec6124e3565b6040516130f99190614a01565b60405180910390a1565b6000600360019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6131d1611a16565b15613211576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161320890614cd4565b60405180910390fd5b6001600360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586132556124e3565b6040516132629190614a01565b60405180910390a1565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336790614d14565b60405180910390fd5b600061337a6124e3565b905061339a81878761338b88613779565b61339488613779565b8761383f565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015613431576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342890614d74565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134e69190615048565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051613563929190614eaf565b60405180910390a461357982888888888861389d565b50505050505050565b6000600e6000815480929190613597906152de565b919050555060004342336040516020016135b19190614970565b6040516020818303038152906040528051906020012060001c6135d491906150d5565b4542416040516020016135e7919061498b565b6040516020818303038152906040528051906020012060001c61360a91906150d5565b44426136169190615048565b6136209190615048565b61362a9190615048565b6136349190615048565b61363e9190615048565b600e546040516020016136529291906149d5565b6040516020818303038152906040528051906020012060001c90506109e2808261367c91906150d5565b6136869190615106565b816136919190615160565b91505090565b600080600090505b600160346136ad9190615160565b81101561376e57601181815481106136ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001548310156137095780915050613774565b60118181548110613743577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154836137599190615160565b92508080613766906152de565b91505061369f565b50600090505b919050565b60606000600167ffffffffffffffff8111156137be577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156137ec5781602001602082028036833780820191505090505b509050828160008151811061382a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b61384d868686868686613c6b565b613855611a16565b15613895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161388c90614c74565b60405180910390fd5b505050505050565b6138bc8473ffffffffffffffffffffffffffffffffffffffff16613c73565b15613a7c578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401613902959493929190614a84565b602060405180830381600087803b15801561391c57600080fd5b505af192505050801561394d57506040513d601f19601f8201168201806040525081019061394a91906142e4565b60015b6139f357613959615423565b806308c379a014156139b6575061396e615afa565b8061397957506139b8565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ad9190614b52565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139ea90614b74565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a7190614b94565b60405180910390fd5b505b505050505050565b613aa38473ffffffffffffffffffffffffffffffffffffffff16613c73565b15613c63578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613ae9959493929190614a1c565b602060405180830381600087803b158015613b0357600080fd5b505af1925050508015613b3457506040513d601f19601f82011682018060405250810190613b3191906142e4565b60015b613bda57613b40615423565b806308c379a01415613b9d5750613b55615afa565b80613b605750613b9f565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b949190614b52565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bd190614b74565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c5890614b94565b60405180910390fd5b505b505050505050565b505050505050565b600080823b905060008111915050919050565b828054613c929061527b565b90600052602060002090601f016020900481019282613cb45760008555613cfb565b82601f10613ccd57805160ff1916838001178555613cfb565b82800160010185558215613cfb579182015b82811115613cfa578251825591602001919060010190613cdf565b5b509050613d089190613d0c565b5090565b5b80821115613d25576000816000905550600101613d0d565b5090565b6000613d3c613d3784614efd565b614ed8565b90508083825260208201905082856020860282011115613d5b57600080fd5b60005b85811015613d8b5781613d718882613e7d565b845260208401935060208301925050600181019050613d5e565b5050509392505050565b6000613da8613da384614f29565b614ed8565b90508083825260208201905082856020860282011115613dc757600080fd5b60005b85811015613df75781613ddd8882613f8e565b845260208401935060208301925050600181019050613dca565b5050509392505050565b6000613e14613e0f84614f55565b614ed8565b905082815260208101848484011115613e2c57600080fd5b613e37848285615239565b509392505050565b6000613e52613e4d84614f86565b614ed8565b905082815260208101848484011115613e6a57600080fd5b613e75848285615239565b509392505050565b600081359050613e8c81615b90565b92915050565b600082601f830112613ea357600080fd5b8135613eb3848260208601613d29565b91505092915050565b600082601f830112613ecd57600080fd5b8135613edd848260208601613d95565b91505092915050565b600081359050613ef581615ba7565b92915050565b600081359050613f0a81615bbe565b92915050565b600081519050613f1f81615bbe565b92915050565b600082601f830112613f3657600080fd5b8135613f46848260208601613e01565b91505092915050565b600081519050613f5e81615bd5565b92915050565b600082601f830112613f7557600080fd5b8135613f85848260208601613e3f565b91505092915050565b600081359050613f9d81615bec565b92915050565b600081519050613fb281615bec565b92915050565b600060208284031215613fca57600080fd5b6000613fd884828501613e7d565b91505092915050565b60008060408385031215613ff457600080fd5b600061400285828601613e7d565b925050602061401385828601613e7d565b9150509250929050565b600080600080600060a0868803121561403557600080fd5b600061404388828901613e7d565b955050602061405488828901613e7d565b945050604086013567ffffffffffffffff81111561407157600080fd5b61407d88828901613ebc565b935050606086013567ffffffffffffffff81111561409a57600080fd5b6140a688828901613ebc565b925050608086013567ffffffffffffffff8111156140c357600080fd5b6140cf88828901613f25565b9150509295509295909350565b600080600080600060a086880312156140f457600080fd5b600061410288828901613e7d565b955050602061411388828901613e7d565b945050604061412488828901613f8e565b935050606061413588828901613f8e565b925050608086013567ffffffffffffffff81111561415257600080fd5b61415e88828901613f25565b9150509295509295909350565b6000806040838503121561417e57600080fd5b600061418c85828601613e7d565b925050602061419d85828601613ee6565b9150509250929050565b600080604083850312156141ba57600080fd5b60006141c885828601613e7d565b92505060206141d985828601613f8e565b9150509250929050565b600080604083850312156141f657600080fd5b600083013567ffffffffffffffff81111561421057600080fd5b61421c85828601613e92565b925050602083013567ffffffffffffffff81111561423957600080fd5b61424585828601613ebc565b9150509250929050565b6000806040838503121561426257600080fd5b600083013567ffffffffffffffff81111561427c57600080fd5b61428885828601613ebc565b925050602083013567ffffffffffffffff8111156142a557600080fd5b6142b185828601613ebc565b9150509250929050565b6000602082840312156142cd57600080fd5b60006142db84828501613efb565b91505092915050565b6000602082840312156142f657600080fd5b600061430484828501613f10565b91505092915050565b60006020828403121561431f57600080fd5b600061432d84828501613f4f565b91505092915050565b60006020828403121561434857600080fd5b600082013567ffffffffffffffff81111561436257600080fd5b61436e84828501613f64565b91505092915050565b60006020828403121561438957600080fd5b600061439784828501613f8e565b91505092915050565b6000602082840312156143b257600080fd5b60006143c084828501613fa3565b91505092915050565b60006143d5838361493b565b60208301905092915050565b6143f26143ed826151a6565b615339565b82525050565b61440181615194565b82525050565b61441861441382615194565b615327565b82525050565b600061442982614fdc565b614433818561500a565b935061443e83614fb7565b8060005b8381101561446f57815161445688826143c9565b975061446183614ffd565b925050600181019050614442565b5085935050505092915050565b614485816151b8565b82525050565b600061449682614fe7565b6144a0818561501b565b93506144b0818560208601615248565b6144b981615445565b840191505092915050565b60006144cf82614ff2565b6144d9818561502c565b93506144e9818560208601615248565b6144f281615445565b840191505092915050565b600061450882614ff2565b614512818561503d565b9350614522818560208601615248565b80840191505092915050565b6000815461453b8161527b565b614545818661503d565b945060018216600081146145605760018114614571576145a4565b60ff198316865281860193506145a4565b61457a85614fc7565b60005b8381101561459c5781548189015260018201915060208101905061457d565b838801955050505b50505092915050565b60006145ba60348361502c565b91506145c582615470565b604082019050919050565b60006145dd60288361502c565b91506145e8826154bf565b604082019050919050565b600061460060148361502c565b915061460b8261550e565b602082019050919050565b600061462360158361502c565b915061462e82615537565b602082019050919050565b6000614646602b8361502c565b915061465182615560565b604082019050919050565b600061466960268361502c565b9150614674826155af565b604082019050919050565b600061468c60168361502c565b9150614697826155fe565b602082019050919050565b60006146af60308361502c565b91506146ba82615627565b604082019050919050565b60006146d2602c8361502c565b91506146dd82615676565b604082019050919050565b60006146f560298361502c565b9150614700826156c5565b604082019050919050565b6000614718602f8361502c565b915061472382615714565b604082019050919050565b600061473b60108361502c565b915061474682615763565b602082019050919050565b600061475e601c8361502c565b91506147698261578c565b602082019050919050565b600061478160258361502c565b915061478c826157b5565b604082019050919050565b60006147a460328361502c565b91506147af82615804565b604082019050919050565b60006147c7601b8361502c565b91506147d282615853565b602082019050919050565b60006147ea602a8361502c565b91506147f58261587c565b604082019050919050565b600061480d60208361502c565b9150614818826158cb565b602082019050919050565b600061483060218361502c565b915061483b826158f4565b604082019050919050565b600061485360128361502c565b915061485e82615943565b602082019050919050565b600061487660298361502c565b91506148818261596c565b604082019050919050565b600061489960298361502c565b91506148a4826159bb565b604082019050919050565b60006148bc60288361502c565b91506148c782615a0a565b604082019050919050565b60006148df60218361502c565b91506148ea82615a59565b604082019050919050565b6000614902601f8361502c565b915061490d82615aa8565b602082019050919050565b600061492560018361503d565b915061493082615ad1565b600182019050919050565b61494481615222565b82525050565b61495381615222565b82525050565b61496a61496582615222565b61535d565b82525050565b600061497c8284614407565b60148201915081905092915050565b600061499782846143e1565b60148201915081905092915050565b60006149b2828561452e565b91506149bd82614918565b91506149c982846144fd565b91508190509392505050565b60006149e18285614959565b6020820191506149f18284614959565b6020820191508190509392505050565b6000602082019050614a1660008301846143f8565b92915050565b600060a082019050614a3160008301886143f8565b614a3e60208301876143f8565b8181036040830152614a50818661441e565b90508181036060830152614a64818561441e565b90508181036080830152614a78818461448b565b90509695505050505050565b600060a082019050614a9960008301886143f8565b614aa660208301876143f8565b614ab3604083018661494a565b614ac0606083018561494a565b8181036080830152614ad2818461448b565b90509695505050505050565b60006020820190508181036000830152614af8818461441e565b905092915050565b60006040820190508181036000830152614b1a818561441e565b90508181036020830152614b2e818461441e565b90509392505050565b6000602082019050614b4c600083018461447c565b92915050565b60006020820190508181036000830152614b6c81846144c4565b905092915050565b60006020820190508181036000830152614b8d816145ad565b9050919050565b60006020820190508181036000830152614bad816145d0565b9050919050565b60006020820190508181036000830152614bcd816145f3565b9050919050565b60006020820190508181036000830152614bed81614616565b9050919050565b60006020820190508181036000830152614c0d81614639565b9050919050565b60006020820190508181036000830152614c2d8161465c565b9050919050565b60006020820190508181036000830152614c4d8161467f565b9050919050565b60006020820190508181036000830152614c6d816146a2565b9050919050565b60006020820190508181036000830152614c8d816146c5565b9050919050565b60006020820190508181036000830152614cad816146e8565b9050919050565b60006020820190508181036000830152614ccd8161470b565b9050919050565b60006020820190508181036000830152614ced8161472e565b9050919050565b60006020820190508181036000830152614d0d81614751565b9050919050565b60006020820190508181036000830152614d2d81614774565b9050919050565b60006020820190508181036000830152614d4d81614797565b9050919050565b60006020820190508181036000830152614d6d816147ba565b9050919050565b60006020820190508181036000830152614d8d816147dd565b9050919050565b60006020820190508181036000830152614dad81614800565b9050919050565b60006020820190508181036000830152614dcd81614823565b9050919050565b60006020820190508181036000830152614ded81614846565b9050919050565b60006020820190508181036000830152614e0d81614869565b9050919050565b60006020820190508181036000830152614e2d8161488c565b9050919050565b60006020820190508181036000830152614e4d816148af565b9050919050565b60006020820190508181036000830152614e6d816148d2565b9050919050565b60006020820190508181036000830152614e8d816148f5565b9050919050565b6000602082019050614ea9600083018461494a565b92915050565b6000604082019050614ec4600083018561494a565b614ed1602083018461494a565b9392505050565b6000614ee2614ef3565b9050614eee82826152ad565b919050565b6000604051905090565b600067ffffffffffffffff821115614f1857614f176153f4565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f4457614f436153f4565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f7057614f6f6153f4565b5b614f7982615445565b9050602081019050919050565b600067ffffffffffffffff821115614fa157614fa06153f4565b5b614faa82615445565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061505382615222565b915061505e83615222565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561509357615092615367565b5b828201905092915050565b60006150a98261522c565b91506150b48361522c565b92508260ff038211156150ca576150c9615367565b5b828201905092915050565b60006150e082615222565b91506150eb83615222565b9250826150fb576150fa615396565b5b828204905092915050565b600061511182615222565b915061511c83615222565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561515557615154615367565b5b828202905092915050565b600061516b82615222565b915061517683615222565b92508282101561518957615188615367565b5b828203905092915050565b600061519f82615202565b9050919050565b60006151b182615202565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006151fb82615194565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561526657808201518184015260208101905061524b565b83811115615275576000848401525b50505050565b6000600282049050600182168061529357607f821691505b602082108114156152a7576152a66153c5565b5b50919050565b6152b682615445565b810181811067ffffffffffffffff821117156152d5576152d46153f4565b5b80604052505050565b60006152e982615222565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561531c5761531b615367565b5b600182019050919050565b60006153328261534b565b9050919050565b60006153448261534b565b9050919050565b600061535682615456565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156154425760046000803e61543f600051615463565b90505b90565b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160e01c9050919050565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f546f6b656e204944204f7574204f662052616e67650000000000000000000000600082015250565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f556e61626c6520746f2057697468647261772045544800000000000000000000600082015250565b7f4d696e74696e672043757272656e746c7920417661696c61626c6520466f722060008201527f4c4f4f54204f776e657273204f6e6c7900000000000000000000000000000000602082015250565b7f455243313135355061757361626c653a20746f6b656e207472616e736665722060008201527f7768696c65207061757365640000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b7f5468697320416d6f756e742077696c6c206578636565642074686520746f746160008201527f6c204d696e747320616c6c6f7765640000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4578636565646564204d617820546f6b656e7320506572204d696e7400000000600082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b7f416c6c20546f6b656e732048617665204265656e204d696e7465640000000000600082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4e6f7420456e6f75676820457468657220526571756972656420546f204d696e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d696e74696e67204e6f74204163746976650000000000000000000000000000600082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600060443d1015615b0a57615b8d565b615b12614ef3565b60043d036004823e80513d602482011167ffffffffffffffff82111715615b3a575050615b8d565b808201805167ffffffffffffffff811115615b585750505050615b8d565b80602083010160043d038501811115615b75575050505050615b8d565b615b84826020018501866152ad565b82955050505050505b90565b615b9981615194565b8114615ba457600080fd5b50565b615bb0816151b8565b8114615bbb57600080fd5b50565b615bc7816151c4565b8114615bd257600080fd5b50565b615bde816151f0565b8114615be957600080fd5b50565b615bf581615222565b8114615c0057600080fd5b5056fea26469706673582212204d9a21fb14d2dbd69305114db827f46324d1d29e93651bc5b6f47c73234324d964736f6c63430008040033

Verified Source Code Partial Match

Compiler: v0.8.4+commit.c7e474f2 EVM: istanbul Optimization: No
LootHymns.sol 1968 lines
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.22 <0.9.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);
}

//
/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 value
    );

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(
        address indexed account,
        address indexed operator,
        bool approved
    );

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id)
        external
        view
        returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator)
        external
        view
        returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

//
/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

//
/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

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

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

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

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

//
/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            account != address(0),
            "ERC1155: balance query for the zero address"
        );
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(
            accounts.length == ids.length,
            "ERC1155: accounts and ids length mismatch"
        );

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(
            _msgSender() != operator,
            "ERC1155: setting approval status for self"
        );

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            from,
            to,
            _asSingletonArray(id),
            _asSingletonArray(amount),
            data
        );

        uint256 fromBalance = _balances[id][from];
        require(
            fromBalance >= amount,
            "ERC1155: insufficient balance for transfer"
        );
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(
                fromBalance >= amount,
                "ERC1155: insufficient balance for transfer"
            );
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(
            operator,
            from,
            to,
            ids,
            amounts,
            data
        );
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            address(0),
            account,
            _asSingletonArray(id),
            _asSingletonArray(amount),
            data
        );

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(
            operator,
            address(0),
            account,
            id,
            amount,
            data
        );
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(
            operator,
            address(0),
            to,
            ids,
            amounts,
            data
        );
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(
            operator,
            account,
            address(0),
            _asSingletonArray(id),
            _asSingletonArray(amount),
            ""
        );

        uint256 accountBalance = _balances[id][account];
        require(
            accountBalance >= amount,
            "ERC1155: burn amount exceeds balance"
        );
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(
            ids.length == amounts.length,
            "ERC1155: ids and amounts length mismatch"
        );

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(
                accountBalance >= amount,
                "ERC1155: burn amount exceeds balance"
            );
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155Received(
                    operator,
                    from,
                    id,
                    amount,
                    data
                )
            returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try
                IERC1155Receiver(to).onERC1155BatchReceived(
                    operator,
                    from,
                    ids,
                    amounts,
                    data
                )
            returns (bytes4 response) {
                if (
                    response != IERC1155Receiver.onERC1155BatchReceived.selector
                ) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element)
        private
        pure
        returns (uint256[] memory)
    {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

//
/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

//
/**
 * @dev ERC1155 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Pausable is ERC1155, Pausable {
    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        require(!paused(), "ERC1155Pausable: token transfer while paused");
    }
}

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

//
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b)
        internal
        pure
        returns (bool, uint256)
    {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

//
/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to...

// [truncated — 60702 bytes total]

Read Contract

balanceOf 0x00fdd58e → uint256
balanceOfBatch 0x4e1273f4 → uint256[]
baseURI 0x6c0360eb → string
isApprovedForAll 0xe985e9c5 → bool
lootContractAddress 0xa8af32e9 → address
maxMintsAllowed 0x7d9677a2 → uint256
maxTokensPerMint 0x17465471 → uint256
mintingAllowed 0x96532d1c → bool
mintingFee 0x5a64ad95 → uint256
name 0x06fdde03 → string
onlyLootHolders 0xe2adb252 → bool
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenSupply 0x2693ebf2 → uint256
totalMintsSupply 0x598125d1 → uint256
uri 0x0e89341c → string

Write Contract 17 functions

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

flipMintState 0x59c74f29
No parameters
flipSaleState 0x34918dfd
No parameters
mint 0x1249c58b
No parameters
mintBatch 0x20e409b4
uint256 _amount
pause 0x8456cb59
No parameters
renounceOwnership 0x715018a6
No parameters
reserve 0xee601f21
uint256[] tokenIds
uint256[] amounts
safeBatchTransferFrom 0x2eb2c2d6
address from
address to
uint256[] ids
uint256[] amounts
bytes data
safeTransferFrom 0xf242432a
address from
address to
uint256 id
uint256 amount
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setMaxMintsAllowed 0x5ec88893
uint256 _mints
setMaxTokensPerMint 0x762cda3c
uint256 _max
setMintingFee 0x238a4709
uint256 _fee
setURI 0x02fe5305
string _uri
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address