Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xABB3738f04Dc2Ec20f4AE4462c3d069d02AE045B
Balance 0 ETH
Nonce 1
Code Size 24567 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

24567 bytes
0x608060405234801561001057600080fd5b50600436106104ee5760003560e01c8063716a41a11161028e578063a9b183b111610167578063ddf990f9116100d9578063ed58aed211610092578063ed58aed214610d38578063f3397afe14610d4b578063f3993d1114610d5e578063f6f367dc14610d71578063f7b3de6514610d7a578063f94d964514610d8d57600080fd5b8063ddf990f914610c74578063e131fc0c14610c98578063e226ed2214610cab578063e35ed67f14610cbe578063e7b74ec914610cd1578063e985e9c514610cfc57600080fd5b8063bb31e4131161012b578063bb31e41314610bda578063c2b2fb5e14610bfd578063c87b56dd14610c10578063d41911d714610c23578063d5fe110d14610c36578063d7c0a63b14610c4957600080fd5b8063a9b183b114610b6e578063ace071cb14610b81578063b594c62c14610b94578063b88d4fde14610ba7578063b9c4d9fb14610bba57600080fd5b80638a2c0d57116102005780639d319a31116101c45780639d319a3114610ade578063a22cb46514610af1578063a4c82c9d14610b04578063a642585214610b17578063a7277da014610b2a578063a781173214610b5b57600080fd5b80638a2c0d5714610a575780638b32f65f14610a6a5780638d91c33a14610a7d57806395090ea514610aa857806395d89b4114610abb57600080fd5b80637b612708116102525780637b612708146109cd5780637d764d53146109f85780637dace95a14610a0b578063820e125f14610a1e578063830ef41b14610a315780638712910114610a4457600080fd5b8063716a41a11461095e57806372ec7eec14610981578063748365ef146109945780637539fc5c146109a7578063781c55c0146109ba57600080fd5b80633efb7338116103cb578063627c81ff1161033d5780636a6f8a19116102f65780636a6f8a19146108e35780636c5e845a146108f65780636ce687d5146109125780636d1d83b8146109255780636ef3da941461093857806370a082311461094b57600080fd5b8063627c81ff1461087b578063634a20931461088e5780636352211e146108a157806363f204d0146108b45780636756a691146108bd57806368263df8146108d057600080fd5b8063500b1d2b1161038f578063500b1d2b146107c45780635188bf53146107e757806354fd4d50146107fa5780635c5f16f31461081a5780635d2631e2146108455780636221bb8a1461085857600080fd5b80633efb73381461076557806342842e0e14610778578063472cd3d81461078b5780634f558e791461079e5780634f83b185146107b157600080fd5b80631e3321f811610464578063328fd62311610428578063328fd623146106ee5780633497e2a1146106f7578063377e5e271461070a57806338896da91461071d5780633b20b44b1461073f5780633c5267fe1461075257600080fd5b80631e3321f81461068b57806323b872dd1461069e5780632407497e146106b157806329745262146106c45780632a55205a146106db57600080fd5b8063095ea7b3116104b6578063095ea7b3146105cd5780630ebd4c7f146105e05780631142d4e81461060057806311afa9fe1461061357806314a119741461062657806317fd92781461067857600080fd5b806301ffc9a7146104f3578063064704911461051b57806306fdde031461052e57806307cff6f214610577578063081812fc1461058c575b600080fd5b6105066105013660046158a5565b610da0565b60405190151581526020015b60405180910390f35b600f546001600160a01b03161515610506565b61056a6040518060400160405280601781526020017f4b6e6f776e4f726967696e4469676974616c417373657400000000000000000081525081565b6040516105129190615d77565b61058a6105853660046157d1565b610de0565b005b6105b561059a366004615af4565b6000908152601560205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610512565b61058a6105db366004615738565b611324565b6105f36105ee366004615af4565b61143c565b6040516105129190615d3f565b61050661060e366004615af4565b6114a4565b61056a610621366004615af4565b61150d565b610659610634366004615af4565b600660205260009081526040902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610512565b61058a61068636600461570b565b6115a7565b61058a610699366004615a94565b611603565b61058a6106ac3660046155a7565b6117fe565b61058a6106bf3660046154d4565b61183d565b6106cd600c5481565b604051908152602001610512565b6106596106e9366004615c13565b61188f565b6106cd600d5481565b610506610705366004615af4565b6118a8565b61056a610718366004615af4565b611910565b61073061072b366004615af4565b611ae9565b60405161051293929190615c9d565b6106cd61074d366004615af4565b611c91565b61058a610760366004615bc9565b611d22565b61058a610773366004615ba5565b611f23565b61058a6107863660046155a7565b611f77565b61058a610799366004615af4565b611f92565b6105066107ac366004615af4565b612010565b6107306107bf366004615c13565b61201b565b6105066107d23660046154d4565b600a6020526000908152604090205460ff1681565b61058a6107f5366004615af4565b612067565b61056a604051806040016040528060018152602001603360f81b81525081565b6106cd610828366004615b24565b600560209081526000928352604080842090915290825290205481565b61058a610853366004615790565b6120a4565b610506610866366004615af4565b60009081526019602052604090205460ff1690565b6105b5610889366004615c13565b612134565b61073061089c366004615af4565b612214565b6105b56108af366004615af4565b612275565b6106cd600b5481565b61056a6108cb366004615af4565b6122be565b61058a6108de366004615af4565b6122e8565b6106cd6108f1366004615986565b612455565b6108ff6103e881565b60405161ffff9091168152602001610512565b61058a61092036600461569d565b612474565b6106cd610933366004615af4565b612526565b61058a6109463660046154d4565b612531565b6106cd6109593660046154d4565b612658565b61050661096c366004615af4565b60196020526000908152604090205460ff1681565b61058a61098f366004615af4565b61269c565b6008546105b5906001600160a01b031681565b6105b56109b5366004615af4565b612713565b6010546001600160a01b03161515610506565b6105066109db366004615af4565b6000908152601360205260409020546001600160a01b0316151590565b61058a610a06366004615818565b612721565b6106cd610a19366004615986565b612a30565b6106cd610a2c366004615af4565b612be4565b61058a610a3f366004615b48565b612c7d565b61056a610a52366004615af4565b612d8d565b61056a610a65366004615af4565b612e2f565b61056a610a78366004615af4565b612e4c565b6106cd610a8b366004615af4565b600090815260126020526040902054600160a01b900461ffff1690565b61058a610ab6366004615b24565b612e65565b61056a604051806040016040528060048152602001634b4f444160e01b81525081565b6105f3610aec366004615af4565b613022565b61058a610aff36600461570b565b613159565b61058a610b12366004615bc9565b6131c5565b61058a610b25366004615bc9565b61334e565b6106cd610b38366004615b7f565b600260209081526000938452604080852082529284528284209052825290205481565b6106cd610b69366004615af4565b6134bd565b61058a610b7c3660046154d4565b61356c565b6106cd610b8f366004615af4565b6135be565b61058a610ba2366004615658565b6135ef565b61058a610bb53660046155e7565b61366c565b610bcd610bc8366004615af4565b6136e4565b6040516105129190615cfe565b610506610be8366004615af4565b60096020526000908152604090205460ff1681565b610506610c0b366004615af4565b613752565b61056a610c1e366004615af4565b613773565b6105b5610c31366004615af4565b613914565b610506610c44366004615af4565b613931565b6106cd610c57366004615b24565b600160209081526000928352604080842090915290825290205481565b610c87610c82366004615af4565b6139e0565b604051610512959493929190615c60565b6010546105b5906001600160a01b031681565b6106cd610cb9366004615b24565b613a45565b610506610ccc366004615af4565b613bd1565b6106cd610cdf366004615738565b600760209081526000928352604080842090915290825290205481565b610506610d0a36600461550c565b6001600160a01b03918216600090815260166020908152604080832093909416825291909152205460ff1690565b6106cd610d463660046159db565b613bf2565b600f546105b5906001600160a01b031681565b61058a610d6c366004615544565b613cdb565b6106cd60115481565b6105b5610d88366004615af4565b613d95565b6106cd610d9b366004615af4565b613ed8565b60006301ffc9a760e01b6001600160e01b031983161480610dda57506001600160e01b031982166000908152600e602052604090205460ff165b92915050565b60026000541415610e0c5760405162461bcd60e51b8152600401610e0390615e04565b60405180910390fd5b600260005580610e2e5760405162461bcd60e51b8152600401610e0390615de0565b6001600160a01b0384163314610e735760405162461bcd60e51b815260206004820152600a60248201526927b7363c9037bbb732b960b11b6044820152606401610e03565b6000336040516331a9108f60e11b81526004810186905290915030906000908290636352211e9060240160206040518083038186803b158015610eb557600080fd5b505afa158015610ec9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eed91906154f0565b9050826001600160a01b0316816001600160a01b03161480610f8b575060405163e985e9c560e01b81526001600160a01b038281166004830152848116602483015283169063e985e9c59060440160206040518083038186803b158015610f5357600080fd5b505afa158015610f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8b9190615889565b80611019575060405163020604bf60e21b8152600481018790526001600160a01b03808516919084169063081812fc9060240160206040518083038186803b158015610fd657600080fd5b505afa158015610fea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100e91906154f0565b6001600160a01b0316145b6110575760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21039b832b73232b960891b6044820152606401610e03565b60405163f94d964560e01b815260048101879052600090309063f94d96459060240160206040518083038186803b15801561109157600080fd5b505afa1580156110a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c99190615b0c565b6000818152600360205260408120919250906110e59088613ee3565b6000898152600460205260408120919250906111019089613ee3565b90508115801561110f575080155b1561112e57600089815260046020526040902061112c9089613f05565b505b60008981526005602090815260408083206001600160a01b038c16845290915290205461115c908890615e3b565b60008a81526005602090815260408083206001600160a01b038d81168086529190935292819020939093559151636eb1769f60e11b8152918c166004830152306024830152899189919063dd62ed3e9060440160206040518083038186803b1580156111c757600080fd5b505afa1580156111db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ff9190615b0c565b10156112415760405162461bcd60e51b81526020600482015260116024820152704578636565647320616c6c6f77616e636560781b6044820152606401610e03565b6040516323b872dd60e01b81526001600160a01b038216906323b872dd90611271908e9030908d90600401615c9d565b602060405180830381600087803b15801561128b57600080fd5b505af115801561129f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c39190615889565b50886001600160a01b03168a8c6001600160a01b03167f684ce28ace37552c6bfb98b7cceda8ed55327078eafb5dfb31218e08563827638b60405161130a91815260200190565b60405180910390a450506001600055505050505050505050565b600061132f82612275565b9050806001600160a01b0316836001600160a01b031614156113875760405162461bcd60e51b815260206004820152601160248201527020b8383937bb32b21034b99037bbb732b960791b6044820152606401610e03565b336001600160a01b03821614806113a357506113a38133610d0a565b6113e05760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b73232b960911b6044820152606401610e03565b60008281526015602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050600d54600b546114729190615e53565b8160008151811061149357634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6000816114b081613f1a565b60006114bb84613f7c565b9050835b81811015611500576000818152601360205260409020546001600160a01b03166114ee57600093505050611507565b806114f881615f21565b9150506114bf565b5060019250505b50919050565b6017602052600090815260409020805461152690615eec565b80601f016020809104026020016040519081016040528092919081815260200182805461155290615eec565b801561159f5780601f106115745761010080835404028352916020019161159f565b820191906000526020600020905b81548152906001019060200180831161158257829003601f168201915b505050505081565b6115af613fa1565b6001600160a01b0382166000818152600a6020526040808220805460ff191685151590811790915590519092917fdfa5cec27432e8fe2532605b253ac386bd4077525304d2920002754914bf967691a35050565b8461ffff16600061161382613914565b9050336001600160a01b03821614806116b857506008546001600160a01b03166380371cce82336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b15801561168057600080fd5b505afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190615889565b6116d45760405162461bcd60e51b8152600401610e0390615db1565b6116e18761ffff166114a4565b156117205760405162461bcd60e51b815260206004820152600f60248201526e11591a5d1a5bdb881cdbdb191bdd5d608a1b6044820152606401610e03565b84801580159061172f57508084145b61176c5760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b9cc81a5b9d985b1a5960921b6044820152606401610e03565b60005b818110156117f3576117e1338a61ffff168a8a858181106117a057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906117b591906154d4565b8989868181106117d557634e487b7160e01b600052603260045260246000fd5b90506020020135614068565b806117eb81615f21565b91505061176f565b505050505050505050565b611809838383614236565b80826001600160a01b0316846001600160a01b0316600080516020615fa283398151915260405160405180910390a4505050565b611845613fa1565b601080546001600160a01b0319166001600160a01b0383169081179091556040517f70beb1cdf09716da857c2613f0b523263f85eed9bfd8328e141539f22a19102f90600090a250565b60008061189c8484614481565b915091505b9250929050565b6000816118b481613f1a565b60006118bf84613f7c565b9050835b81811015611905576000818152601360205260409020546001600160a01b0316156118f357600193505050611507565b806118fd81615f21565b9150506118c3565b506000949350505050565b60608161191c81613f1a565b6010546001600160a01b0316151580156119b4575060105460405163bedac0cf60e01b815260048101859052600060248201526001600160a01b039091169063bedac0cf9060440160206040518083038186803b15801561197c57600080fd5b505afa158015611990573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b49190615889565b15611a47576010546040516392cb829d60e01b815260048101859052600060248201526001600160a01b03909116906392cb829d9060440160006040518083038186803b158015611a0457600080fd5b505afa158015611a18573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611a4091908101906158dd565b9150611507565b60008381526012602052604090206001018054611a6390615eec565b80601f0160208091040260200160405190810160405280929190818152602001828054611a8f90615eec565b8015611adc5780601f10611ab157610100808354040283529160200191611adc565b820191906000526020600020905b815481529060010190602001808311611abf57829003601f168201915b5050505050915050919050565b6000818152601960205260408120548190819060ff1615611b3f5760405162461bcd60e51b815260206004820152601060248201526f11591a5d1a5bdb88191a5cd8589b195960821b6044820152606401610e03565b6000611b4a85611c91565b600086815260126020526040902054600f549192506001600160a01b03908116911615158015611bf15750600f5460405163d5fe110d60e01b8152600481018890526001600160a01b039091169063d5fe110d9060240160206040518083038186803b158015611bb957600080fd5b505afa158015611bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf19190615889565b15611c8257600f5460405163f7b3de6560e01b8152600481018890526000916001600160a01b03169063f7b3de659060240160206040518083038186803b158015611c3b57600080fd5b505afa158015611c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7391906154f0565b9550909350909150611c8a9050565b935083925090505b9193909250565b600080611c9d83613f7c565b9050825b81811015611cde576000818152601360205260409020546001600160a01b0316611ccc579392505050565b80611cd681615f21565b915050611ca1565b5060405162461bcd60e51b8152602060048201526018602482015277141c9a5b585c9e481b585c9ad95d08195e1a185d5cdd195960421b6044820152606401610e03565b826000611d2e82613914565b9050336001600160a01b0382161480611dd357506008546001600160a01b03166380371cce82336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015611d9b57600080fd5b505afa158015611daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd39190615889565b611def5760405162461bcd60e51b8152600401610e0390615db1565b611df8856118a8565b158015611e9857506010546001600160a01b03161580611e98575060105460405163bedac0cf60e01b815260048101879052600060248201526001600160a01b039091169063bedac0cf9060440160206040518083038186803b158015611e5e57600080fd5b505afa158015611e72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e969190615889565b155b611ed45760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420737461746560981b6044820152606401610e03565b6000858152601260205260409020611ef090600101858561532d565b5060405185907fb41767e61c97fccd387a45193f99763ad5f5db7e556a0c17d5e66a8d2abd9db390600090a25050505050565b611f2b613fa1565b600082815260096020526040808220805460ff19168415159081179091559051909184917f8696659f3303274562e992bc599cc86b06130b4c66bef55d2e6621bf1cf6da729190a35050565b611809838383604051806020016040528060008152506145f9565b611f9a613fa1565b60008111611fd45760405162461bcd60e51b81526020600482015260076024820152664973207a65726f60c81b6044820152606401610e03565b600d8190556040518181527f3d3461909d09e5e9b2d57490256d9446ec5d92d067b43aeb824d04d817932615906020015b60405180910390a150565b6000610dda826146f0565b60008060008061204861202d87614711565b6000908152601260205260409020546001600160a01b031690565b90506000806120578888614481565b9099939850965091945050505050565b61206f613fa1565b600b8190556040518181527f5905edf405227ac25471b2d65b4b1719c5d816af9e96875f051d9e1c246bf81490602001612005565b6120ac613fa1565b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb90604401602060405180830381600087803b1580156120f657600080fd5b505af115801561210a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212e9190615889565b50505050565b6000828152600460205260408120819061214d9061472a565b90508083106121f45760405163f94d964560e01b815260048101859052600090309063f94d96459060240160206040518083038186803b15801561219057600080fd5b505afa1580156121a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121c89190615b0c565b90506121eb6121d78386615e92565b600083815260036020526040902090614734565b92505050610dda565b600084815260046020526040902061220c9084614734565b949350505050565b6000818152601960205260408120548190819060ff161561226a5760405162461bcd60e51b815260206004820152601060248201526f11591a5d1a5bdb88191a5cd8589b195960821b6044820152606401610e03565b6000611b4a85612be4565b60008061228183614711565b9050600061228f8483614740565b90506001600160a01b0381166122b75760405162461bcd60e51b8152600401610e0390615d8a565b9392505050565b606060006122cb83614711565b6000818152601760205260409020805491925090611a6390615eec565b806122f281613f1a565b6000828152601260205260409020546001600160a01b03163381148061239c57506008546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561236457600080fd5b505afa158015612378573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239c9190615889565b6123e05760405162461bcd60e51b815260206004820152601560248201527427b7363c9031b932b0ba37b91037b91030b236b4b760591b6044820152606401610e03565b60008381526019602090815260409182902054825160ff90911615801582529181019190915284917f50a3d06e3a71433bb7d17b9ded744e9f5389ebc8cf7f85c49b53be512732e832910160405180910390a250506000908152601960205260409020805460ff19811660ff90911615179055565b600061245f6147ae565b61246b85858585614876565b95945050505050565b8280158015906124845750600082115b6124bf5760405162461bcd60e51b815260206004820152600c60248201526b456d7074792076616c75657360a01b6044820152606401610e03565b60006124cb8284615e53565b905060005b8281101561251c5761250a888888848181106124fc57634e487b7160e01b600052603260045260246000fd5b905060200201358785610de0565b8061251481615f21565b9150506124d0565b5050505050505050565b6000610dda82613f7c565b612539613fa1565b6001600160a01b03811663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561258857600080fd5b505afa15801561259c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c09190615889565b6125fc5760405162461bcd60e51b815260206004820152600d60248201526c26bab9ba1031329030b236b4b760991b6044820152606401610e03565b6008546040516001600160a01b038084169216907facd428448d30f3fadee1e7d643a28cfee0ec86aef546e1cfc717d844b99eedf290600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b0382166126805760405162461bcd60e51b8152600401610e0390615d8a565b506001600160a01b031660009081526014602052604090205490565b6126a4613fa1565b600081116126de5760405162461bcd60e51b81526020600482015260076024820152664973207a65726f60c81b6044820152606401610e03565b600c8190556040518181527f0974c11e488a74018e3da44e0750b7d0ec99a431c45f79a6110d722b823d0af090602001612005565b6000610dda61202d83614711565b83801580159061273057508082145b61276b5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081b1a5cdd60a21b6044820152606401610e03565b8360005b8281101561251c57600088888381811061279957634e487b7160e01b600052603260045260246000fd5b90506020020135905060008686848181106127c457634e487b7160e01b600052603260045260246000fd5b905060200201359050836001600160a01b0316636352211e826040518263ffffffff1660e01b81526004016127fb91815260200190565b60206040518083038186803b15801561281357600080fd5b505afa158015612827573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061284b91906154f0565b6040516331a9108f60e11b8152600481018490526001600160a01b0391909116903090636352211e9060240160206040518083038186803b15801561288f57600080fd5b505afa1580156128a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c791906154f0565b6001600160a01b03161461290e5760405162461bcd60e51b815260206004820152600e60248201526d09eeedccae440dad2e6dac2e8c6d60931b6044820152606401610e03565b6040805180820182526001600160a01b038a81168083526020808401868152600088815260068352868120955186546001600160a01b031916908616178655905160019095019490945590835260078152838320858452905291902083905584166323b872dd3330846040518463ffffffff1660e01b815260040161299593929190615c9d565b600060405180830381600087803b1580156129af57600080fd5b505af11580156129c3573d6000803e3d6000fd5b50505050876001600160a01b0316826129d93390565b6001600160a01b03167f0371ddf2288ad1ba92626a7e31c86a9d006e592cfe57d7d946ef08b13457c08b84604051612a1391815260200190565b60405180910390a450508080612a2890615f21565b91505061276f565b6000612a3a6147ae565b60008561ffff16118015612a5457506103e861ffff861611155b612a8f5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642073697a6560a01b6044820152606401610e03565b6000612a99614a21565b6001600160a01b038616600090815260146020526040902054909150612ac49061ffff881690615e3b565b6001600160a01b03861660008181526014602090815260409182902093909355805160608101825291825261ffff8916828401528051601f87018490048402810184018252868152919290830191908790879081908401838280828437600092018290525093909452505083815260126020908152604091829020845181548684015161ffff16600160a01b026001600160b01b03199091166001600160a01b0390921691909117178155918401518051929350612b8b92600185019291909101906153b1565b5050506001600160a01b0385166000827fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d612bca61ffff8b1683615e3b565b60405190815260200160405180910390a495945050505050565b6000806001612bf284613f7c565b612bfc9190615e92565b90505b828110612c3a576000818152601360205260409020546001600160a01b0316612c285792915050565b80612c3281615ed5565b915050612bff565b60405162461bcd60e51b8152602060048201526018602482015277141c9a5b585c9e481b585c9ad95d08195e1a185d5cdd195960421b6044820152606401610e03565b60026000541415612ca05760405162461bcd60e51b8152600401610e0390615e04565b6002600055612cb184848484614a3e565b60405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905283169063a9059cbb90604401602060405180830381600087803b158015612cfb57600080fd5b505af1158015612d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d339190615889565b50816001600160a01b0316836001600160a01b0316857fa8352277873fc0d2b233b8127433da351a4164fa701ed6ff79655694222932c484604051612d7a91815260200190565b60405180910390a4505060016000555050565b6000818152601760205260409020805460609190612daa90615eec565b80601f0160208091040260200160405190810160405280929190818152602001828054612dd690615eec565b8015612e235780601f10612df857610100808354040283529160200191612e23565b820191906000526020600020905b815481529060010190602001808311612e0657829003601f168201915b50505050509050919050565b6000818152601860205260409020805460609190612daa90615eec565b6018602052600090815260409020805461152690615eec565b336040516331a9108f60e11b8152600481018490526001600160a01b0391909116903090636352211e9060240160206040518083038186803b158015612eaa57600080fd5b505afa158015612ebe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ee291906154f0565b6001600160a01b031614612f2a5760405162461bcd60e51b815260206004820152600f60248201526e27b7363c9025a7a2209037bbb732b960891b6044820152606401610e03565b600082815260066020908152604080832080546001820180546001600160a01b031983169093558590556001600160a01b03168085526007845282852082865290935281842093909355516323b872dd60e01b815290919082906323b872dd90612f9c90309087908690600401615c9d565b600060405180830381600087803b158015612fb657600080fd5b505af1158015612fca573d6000803e3d6000fd5b50505050816001600160a01b0316836001600160a01b0316857f0ef52e516fb5aec15a5d3587e5480481b702b26db93c8430eca78b61990fd3f68460405161301491815260200190565b60405180910390a450505050565b60608161302e81613f1a565b600061303984613f7c565b90506000845b82811015613083576000818152601360205260409020546001600160a01b03166130715761306e600183615e3b565b91505b8061307b81615f21565b91505061303f565b5060008167ffffffffffffffff8111156130ad57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156130d6578160200160208202803683370190505b5090506000865b8481101561314d576000818152601360205260409020546001600160a01b031661313b578083838151811061312257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152613138600183615e3b565b91505b8061314581615f21565b9150506130dd565b50909695505050505050565b3360008181526016602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6131ce83612275565b6001600160a01b0316336001600160a01b0316148061327157506008546001600160a01b0316638c481207336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561323957600080fd5b505afa15801561324d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132719190615889565b6132ae5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21031b0b63632b960911b6044820152606401610e03565b600083815260186020526040902080546132c790615eec565b1590506133045760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610e03565b600083815260186020526040902061331d90838361532d565b5060405183907fea825e1799356b6d4ce9100c95086e41495d0095df0ccb481e2f2506e64c0e5d90600090a2505050565b82600061335a82613914565b9050336001600160a01b03821614806133ff57506008546001600160a01b03166380371cce82336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b1580156133c757600080fd5b505afa1580156133db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133ff9190615889565b61341b5760405162461bcd60e51b8152600401610e0390615db1565b6000858152601760205260409020805461343490615eec565b1590506134715760405162461bcd60e51b815260206004820152600b60248201526a105b1c9958591e481cd95d60aa1b6044820152606401610e03565b600085815260176020526040902061348a90858561532d565b5060405185907f7693ab710e3d7b6c45f8b6417230965b0516a9b13773ec6785d245ff4e1367fe90600090a25050505050565b60405163f94d964560e01b8152600481018290526000908190309063f94d96459060240160206040518083038186803b1580156134f957600080fd5b505afa15801561350d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135319190615b0c565b600081815260036020526040902090915061354b9061472a565b60008481526004602052604090206135629061472a565b6122b79190615e3b565b613574613fa1565b600f80546001600160a01b0319166001600160a01b0383169081179091556040517f1a5ef0de3944182af90c76840e17d5295e891a222b7122cbfcf2687f0292581e90600090a250565b6000601260006135cd84614711565b8152602081019190915260400160002054600160a01b900461ffff1692915050565b815b81811161362557613613858583604051806020016040528060008152506145f9565b8061361d81615f21565b9150506135f1565b50826001600160a01b0316846001600160a01b0316837fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d8460405161301491815260200190565b6136ae85858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506145f992505050565b82846001600160a01b0316866001600160a01b0316600080516020615fa283398151915260405160405180910390a45050505050565b604080516001808252818301909252606091600091906020808301908036833701905050905061371383613d95565b8160008151811061373457634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015292915050565b600081815260126020526040812054600160a01b900461ffff161515610dda565b606061377e826146f0565b6137c15760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610e03565b60006137cc83614711565b90506137e26010546001600160a01b0316151590565b801561386c575060105460405163bedac0cf60e01b815260048101839052602481018590526001600160a01b039091169063bedac0cf9060440160206040518083038186803b15801561383457600080fd5b505afa158015613848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061386c9190615889565b156138f8576010546040516392cb829d60e01b815260048101839052602481018590526001600160a01b03909116906392cb829d9060440160006040518083038186803b1580156138bc57600080fd5b505afa1580156138d0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122b791908101906158dd565b60008181526012602052604090206001018054611a6390615eec565b6000818152601260205260408120546001600160a01b0316610dda565b60008161393d81613f1a565b600f546001600160a01b0316151580156139ce5750600f5460405163d5fe110d60e01b8152600481018590526001600160a01b039091169063d5fe110d9060240160206040518083038186803b15801561399657600080fd5b505afa1580156139aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139ce9190615889565b806122b7575050600b54151592915050565b600080600080606060006139f387614711565b60008181526012602052604090208054919250906001600160a01b0316613a1a8984614740565b8254600160a01b900461ffff1684613a318c613773565b939c929b5090995097509095509350505050565b60405163f94d964560e01b81526004810183905260009030908290829063f94d96459060240160206040518083038186803b158015613a8357600080fd5b505afa158015613a97573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613abb9190615b0c565b60008181526001602090815260408083206001600160a01b03898116855292528083205490516346c8e19d60e11b8152600481018590529394509290851690638d91c33a9060240160206040518083038186803b158015613b1b57600080fd5b505afa158015613b2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b539190615b0c565b613b5d9083615e53565b60008481526002602090815260408083206001600160a01b038b16845282528083208b8452909152902054909150613b958183615e92565b60008981526005602090815260408083206001600160a01b038c168452909152902054909250613bc59083615e3b565b98975050505050505050565b60008181526019602052604081205460ff1680610dda5750610dda826114a4565b6000613bfc6147ae565b838015801590613c0b57508083145b613c485760405162461bcd60e51b815260206004820152600e60248201526d151bdad95b9cc81a5b9d985b1a5960921b6044820152606401610e03565b613c548a8a8a8a614876565b915060005b81811015613ccd57613cbb8a84898985818110613c8657634e487b7160e01b600052603260045260246000fd5b9050602002016020810190613c9b91906154d4565b8888868181106117d557634e487b7160e01b600052603260045260246000fd5b80613cc581615f21565b915050613c59565b505098975050505050505050565b60005b81811015613d8e57613d278585858585818110613d0b57634e487b7160e01b600052603260045260246000fd5b90506020020135604051806020016040528060008152506145f9565b828282818110613d4757634e487b7160e01b600052603260045260246000fd5b90506020020135846001600160a01b0316866001600160a01b0316600080516020615fa283398151915260405160405180910390a480613d8681615f21565b915050613cde565b5050505050565b600080613da183614711565b9050613db7600f546001600160a01b0316151590565b8015613e3a5750600f5460405163d5fe110d60e01b8152600481018390526001600160a01b039091169063d5fe110d9060240160206040518083038186803b158015613e0257600080fd5b505afa158015613e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3a9190615889565b15613ebb57600f5460405163f7b3de6560e01b8152600481018390526001600160a01b039091169063f7b3de659060240160206040518083038186803b158015613e8357600080fd5b505afa158015613e97573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122b791906154f0565b6000818152601260205260409020546001600160a01b03166122b7565b6000610dda82614711565b6001600160a01b038116600090815260018301602052604081205415156122b7565b60006122b7836001600160a01b038416615179565b600081815260126020526040902054600160a01b900461ffff16613f795760405162461bcd60e51b815260206004820152601660248201527511591a5d1a5bdb88191bd95cc81b9bdd08195e1a5cdd60521b6044820152606401610e03565b50565b600081815260126020526040812054610dda908390600160a01b900461ffff16615e3b565b6008546001600160a01b031663c395fcb3336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015613ff257600080fd5b505afa158015614006573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061402a9190615889565b6140665760405162461bcd60e51b815260206004820152600d60248201526c26bab9ba1031329030b236b4b760991b6044820152606401610e03565b565b6002600054141561408b5760405162461bcd60e51b8152600401610e0390615e04565b6002600055806140ad5760405162461bcd60e51b8152600401610e0390615de0565b60008381526003602052604090206140c59083613ee3565b1561410b5760405162461bcd60e51b8152602060048201526016602482015275045646974696f6e20636f6e7461696e732045524332360541b6044820152606401610e03565b60008381526003602052604090206141239083613f05565b5060008381526001602090815260408083206001600160a01b0386168452909152902054614152908290615e3b565b60008481526001602090815260408083206001600160a01b03871680855292529182902092909255516323b872dd60e01b81526323b872dd9061419d90879030908690600401615c9d565b602060405180830381600087803b1580156141b757600080fd5b505af11580156141cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141ef9190615889565b50816001600160a01b031683856001600160a01b03167ffef82d7cd5d3dada99d825e0473c369efb179e0f730d85ff83a720f8ac95cf9484604051612d7a91815260200190565b6001600160a01b0382166142815760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420746f206164647265737360701b6044820152606401610e03565b60006142958261429084614711565b614740565b90506001600160a01b0381166142bd5760405162461bcd60e51b8152600401610e0390615d8a565b806001600160a01b0316846001600160a01b03161461430f5760405162461bcd60e51b815260206004820152600e60248201526d09eeedccae440dad2e6dac2e8c6d60931b6044820152606401610e03565b60008281526015602052604090205433906001600160a01b0390811690831682148061436057506001600160a01b0380841660009081526016602090815260408083209386168352929052205460ff165b8061437c5750816001600160a01b0316816001600160a01b0316145b6143ba5760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21039b832b73232b960891b6044820152606401610e03565b6001600160a01b038116156143e657600084815260156020526040902080546001600160a01b03191690555b600084815260136020908152604080832080546001600160a01b0319166001600160a01b038a81169190911790915589168352601490915290205461442d90600190615e92565b6001600160a01b03808816600090815260146020526040808220939093559087168152205461445d906001615e3b565b6001600160a01b039095166000908152601460205260409020949094555050505050565b600080600061448f85614711565b90506144a5600f546001600160a01b0316151590565b80156145285750600f5460405163d5fe110d60e01b8152600481018390526001600160a01b039091169063d5fe110d9060240160206040518083038186803b1580156144f057600080fd5b505afa158015614504573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145289190615889565b156145b957600f5460405163152a902d60e11b815260048101839052602481018690526001600160a01b0390911690632a55205a90604401604080518083038186803b15801561457757600080fd5b505afa15801561458b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145af9190615763565b90935091506145f1565b6000818152601260205260409020546001600160a01b03169250600b54600c54856145e49190615e53565b6145ee9190615e73565b91505b509250929050565b614604848484614236565b823b8015613d8e57604051630a85bd0160e11b81526000906001600160a01b0386169063150b7a02906146419033908a9089908990600401615cc1565b602060405180830381600087803b15801561465b57600080fd5b505af115801561466f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061469391906158c1565b90506001600160e01b03198116630a85bd0160e11b146146e85760405162461bcd60e51b815260206004820152601060248201526f24b73b30b634b21039b2b632b1ba37b960811b6044820152606401610e03565b505050505050565b6000806147008361429081614711565b6001600160a01b0316141592915050565b60006103e86147208184615e53565b610dda9190615e73565b6000610dda825490565b60006122b783836151c8565b6000828152601360205260408120546001600160a01b03168015614765579050610dda565b6000838152601260205260409020546001600160a01b031680158015906147a0575084600161479386613f7c565b61479d9190615e92565b10155b15611905579150610dda9050565b6008546001600160a01b0316638c481207336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156147ff57600080fd5b505afa158015614813573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148379190615889565b6140665760405162461bcd60e51b815260206004820152601060248201526f135d5cdd0818994818dbdb9d1c9858dd60821b6044820152606401610e03565b6000808561ffff1611801561489157506103e861ffff861611155b6148cc5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642073697a6560a01b6044820152606401610e03565b60006148d6614a21565b6001600160a01b0386166000908152601460205260409020549091506149019061ffff881690615e3b565b6001600160a01b03861660008181526014602090815260409182902093909355805160608101825291825261ffff8916828401528051601f87018490048402810184018252868152919290830191908790879081908401838280828437600092018290525093909452505083815260126020908152604091829020845181548684015161ffff16600160a01b026001600160b01b03199091166001600160a01b03909216919091171781559184015180519293506149c892600185019291909101906153b1565b50600091506149dd905061ffff881683615e3b565b9050815b8181101561314d5760405181906001600160a01b03891690600090600080516020615fa2833981519152908290a480614a1981615f21565b9150506149e1565b601154600090614a34906103e890615e3b565b6011819055919050565b60008111614a5e5760405162461bcd60e51b8152600401610e0390615de0565b6001600160a01b038316614aa35760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610e03565b6040516331a9108f60e11b81526004810185905230906000908290636352211e9060240160206040518083038186803b158015614adf57600080fd5b505afa158015614af3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b1791906154f0565b90506001600160a01b038116331480614bba57506001600160a01b03821663e985e9c582336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260440160206040518083038186803b158015614b8257600080fd5b505afa158015614b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bba9190615889565b80614c4857503360405163020604bf60e21b8152600481018890526001600160a01b039182169184169063081812fc9060240160206040518083038186803b158015614c0557600080fd5b505afa158015614c19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c3d91906154f0565b6001600160a01b0316145b614c805760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610e03565b50506000848152600460205260408120614c9a9084613ee3565b60405163f94d964560e01b8152600481018790529091503090600090829063f94d96459060240160206040518083038186803b158015614cd957600080fd5b505afa158015614ced573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d119190615b0c565b600081815260036020526040812091925090614d2d9087613ee3565b90508380614d385750805b614d745760405162461bcd60e51b815260206004820152600d60248201526c04e6f207375636820455243323609c1b6044820152606401610e03565b84614d7f8988613a45565b1015614dbf5760405162461bcd60e51b815260206004820152600f60248201526e457863656564732062616c616e636560881b6044820152606401610e03565b6040516346c8e19d60e11b8152600481018390526000906001600160a01b03851690638d91c33a9060240160206040518083038186803b158015614e0257600080fd5b505afa158015614e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e3a9190615b0c565b60008481526001602090815260408083206001600160a01b038c16845290915281205491925090614e6c908390615e53565b60008581526002602090815260408083206001600160a01b038d16845282528083208e8452909152812054919250614ea48284615e92565b9050888110614f0757614eb78983615e3b565b6002600088815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002081905550615069565b60008c81526005602090815260408083206001600160a01b038e1684529091529020548911614f865760008c81526005602090815260408083206001600160a01b038e168452909152902054614f5e908a90615e92565b60008d81526005602090815260408083206001600160a01b038f168452909152902055615069565b614f908183615e3b565b6002600088815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060008e8152602001908152602001600020819055506000818a614fe99190615e92565b905080600560008f815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000205461502d9190615e92565b600560008f815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002081905550505b878015615096575060008c81526005602090815260408083206001600160a01b038e168452909152902054155b156150b55760008c81526004602052604090206150b3908b615200565b505b841561516b576000805b85811015615149576000600260008a815260200190815260200160002060008e6001600160a01b03166001600160a01b031681526020019081526020016000206000838b61510d9190615e3b565b815260200190815260200160002054866151279190615e92565b90506151338184615e3b565b925050808061514190615f21565b9150506150bf565b5080615169576000878152600360205260409020615167908c615200565b505b505b505050505050505050505050565b60008181526001830160205260408120546151c057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610dda565b506000610dda565b60008260000182815481106151ed57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b60006122b7836001600160a01b03841660008181526001830160205260408120548015615323576000615234600183615e92565b855490915060009061524890600190615e92565b90508181146152c957600086600001828154811061527657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050808760000184815481106152a757634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806152e857634e487b7160e01b600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610dda565b6000915050610dda565b82805461533990615eec565b90600052602060002090601f01602090048101928261535b57600085556153a1565b82601f106153745782800160ff198235161785556153a1565b828001600101855582156153a1579182015b828111156153a1578235825591602001919060010190615386565b506153ad929150615425565b5090565b8280546153bd90615eec565b90600052602060002090601f0160209004810192826153df57600085556153a1565b82601f106153f857805160ff19168380011785556153a1565b828001600101855582156153a1579182015b828111156153a157825182559160200191906001019061540a565b5b808211156153ad5760008155600101615426565b60008083601f84011261544b578081fd5b50813567ffffffffffffffff811115615462578182fd5b6020830191508360208260051b85010111156118a157600080fd5b60008083601f84011261548e578182fd5b50813567ffffffffffffffff8111156154a5578182fd5b6020830191508360208285010111156118a157600080fd5b803561ffff811681146154cf57600080fd5b919050565b6000602082840312156154e5578081fd5b81356122b781615f68565b600060208284031215615501578081fd5b81516122b781615f68565b6000806040838503121561551e578081fd5b823561552981615f68565b9150602083013561553981615f68565b809150509250929050565b60008060008060608587031215615559578182fd5b843561556481615f68565b9350602085013561557481615f68565b9250604085013567ffffffffffffffff81111561558f578283fd5b61559b8782880161543a565b95989497509550505050565b6000806000606084860312156155bb578283fd5b83356155c681615f68565b925060208401356155d681615f68565b929592945050506040919091013590565b6000806000806000608086880312156155fe578081fd5b853561560981615f68565b9450602086013561561981615f68565b935060408601359250606086013567ffffffffffffffff81111561563b578182fd5b6156478882890161547d565b969995985093965092949392505050565b6000806000806080858703121561566d578384fd5b843561567881615f68565b9350602085013561568881615f68565b93969395505050506040820135916060013590565b6000806000806000608086880312156156b4578283fd5b85356156bf81615f68565b9450602086013567ffffffffffffffff8111156156da578384fd5b6156e68882890161543a565b90955093505060408601356156fa81615f68565b949793965091946060013592915050565b6000806040838503121561571d578182fd5b823561572881615f68565b9150602083013561553981615f7d565b6000806040838503121561574a578182fd5b823561575581615f68565b946020939093013593505050565b60008060408385031215615775578182fd5b825161578081615f68565b6020939093015192949293505050565b6000806000606084860312156157a4578081fd5b83356157af81615f68565b92506020840135915060408401356157c681615f68565b809150509250925092565b600080600080608085870312156157e6578182fd5b84356157f181615f68565b935060208501359250604085013561580881615f68565b9396929550929360600135925050565b60008060008060006060868803121561582f578283fd5b853567ffffffffffffffff80821115615846578485fd5b61585289838a0161543a565b90975095506020880135915061586782615f68565b9093506040870135908082111561587c578283fd5b506156478882890161543a565b60006020828403121561589a578081fd5b81516122b781615f7d565b6000602082840312156158b6578081fd5b81356122b781615f8b565b6000602082840312156158d2578081fd5b81516122b781615f8b565b6000602082840312156158ee578081fd5b815167ffffffffffffffff80821115615905578283fd5b818401915084601f830112615918578283fd5b81518181111561592a5761592a615f52565b604051601f8201601f19908116603f0116810190838211818310171561595257615952615f52565b8160405282815287602084870101111561596a578586fd5b61597b836020830160208801615ea9565b979650505050505050565b6000806000806060858703121561599b578182fd5b6159a4856154bd565b935060208501356159b481615f68565b9250604085013567ffffffffffffffff8111156159cf578283fd5b61559b8782880161547d565b60008060008060008060008060a0898b0312156159f6578586fd5b6159ff896154bd565b97506020890135615a0f81615f68565b9650604089013567ffffffffffffffff80821115615a2b578788fd5b615a378c838d0161547d565b909850965060608b0135915080821115615a4f578485fd5b615a5b8c838d0161543a565b909650945060808b0135915080821115615a73578384fd5b50615a808b828c0161543a565b999c989b5096995094979396929594505050565b600080600080600060608688031215615aab578283fd5b615ab4866154bd565b9450602086013567ffffffffffffffff80821115615ad0578485fd5b615adc89838a0161543a565b9096509450604088013591508082111561587c578283fd5b600060208284031215615b05578081fd5b5035919050565b600060208284031215615b1d578081fd5b5051919050565b60008060408385031215615b36578182fd5b82359150602083013561553981615f68565b60008060008060808587031215615b5d578182fd5b843593506020850135615b6f81615f68565b9250604085013561580881615f68565b600080600060608486031215615b93578081fd5b8335925060208401356155d681615f68565b60008060408385031215615bb7578182fd5b82359150602083013561553981615f7d565b600080600060408486031215615bdd578081fd5b83359250602084013567ffffffffffffffff811115615bfa578182fd5b615c068682870161547d565b9497909650939450505050565b60008060408385031215615c25578182fd5b50508035926020909101359150565b60008151808452615c4c816020860160208601615ea9565b601f01601f19169290920160200192915050565b6001600160a01b0386811682528516602082015261ffff841660408201526060810183905260a06080820181905260009061597b90830184615c34565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090615cf490830184615c34565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561314d5783516001600160a01b031683529284019291840191600101615d1a565b6020808252825182820181905260009190848201906040850190845b8181101561314d57835183529284019291840191600101615d5b565b6020815260006122b76020830184615c34565b6020808252600d908201526c24b73b30b634b21037bbb732b960991b604082015260600190565b6020808252601590820152744f6e6c792063726561746f72206f722070726f787960581b604082015260600190565b6020808252600a908201526956616c7565207a65726f60b01b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115615e4e57615e4e615f3c565b500190565b600082615e6e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615615e8d57615e8d615f3c565b500290565b600082821015615ea457615ea4615f3c565b500390565b60005b83811015615ec4578181015183820152602001615eac565b8381111561212e5750506000910152565b600081615ee457615ee4615f3c565b506000190190565b600181811c90821680615f0057607f821691505b6020821081141561150757634e487b7160e01b600052602260045260246000fd5b6000600019821415615f3557615f35615f3c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114613f7957600080fd5b8015158114613f7957600080fd5b6001600160e01b031981168114613f7957600080fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212205712aba8ff8bcb06b189f5b71d437e5dcf339bf4f383c556b796b346234366d864736f6c63430008040033

