0 txs
3 calls
constructor
constructor(address goatTokenFactory_, uint256 defaultUpkeepLoops_)
functions
defaultUpkeepLoops
viewfunction defaultUpkeepLoops() view returns (uint256)
entries
viewfunction entries(uint256) view returns (address user, uint96 tokenAmt, address token, uint96 drawBlock)
entryIndex
viewfunction entryIndex() view returns (uint256)
getEntriesLength
viewfunction getEntriesLength() view returns (uint256)
goatTokenFactory
viewfunction goatTokenFactory() view returns (address)
owner
viewfunction owner() view returns (address)
pendingOwner
viewfunction pendingOwner() view returns (address)
winChances
viewfunction winChances(address) view returns (uint256)
acceptOwnership
nonpayablefunction acceptOwnership()
addEntry
nonpayablefunction addEntry(address _user, uint256 _tokenAmt)
addToken
nonpayablefunction addToken(address token, uint256 winChance)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateGoatTokenFactory
nonpayablefunction updateGoatTokenFactory(address _goatTokenFactory)
upkeep
nonpayablefunction upkeep(uint256 _loops)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
OwnershipTransferStarted
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)
errors
EntryNotFromValidLotteryToken
error EntryNotFromValidLotteryToken()
InvalidWinChance
error InvalidWinChance()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
UnAuthorized
error UnAuthorized()
creation bytecode
0x608060405234801561001057600080fd5b50604051610ade380380610ade83398101604081905261002f916100f3565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610087565b50600655600380546001600160a01b0319166001600160a01b039290921691909117905561012d565b600180546001600160a01b03191690556100a0816100a3565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806040838503121561010657600080fd5b82516001600160a01b038116811461011d57600080fd5b6020939093015192949293505050565b6109a28061013c6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063a76adf5711610097578063d0ba53d011610066578063d0ba53d014610218578063e30c397814610221578063e34db59c14610232578063f2fde38b1461023b57600080fd5b8063a76adf5714610185578063af81c5b914610198578063b30906d4146101ab578063ca373d31146101f857600080fd5b806379ba5097116100d357806379ba5097146101475780637ea6b2051461014f5780638da5cb5b14610162578063a0d10c9a1461017357600080fd5b806322ba5f7b146100fa57806325d39ad31461010f578063715018a61461013f575b600080fd5b61010d610108366004610848565b61024e565b005b600354610122906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010d610363565b61010d610377565b61010d61015d366004610872565b6103c0565b6000546001600160a01b0316610122565b6004545b604051908152602001610136565b61010d61019336600461088b565b610512565b61010d6101a6366004610848565b61053c565b6101be6101b9366004610872565b6105b0565b604080516001600160a01b0395861681526001600160601b0394851660208201529490921691840191909152166060820152608001610136565b61017761020636600461088b565b60026020526000908152604090205481565b61017760065481565b6001546001600160a01b0316610122565b61017760055481565b61010d61024936600461088b565b610605565b33600090815260026020526040812054900361027d576040516304fe5f5d60e01b815260040160405180910390fd5b600061028a4360206108bc565b905060006102a0670de0b6b3a7640000846108eb565b604080516080810182526001600160a01b0396871681526001600160601b039283166020820190815233928201928352948316606082019081526004805460018101825560009190915291519551958816600160a01b9685168702177f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b60029093029283015591519151919096169116909202919091177f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909301929092555050565b61036b610676565b61037560006106a3565b565b60015433906001600160a01b031681146103b45760405163118cdaa760e01b81526001600160a01b03821660048201526024015b60405180910390fd5b6103bd816106a3565b50565b806000036103cd57506006545b600554600454815b6103df84846108bc565b811080156103ec57508181105b156104d857600060048281548110610406576104066108ff565b600091825260209182902060408051608081018252600290930290910180546001600160a01b0380821685526001600160601b03600160a01b9283900481169686019690965260019092015491821692840192909252049091166060820181905290915043116104795750600555505050565b600061049b8260400151836000015184606001516001600160601b03166106bc565b905080156104c3576104c38260400151836000015184602001516001600160601b031661075c565b505080806104d090610915565b9150506103d5565b50806104e484846108bc565b10156105075782600560008282546104fc91906108bc565b9091555061050d9050565b60058190555b505050565b61051a610676565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146105675760405163be24598360e01b815260040160405180910390fd5b620f4240811180610576575080155b15610594576040516305f5981760e31b815260040160405180910390fd5b6001600160a01b03909116600090815260026020526040902055565b600481815481106105c057600080fd5b6000918252602090912060029091020180546001909101546001600160a01b0380831693506001600160601b03600160a01b9384900481169391831692919091041684565b61060d610676565b600180546001600160a01b0383166001600160a01b0319909116811790915561063e6000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000546001600160a01b031633146103755760405163118cdaa760e01b81523360048201526024016103ab565b600180546001600160a01b03191690556103bd816107dc565b60006106c960ff4361092e565b8210156106d857506000610755565b600082408460405160200161070992919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60408051601f1981840301815291815281516020928301206001600160a01b03881660009081526002909352912054909150610748620f424083610941565b101561075357600191505b505b9392505050565b6000610770670de0b6b3a764000083610955565b604051634e958d0560e01b81526001600160a01b0385811660048301526024820183905291925090851690634e958d0590604401600060405180830381600087803b1580156107be57600080fd5b505af11580156107d2573d6000803e3d6000fd5b5050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461084357600080fd5b919050565b6000806040838503121561085b57600080fd5b6108648361082c565b946020939093013593505050565b60006020828403121561088457600080fd5b5035919050565b60006020828403121561089d57600080fd5b6107558261082c565b634e487b7160e01b600052601160045260246000fd5b808201808211156108cf576108cf6108a6565b92915050565b634e487b7160e01b600052601260045260246000fd5b6000826108fa576108fa6108d5565b500490565b634e487b7160e01b600052603260045260246000fd5b600060018201610927576109276108a6565b5060010190565b818103818111156108cf576108cf6108a6565b600082610950576109506108d5565b500690565b80820281158282048414176108cf576108cf6108a656fea26469706673582212206023f3c39fee40882a69ab6b72cb6078eb808404e2efecd281b85a2c4936b14b64736f6c6343000814003300000000000000000000000022b25adf18c4ff526831debab41c086f7bdd6a41000000000000000000000000000000000000000000000000000000000000000a