Address Contract Partially Verified
Address
0x2963bA471e265e5F51cAfaFca78310FE87F8E6D1
Balance
0 ETH
Nonce
1
Code Size
23975 bytes
Creator
0xc385641e...b114 at tx 0xabc4d719...09e048
Indexed Transactions
0
Contract Bytecode
23975 bytes
0x608060405234801561001057600080fd5b50600436106103db5760003560e01c806376aab0731161020a578063a47a2e7711610125578063d400c4c1116100b8578063f2fde38b11610087578063f2fde38b14610905578063fb12a87614610918578063fd694df11461092b578063ffa1ad741461093e578063ffca4bd21461095857600080fd5b8063d400c4c1146108b8578063d5edf45b146108cb578063e985e9c5146108df578063ed32314a146108f257600080fd5b8063c87b56dd116100f4578063c87b56dd1461086c578063c95ab4621461087f578063cd161d2e14610892578063cd73f476146108a557600080fd5b8063a47a2e771461082b578063a790c0e21461083e578063b39ba60a14610846578063b88d4fde1461085957600080fd5b80638ce876461161019d578063987311b51161016c578063987311b5146107cd5780639b36830d146107e0578063a22cb46514610805578063a22d6eba1461081857600080fd5b80638ce876461461078e5780638da5cb5b146107a15780638e945e3b146107b257806395d89b41146107c557600080fd5b80637ff9f614116101d95780637ff9f6141461072c5780638456cb591461073f5780638a603bdf146107475780638c2ba8fe1461077b57600080fd5b806376aab073146106ca578063788e0543146106dd57806378cc32bc146106f05780637b47ec1a146105c557600080fd5b80633f4ba83a116102fa578063570efd461161028d5780635e7785a61161025c5780635e7785a6146106895780636352211e1461069c57806370a08231146106af578063715018a6146106c257600080fd5b8063570efd46146106455780635b7633d0146106585780635c975abb1461066b5780635cf09fee1461067657600080fd5b806345682a0b116102c957806345682a0b146105eb57806347ca0e02146105fe5780634f4385521461061157806355df42751461062557600080fd5b80633f4ba83a146105aa57806342842e0e146105b257806342966c68146105c5578063430648bc146105d857600080fd5b80631ad325621161037257806323b872dd1161034157806323b872dd146105185780632a55205a1461052b5780633ad0288e1461054b5780633db57cbe1461055e57600080fd5b80631ad32562146104ca5780631dc88a5b146104ea5780631fc09717146104fd57806323077f581461050557600080fd5b8063095ea7b3116103ae578063095ea7b3146104715780630c9999291461048657806313e2263e1461049e578063147ca2af146104b257600080fd5b806301ffc9a7146103e05780630629abf21461040857806306fdde0314610449578063081812fc1461045e575b600080fd5b6103f36103ee366004614a06565b61096b565b60405190151581526020015b60405180910390f35b610431610416366004614a48565b6010602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016103ff565b6104516109bd565b6040516103ff9190614abd565b61043161046c366004614ad0565b610a4f565b61048461047f366004614ae9565b610adc565b005b6104906201518081565b6040519081526020016103ff565b600a546103f390600160a01b900460ff1681565b6009546104319061010090046001600160a01b031681565b6104906104d8366004614a48565b60086020526000908152604090205481565b6104846104f8366004614e2e565b610bf2565b610484610dc9565b610484610513366004614ad0565b610e25565b610484610526366004614ede565b610e55565b61053e610539366004614f1f565b610e86565b6040516103ff9190614f41565b610484610559366004614fb2565b610e9b565b61058e61056c366004614ad0565b600f602052600090815260409020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016103ff565b610484610f8e565b6104846105c0366004614ede565b610fc2565b6104846105d3366004614ad0565b610fdd565b6104846105e6366004614feb565b610fe7565b6104846105f9366004614a48565b61106f565b600d54610431906001600160a01b031681565b600a546103f390600160a81b900460ff1681565b610638610633366004614ad0565b6111a5565b6040516103ff919061510f565b6104846106533660046152ee565b611390565b600a54610431906001600160a01b031681565b60095460ff166103f3565b610484610684366004615391565b611465565b610484610697366004614a48565b611656565b6104316106aa366004614ad0565b6118d5565b6104906106bd366004614a48565b61194c565b6104846119d3565b6104846106d8366004615423565b611a07565b600c54610431906001600160a01b031681565b6107036106fe366004614ad0565b611af6565b604080516001600160a01b039094168452911515602084015261ffff16908201526060016103ff565b61048461073a366004614a48565b611b67565b610484611bff565b61075a610755366004614ad0565b611c31565b60408051825163ffffffff16815260209283015192810192909252016103ff565b6104846107893660046152ee565b611cc3565b61048461079c366004614a48565b611d81565b6006546001600160a01b0316610431565b61053e6107c0366004614f1f565b611df9565b610451611e07565b6104846107db3660046154c6565b611e16565b6107f36107ee366004614ad0565b612041565b6040516103ff969594939291906154fa565b610484610813366004614fb2565b612121565b610484610826366004614ad0565b6121e6565b610484610839366004614a48565b6122e8565b610484612379565b600b54610431906001600160a01b031681565b610484610867366004615550565b6123c7565b61045161087a366004614ad0565b6123ff565b600754610431906001600160a01b031681565b6104846108a0366004614a48565b612481565b6104846108b33660046155cf565b6125af565b6104846108c6366004615665565b612690565b6007546103f390600160a01b900460ff1681565b6103f36108ed366004615391565b61270f565b610484610900366004615699565b612821565b610484610913366004614a48565b6128fd565b6103f3610926366004614a48565b612995565b610484610939366004615665565b6129d2565b610946600381565b60405160ff90911681526020016103ff565b6104846109663660046156cd565b612a31565b60006001600160e01b031982166380ac58cd60e01b148061099c57506001600160e01b03198216635b5e139f60e01b145b806109b757506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109cc90615701565b80601f01602080910402602001604051908101604052809291908181526020018280546109f890615701565b8015610a455780601f10610a1a57610100808354040283529160200191610a45565b820191906000526020600020905b815481529060010190602001808311610a2857829003601f168201915b5050505050905090565b6000610a5a82612abb565b610ac05760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610ae7826118d5565b9050806001600160a01b0316836001600160a01b03161415610b555760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610ab7565b336001600160a01b0382161480610b715750610b71813361270f565b610be35760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ab7565b610bed8383612ad8565b505050565b60095460ff1615610c155760405162461bcd60e51b8152600401610ab79061573c565b610c1e33612995565b610c3a5760405162461bcd60e51b8152600401610ab790615766565b600d546001600160a01b0316610c805760405162461bcd60e51b815260206004820152600b60248201526a07661756c74203d203078360ac1b6044820152606401610ab7565b60005b81518163ffffffff161015610dc5576000828263ffffffff1681518110610cac57610cac615795565b60209081029190910181015180516000908152600e9092526040909120805491925090600160401b90046001600160a01b031615801590610d05575060608201518154600160401b90046001600160a01b039081169116145b610d3e5760405162461bcd60e51b815260206004820152600a60248201526922269031b932b0ba37b960b11b6044820152606401610ab7565b8054600d54610d60916001600160a01b03600160401b9091048116911661270f565b1515600114610da65760405162461bcd60e51b8152602060048201526012602482015271617070726f7665616c6c206d697373696e6760701b6044820152606401610ab7565b610db08282612b46565b50508080610dbd906157c1565b915050610c83565b5050565b60095460ff1615610dec5760405162461bcd60e51b8152600401610ab79061573c565b6006546001600160a01b03163314610e165760405162461bcd60e51b8152600401610ab7906157e5565b600a805460ff60a81b19169055565b60095460ff1615610e485760405162461bcd60e51b8152600401610ab79061573c565b610e528133612ca5565b50565b610e5f3382612e08565b610e7b5760405162461bcd60e51b8152600401610ab79061581a565b610bed838383612ed2565b6060610e9483836001613072565b9392505050565b60095460ff1615610ebe5760405162461bcd60e51b8152600401610ab79061573c565b610ec733612995565b610ee35760405162461bcd60e51b8152600401610ab790615766565b6001600160a01b038216610f285760405162461bcd60e51b815260206004820152600c60248201526b63616e74206265207a65726f60a01b6044820152606401610ab7565b600a80546001600160a01b038481166001600160a81b031990921691909117600160a01b841515021791829055604051911681527f892cc3ddabcf4697be271eb3df1f098bec1713e58e7287c001532df08b5ebaab906020015b60405180910390a15050565b6006546001600160a01b03163314610fb85760405162461bcd60e51b8152600401610ab7906157e5565b610fc06135c5565b565b610bed838383604051806020016040528060008152506123c7565b610e528133613658565b60095460ff161561100a5760405162461bcd60e51b8152600401610ab79061573c565b60005b81518163ffffffff161015610dc5576000828263ffffffff168151811061103657611036615795565b6020026020010151905061105c61105082600001516118d5565b60208301518351610fc2565b5080611067816157c1565b91505061100d565b60095460ff16156110925760405162461bcd60e51b8152600401610ab79061573c565b6006546001600160a01b031633146110bc5760405162461bcd60e51b8152600401610ab7906157e5565b60008190506000816001600160a01b031663c20a03826040518163ffffffff1660e01b815260040160206040518083038186803b1580156110fc57600080fd5b505afa158015611110573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611134919061586b565b9050661b5c1d985d5b1d60ca1b81146111815760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081b5c1d985d5b1d608a1b6044820152606401610ab7565b50600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6040805160e0810182526000808252602082018190529181018290526060808201839052608082019290925260a0810182905260c08101919091526000828152600e60209081526040808320815160e081018352815463ffffffff8082168352600160201b82041682860152600160401b81046001600160a01b031682850152600160e01b810461ffff166060830152600160f01b900460ff16151560808201526001820180548451818702810187019095528085529194929360a0860193909290879084015b828210156112c857600084815260209081902060408051606081018252918501546001600160a01b038116835265ffffffffffff600160a01b8204811684860152600160d01b909104169082015282526001909201910161126c565b5050505081526020016002820180546112e090615701565b80601f016020809104026020016040519081016040528092919081815260200182805461130c90615701565b80156113595780601f1061132e57610100808354040283529160200191611359565b820191906000526020600020905b81548152906001019060200180831161133c57829003601f168201915b5050509190925250505060408101519091506001600160a01b03166109b75760405162461bcd60e51b8152600401610ab790615884565b60095460ff16156113b35760405162461bcd60e51b8152600401610ab79061573c565b6113bc33612995565b6113d85760405162461bcd60e51b8152600401610ab790615766565b60005b81518163ffffffff161015610dc5576000828263ffffffff168151811061140457611404615795565b60200260200101519050600061143b8260400151836000015184602001518560c001518660a0015187606001518860800151613718565b90506114508260400151828460e00151613938565b5050808061145d906157c1565b9150506113db565b6001600160a01b0380831660009081526010602052604090205416331580159061149757506001600160a01b03831615155b6114f25760405162461bcd60e51b815260206004820152602660248201527f43726561746f72206d7573742062652076616c6964206e6f6e20307830206164604482015265323932b9b99760d11b6064820152608401610ab7565b336001600160a01b03841614806115115750336001600160a01b038216145b6115545760405162461bcd60e51b81526020600482015260146024820152732ab730baba3437b934bd32b21031b0b63632b91760611b6044820152606401610ab7565b6001600160a01b03811661158f5733600090815260106020526040902080546001600160a01b0319166001600160a01b03841617905561160d565b336001600160a01b038216146115de5760405162461bcd60e51b81526020600482015260146024820152732ab730baba3437b934bd32b21031b0b63632b91760611b6044820152606401610ab7565b6001600160a01b03838116600090815260106020526040902080546001600160a01b0319169184169190911790555b604080516001600160a01b038086168252841660208201527fde6cfdf21fe76bcb45258138e27bcd332b76941b24d226b5da8dc5f9cd531c3e91015b60405180910390a1505050565b60095460ff16156116795760405162461bcd60e51b8152600401610ab79061573c565b6006546001600160a01b031633148061169c57506007546001600160a01b031633145b6116b85760405162461bcd60e51b8152600401610ab7906158bb565b600a54600160a81b900460ff1615156001146116fb5760405162461bcd60e51b81526020600482015260026024820152616e6f60f01b6044820152606401610ab7565b6000819050806001600160a01b031663ffa1ad746040518163ffffffff1660e01b815260040160206040518083038186803b15801561173957600080fd5b505afa15801561174d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061177191906158e1565b60ff166001146117b25760405162461bcd60e51b815260206004820152600c60248201526b726f796c74792076213d203160a01b6044820152606401610ab7565b6000816001600160a01b031663c20a03826040518163ffffffff1660e01b815260040160006040518083038186803b1580156117ed57600080fd5b505afa158015611801573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118299190810190615904565b6040516020016118399190615971565b604051602081830303815290604052805190602001209050807fb590ff355bf2d720a7e957392d3b76fd1adda1832940640bf5d5a7c387fed32360001b146118b15760405162461bcd60e51b815260206004820152600b60248201526a6e6f7420726f79616c747960a81b6044820152606401610ab7565b50600c80546001600160a01b0319166001600160a01b039290921691909117905550565b6000818152600260205260408120546001600160a01b0316806109b75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610ab7565b60006001600160a01b0382166119b75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610ab7565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146119fd5760405162461bcd60e51b8152600401610ab7906157e5565b610fc06000613c30565b60095460ff1615611a2a5760405162461bcd60e51b8152600401610ab79061573c565b611a3333612995565b611a4f5760405162461bcd60e51b8152600401610ab790615766565b60005b81518163ffffffff161015610dc5576000828263ffffffff1681518110611a7b57611a7b615795565b60209081029190910181015180516000908152600e9092526040909120805491925090600160401b90046001600160a01b0316611aca5760405162461bcd60e51b8152600401610ab790615884565b611ae1826040015183600001518460200151613938565b50508080611aee906157c1565b915050611a52565b6000818152600e60205260408120805482918291600160401b90046001600160a01b0316611b365760405162461bcd60e51b8152600401610ab790615884565b8054600190910154600160401b82046001600160a01b0316969015159550600160e01b90910461ffff169350915050565b6006546001600160a01b0316331480611b8a57506007546001600160a01b031633145b611ba65760405162461bcd60e51b8152600401610ab7906158bb565b6001600160a01b03811660008181526008602090815260408083208390558051938452908301919091527fe2e2dad866561a9926816384b10b4073c5e0e101b6c911e4936d22438bd63e9b91015b60405180910390a150565b6006546001600160a01b03163314611c295760405162461bcd60e51b8152600401610ab7906157e5565b610fc0613c82565b6040805180820190915260008082526020820152611c4e82612abb565b611c935760405162461bcd60e51b81526020600482015260166024820152751c995b19585cd948191bd95cc81b9bdd08195e1a5cdd60521b6044820152606401610ab7565b506000908152600f60209081526040918290208251808401909352805463ffffffff168352600101549082015290565b60095460ff1615611ce65760405162461bcd60e51b8152600401610ab79061573c565b611cef33612995565b611d0b5760405162461bcd60e51b8152600401610ab790615766565b60005b81518163ffffffff161015610dc5576000828263ffffffff1681518110611d3757611d37615795565b60200260200101519050611d6c8160400151826000015183602001518460c001518560a0015186606001518760800151613718565b50508080611d79906157c1565b915050611d0e565b6006546001600160a01b03163314611dab5760405162461bcd60e51b8152600401610ab7906157e5565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527ffbd1c2e6a1f767e08b9689ca3ce8ca1e7b60fbb71734bfc34f39f5bcb846cf3090602001611bf4565b6060610e9483836000613072565b6060600180546109cc90615701565b60095460ff1615611e395760405162461bcd60e51b8152600401610ab79061573c565b611e4233612995565b611e5e5760405162461bcd60e51b8152600401610ab790615766565b600d546001600160a01b0316611ea45760405162461bcd60e51b815260206004820152600b60248201526a07661756c74203d203078360ac1b6044820152606401610ab7565b60005b81518163ffffffff161015612011576000828263ffffffff1681518110611ed057611ed0615795565b6020908102919091018101516000818152600e9092526040909120805491925090600160401b90046001600160a01b0316611f3d5760405162461bcd60e51b815260206004820152600d60248201526c2226903737ba103337bab7321760991b6044820152606401610ab7565b8054600160f01b900460ff1615611f855760405162461bcd60e51b815260206004820152600c60248201526b444d20696d6d757461626c6560a01b6044820152606401610ab7565b8054600d54611fa7916001600160a01b03600160401b9091048116911661270f565b1515600114611fed5760405162461bcd60e51b8152602060048201526012602482015271617070726f7665616c6c206d697373696e6760701b6044820152606401610ab7565b805460ff60f01b1916600160f01b1790555080612009816157c1565b915050611ea7565b507f9d16e0b5e4fbfa71074176e81041192860b75c5094916faa8f717a806979a9af81604051611bf4919061598d565b600e602052600090815260409020805460028201805463ffffffff80841694600160201b850490911693600160401b81046001600160a01b031693600160e01b820461ffff1693600160f01b90920460ff16929161209e90615701565b80601f01602080910402602001604051908101604052809291908181526020018280546120ca90615701565b80156121175780601f106120ec57610100808354040283529160200191612117565b820191906000526020600020905b8154815290600101906020018083116120fa57829003601f168201915b5050505050905086565b6001600160a01b03821633141561217a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ab7565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600e602052604090208054600160401b90046001600160a01b03161580159061222457508054600160401b90046001600160a01b031633145b61225d5760405162461bcd60e51b815260206004820152600a60248201526922269031b932b0ba37b960b11b6044820152606401610ab7565b8054600160f01b900460ff16156122a55760405162461bcd60e51b815260206004820152600c60248201526b444d20696d6d757461626c6560a01b6044820152606401610ab7565b805460ff60f01b1916600160f01b1781556040517fe4a3a767606eb6faa43a9e7b7d2bf6415bfa993a8a74e263aed3fa98221118d490610f829084815260200190565b6006546001600160a01b031633148061230b57506007546001600160a01b031633145b6123275760405162461bcd60e51b8152600401610ab7906158bb565b600754600160a01b900460ff1615156001146123705760405162461bcd60e51b8152602060048201526008602482015267191a5cd8589b195960c21b6044820152606401610ab7565b610e5281613cda565b6006546001600160a01b031633148061239c57506007546001600160a01b031633145b6123b85760405162461bcd60e51b8152600401610ab7906158bb565b6007805460ff60a01b19169055565b6123d13383612e08565b6123ed5760405162461bcd60e51b8152600401610ab79061581a565b6123f984848484613db3565b50505050565b606061240a82612abb565b61241357600080fd5b6000828152600f602090815260408083206001810154808552600e845293829020825180840184526007815266697066733a2f2f60c81b8186015292519194939092916124679183916002860191016159d1565b604051602081830303815290604052945050505050919050565b6006546001600160a01b03163314806124a457506007546001600160a01b031633145b6124c05760405162461bcd60e51b8152600401610ab7906158bb565b6001600160a01b0381166125075760405162461bcd60e51b815260206004820152600e60248201526d0c6c2dce840e6cae840e8de4060f60931b6044820152606401610ab7565b6001600160a01b0381166000908152600860205260409020541561255d5760405162461bcd60e51b815260206004820152600d60248201526c185b1c9958591e481859191959609a1b6044820152606401610ab7565b6001600160a01b03811660008181526008602090815260409182902042905581519283526001908301527fe2e2dad866561a9926816384b10b4073c5e0e101b6c911e4936d22438bd63e9b9101611bf4565b60095460ff16156125d25760405162461bcd60e51b8152600401610ab79061573c565b60408301516001600160a01b031633146126255760405162461bcd60e51b815260206004820152601460248201527336b9b3a9b2b73232b910109e9031b932b0ba37b960611b6044820152606401610ab7565b60408051808201825284518152908401516001600160a01b0316602082015261264f818484613de6565b600061267833866000015187602001518860c001518960a001518a606001518b60800151613718565b905061268933828760e00151613938565b5050505050565b60095460ff16156126b35760405162461bcd60e51b8152600401610ab79061573c565b600a546001600160a01b03166126fc5760405162461bcd60e51b815260206004820152600e60248201526d1cda59db995c881b9bdd081cd95d60921b6044820152606401610ab7565b610e523382600001518360200151613938565b600b546000906001600160a01b031661275b5760405162461bcd60e51b815260206004820152600e60248201526d07265676973747279203d203078360941b6044820152606401610ab7565b600b546040516319f5a9f760e21b81526001600160a01b0384811660048301528581166024830152909116906367d6a7dc9060440160206040518083038186803b1580156127a857600080fd5b505afa1580156127bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127e09190615a5a565b1515600114156127f2575060016109b7565b506001600160a01b0382811660009081526005602090815260408083209385168352929052205460ff166109b7565b60608101516001600160a01b031633146128745760405162461bcd60e51b815260206004820152601460248201527336b9b3a9b2b73232b910109e9031b932b0ba37b960611b6044820152606401610ab7565b80516000908152600e602052604090208054600160401b90046001600160a01b0316158015906128b457508054600160401b90046001600160a01b031633145b6128f35760405162461bcd60e51b815260206004820152601060248201526f444d2063726561746f7220697373756560801b6044820152606401610ab7565b610dc58282612b46565b6006546001600160a01b031633146129275760405162461bcd60e51b8152600401610ab7906157e5565b6001600160a01b03811661298c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ab7565b610e5281613c30565b6001600160a01b038116600090815260086020526040812054806129bc5750600092915050565b620151806129ca8242615a77565b119392505050565b60095460ff16156129f55760405162461bcd60e51b8152600401610ab79061573c565b6129fe33612995565b612a1a5760405162461bcd60e51b8152600401610ab790615766565b610e52816040015182600001518360200151613938565b60095460ff1615612a545760405162461bcd60e51b8152600401610ab79061573c565b612a5d33612995565b612a795760405162461bcd60e51b8152600401610ab790615766565b6000612aa68260400151836000015184602001518560c001518660a0015187606001518860800151613718565b9050610dc58260400151828460e00151613938565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b0d826118d5565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b8054600160f01b900460ff1615612b8b5760405162461bcd60e51b8152602060048201526009602482015268696d6d757461626c6560b81b6044820152606401610ab7565b6040820151815463ffffffff918216600160201b9091049091161115612be95760405162461bcd60e51b815260206004820152601360248201527207840c6eae4e4cadce8a0e4d2dce892dcc8caf606b1b6044820152606401610ab7565b6040820151815463ffffffff191663ffffffff90911617815560c08201518051612c1d916002840191602090910190614941565b506080820151815461ffff909116600160e01b0261ffff60e01b19909116178155612c4c6001820160006149c1565b612c5a818360a00151613f11565b7f8076fb98efc7d3e779e35dbd763324939ccc868ab81816af851ea03eb602b11c8260000151836040015184608001518560c001518660200151604051610f82959493929190615a8e565b6000828152600e602052604090208054600160401b90046001600160a01b0316612d085760405162461bcd60e51b81526020600482015260146024820152731b59591a5848191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610ab7565b8054612d2490600160401b90046001600160a01b031683614204565b80612d4657508054612d4690600160401b90046001600160a01b03168361270f565b612dab5760405162461bcd60e51b815260206004820152603060248201527f4661696c6564206469676974616c206d65646961206275726e2e202043616c6c60448201526f32b9103737ba1030b8383937bb32b21760811b6064820152608401610ab7565b805467ffffffff0000000019811663ffffffff909116600160201b02178155604080518481526001600160a01b03841660208201527f1b3ee8fd28cba3d21433ef53ff70546a93d89d0b6908691fe2fa38a223dc66499101611649565b6000612e1382612abb565b612e745760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610ab7565b6000612e7f836118d5565b9050806001600160a01b0316846001600160a01b03161480612eba5750836001600160a01b0316612eaf84610a4f565b6001600160a01b0316145b80612eca5750612eca818561270f565b949350505050565b826001600160a01b0316612ee5826118d5565b6001600160a01b031614612f4d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610ab7565b6001600160a01b038216612faf5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610ab7565b612fba600082612ad8565b6001600160a01b0383166000908152600360205260408120805460019290612fe3908490615a77565b90915550506001600160a01b0382166000908152600360205260408120805460019290613011908490615acf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b606061307d84612abb565b6130b45760405162461bcd60e51b81526020600482015260086024820152673737903a37b5b2b760c11b6044820152606401610ab7565b6000848152600f6020908152604080832081518083018352815463ffffffff90811682526001928301548286018190528652600e8552838620845160e08101865281548084168252600160201b810490931681880152600160401b83046001600160a01b031681870152600160e01b830461ffff166060820152600160f01b90920460ff16151560808301529283018054855181880281018801909652808652929695919460a08601939092879084015b828210156131c157600084815260209081902060408051606081018252918501546001600160a01b038116835265ffffffffffff600160a01b8204811684860152600160d01b9091041690820152825260019092019101613165565b5050505081526020016002820180546131d990615701565b80601f016020809104026020016040519081016040528092919081815260200182805461320590615701565b80156132525780601f1061322757610100808354040283529160200191613252565b820191906000526020600020905b81548152906001019060200180831161323557829003601f168201915b505050505081525050905060008160a001515160016132719190615acf565b9050806001600160401b0381111561328b5761328b614b15565b6040519080825280602002602001820160405280156132d057816020015b60408051808201909152600080825260208201528152602001906001900390816132a95790505b5093506000805b8360a00151518110156134b15760006133108560a0015183815181106132ff576132ff615795565b602002602001015160000151614261565b9050600188151514156133ea576040518060400160405280826001600160a01b031681526020016305f5e1008b886060015161ffff168960a00151878151811061335c5761335c615795565b6020026020010151604001516133729190615ae7565b65ffffffffffff166133849190615b15565b61338e9190615b34565b8152508783815181106133a3576133a3615795565b60200260200101819052508460a0015182815181106133c4576133c4615795565b60200260200101516040015165ffffffffffff16836133e39190615acf565b925061349e565b6040518060400160405280826001600160a01b031681526020016127108b8860a00151868151811061341e5761341e615795565b60200260200101516020015165ffffffffffff1661343c9190615b15565b6134469190615b34565b81525087838151811061345b5761345b615795565b60200260200101819052508460a00151828151811061347c5761347c615795565b60200260200101516020015165ffffffffffff168361349b9190615acf565b92505b50806134a981615b56565b9150506132d7565b5060006134c18460400151614261565b905060018715151415613550576040518060400160405280826001600160a01b031681526020016305f5e100866060015161ffff16856127106135049190615a77565b61350e908d615b15565b6135189190615b15565b6135229190615b34565b905286613530600186615a77565b8151811061354057613540615795565b60200260200101819052506135b9565b6040518060400160405280826001600160a01b031681526020016127108461271061357b9190615a77565b613585908c615b15565b61358f9190615b34565b90528661359d600186615a77565b815181106135ad576135ad615795565b60200260200101819052505b50505050509392505050565b60095460ff1661360e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610ab7565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000613663836118d5565b905061366f8284612e08565b6136d15760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a206275726e2063616c6c6572206973206e6f74206f776e657260448201526c081b9bdc88185c1c1c9bdd9959609a1b6064820152608401610ab7565b6136da836142fb565b604080518481526001600160a01b03831660208201527f1e8df141f42ed659a8fe7e7c5966cbdf2d240d0c45f4c30cbe02526c618075ef9101611649565b60095460009061010090046001600160a01b0316156137a5576009546001600160a01b0389811661010090920416146137a55760405162461bcd60e51b815260206004820152602960248201527f43726561746f72206d757374206d617463682073696e676c652063726561746f60448201526872206164647265737360b81b6064820152608401610ab7565b6000878152600e602052604090208054600160401b90046001600160a01b0316156138095760405162461bcd60e51b81526020600482015260146024820152736d6564696120616c72656164792065786973747360601b6044820152606401610ab7565b60008763ffffffff1611801561382757506001600160a01b03891615155b801561383957506127108461ffff1611155b6138765760405162461bcd60e51b815260206004820152600e60248201526d696e76616c696420706172616d7360901b6044820152606401610ab7565b80546001600160a01b038a16600160401b026001600160e01b031990911663ffffffff89161717815585516138b49060028301906020890190614941565b50805462ffffff60e01b1916600160f01b8415150261ffff60e01b191617600160e01b61ffff8616021781556138ea8186613f11565b7fe32391d620a82af8c8b33cf9eabb3f00aab2a050c566f4f62c04eb328e5d95af888a8987878b60405161392396959493929190615b71565b60405180910390a15095979650505050505050565b6000815111801561394b57506127108151105b61398c5760405162461bcd60e51b8152602060048201526012602482015271030203c20636f756e74203c3d2031303030360741b6044820152606401610ab7565b6000828152600e602052604090208054600160401b90046001600160a01b03166139ef5760405162461bcd60e51b81526020600482015260146024820152731b59591a5848191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610ab7565b8054600160201b810463ffffffff1690613a1990600160401b90046001600160a01b031686614204565b613a5c5760405162461bcd60e51b815260206004820152601460248201527310dc99585d1bdc881b9bdd08185c1c1c9bdd995960621b6044820152606401610ab7565b8154835163ffffffff91821691613a769190841690615acf565b1115613abd5760405162461bcd60e51b81526020600482015260166024820152752a37ba30b61039bab838363c9032bc31b2b2b232b21760511b6044820152606401610ab7565b60005b83518163ffffffff161015613bec576000848263ffffffff1681518110613ae957613ae9615795565b6020908102919091018101516000818152600f909252604090912080549192509063ffffffff1615613b545760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b925908185b1c9958591e481d5cd95960621b6044820152606401610ab7565b600083613b62866001615bb9565b613b6c9190615bb9565b825463ffffffff191663ffffffff8216178355600183018990556040519091507f775f53e4c75ce0c74e611f7f0bb660e4cd647e0522ef0f8aefd4ecef373c5df990613bc49085908c90859060028c01908e90615be1565b60405180910390a1613bd68984614396565b5050508080613be4906157c1565b915050613ac0565b5082518254613c089190600160201b900463ffffffff16615bb9565b825463ffffffff91909116600160201b0267ffffffff00000000199091161790915550505050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095460ff1615613ca55760405162461bcd60e51b8152600401610ab79061573c565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861363b3390565b6006546001600160a01b03163314613d045760405162461bcd60e51b8152600401610ab7906157e5565b6001600160a01b038116613d445760405162461bcd60e51b81526020600482015260076024820152666164647228302960c81b6044820152606401610ab7565b6001613d536201518042615a77565b613d5d9190615a77565b6001600160a01b0382166000818152600860209081526040918290209390935580519182526001928201929092527fe2e2dad866561a9926816384b10b4073c5e0e101b6c911e4936d22438bd63e9b9101611bf4565b613dbe848484612ed2565b613dca848484846144c9565b6123f95760405162461bcd60e51b8152600401610ab790615c92565b600a54600160a01b900460ff161515600114613e3b5760405162461bcd60e51b8152602060048201526014602482015273195e1d081b5a5b9d1a5b99c8191a5cd8589b195960621b6044820152606401610ab7565b600083604051602001613e699190815181526020918201516001600160a01b03169181019190915260400190565b6040516020818303038152906040528051906020012090506000613ec584848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506145d69050565b600a549091506001600160a01b038083169116146126895760405162461bcd60e51b815260206004820152600960248201526839b4b39032b93937b960b91b6044820152606401610ab7565b60008060005b83518110156141785760006001600160a01b0316848281518110613f3d57613f3d615795565b6020026020010151600001516001600160a01b0316141580613f9a575084548451600160401b9091046001600160a01b031690859083908110613f8257613f82615795565b6020026020010151600001516001600160a01b031614155b613fdb5760405162461bcd60e51b815260206004820152601260248201527131b7b63630b110183c1817b1b932b0ba37b960711b6044820152606401610ab7565b838181518110613fed57613fed615795565b60200260200101516020015165ffffffffffff166000141580614036575083818151811061401d5761401d615795565b60200260200101516040015165ffffffffffff16600014155b6140765760405162461bcd60e51b8152602060048201526011602482015270073686172652f726f79616c7479203d203607c1b6044820152606401610ab7565b8460010184828151811061408c5761408c615795565b6020908102919091018101518254600181018455600093845292829020815193018054928201516040909201516001600160a01b039094166001600160d01b031990931692909217600160a01b65ffffffffffff92831602176001600160d01b0316600160d01b9190931602919091179055835184908290811061411257614112615795565b60200260200101516020015165ffffffffffff16836141319190615acf565b925083818151811061414557614145615795565b60200260200101516040015165ffffffffffff16826141649190615acf565b91508061417081615b56565b915050613f17565b506127108211156141bb5760405162461bcd60e51b815260206004820152600d60248201526c0746f74616c203c3d313030303609c1b6044820152606401610ab7565b6127108111156123f95760405162461bcd60e51b81526020600482015260146024820152730746f74616c526f79616c7479203c3d31303030360641b6044820152606401610ab7565b6001600160a01b03808316600090815260106020526040812054909116801561424457826001600160a01b0316816001600160a01b0316149150506109b7565b826001600160a01b0316846001600160a01b0316149150506109b7565b600c546000906001600160a01b0316156142f757600c5460405163ae22c57d60e01b81526001600160a01b0384811660048301529091169063ae22c57d9060240160206040518083038186803b1580156142ba57600080fd5b505afa1580156142ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142f29190615ce4565b6109b7565b5090565b6000614306826118d5565b9050614313600083612ad8565b6001600160a01b038116600090815260036020526040812080546001929061433c908490615a77565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b0382166143ec5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ab7565b6143f581612abb565b156144425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ab7565b6001600160a01b038216600090815260036020526040812080546001929061446b908490615acf565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156145cb57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061450d903390899088908890600401615d01565b602060405180830381600087803b15801561452757600080fd5b505af1925050508015614557575060408051601f3d908101601f1916820190925261455491810190615d3e565b60015b6145b1573d808015614585576040519150601f19603f3d011682016040523d82523d6000602084013e61458a565b606091505b5080516145a95760405162461bcd60e51b8152600401610ab790615c92565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612eca565b506001949350505050565b60008060006145e585856145fa565b915091506145f28161466a565b509392505050565b6000808251604114156146315760208301516040840151606085015160001a61462587828585614825565b94509450505050614663565b82516040141561465b5760208301516040840151614650868383614912565b935093505050614663565b506000905060025b9250929050565b600081600481111561467e5761467e615d5b565b14156146875750565b600181600481111561469b5761469b615d5b565b14156146e95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ab7565b60028160048111156146fd576146fd615d5b565b141561474b5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ab7565b600381600481111561475f5761475f615d5b565b14156147b85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ab7565b60048160048111156147cc576147cc615d5b565b1415610e525760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ab7565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561485c5750600090506003614909565b8460ff16601b1415801561487457508460ff16601c14155b156148855750600090506004614909565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156148d9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661490257600060019250925050614909565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161493387828885614825565b935093505050935093915050565b82805461494d90615701565b90600052602060002090601f01602090048101928261496f57600085556149b5565b82601f1061498857805160ff19168380011785556149b5565b828001600101855582156149b5579182015b828111156149b557825182559160200191906001019061499a565b506142f79291506149db565b5080546000825590600052602060002090810190610e5291905b5b808211156142f757600081556001016149dc565b6001600160e01b031981168114610e5257600080fd5b600060208284031215614a1857600080fd5b8135610e94816149f0565b6001600160a01b0381168114610e5257600080fd5b8035614a4381614a23565b919050565b600060208284031215614a5a57600080fd5b8135610e9481614a23565b60005b83811015614a80578181015183820152602001614a68565b838111156123f95750506000910152565b60008151808452614aa9816020860160208601614a65565b601f01601f19169290920160200192915050565b602081526000610e946020830184614a91565b600060208284031215614ae257600080fd5b5035919050565b60008060408385031215614afc57600080fd5b8235614b0781614a23565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715614b4d57614b4d614b15565b60405290565b60405160e081016001600160401b0381118282101715614b4d57614b4d614b15565b604080519081016001600160401b0381118282101715614b4d57614b4d614b15565b60405161010081016001600160401b0381118282101715614b4d57614b4d614b15565b604051601f8201601f191681016001600160401b0381118282101715614be257614be2614b15565b604052919050565b60006001600160401b03821115614c0357614c03614b15565b5060051b60200190565b803563ffffffff81168114614a4357600080fd5b803561ffff81168114614a4357600080fd5b803565ffffffffffff81168114614a4357600080fd5b600082601f830112614c5a57600080fd5b81356020614c6f614c6a83614bea565b614bba565b82815260609283028501820192828201919087851115614c8e57600080fd5b8387015b85811015614cec5781818a031215614caa5760008081fd5b614cb2614b2b565b8135614cbd81614a23565b8152614cca828701614c33565b868201526040614cdb818401614c33565b908201528452928401928101614c92565b5090979650505050505050565b60006001600160401b03821115614d1257614d12614b15565b50601f01601f191660200190565b6000614d2e614c6a84614cf9565b9050828152838383011115614d4257600080fd5b828260208301376000602084830101529392505050565b600082601f830112614d6a57600080fd5b610e9483833560208501614d20565b600060e08284031215614d8b57600080fd5b614d93614b53565b90508135815260208201356020820152614daf60408301614c0d565b6040820152614dc060608301614a38565b6060820152614dd160808301614c21565b608082015260a08201356001600160401b0380821115614df057600080fd5b614dfc85838601614c49565b60a084015260c0840135915080821115614e1557600080fd5b50614e2284828501614d59565b60c08301525092915050565b60006020808385031215614e4157600080fd5b82356001600160401b0380821115614e5857600080fd5b818501915085601f830112614e6c57600080fd5b8135614e7a614c6a82614bea565b81815260059190911b83018401908481019088831115614e9957600080fd5b8585015b83811015614ed157803585811115614eb55760008081fd5b614ec38b89838a0101614d79565b845250918601918601614e9d565b5098975050505050505050565b600080600060608486031215614ef357600080fd5b8335614efe81614a23565b92506020840135614f0e81614a23565b929592945050506040919091013590565b60008060408385031215614f3257600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015614f8c57815180516001600160a01b03168552860151868501529284019290850190600101614f5e565b5091979650505050505050565b8015158114610e5257600080fd5b8035614a4381614f99565b60008060408385031215614fc557600080fd5b8235614fd081614a23565b91506020830135614fe081614f99565b809150509250929050565b60006020808385031215614ffe57600080fd5b82356001600160401b0381111561501457600080fd5b8301601f8101851361502557600080fd5b8035615033614c6a82614bea565b81815260069190911b8201830190838101908783111561505257600080fd5b928401925b8284101561509f57604084890312156150705760008081fd5b615078614b75565b843581528585013561508981614a23565b8187015282526040939093019290840190615057565b979650505050505050565b600081518084526020808501945080840160005b8381101561510457815180516001600160a01b031688528381015165ffffffffffff908116858a01526040918201511690880152606090960195908201906001016150be565b509495945050505050565b60208152600063ffffffff8084511660208401528060208501511660408401525060018060a01b0360408401511660608301526060830151615157608084018261ffff169052565b50608083015180151560a08401525060a083015160e060c08401526151806101008401826150aa565b905060c0840151601f198483030160e085015261519d8282614a91565b95945050505050565b600082601f8301126151b757600080fd5b813560206151c7614c6a83614bea565b82815260059290921b840181019181810190868411156151e657600080fd5b8286015b8481101561520157803583529183019183016151ea565b509695505050505050565b6000610100828403121561521f57600080fd5b615227614b97565b90508135815261523960208301614c0d565b602082015261524a60408301614a38565b604082015261525b60608301614c21565b606082015261526c60808301614fa7565b608082015260a08201356001600160401b038082111561528b57600080fd5b61529785838601614c49565b60a084015260c08401359150808211156152b057600080fd5b6152bc85838601614d59565b60c084015260e08401359150808211156152d557600080fd5b506152e2848285016151a6565b60e08301525092915050565b6000602080838503121561530157600080fd5b82356001600160401b038082111561531857600080fd5b818501915085601f83011261532c57600080fd5b813561533a614c6a82614bea565b81815260059190911b8301840190848101908883111561535957600080fd5b8585015b83811015614ed1578035858111156153755760008081fd5b6153838b89838a010161520c565b84525091860191860161535d565b600080604083850312156153a457600080fd5b82356153af81614a23565b91506020830135614fe081614a23565b6000606082840312156153d157600080fd5b6153d9614b2b565b90508135815260208201356001600160401b038111156153f857600080fd5b615404848285016151a6565b602083015250604082013561541881614a23565b604082015292915050565b6000602080838503121561543657600080fd5b82356001600160401b038082111561544d57600080fd5b818501915085601f83011261546157600080fd5b813561546f614c6a82614bea565b81815260059190911b8301840190848101908883111561548e57600080fd5b8585015b83811015614ed1578035858111156154aa5760008081fd5b6154b88b89838a01016153bf565b845250918601918601615492565b6000602082840312156154d857600080fd5b81356001600160401b038111156154ee57600080fd5b612eca848285016151a6565b63ffffffff8781168252861660208201526001600160a01b038516604082015261ffff84166060820152821515608082015260c060a0820181905260009061554490830184614a91565b98975050505050505050565b6000806000806080858703121561556657600080fd5b843561557181614a23565b9350602085013561558181614a23565b92506040850135915060608501356001600160401b038111156155a357600080fd5b8501601f810187136155b457600080fd5b6155c387823560208401614d20565b91505092959194509250565b6000806000604084860312156155e457600080fd5b83356001600160401b03808211156155fb57600080fd5b6156078783880161520c565b9450602086013591508082111561561d57600080fd5b818601915086601f83011261563157600080fd5b81358181111561564057600080fd5b87602082850101111561565257600080fd5b6020830194508093505050509250925092565b60006020828403121561567757600080fd5b81356001600160401b0381111561568d57600080fd5b612eca848285016153bf565b6000602082840312156156ab57600080fd5b81356001600160401b038111156156c157600080fd5b612eca84828501614d79565b6000602082840312156156df57600080fd5b81356001600160401b038111156156f557600080fd5b612eca8482850161520c565b600181811c9082168061571557607f821691505b6020821081141561573657634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601590820152743ab730baba3437b934bd32b21027a127903ab9b2b960591b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818114156157db576157db6157ab565b6001019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60006020828403121561587d57600080fd5b5051919050565b60208082526017908201527f4469676974616c4d65646961206e6f7420666f756e642e000000000000000000604082015260600190565b6020808252600c908201526b3737ba1037b137a0b236b4b760a11b604082015260600190565b6000602082840312156158f357600080fd5b815160ff81168114610e9457600080fd5b60006020828403121561591657600080fd5b81516001600160401b0381111561592c57600080fd5b8201601f8101841361593d57600080fd5b805161594b614c6a82614cf9565b81815285602083850101111561596057600080fd5b61519d826020830160208601614a65565b60008251615983818460208701614a65565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b818110156159c5578351835292840192918401916001016159a9565b50909695505050505050565b6000835160206159e48285838901614a65565b8184019150600085546159f681615701565b60018281168015615a0e5760018114615a1f57615a4b565b60ff19841687528287019450615a4b565b896000528560002060005b84811015615a4357815489820152908301908701615a2a565b505082870194505b50929998505050505050505050565b600060208284031215615a6c57600080fd5b8151610e9481614f99565b600082821015615a8957615a896157ab565b500390565b85815263ffffffff8516602082015261ffff8416604082015260a060608201526000615abd60a0830185614a91565b90508260808301529695505050505050565b60008219821115615ae257615ae26157ab565b500190565b600065ffffffffffff80831681851681830481118215151615615b0c57615b0c6157ab565b02949350505050565b6000816000190483118215151615615b2f57615b2f6157ab565b500290565b600082615b5157634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415615b6a57615b6a6157ab565b5060010190565b8681526001600160a01b038616602082015263ffffffff8516604082015261ffff84166060820152821515608082015260c060a0820181905260009061554490830184614a91565b600063ffffffff808316818516808303821115615bd857615bd86157ab565b01949350505050565b8581526000602060018060a01b0387168184015263ffffffff8616604084015260a0606084015260008554615c1581615701565b8060a087015260c0600180841660008114615c375760018114615c4b57615c79565b60ff1985168984015260e089019550615c79565b8a6000528660002060005b85811015615c715781548b8201860152908301908801615c56565b8a0184019650505b5050505050608093909301939093525095945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060208284031215615cf657600080fd5b8151610e9481614a23565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615d3490830184614a91565b9695505050505050565b600060208284031215615d5057600080fd5b8151610e94816149f0565b634e487b7160e01b600052602160045260246000fdfea26469706673582212208fd144566d083799c849aca77f5fe8aada564c1f676b847de868e42d646c12a364736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: Yes (200 runs)
DigitalMediaCore.sol 2272 lines
// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol
pragma solidity ^0.8.0;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
// File: VaultCoreInterface.sol
pragma solidity 0.8.9;
abstract contract VaultCoreInterface {
function getVersion() public pure virtual returns (uint);
function typeOfContract() public pure virtual returns (bytes32);
function approveToken(
uint256 _tokenId,
address _tokenContractAddress) external virtual;
}
// File: RoyaltyRegistryInterface.sol
pragma solidity 0.8.9;
/**
* Interface to the RoyaltyRegistry responsible for looking payout addresses
*/
abstract contract RoyaltyRegistryInterface {
function getAddress(address custodial) external view virtual returns (address);
function getMediaCustomPercentage(uint256 mediaId, address tokenAddress) external view virtual returns(uint16);
function getExternalTokenPercentage(uint256 tokenId, address tokenAddress) external view virtual returns(uint16, uint16);
function typeOfContract() virtual public pure returns (string calldata);
function VERSION() virtual public pure returns (uint8);
}
// File: ApprovedCreatorRegistryInterface.sol
pragma solidity 0.8.9;
/**
* Interface to the digital media store external contract that is
* responsible for storing the common digital media and collection data.
* This allows for new token contracts to be deployed and continue to reference
* the digital media and collection data.
*/
abstract contract ApprovedCreatorRegistryInterface {
function getVersion() virtual public pure returns (uint);
function typeOfContract() virtual public pure returns (string calldata);
function isOperatorApprovedForCustodialAccount(
address _operator,
address _custodialAddress) virtual public view returns (bool);
}
// File: utils/Collaborator.sol
pragma solidity 0.8.9;
library Collaborator {
bytes32 public constant TYPE_HASH = keccak256("Share(address account,uint48 value,uint48 royalty)");
struct Share {
address payable account;
uint48 value;
uint48 royalty;
}
function hash(Share memory part) internal pure returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, part.account, part.value, part.royalty));
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
/**
* @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);
}
}
// File: OBOControl.sol
pragma solidity 0.8.9;
contract OBOControl is Ownable {
address public oboAdmin;
uint256 constant public newAddressWaitPeriod = 1 days;
bool public canAddOBOImmediately = true;
// List of approved on behalf of users.
mapping (address => uint256) public approvedOBOs;
event NewOBOAddressEvent(
address OBOAddress,
bool action);
event NewOBOAdminAddressEvent(
address oboAdminAddress);
modifier onlyOBOAdmin() {
require(owner() == _msgSender() || oboAdmin == _msgSender(), "not oboAdmin");
_;
}
function setOBOAdmin(address _oboAdmin) external onlyOwner {
oboAdmin = _oboAdmin;
emit NewOBOAdminAddressEvent(_oboAdmin);
}
/**
* Add a new approvedOBO address. The address can be used after wait period.
*/
function addApprovedOBO(address _oboAddress) external onlyOBOAdmin {
require(_oboAddress != address(0), "cant set to 0x");
require(approvedOBOs[_oboAddress] == 0, "already added");
approvedOBOs[_oboAddress] = block.timestamp;
emit NewOBOAddressEvent(_oboAddress, true);
}
/**
* Removes an approvedOBO immediately.
*/
function removeApprovedOBO(address _oboAddress) external onlyOBOAdmin {
delete approvedOBOs[_oboAddress];
emit NewOBOAddressEvent(_oboAddress, false);
}
/*
* Add OBOAddress for immediate use. This is an internal only Fn that is called
* only when the contract is deployed.
*/
function addApprovedOBOImmediately(address _oboAddress) internal onlyOwner {
require(_oboAddress != address(0), "addr(0)");
// set the date to one in past so that address is active immediately.
approvedOBOs[_oboAddress] = block.timestamp - newAddressWaitPeriod - 1;
emit NewOBOAddressEvent(_oboAddress, true);
}
function addApprovedOBOAfterDeploy(address _oboAddress) external onlyOBOAdmin {
require(canAddOBOImmediately == true, "disabled");
addApprovedOBOImmediately(_oboAddress);
}
function blockImmediateOBO() external onlyOBOAdmin {
canAddOBOImmediately = false;
}
/*
* Helper function to verify is a given address is a valid approvedOBO address.
*/
function isValidApprovedOBO(address _oboAddress) public view returns (bool) {
uint256 createdAt = approvedOBOs[_oboAddress];
if (createdAt == 0) {
return false;
}
return block.timestamp - createdAt > newAddressWaitPeriod;
}
/**
* @dev Modifier to make the obo calls only callable by approved addressess
*/
modifier isApprovedOBO() {
require(isValidApprovedOBO(msg.sender), "unauthorized OBO user");
_;
}
}
// File: @openzeppelin/contracts/security/Pausable.sol
pragma solidity ^0.8.0;
/**
* @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());
}
}
// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @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);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
ui...
// [truncated — 84526 bytes total]
Read Contract
VERSION 0xffa1ad74 → uint8
approvedOBOs 0x1ad32562 → uint256
balanceOf 0x70a08231 → uint256
canAddOBOImmediately 0xd5edf45b → bool
canRoyaltyRegistryChange 0x4f438552 → bool
changedCreators 0x0629abf2 → address
creatorRegistryStore 0xb39ba60a → address
enableExternalMinting 0x13e2263e → bool
getApproved 0x081812fc → address
getDigitalMedia 0x55df4275 → tuple
getDigitalMediaForSale 0x78cc32bc → address, bool, uint16
getDigitalMediaRelease 0x8a603bdf → tuple
idToDigitalMedia 0x9b36830d → uint32, uint32, address, uint16, bool, string
isApprovedForAll 0xe985e9c5 → bool
isValidApprovedOBO 0xfb12a876 → bool
name 0x06fdde03 → string
newAddressWaitPeriod 0x0c999929 → uint256
oboAdmin 0xc95ab462 → address
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
royaltyInfo 0x2a55205a → tuple[]
royaltyStore 0x788e0543 → address
saleInfo 0x8e945e3b → tuple[]
signerAddress 0x5b7633d0 → address
singleCreatorAddress 0x147ca2af → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenIdToDigitalMediaRelease 0x3db57cbe → uint32, uint256
tokenURI 0xc87b56dd → string
vaultStore 0x47ca0e02 → address
Write Contract 34 functions
These functions modify contract state and require a wallet transaction to execute.
addApprovedOBO 0xcd161d2e
address _oboAddress
addApprovedOBOAfterDeploy 0xa47a2e77
address _oboAddress
approve 0x095ea7b3
address to
uint256 tokenId
blockImmediateOBO 0xa790c0e2
No parameters
burn 0x42966c68
uint256 _tokenId
burnDigitalMedia 0x23077f58
uint256 _digitalMediaId
burnToken 0x7b47ec1a
uint256 _tokenId
changeCreator 0x5cf09fee
address _creator
address _newCreator
createDigitalMediaAndReleases 0x05c09193
tuple request
bytes signature
createDigitalMediaReleases 0x7ca50626
tuple request
makeMediaImmutable 0xa22d6eba
uint256 mediaId
makeMediasImmutable 0x987311b5
uint256[] mediaIds
oboCreateDigitalMediaAndReleases 0x4fdfdc6f
tuple request
oboCreateDigitalMediaReleases 0xbec1479d
tuple request
oboCreateManyDigitalMedias 0xe78cf16a
tuple[] requests
oboCreateManyDigitalMediasAndReleases 0x61547ba5
tuple[] requests
oboCreateManyReleases 0x0dfb5088
tuple[] requests
pause 0x8456cb59
No parameters
removeApprovedOBO 0x7ff9f614
address _oboAddress
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
safeTransferMany 0x2b6ff6de
tuple[] requests
setApprovalForAll 0xa22cb465
address operator
bool approved
setOBOAdmin 0x8ce87646
address _oboAdmin
setRoyaltyRegistryForever 0x1fc09717
No parameters
setRoyaltyRegistryStore 0x5e7785a6
address _royaltyStore
setSignerAddress 0x3ad0288e
address _signerAddress
bool _enableExternalMinting
setVaultStore 0x45682a0b
address _vaultStore
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
updateManyMedias 0x57617360
tuple[] requests
updateMedia 0xff8f1eae
tuple request
Recent Transactions
No transactions found for this address