Verified Source Code Partial Match

Compiler: v0.8.4+commit.c7e474f2 EVM: istanbul Optimization: Yes (200 runs)
KnownOriginDigitalAssetV3.sol 2414 lines
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// 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/utils/introspection/ERC165Storage.sol



pragma solidity ^0.8.0;


/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// File: contracts/access/IKOAccessControlsLookup.sol



pragma solidity 0.8.4;

interface IKOAccessControlsLookup {
    function hasAdminRole(address _address) external view returns (bool);

    function isVerifiedArtist(uint256 _index, address _account, bytes32[] calldata _merkleProof) external view returns (bool);

    function isVerifiedArtistProxy(address _artist, address _proxy) external view returns (bool);

    function hasLegacyMinterRole(address _address) external view returns (bool);

    function hasContractRole(address _address) external view returns (bool);

    function hasContractOrAdminRole(address _address) external view returns (bool);
}

// File: contracts/core/IERC2981.sol



pragma solidity 0.8.4;


/// @notice This is purely an extension for the KO platform
/// @notice Royalties on KO are defined at an edition level for all tokens from the same edition
interface IERC2981EditionExtension {

    /// @notice Does the edition have any royalties defined
    function hasRoyalties(uint256 _editionId) external view returns (bool);

    /// @notice Get the royalty receiver - all royalties should be sent to this account if not zero address
    function getRoyaltiesReceiver(uint256 _editionId) external view returns (address);
}

