42 txs
41 calls
constructor
constructor(address _signerAddress)
functions
claimed
viewfunction claimed(address) view returns (uint256)
owner
viewfunction owner() view returns (address)
signerAddress
viewfunction signerAddress() view returns (address)
claim
nonpayablefunction claim(bytes signature, uint256 value)
deposit
payablefunction deposit() payable
renounceOwnership
nonpayablefunction renounceOwnership()
setSignerAddress
nonpayablefunction setSignerAddress(address _signerAddress)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
nonpayablefunction withdraw(uint256 amount)
events
Claimed
event Claimed(address indexed who, bytes signature, uint256 difference, uint256 newClaimed)
Deposit
event Deposit(uint256 amount)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
UpdateSignerAddress
event UpdateSignerAddress(address signerAddress)
Withdraw
event Withdraw(uint256 amount)
errors
ECDSAInvalidSignature
error ECDSAInvalidSignature()
ECDSAInvalidSignatureLength
error ECDSAInvalidSignatureLength(uint256 length)
ECDSAInvalidSignatureS
error ECDSAInvalidSignatureS(bytes32 s)
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x608060405234801561001057600080fd5b50604051610b5b380380610b5b83398101604081905261002f916100d4565b338061005557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61005e81610084565b50600180546001600160a01b0319166001600160a01b0392909216919091179055610104565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e657600080fd5b81516001600160a01b03811681146100fd57600080fd5b9392505050565b610a48806101136000396000f3fe6080604052600436106100865760003560e01c8063715018a611610059578063715018a61461012a5780638da5cb5b1461013f578063c884ef831461015d578063d0e30db014610198578063f2fde38b146101a057600080fd5b8063046dc1661461008b5780632e1a7d4d146100ad5780633a33f3e0146100cd5780635b7633d0146100ed575b600080fd5b34801561009757600080fd5b506100ab6100a63660046108d9565b6101c0565b005b3480156100b957600080fd5b506100ab6100c8366004610909565b61021d565b3480156100d957600080fd5b506100ab6100e8366004610922565b6102db565b3480156100f957600080fd5b5060015461010d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013657600080fd5b506100ab6104bb565b34801561014b57600080fd5b506000546001600160a01b031661010d565b34801561016957600080fd5b5061018a6101783660046108d9565b60026020526000908152604090205481565b604051908152602001610121565b6100ab6104cf565b3480156101ac57600080fd5b506100ab6101bb3660046108d9565b610554565b6101c8610592565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527fb1eaa9e0c36ddeb88436603e9f708e2f3f0c9470d8ad2f49697d48133e753d1f906020015b60405180910390a150565b610225610592565b804710156102715760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b60448201526064015b60405180910390fd5b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156102aa573d6000803e3d6000fd5b506040518181527f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d90602001610212565b60006102e733836105bf565b33600090815260026020526040902054909150821161033a5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610268565b61037a8185858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061061892505050565b6103ba5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610268565b336000908152600260205260408120546103d4908461099b565b3360009081526002602052604090208490559050478111156104385760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e63650000006044820152606401610268565b604051339082156108fc029083906000818181858888f19350505050158015610465573d6000803e3d6000fd5b5033600081815260026020526040908190205490517f019eda09011e476781de26947e4b78ee0a834e7182f5ff2eb62bcf8c523f42ca916104ac91899189918791906109bc565b60405180910390a25050505050565b6104c3610592565b6104cd6000610686565b565b6000341161051f5760405162461bcd60e51b815260206004820152601e60248201527f4d757374206465706f736974206120706f73697469766520616d6f756e7400006044820152606401610268565b6040513481527f4d6ce1e535dbade1c23defba91e23b8f791ce5edc0cc320257a2b364e4e384269060200160405180910390a1565b61055c610592565b6001600160a01b03811661058657604051631e4fbdf760e01b815260006004820152602401610268565b61058f81610686565b50565b6000546001600160a01b031633146104cd5760405163118cdaa760e01b8152336004820152602401610268565b6040516bffffffffffffffffffffffff1930606090811b8216602084015246603484015284901b166054820152606881018290526000906088016040516020818303038152906040528051906020012090505b92915050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810183905260009061066e90605c0160405160208183030381529060405280519060200120836106d6565b6001546001600160a01b039182169116149392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000806106e68686610700565b9250925092506106f6828261074d565b5090949350505050565b6000806000835160410361073a5760208401516040850151606086015160001a61072c8882858561080a565b955095509550505050610746565b50508151600091506002905b9250925092565b6000826003811115610761576107616109fc565b0361076a575050565b600182600381111561077e5761077e6109fc565b0361079c5760405163f645eedf60e01b815260040160405180910390fd5b60028260038111156107b0576107b06109fc565b036107d15760405163fce698f760e01b815260048101829052602401610268565b60038260038111156107e5576107e56109fc565b03610806576040516335e2f38360e21b815260048101829052602401610268565b5050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561084557506000915060039050826108cf565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610899573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166108c5575060009250600191508290506108cf565b9250600091508190505b9450945094915050565b6000602082840312156108eb57600080fd5b81356001600160a01b038116811461090257600080fd5b9392505050565b60006020828403121561091b57600080fd5b5035919050565b60008060006040848603121561093757600080fd5b833567ffffffffffffffff81111561094e57600080fd5b8401601f8101861361095f57600080fd5b803567ffffffffffffffff81111561097657600080fd5b86602082840101111561098857600080fd5b6020918201979096509401359392505050565b8181038181111561061257634e487b7160e01b600052601160045260246000fd5b606081528360608201528385608083013760006080858301015260006080601f19601f870116830101905083602083015282604083015295945050505050565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220e05dc7a11e0ffdd9534335033f783764b5d4dc325cf2eb9f5f5ac0c5a8787fdc64736f6c634300081a0033000000000000000000000000da0ec837d9dc48075827c702bdd6f784653f6fa1