[ { "inputs": [], "stateMutability": "payable", "type": "constructor" }, { "inputs": [], "name": "ADDRESS_ZERO", "type": "error" }, { "inputs": [], "name": "ARRAY_LENGTH_MISMATCH", "type": "error" }, { "inputs": [], "name": "INVALID_DEPOSIT", "type": "error" }, { "inputs": [], "name": "INVALID_SIGNATURE", "type": "error" }, { "inputs": [], "name": "INVALID_WITHDRAW", "type": "error" }, { "inputs": [], "name": "InvalidShortString", "type": "error" }, { "inputs": [], "name": "SIGNATURE_DEADLINE_EXPIRED", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "str", "type": "string" } ], "name": "StringTooLong", "type": "error" }, { "inputs": [], "name": "TRANSFER_FAILED", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "bytes4", "name": "reason", "type": "bytes4" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "comment", "type": "string" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [], "name": "EIP712DomainChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "creator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "createReferral", "type": "address" }, { "indexed": true, "internalType": "address", "name": "mintReferral", "type": "address" }, { "indexed": false, "internalType": "address", "name": "firstMinter", "type": "address" }, { "indexed": false, "internalType": "address", "name": "zora", "type": "address" }, { "indexed": false, "internalType": "address", "name": "from", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "creatorReward", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "createReferralReward", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "mintReferralReward", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "firstMinterReward", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "zoraReward", "type": "uint256" } ], "name": "RewardsDeposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Withdraw", "type": "event" }, { "inputs": [], "name": "WITHDRAW_TYPEHASH", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "bytes4", "name": "reason", "type": "bytes4" }, { "internalType": "string", "name": "comment", "type": "string" } ], "name": "deposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "recipients", "type": "address[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }, { "internalType": "bytes4[]", "name": "reasons", "type": "bytes4[]" }, { "internalType": "string", "name": "comment", "type": "string" } ], "name": "depositBatch", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "creator", "type": "address" }, { "internalType": "uint256", "name": "creatorReward", "type": "uint256" }, { "internalType": "address", "name": "createReferral", "type": "address" }, { "internalType": "uint256", "name": "createReferralReward", "type": "uint256" }, { "internalType": "address", "name": "mintReferral", "type": "address" }, { "internalType": "uint256", "name": "mintReferralReward", "type": "uint256" }, { "internalType": "address", "name": "firstMinter", "type": "address" }, { "internalType": "uint256", "name": "firstMinterReward", "type": "uint256" }, { "internalType": "address", "name": "zora", "type": "address" }, { "internalType": "uint256", "name": "zoraReward", "type": "uint256" } ], "name": "depositRewards", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "eip712Domain", "outputs": [ { "internalType": "bytes1", "name": "fields", "type": "bytes1" }, { "internalType": "string", "name": "name", "type": "string" }, { "internalType": "string", "name": "version", "type": "string" }, { "internalType": "uint256", "name": "chainId", "type": "uint256" }, { "internalType": "address", "name": "verifyingContract", "type": "address" }, { "internalType": "bytes32", "name": "salt", "type": "bytes32" }, { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "nonces", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdrawFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "withdrawWithSig", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
6101608060405261000f81610144565b600f8152602081016e50726f746f636f6c5265776172647360881b81526040519161003983610144565b6001835260208301603160f81b81526100518261015f565b926101209384526100618561031e565b92610140938452519020938460e05251902091610100938385524660a0526040519360208501917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8352604086015260608501524660808501523060a085015260a0845260c084019380851060018060401b0386111761012e57846040525190206080523060c052610fa993846104b9853960805184610e81015260a05184610f4d015260c05184610e4b015260e05184610ed001525183610ef6015251826106e40152518161070e0152f35b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761012e57604052565b805160209190828110156101f9575090601f82511161019a578082519201519080831061018b57501790565b82600019910360031b1b161790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b8285106101e0575050604492506000838284010152601f80199101168101030190fd5b84810182015186860160440152938101938593506101bd565b6001600160401b03811161012e576000928354926001938481811c91168015610314575b8382101461030057601f81116102cd575b5081601f841160011461026a5750928293918392869461025f575b50501b916000199060031b1c191617905560ff90565b015192503880610249565b919083601f1981168780528488209488905b888383106102b3575050501061029a575b505050811b01905560ff90565b015160001960f88460031b161c1916905538808061028d565b85870151885590960195948501948793509081019061027c565b85805284601f848820920160051c820191601f860160051c015b8281106102f557505061022e565b8781550185906102e7565b634e487b7160e01b86526022600452602486fd5b90607f169061021d565b8051602090818110156103a75750601f825111610348578082519201519080831061018b57501790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b82851061038e575050604492506000838284010152601f80199101168101030190fd5b848101820151868601604401529381019385935061036b565b9192916001600160401b03811161012e5760019182548381811c911680156104ae575b8282101461049857601f8111610462575b5080601f831160011461041857508192939460009261040d575b5050600019600383901b1c191690821b17905560ff90565b0151905038806103f5565b90601f198316958460005282600020926000905b88821061044b575050838596971061029a57505050811b01905560ff90565b80878596829496860151815501950193019061042c565b8360005283601f83600020920160051c820191601f850160051c015b82811061048c5750506103db565b6000815501849061047e565b634e487b7160e01b600052602260045260246000fd5b90607f16906103ca56fe60806040908082526004918236101561001757600080fd5b60009260e0928435841c90816318160ddd14610a5b57508063300def951461089c57806370a082311461086457806376c5d758146108295780637ecebe00146107ed57806384b0196e146106cc578063c27e9794146104a6578063db518db2146103f6578063f3fef3a31461030e578063f7f8266f146102415763faa3516f146100a057600080fd5b61014036600319011261023d576100b5610ad9565b602435936001600160a01b03604435818116959394939086900361023957606435608435978389168099036102355760a4359260c435978589168099036102315760e43595610104359181831680930361022d5761012435996101298b6101248b6101248c6101248d8d610b55565b610b55565b340361021f575092610100989592818f8f8f9e9b98957f90e8cce6b15b450d1e56e9ef986d1cd376838a90944336c02886ca12b9e6ebd79e9b98169e8f80610209575b50806101f3575b50806101dd575b508a6101c7575b826101b1575b5051988952602089015233908801526060870152608086015260a085015260c0840152820152a480f35b828152600260205220888154019055818f610187565b8a81526002602052818120888154019055610181565b815260026020528181208781540190558f61017a565b825260026020528282208781540190558f610173565b835260026020528383208781540190558f61016c565b845163534e04af60e01b8152fd5b8d80fd5b8b80fd5b8980fd5b8780fd5b8380fd5b848383606036600319011261030a57610258610ad9565b6024359263ffffffff60e01b84168094036103065760443567ffffffffffffffff81116103025761028c9036908501610aab565b6001600160a01b03909316939092919084156102f457507f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c0001916102ee9185885260026020528088206102df348254610b55565b90555191829133953484610b78565b0390a480f35b90516366e7950960e01b8152fd5b8580fd5b8480fd5b8280fd5b5091503461030a578060031936011261030a57610329610ad9565b602435906001600160a01b03811680156103e65733865260026020528386205483116103d65785838194938294938394156103c3575b3384526002602052878420610375848254610bfa565b905587518381527f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60203392a35af16103ac610c07565b50156103b6578280f35b51631fa55c0760e11b8152fd5b338452600260205287842054925061035f565b505050516311c1730160e31b8152fd5b505050516366e7950960e01b8152fd5b5091503461030a578060031936011261030a57610411610ad9565b602435906001600160a01b03811680156103e65780865260026020528386205483116103d6578583819493829493839415610493575b808452600260205287842061045d848254610bfa565b9055807f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb60208a51868152a35af16103ac610c07565b8084526002602052878420549250610447565b50913461023d578060031936011261023d576104c0610ad9565b90602435906001600160a01b03808316919082840361023957604435906064356084359060ff82168092036106c85783978142116106b8578392918c95948b9216968787528260209760038952209182549260018401905583519289898501957f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b87528501528a606085015287608085015260a084015260c083015260c08252810181811067ffffffffffffffff8211176106a5579260428c8f946080948a97835251902061058d610e48565b91519161190160f01b83526002830152602282015220908c519182528482015260a4358c82015260c435606082015282805260015afa1561069b57895116838115918215610690575b50506106805783156106705782895260028252868920548111610660579388959193869593869586951561064e575b7f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb90828752600281528a872061063c878254610bfa565b90558a51868152a35af16103ac610c07565b81865260028152898620549450610605565b86516311c1730160e31b81528890fd5b86516366e7950960e01b81528890fd5b8651631468054760e31b81528890fd5b1415905083386105d6565b87513d8b823e3d90fd5b634e487b7160e01b8e5260418d5260248efd5b895163cddf40ed60e01b81528b90fd5b8a80fd5b509192346107ea57806003193601126107ea576107087f0000000000000000000000000000000000000000000000000000000000000000610c47565b906107327f0000000000000000000000000000000000000000000000000000000000000000610d6f565b92805193602093602086019686881067ffffffffffffffff8911176107d7575095939061078d83602092878b99965286865261078082519a8b9a600f60f81b8c5280878d01528b0190610aef565b91898303908a0152610aef565b924660608801523060808801528460a088015286840360c088015251928381520193925b8281106107c057505050500390f35b8351855286955093810193928101926001016107b1565b634e487b7160e01b855260419052602484fd5b80fd5b8483346108255760203660031901126108255760209181906001600160a01b03610815610ad9565b1681526003845220549051908152f35b5080fd5b848334610825578160031936011261082557602090517f7b35c0715842c169bbf11116e8d20b2e74dacbd860d36ad5e47c3d88c15be55b8152f35b8483346108255760203660031901126108255760209181906001600160a01b0361088c610ad9565b1681526002845220549051908152f35b848383608036600319011261030a5767ffffffffffffffff8135818111610306576108ca9036908401610a75565b602493919335838111610a57576108e49036908401610a75565b959093604435818111610a53576108fe9036908601610a75565b91606435908111610235576109169036908701610aab565b989094818114801590610a49575b610a39578a8b5b838a848310610a19575050503403610a09578a5b81811061094a578b80f35b61095581838c610b2f565b356001600160a01b0381169190829003610a055761097481858c610b2f565b359180156109f557878e828152600260205220610992848254610b55565b905561099f828888610b2f565b359063ffffffff60e01b82168092036109f1576001937f5b769452a2090142e059af5137c5b92a3e966cfb03b794cd01ac195d196c00018f8c6109e88d51928392339684610b78565b0390a40161093f565b8e80fd5b87516366e7950960e01b81528a90fd5b8c80fd5b845163534e04af60e01b81528790fd5b92610a2b83610a329360019596610b2f565b3590610b55565b910161092b565b8451634456f5e960e11b81528790fd5b5083811415610924565b8880fd5b8680fd5b859034610825578160031936011261082557602090478152f35b9181601f84011215610aa65782359167ffffffffffffffff8311610aa6576020808501948460051b010111610aa657565b600080fd5b9181601f84011215610aa65782359167ffffffffffffffff8311610aa65760208381860195010111610aa657565b600435906001600160a01b0382168203610aa657565b919082519283825260005b848110610b1b575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201610afa565b9190811015610b3f5760051b0190565b634e487b7160e01b600052603260045260246000fd5b91908201809211610b6257565b634e487b7160e01b600052601160045260246000fd5b91926060938192845260406020850152816040850152848401376000828201840152601f01601f1916010190565b6040810190811067ffffffffffffffff821117610bc257604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117610bc257604052565b91908203918211610b6257565b3d15610c42573d9067ffffffffffffffff8211610bc25760405191610c36601f8201601f191660200184610bd8565b82523d6000602084013e565b606090565b60ff8114610c855760ff811690601f8211610c735760405191610c6983610ba6565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b50604051600080549060018260011c9060018416938415610d65575b6020948584108114610d515783875286949392918115610d315750600114610cd5575b5050610cd292500382610bd8565b90565b60008080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56395935091905b818310610d19575050610cd293508201013880610cc4565b85548784018501529485019486945091830191610d01565b915050610cd294925060ff191682840152151560051b8201013880610cc4565b634e487b7160e01b85526022600452602485fd5b91607f1691610ca1565b60ff8114610d915760ff811690601f8211610c735760405191610c6983610ba6565b506040516000600190600154918260011c9060018416938415610e3e575b6020948584108114610d515783875286949392918115610d315750600114610ddf575050610cd292500382610bd8565b9093915060016000527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6936000915b818310610e26575050610cd293508201013880610cc4565b85548784018501529485019486945091830191610e0e565b91607f1691610daf565b307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161480610f4a575b15610ea3577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff821117610bc25760405251902090565b507f00000000000000000000000000000000000000000000000000000000000000004614610e7a56fea2646970667358221220d9e7101b85847debd6feb94140f8e55b94bde978a51fcaf4642259a429f9ee0864736f6c63430008190033