/**
 * ERC2981 standards interface for royalties
 */
interface IERC2981 is IERC165, IERC2981EditionExtension {
    /// ERC165 bytes to add to interface array - set in parent contract
    /// implementing this standard
    ///
    /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
    /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
    /// _registerInterface(_INTERFACE_ID_ERC2981);

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for _value sale price
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _value
    ) external view returns (
        address _receiver,
        uint256 _royaltyAmount
    );

}

// File: contracts/core/IKODAV3Minter.sol



pragma solidity 0.8.4;

interface IKODAV3Minter {

    function mintBatchEdition(uint16 _editionSize, address _to, string calldata _uri) external returns (uint256 _editionId);

    function mintBatchEditionAndComposeERC20s(uint16 _editionSize, address _to, string calldata _uri, address[] calldata _erc20s, uint256[] calldata _amounts) external returns (uint256 _editionId);

    function mintConsecutiveBatchEdition(uint16 _editionSize, address _to, string calldata _uri) external returns (uint256 _editionId);
}

// File: contracts/programmable/ITokenUriResolver.sol



pragma solidity 0.8.4;

interface ITokenUriResolver {

    /// @notice Return the edition or token level URI - token level trumps edition level if found
    function tokenURI(uint256 _editionId, uint256 _tokenId) external view returns (string memory);

