2 txs
3 calls
constructor
constructor(address impl, address initialOwner, address token_)
functions
deployments
viewfunction deployments(uint256) view returns (bool isSetupDone, address claimant, address vesting, uint256 amount)
getAllDeployments
viewfunction getAllDeployments() view returns (tuple[])
getNextBatchDeployments
viewfunction getNextBatchDeployments(uint256 iterations) view returns (tuple[])
getNumberOfDeployments
viewfunction getNumberOfDeployments() view returns (uint256)
getVestingOfClaimer
viewfunction getVestingOfClaimer(address claimer) view returns (address[])
nextBatchIndex
viewfunction nextBatchIndex() view returns (uint256)
owner
viewfunction owner() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
token
viewfunction token() view returns (address)
vestingImplementation
viewfunction vestingImplementation() view returns (address)
deploy
nonpayablefunction deploy(tuple config) returns (address)
deployBatch
nonpayablefunction deployBatch(tuple[] configs)
renounceOwnership
nonpayablefunction renounceOwnership()
setImplementation
nonpayablefunction setImplementation(address impl)
setupNextBatch
nonpayablefunction setupNextBatch(uint256 iterations)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
events
ImplementationSet
event ImplementationSet(address indexed implementation)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
VestingDeployed
event VestingDeployed(address indexed claimant, address indexed vesting, uint256 amount)
errors
AddressEmptyCode
error AddressEmptyCode(address target)
AddressInsufficientBalance
error AddressInsufficientBalance(address account)
ERC1167FailedCreateClone
error ERC1167FailedCreateClone()
FailedInnerCall
error FailedInnerCall()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
SafeERC20FailedOperation
error SafeERC20FailedOperation(address token)
VestingFactory_InvalidImplementation
error VestingFactory_InvalidImplementation()
VestingFactory_InvalidToken
error VestingFactory_InvalidToken()
VestingFactory_NothingToSetup
error VestingFactory_NothingToSetup()
creation bytecode
0x60806040523480156200001157600080fd5b506040516200150138038062001501833981016040819052620000349162000237565b816001600160a01b0381166200006457604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200006f81620000cc565b506200007b836200011c565b6001600160a01b038116620000a35760405163c5454b2d60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b039290921691909117905550620002b69050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811662000144576040516380b03cad60e01b815260040160405180910390fd5b6040516301ffc9a760e01b8152633baa300760e21b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa15801562000190573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b691906200028b565b620001d4576040516380b03cad60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517fab64f92ab780ecbf4f3866f57cee465ff36c89450dcce20237ca7a8d81fb7d1390600090a250565b6001600160a01b03811681146200023457600080fd5b50565b6000806000606084860312156200024d57600080fd5b83516200025a816200021e565b60208501519093506200026d816200021e565b604085015190925062000280816200021e565b809150509250925092565b6000602082840312156200029e57600080fd5b81518015158114620002af57600080fd5b9392505050565b61123b80620002c66000396000f3fe608060405234801561001057600080fd5b50600436106100d05760003560e01c806301ffc9a7146100d557806306609bbe1461010e57806345e7fa75146101535780635f36871f146101655780636e346ef31461017a578063715018a61461019a5780637e4fa700146101a25780638882a2f6146101ab5780638da5cb5b146101cb5780638eec00b8146101d35780639fd38813146101e8578063a66e8107146101fb578063b1f5052d1461020e578063d784d42614610221578063f2fde38b14610234578063fc0c546a14610247575b600080fd5b6100f96100e3366004610e37565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b61012161011c366004610e61565b61025a565b604051610105949392919093151584526001600160a01b03928316602085015291166040830152606082015260800190565b6003545b604051908152602001610105565b610178610173366004610e61565b6102a4565b005b61018d610188366004610e9a565b610371565b6040516101059190610eb7565b610178610545565b61015760045481565b6002546101be906001600160a01b031681565b6040516101059190610f04565b6101be610559565b6101db610568565b6040516101059190610f18565b6101db6101f6366004610e61565b6105fd565b6101be610209366004611079565b610778565b61017861021c366004611096565b610998565b61017861022f366004610e9a565b6109db565b610178610242366004610e9a565b6109ef565b6001546101be906001600160a01b031681565b6003818154811061026a57600080fd5b600091825260209091206003909102018054600182015460029092015460ff821693506101009091046001600160a01b0390811692169084565b6102ac610a33565b600354600454036102d05760405163e1adce7d60e01b815260040160405180910390fd5b6000816004546102e0919061115f565b6003549091508111156102f257506003545b6004545b8181101561036a5760006003828154811061031357610313611172565b60009182526020909120600390910201805490915060ff166103615761035533600180840154600285015491546001600160a01b039081169392911690610a65565b805460ff191660011781555b506001016102f6565b5060045550565b6003546060906000906001600160401b0381111561039157610391610f8a565b6040519080825280602002602001820160405280156103ba578160200160208202803683370190505b5090506000805b60035481101561048457846001600160a01b0316600382815481106103e8576103e8611172565b600091825260209091206003909102015461010090046001600160a01b03160361047c576003818154811061041f5761041f611172565b906000526020600020906003020160010160009054906101000a90046001600160a01b031683838151811061045657610456611172565b6001600160a01b03909216602092830291909101909101528161047881611188565b9250505b6001016103c1565b50806000036104a85760408051600080825260208201909252905b50949350505050565b6000816001600160401b038111156104c2576104c2610f8a565b6040519080825280602002602001820160405280156104eb578160200160208202803683370190505b50905060005b8281101561049f5783818151811061050b5761050b611172565b602002602001015182828151811061052557610525611172565b6001600160a01b03909216602092830291909101909101526001016104f1565b61054d610a33565b6105576000610ac5565b565b6000546001600160a01b031690565b60606003805480602002602001604051908101604052809291908181526020016000905b828210156105f45760008481526020908190206040805160808101825260038602909201805460ff8116151584526001600160a01b0361010090910481168486015260018083015490911692840192909252600201546060830152908352909201910161058c565b50505050905090565b600354600454606091900361064457604080516000808252602082019092529061063d565b61062a610e10565b8152602001906001900390816106225790505b5092915050565b600082600454610654919061115f565b60035490915081111561066657506003545b60006004548261067691906111a1565b6001600160401b0381111561068d5761068d610f8a565b6040519080825280602002602001820160405280156106c657816020015b6106b3610e10565b8152602001906001900390816106ab5790505b506004549091505b8281101561077057600381815481106106e9576106e9611172565b6000918252602091829020604080516080810182526003909302909101805460ff8116151584526001600160a01b036101009091048116948401949094526001810154909316908201526002909101546060820152600454839061074d90846111a1565b8151811061075d5761075d611172565b60209081029190910101526001016106ce565b509392505050565b6000610782610a33565b60025460009061079a906001600160a01b0316610b15565b604080516371a5cc2f60e11b815285516001600160a01b0390811660048301526020870151811660248301529186015182166044820152606086015160648201526080860151608482015260a086015160a482015260c086015160c482015260e086015160e482015291925082169063e34b985e9061010401600060405180830381600087803b15801561082d57600080fd5b505af1158015610841573d6000803e3d6000fd5b505060408051608081018252600080825287830180516001600160a01b039081166020850190815288821685870181815260e08d0180516060890190815260038054600181018255988190529851979098027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810180549551871661010002610100600160a81b0319991515999099166001600160a81b03199096169590951797909717909355517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c860180549185166001600160a01b031990921691909117905594517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d909401939093559051915193519295501692507f5bd74af15a714098eb2c2f70ea871de0a776cecae6012f0e7daf4eb0664fadad916109889190815260200190565b60405180910390a390505b919050565b6109a0610a33565b60005b81518110156109d7576109ce8282815181106109c1576109c1611172565b6020026020010151610778565b506001016109a3565b5050565b6109e3610a33565b6109ec81610b82565b50565b6109f7610a33565b6001600160a01b038116610a2a576000604051631e4fbdf760e01b8152600401610a219190610f04565b60405180910390fd5b6109ec81610ac5565b33610a3c610559565b6001600160a01b031614610557573360405163118cdaa760e01b8152600401610a219190610f04565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610abf908590610c7f565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008260601b60e81c176000526e5af43d82803e903d91602b57fd5bf38260781b17602052603760096000f090506001600160a01b038116610993576040516330be1a3d60e21b815260040160405180910390fd5b6001600160a01b038116610ba9576040516380b03cad60e01b815260040160405180910390fd5b6040516301ffc9a760e01b8152633baa300760e21b60048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1891906111b4565b610c35576040516380b03cad60e01b815260040160405180910390fd5b600280546001600160a01b0319166001600160a01b0383169081179091556040517fab64f92ab780ecbf4f3866f57cee465ff36c89450dcce20237ca7a8d81fb7d1390600090a250565b6000610c946001600160a01b03841683610cde565b90508051600014158015610cb9575080806020019051810190610cb791906111b4565b155b15610cd95782604051635274afe760e01b8152600401610a219190610f04565b505050565b6060610cec83836000610cf5565b90505b92915050565b606081471015610d1a573060405163cd78605960e01b8152600401610a219190610f04565b600080856001600160a01b03168486604051610d3691906111d6565b60006040518083038185875af1925050503d8060008114610d73576040519150601f19603f3d011682016040523d82523d6000602084013e610d78565b606091505b5091509150610d88868383610d94565b925050505b9392505050565b606082610da957610da482610de7565b610d8d565b8151158015610dc057506001600160a01b0384163b155b15610de05783604051639996b31560e01b8152600401610a219190610f04565b5080610d8d565b805115610df75780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60408051608081018252600080825260208201819052918101829052606081019190915290565b600060208284031215610e4957600080fd5b81356001600160e01b031981168114610d8d57600080fd5b600060208284031215610e7357600080fd5b5035919050565b6001600160a01b03811681146109ec57600080fd5b803561099381610e7a565b600060208284031215610eac57600080fd5b8135610d8d81610e7a565b6020808252825182820181905260009190848201906040850190845b81811015610ef85783516001600160a01b031683529284019291840191600101610ed3565b50909695505050505050565b6001600160a01b0391909116815260200190565b602080825282518282018190526000919060409081850190868401855b82811015610f7d578151805115158552868101516001600160a01b03908116888701528682015116868601526060908101519085015260809093019290850190600101610f35565b5091979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610fc857610fc8610f8a565b604052919050565b6000610100808385031215610fe457600080fd5b604051908101906001600160401b038211818310171561100657611006610f8a565b816040528092508335915061101a82610e7a565b81815261102960208501610e8f565b602082015261103a60408501610e8f565b6040820152606084013560608201526080840135608082015260a084013560a082015260c084013560c082015260e084013560e0820152505092915050565b6000610100828403121561108c57600080fd5b610cec8383610fd0565b600060208083850312156110a957600080fd5b82356001600160401b03808211156110c057600080fd5b818501915085601f8301126110d457600080fd5b8135818111156110e6576110e6610f8a565b6110f4848260051b01610fa0565b818152848101925060089190911b83018401908782111561111457600080fd5b928401925b8184101561113e5761112b8885610fd0565b8352848301925061010084019350611119565b979650505050505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610cef57610cef611149565b634e487b7160e01b600052603260045260246000fd5b60006001820161119a5761119a611149565b5060010190565b81810381811115610cef57610cef611149565b6000602082840312156111c657600080fd5b81518015158114610d8d57600080fd5b6000825160005b818110156111f757602081860181015185830152016111dd565b50600092019182525091905056fea26469706673582212204219f05d0ab50c1bfa5e02794a85700e8ff22baee29e403392f386c8b6d100e764736f6c634300081800330000000000000000000000005b40f399e72e8328739a11c52993263376c0421b0000000000000000000000003e9088e09d6be92e6b843122776ae6b16910f51a0000000000000000000000001036b2379f506761f237fba7463857924ef21ce3