0 txs
0 calls
constructor
No constructor.
functions
calculatePrizeContribution
purefunction calculatePrizeContribution(uint256 entryFee, uint256 prizePoolPercentage, uint256 percentageBase) pure returns (uint256)
getStatusString
purefunction getStatusString(uint8 _status) pure returns (string)
validateEthDonation
purefunction validateEthDonation(bool isPrizePoolLocked, bool isSponsorDonationsEnabled, uint256 donationAmount, address prizeToken, uint256 minDonation) pure
validateTokenDonation
purefunction validateTokenDonation(bool isPrizePoolLocked, bool isSponsorDonationsEnabled, uint256 donationAmount, uint256 msgValue) pure
events
PrizeWithdrawn
event PrizeWithdrawn(address creator, uint256 amount)
errors
InvalidConfig
error InvalidConfig(string reason)
InvalidInput
error InvalidInput(string reason)
InvalidTournamentState
error InvalidTournamentState(string reason)
NotAuthorized
error NotAuthorized(string reason)
RegistrationEnded
error RegistrationEnded(string reason)
RegistrationNotStarted
error RegistrationNotStarted(string reason)
creation bytecode
0x60808060405234601b57610b8990816100218239308160080152f35b600080fdfe608080604052307f00000000000000000000000000000000000000000000000000000000000000001490600436101561003757600080fd5b60003560e01c90816304956557146107205750806307b10446146106af57806316f829e61461066b57806335dba3dc146105b45780637670131b146104fb57806377f2db591461033e578063a62e1f7b146102db578063c8b68400146101a35763fb2efb25146100a657600080fd5b61019e57608036600319011261019e576100f660206100c36107a6565b6100cb6107bc565b6100d36107d2565b9060006040518096819582946323b872dd60e01b84526064359160048501610a2d565b03926001600160a01b03165af190811561019257600091610163575b5015806101255760209060405190158152f35b6040516389a6198960e01b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606490fd5b610185915060203d60201161018b575b61017d8183610806565b810190610a15565b38610112565b503d610173565b6040513d6000823e3d90fd5b600080fd5b60a036600319011261019e576101b76107e8565b6101bf6107f7565b6064356001600160a01b038116929083900361019e576102a157156102665760843560443510610228576101ef57005b6040516389a6198960e01b815260206004820152601060248201526f115512081b9bdd081858d8d95c1d195960821b6044820152606490fd5b6040516389a6198960e01b815260206004820152601560248201527424b739bab33334b1b4b2b73a103237b730ba34b7b760591b6044820152606490fd5b6040516389a6198960e01b8152602060048201526012602482015271111bdb985d1a5bdb9cc8191a5cd8589b195960721b6044820152606490fd5b6040516389a6198960e01b8152602060048201526011602482015270141c9a5e99481c1bdbdb081b1bd8dad959607a1b6044820152606490fd5b606036600319011261019e576044356024356004358181029181159183041417156103285781156103125760209160405191048152f35b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b5061019e57606036600319011261019e576103576107a6565b61035f6107bc565b60443591906001600160a01b0316806104445750600080808085855af1903d1561043f573d6001600160401b03811161042957604051906103aa601f8201601f191660200183610806565b8152600060203d92013e5b81156103eb57602092600080516020610b34833981519152915b6103de60405192839283610b18565b0390a16040519015158152f35b6040516389a6198960e01b8152602060048201526015602482015274115512081dda5d1a191c985dd85b0819985a5b1959605a1b6044820152606490fd5b634e487b7160e01b600052604160045260246000fd5b6103b5565b906020604051809363a9059cbb60e01b825281600081610468898860048401610b18565b03925af1918215610192576000926104da575b50811561049a57602092600080516020610b34833981519152916103cf565b6040516389a6198960e01b8152602060048201526017602482015276151bdad95b881dda5d1a191c985dd85b0819985a5b1959604a1b6044820152606490fd5b6104f491925060203d60201161018b5761017d8183610806565b903861047b565b608036600319011261019e5761050f6107e8565b6105176107f7565b906102a1571561026657606435610570576044351561053257005b6040516389a6198960e01b8152602060048201526015602482015274416d6f756e742063616e6e6f74206265207a65726f60581b6044820152606490fd5b6040516389a6198960e01b815260206004820152601b60248201527a22aa24103737ba1030b1b1b2b83a32b2103bb4ba34103a37b5b2b760291b6044820152606490fd5b5061019e57602036600319011261019e5760043560ff81541660088110156106555760028114159081610649575b506105f457805460ff19166007179055005b60405163283a4cb760e11b815260206004820152602660248201527f43616e6e6f742063616e63656c20746f75726e616d656e74206174207468697360448201526520737461676560d01b6064820152608490fd5b600391501415386105e2565b634e487b7160e01b600052602160045260246000fd5b5061019e5760a036600319011261019e5760206106a76106896107a6565b6106916107bc565b9061069a6107d2565b6084359260643592610a4f565b604051908152f35b602036600319011261019e5760043560ff8116810361019e576106d190610829565b60405190602082528181519182602083015260005b8381106107085750508160006040809484010152601f80199101168101030190f35b602082820181015160408784010152859350016106e6565b8261019e57602036600319011261019e576004359060ff8254166008811015610655576107555750805460ff19166001179055005b63283a4cb760e11b815260206004820152602560248201527f546f75726e616d656e74206e6f7420696e2070656e64696e67207072697a6520604482015264737461746560d81b6064820152608490fd5b600435906001600160a01b038216820361019e57565b602435906001600160a01b038216820361019e57565b604435906001600160a01b038216820361019e57565b60043590811515820361019e57565b60243590811515820361019e57565b601f909101601f19168101906001600160401b0382119082101761042957604052565b60ff1680156109dc57600181146109a257600281146109735760038114610943576004811461091357600581146108dc57600681146108b45760071461088e57604051610877604082610806565b60078152662ab735b737bbb760c91b602082015290565b60405161089c604082610806565b600881526710d85b98d95b195960c21b602082015290565b506040516108c3604082610806565b600981526810dbdb5c1b195d195960ba1b602082015290565b506040516108eb604082610806565b6018815277496e50726f677265737350656e64696e6757696e6e65727360401b602082015290565b50604051610922604082610806565b6011815270496e50726f677265737353636f72696e6760781b602082015290565b50604051610952604082610806565b6011815270149959da5cdd1c985d1a5bdb915b991959607a1b602082015290565b50604051610982604082610806565b601081526f2932b3b4b9ba3930ba34b7b727b832b760811b602082015290565b506040516109b1604082610806565b601b81527a15d85a5d1a5b99d19bdc949959da5cdd1c985d1a5bdb94dd185c9d602a1b602082015290565b506040516109eb604082610806565b601a81527950656e64696e67496e697469616c5072697a6546756e64696e6760301b602082015290565b9081602091031261019e5751801515810361019e5790565b6001600160a01b03918216815291166020820152604081019190915260600190565b6001600160a01b039092169182610aad575050508103610a6c5790565b6040516389a6198960e01b8152602060048201526018602482015277496e73756666696369656e74204554482066756e64696e6760401b6044820152606490fd5b909192936101ef57610add9260209260008693604051968795869485936323b872dd60e01b855260048501610a2d565b03925af190811561019257600091610af9575b50156101255790565b610b12915060203d60201161018b5761017d8183610806565b38610af0565b6001600160a01b03909116815260208101919091526040019056fe0835f27f462de8bce2ca086b3439451a8842d337fe4bf1fcc4aced1f952a2e2fa26469706673582212207cb91172947444a97ea72b39041cca381289caa1c93d89e7f99e8c996b241dbf64736f6c634300081b0033