    /// @notice Do we have an edition level or token level token URI resolver set
    function isDefined(uint256 _editionId, uint256 _tokenId) external view returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// 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/utils/structs/EnumerableSet.sol



pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol



pragma solidity ^0.8.0;

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

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// 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: contracts/core/IERC2309.sol



pragma solidity 0.8.4;

/**
  @title ERC-2309: ERC-721 Batch Mint Extension
  @dev https://github.com/ethereum/EIPs/issues/2309
 */
interface IERC2309 {
    /**
      @notice This event is emitted when ownership of a batch of tokens changes by any mechanism.
      This includes minting, transferring, and burning.

      @dev The address executing the transaction MUST own all the tokens within the range of
      fromTokenId and toTokenId, or MUST be an approved operator to act on the owners behalf.
      The fromTokenId and toTokenId MUST be a sequential range of tokens IDs.
      When minting/creating tokens, the `fromAddress` argument MUST be set to `0x0` (i.e. zero address).
      When burning/destroying tokens, the `toAddress` argument MUST be set to `0x0` (i.e. zero address).

      @param fromTokenId The token ID that begins the batch of tokens being transferred
      @param toTokenId The token ID that ends the batch of tokens being transferred
      @param fromAddress The address transferring ownership of the specified range of tokens
      @param toAddress The address receiving ownership of the specified range of tokens.
    */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress);
}

// File: contracts/core/IHasSecondarySaleFees.sol



pragma solidity 0.8.4;


/// @title Royalties formats required for use on the Rarible platform
/// @dev https://docs.rarible.com/asset/royalties-schema
interface IHasSecondarySaleFees is IERC165 {

    event SecondarySaleFees(uint256 tokenId, address[] recipients, uint[] bps);

    function getFeeRecipients(uint256 id) external returns (address payable[] memory);

    function getFeeBps(uint256 id) external returns (uint[] memory);
}

// File: contracts/core/IKODAV3.sol



pragma solidity 0.8.4;






/// @title Core KODA V3 functionality
interface IKODAV3 is
IERC165, // Contract introspection
IERC721, // Core NFTs
IERC2309, // Consecutive batch mint
IERC2981, // Royalties
IHasSecondarySaleFees // Rariable / Foundation royalties
{
    // edition utils

    function getCreatorOfEdition(uint256 _editionId) external view returns (address _originalCreator);

    function getCreatorOfToken(uint256 _tokenId) external view returns (address _originalCreator);

    function getSizeOfEdition(uint256 _editionId) external view returns (uint256 _size);

    function getEditionSizeOfToken(uint256 _tokenId) external view returns (uint256 _size);

    function editionExists(uint256 _editionId) external view returns (bool);

    // Has the edition been disabled / soft burnt
    function isEditionSalesDisabled(uint256 _editionId) external view returns (bool);

    // Has the edition been disabled / soft burnt OR sold out
    function isSalesDisabledOrSoldOut(uint256 _editionId) external view returns (bool);

    // Work out the max token ID for an edition ID
    function maxTokenIdOfEdition(uint256 _editionId) external view returns (uint256 _tokenId);

    // Helper method for getting the next primary sale token from an edition starting low to high token IDs
    function getNextAvailablePrimarySaleToken(uint256 _editionId) external returns (uint256 _tokenId);

    // Helper method for getting the next primary sale token from an edition starting high to low token IDs
    function getReverseAvailablePrimarySaleToken(uint256 _editionId) external view returns (uint256 _tokenId);

    // Utility method to get all data needed for the next primary sale, low token ID to high
    function facilitateNextPrimarySale(uint256 _editionId) external returns (address _receiver, address _creator, uint256 _tokenId);

    // Utility method to get all data needed for the next primary sale, high token ID to low
    function facilitateReversePrimarySale(uint256 _editionId) external returns (address _receiver, address _creator, uint256 _tokenId);

    // Expanded royalty method for the edition, not token
    function royaltyAndCreatorInfo(uint256 _editionId, uint256 _value) external returns (address _receiver, address _creator, uint256 _amount);

    // Allows the creator to correct mistakes until the first token from an edition is sold
    function updateURIIfNoSaleMade(uint256 _editionId, string calldata _newURI) external;

    // Has any primary transfer happened from an edition
    function hasMadePrimarySale(uint256 _editionId) external view returns (bool);

    // Has the edition sold out
    function isEditionSoldOut(uint256 _editionId) external view returns (bool);

    // Toggle on/off the edition from being able to make sales
    function toggleEditionSalesDisabled(uint256 _editionId) external;

    // token utils

    function exists(uint256 _tokenId) external view returns (bool);

    function getEditionIdOfToken(uint256 _tokenId) external pure returns (uint256 _editionId);

    function getEditionDetails(uint256 _tokenId) external view returns (address _originalCreator, address _owner, uint16 _size, uint256 _editionId, string memory _uri);

    function hadPrimarySaleOfToken(uint256 _tokenId) external view returns (bool);

}

// File: contracts/core/composable/TopDownERC20Composable.sol



pragma solidity 0.8.4;







interface ERC998ERC20TopDown {
    event ReceivedERC20(address indexed _from, uint256 indexed _tokenId, address indexed _erc20Contract, uint256 _value);
    event ReceivedERC20ForEdition(address indexed _from, uint256 indexed _editionId, address indexed _erc20Contract, uint256 _value);
    event TransferERC20(uint256 indexed _tokenId, address indexed _to, address indexed _erc20Contract, uint256 _value);

    function balanceOfERC20(uint256 _tokenId, address _erc20Contract) external view returns (uint256);

    function transferERC20(uint256 _tokenId, address _to, address _erc20Contract, uint256 _value) external;

    function getERC20(address _from, uint256 _tokenId, address _erc20Contract, uint256 _value) external;
}

interface ERC998ERC20TopDownEnumerable {
    function totalERC20Contracts(uint256 _tokenId) external view returns (uint256);

    function erc20ContractByIndex(uint256 _tokenId, uint256 _index) external view returns (address);
}

/// @notice ERC998 ERC721 > ERC20 Top Down implementation
abstract contract TopDownERC20Composable is ERC998ERC20TopDown, ERC998ERC20TopDownEnumerable, ReentrancyGuard, Context {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Edition ID -> ERC20 contract -> Balance of ERC20 for every token in Edition
    mapping(uint256 => mapping(address => uint256)) public editionTokenERC20Balances;

    // Edition ID -> ERC20 contract -> Token ID -> Balance Transferred out of token
    mapping(uint256 => mapping(address => mapping(uint256 => uint256))) public editionTokenERC20TransferAmounts;

    // Edition ID -> Linked ERC20 contract addresses
    mapping(uint256 => EnumerableSet.AddressSet) ERC20sEmbeddedInEdition;

    // Token ID -> Linked ERC20 contract addresses
    mapping(uint256 => EnumerableSet.AddressSet) ERC20sEmbeddedInNft;

    // Token ID -> ERC20 contract -> balance of ERC20 owned by token
    mapping(uint256 => mapping(address => uint256)) public ERC20Balances;

    /// @notice the ERC20 balance of a NFT token given an ERC20 token address
    function balanceOfERC20(uint256 _tokenId, address _erc20Contract) public override view returns (uint256) {
        IKODAV3 koda = IKODAV3(address(this));
        uint256 editionId = koda.getEditionIdOfToken(_tokenId);

        uint256 editionBalance = editionTokenERC20Balances[editionId][_erc20Contract];
        uint256 tokenEditionBalance = editionBalance / koda.getSizeOfEdition(editionId);
        uint256 spentTokens = editionTokenERC20TransferAmounts[editionId][_erc20Contract][_tokenId];
        tokenEditionBalance = tokenEditionBalance - spentTokens;

        return tokenEditionBalance + ERC20Balances[_tokenId][_erc20Contract];
    }

    /// @notice Transfer out an ERC20 from an NFT
    function transferERC20(uint256 _tokenId, address _to, address _erc20Contract, uint256 _value) external override nonReentrant {
        _prepareERC20LikeTransfer(_tokenId, _to, _erc20Contract, _value);

        IERC20(_erc20Contract).transfer(_to, _value);

        emit TransferERC20(_tokenId, _to, _erc20Contract, _value);
    }

    /// @notice An NFT token owner (or approved) can compose multiple ERC20s in their NFT
    function getERC20s(address _from, uint256[] calldata _tokenIds, address _erc20Contract, uint256 _totalValue) external {
        uint256 totalTokens = _tokenIds.length;
        require(totalTokens > 0 && _totalValue > 0, "Empty values");

        uint256 valuePerToken = _totalValue / totalTokens;
        for (uint i = 0; i < totalTokens; i++) {
            getERC20(_from, _tokenIds[i], _erc20Contract, valuePerToken);
        }
    }

    /// @notice A NFT token owner (or approved address) can compose any ERC20 in their NFT
    function getERC20(address _from, uint256 _tokenId, address _erc20Contract, uint256 _value) public override nonReentrant {
        require(_value > 0, "Value zero");
        require(_from == _msgSender(), "Only owner");

        address spender = _msgSender();
        IERC721 self = IERC721(address(this));

        address owner = self.ownerOf(_tokenId);
        require(
            owner == spender || self.isApprovedForAll(owner, spender) || self.getApproved(_tokenId) == spender,
            "Invalid spender"
        );

        uint256 editionId = IKODAV3(address(this)).getEditionIdOfToken(_tokenId);
        bool editionAlreadyContainsERC20 = ERC20sEmbeddedInEdition[editionId].contains(_erc20Contract);
        bool nftAlreadyContainsERC20 = ERC20sEmbeddedInNft[_tokenId].contains(_erc20Contract);

        // does not already contain _erc20Contract
        if (!editionAlreadyContainsERC20 && !nftAlreadyContainsERC20) {
            ERC20sEmbeddedInNft[_tokenId].add(_erc20Contract);
        }

        ERC20Balances[_tokenId][_erc20Contract] = ERC20Balances[_tokenId][_erc20Contract] + _value;

        IERC20 token = IERC20(_erc20Contract);
        require(token.allowance(_from, address(this)) >= _value, "Exceeds allowance");

        token.transferFrom(_from, address(this), _value);

        emit ReceivedERC20(_from, _tokenId, _erc20Contract, _value);
    }

    function _composeERC20IntoEdition(address _from, uint256 _editionId, address _erc20Contract, uint256 _value) internal nonReentrant {
        require(_value > 0, "Value zero");

        require(!ERC20sEmbeddedInEdition[_editionId].contains(_erc20Contract), "Edition contains ERC20");

        ERC20sEmbeddedInEdition[_editionId].add(_erc20Contract);
        editionTokenERC20Balances[_editionId][_erc20Contract] = editionTokenERC20Balances[_editionId][_erc20Contract] + _value;

        IERC20(_erc20Contract).transferFrom(_from, address(this), _value);

        emit ReceivedERC20ForEdition(_from, _editionId, _erc20Contract, _value);
    }

    function totalERC20Contracts(uint256 _tokenId) override public view returns (uint256) {
        uint256 editionId = IKODAV3(address(this)).getEditionIdOfToken(_tokenId);
        return ERC20sEmbeddedInNft[_tokenId].length() + ERC20sEmbeddedInEdition[editionId].length();
    }

    function erc20ContractByIndex(uint256 _tokenId, uint256 _index) override external view returns (address) {
        uint256 numOfERC20sInNFT = ERC20sEmbeddedInNft[_tokenId].length();
        if (_index >= numOfERC20sInNFT) {
            uint256 editionId =  IKODAV3(address(this)).getEditionIdOfToken(_tokenId);
            return ERC20sEmbeddedInEdition[editionId].at(_index - numOfERC20sInNFT);
        }

        return ERC20sEmbeddedInNft[_tokenId].at(_index);
    }

    /// --- Internal ----

    function _prepareERC20LikeTransfer(uint256 _tokenId, address _to, address _erc20Contract, uint256 _value) private {
        // To avoid stack too deep, do input checks within this scope
        {
            require(_value > 0, "Value zero");
            require(_to != address(0), "Zero address");

            IERC721 self = IERC721(address(this));

            address owner = self.ownerOf(_tokenId);
            require(
                owner == _msgSender() || self.isApprovedForAll(owner, _msgSender()) || self.getApproved(_tokenId) == _msgSender(),
                "Not owner"
            );
        }

        // Check that the NFT contains the ERC20
        bool nftContainsERC20 = ERC20sEmbeddedInNft[_tokenId].contains(_erc20Contract);

        IKODAV3 koda = IKODAV3(address(this));
        uint256 editionId = koda.getEditionIdOfToken(_tokenId);
        bool editionContainsERC20 = ERC20sEmbeddedInEdition[editionId].contains(_erc20Contract);
        require(nftContainsERC20 || editionContainsERC20, "No such ERC20");

        // Check there is enough balance to transfer out
        require(balanceOfERC20(_tokenId, _erc20Contract) >= _value, "Exceeds balance");

        uint256 editionSize = koda.getSizeOfEdition(editionId);
        uint256 tokenInitialBalance = editionTokenERC20Balances[editionId][_erc20Contract] / editionSize;
        uint256 spentTokens = editionTokenERC20TransferAmounts[editionId][_erc20Contract][_tokenId];
        uint256 editionTokenBalance = tokenInitialBalance - spentTokens;

        // Check whether the value can be fully transferred from the edition balance, token balance or both balances
        if (editionTokenBalance >= _value) {
            editionTokenERC20TransferAmounts[editionId][_erc20Contract][_tokenId]...

// [truncated — 92949 bytes total]

Read Contract

ERC20Balances 0x5c5f16f3 → uint256
MAX_EDITION_SIZE 0x6c5e845a → uint16
accessControls 0x748365ef → address
balanceOf 0x70a08231 → uint256
balanceOfERC20 0xe226ed22 → uint256
basisPointsModulo 0x328fd623 → uint256
composedNFTsToKodaToken 0xe7b74ec9 → uint256
editionAdditionalMetaData 0x87129101 → string
editionAdditionalMetaDataForToken 0x6756a691 → string
editionExists 0xc2b2fb5e → bool
editionPointer 0xf6f367dc → uint256
editionSalesDisabled 0x716a41a1 → bool
editionTokenERC20Balances 0xd7c0a63b → uint256
editionTokenERC20TransferAmounts 0xa7277da0 → uint256
editionURI 0x377e5e27 → string
erc20ContractByIndex 0x627c81ff → address
exists 0x4f558e79 → bool
facilitateNextPrimarySale 0x38896da9 → address, address, uint256
facilitateReversePrimarySale 0x634a2093 → address, address, uint256
getAllUnsoldTokenIdsForEdition 0x9d319a31 → uint256[]
getApproved 0x081812fc → address
getCreatorOfEdition 0xd41911d7 → address
getCreatorOfToken 0x7539fc5c → address
getEditionDetails 0xddf990f9 → address, address, uint16, uint256, string
getEditionIdOfToken 0xf94d9645 → uint256
getEditionSizeOfToken 0xace071cb → uint256
getFeeBps 0x0ebd4c7f → uint256[]
getFeeRecipients 0xb9c4d9fb → address[]
getNextAvailablePrimarySaleToken 0x3b20b44b → uint256
getReverseAvailablePrimarySaleToken 0x820e125f → uint256
getRoyaltiesReceiver 0xf7b3de65 → address
getSizeOfEdition 0x8d91c33a → uint256
hadPrimarySaleOfToken 0x7b612708 → bool
hasMadePrimarySale 0x3497e2a1 → bool
hasRoyalties 0xd5fe110d → bool
isApprovedForAll 0xe985e9c5 → bool
isEditionSalesDisabled 0x6221bb8a → bool
isEditionSoldOut 0x1142d4e8 → bool
isSalesDisabledOrSoldOut 0xe35ed67f → bool
kodaTokenComposedNFT 0x14a11974 → address, uint256
maxTokenIdOfEdition 0x6d1d83b8 → uint256
modulo 0x29745262 → uint256
name 0x06fdde03 → string
ownerOf 0x6352211e → address
reportedArtistAccounts 0x500b1d2b → bool
reportedEditionIds 0xbb31e413 → bool
royaltiesRegistryProxy 0xf3397afe → address
royaltyAndCreatorInfo 0x4f83b185 → address, address, uint256
royaltyInfo 0x2a55205a → address, uint256
royaltyRegistryActive 0x06470491 → bool
sealedEditionMetaData 0x11afa9fe → string
sealedTokenMetaData 0x8b32f65f → string
secondarySaleRoyalty 0x63f204d0 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenAdditionalMetaData 0x8a2c0d57 → string
tokenURI 0xc87b56dd → string
tokenUriResolver 0xe131fc0c → address
tokenUriResolverActive 0x781c55c0 → bool
totalERC20Contracts 0xa7811732 → uint256
version 0x54fd4d50 → string

Write Contract 29 functions

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

approve 0x095ea7b3
address _approved
uint256 _tokenId
batchTransferFrom 0xf3993d11
address _from
address _to
uint256[] _tokenIds
composeERC20sAsCreator 0x1e3321f8
uint16 _editionId
address[] _erc20s
uint256[] _amounts
composeNFTsIntoKodaTokens 0x7d764d53
uint256[] _kodaTokenIds
address _nft
uint256[] _nftTokenIds
consecutiveBatchTransferFrom 0xb594c62c
address _from
address _to
uint256 _fromTokenId
uint256 _toTokenId
getERC20 0x07cff6f2
address _from
uint256 _tokenId
address _erc20Contract
uint256 _value
getERC20s 0x6ce687d5
address _from
uint256[] _tokenIds
address _erc20Contract
uint256 _totalValue
lockInAdditionalMetaData 0xa6425852
uint256 _editionId
string _metadata
lockInAdditionalTokenMetaData 0xa4c82c9d
uint256 _tokenId
string _metadata
mintBatchEdition 0x6a6f8a19
uint16 _editionSize
address _to
string _uri
returns: uint256
mintBatchEditionAndComposeERC20s 0xed58aed2
uint16 _editionSize
address _to
string _uri
address[] _erc20s
uint256[] _amounts
returns: uint256
mintConsecutiveBatchEdition 0x7dace95a
uint16 _editionSize
address _to
string _uri
returns: uint256
reportArtistAccount 0x17fd9278
address _account
bool _reported
reportEditionId 0x3efb7338
uint256 _editionId
bool _reported
safeTransferFrom 0x42842e0e
address _from
address _to
uint256 _tokenId
safeTransferFrom 0xb88d4fde
address _from
address _to
uint256 _tokenId
bytes _data
setApprovalForAll 0xa22cb465
address _operator
bool _approved
setRoyaltiesRegistryProxy 0xa9b183b1
address _royaltiesRegistryProxy
setTokenUriResolver 0x2407497e
address _tokenUriResolver
toggleEditionSalesDisabled 0x68263df8
uint256 _editionId
transferChild 0x95090ea5
uint256 _kodaTokenId
address _recipient
transferERC20 0x830ef41b
uint256 _tokenId
address _to
address _erc20Contract
uint256 _value
transferFrom 0x23b872dd
address _from
address _to
uint256 _tokenId
updateAccessControls 0x6ef3da94
address _accessControls
updateBasisPointsModulo 0x472cd3d8
uint256 _basisPointsModulo
updateModulo 0x72ec7eec
uint256 _modulo
updateSecondaryRoyalty 0x5188bf53
uint256 _secondarySaleRoyalty
updateURIIfNoSaleMade 0x3c5267fe
uint256 _editionId
string _newURI
withdrawStuckTokens 0x5d2631e2
address _tokenAddress
uint256 _amount
address _withdrawalAccount

Recent Transactions

No transactions found for this address