0 txs
0 calls
constructor
No constructor.
functions
calculateWinnerCount
viewfunction calculateWinnerCount(address tournament, uint256 totalParticipants) view returns (uint256 winnerCount)
getConfiguration
viewfunction getConfiguration(address tournament) view returns (uint256 value)
getSelectionType
purefunction getSelectionType() pure returns (string)
owner
viewfunction owner() view returns (address)
winnerCounts
viewfunction winnerCounts(address) view returns (uint256)
initializeTournamentConfig
nonpayablefunction initializeTournamentConfig(bytes _config)
renounceOwnership
nonpayablefunction renounceOwnership()
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
updateTournamentConfig
nonpayablefunction updateTournamentConfig(address tournament, bytes _config)
events
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
errors
InvalidConfiguration
error InvalidConfiguration()
InvalidTournament
error InvalidTournament()
InvalidWinnerCount
error InvalidWinnerCount()
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x608080604052346075573315605f5760008054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361049a908161007b8239f35b631e4fbdf760e01b600052600060045260246000fd5b600080fdfe608080604052600436101561001357600080fd5b60003560e01c9081630a7a62c614610320575080634da0e77c146102965780635f7502a014610218578063715018a6146101d15780638da5cb5b146101a8578063a83e3c3b14610138578063be12f04b146100fe578063c44b11f7146100fe5763f2fde38b1461008257600080fd5b346100f95760203660031901126100f95761009b610378565b6100a361041b565b6001600160a01b031680156100e357600080546001600160a01b03198116831782556001600160a01b0316906000805160206104458339815191529080a3005b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b346100f95760203660031901126100f9576001600160a01b0361011f610378565b1660005260016020526020604060002054604051908152f35b346100f95760203660031901126100f9576004356001600160401b0381116100f9576101689036906004016103c9565b602081519181808201938492010103126100f95751801561019757336000526001602052604060002055600080f35b63c52a9bd360e01b60005260046000fd5b346100f95760003660031901126100f9576000546040516001600160a01b039091168152602090f35b346100f95760003660031901126100f9576101ea61041b565b600080546001600160a01b0319811682556001600160a01b03166000805160206104458339815191528280a3005b346100f95760003660031901126100f95760406102348161038e565b90600a825269119a5e195910dbdd5b9d60b21b6020830152805180926020825280519081602084015260005b82811061027f5750506000828201840152601f01601f19168101030190f35b602082820181015187830187015286945001610260565b346100f95760403660031901126100f9576102af610378565b6024356001600160401b0381116100f9576102ce9036906004016103c9565b6001600160a01b0390911690811561030f57602081519181808201938492010103126100f95751908115610197576000526001602052604060002055600080f35b6321198bed60e21b60005260046000fd5b346100f95760403660031901126100f9576001600160a01b03610341610378565b166000526001602052604060002054908115610197576024358211610367576020918152f35b63c6caea5960e01b60005260046000fd5b600435906001600160a01b03821682036100f957565b6040519190601f01601f191682016001600160401b038111838210176103b357604052565b634e487b7160e01b600052604160045260246000fd5b81601f820112156100f9578035906001600160401b0382116103b3576103f8601f8301601f191660200161038e565b92828452602083830101116100f957816000926020809301838601378301015290565b6000546001600160a01b0316330361042f57565b63118cdaa760e01b6000523360045260246000fdfe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a26469706673582212200b27a7adb95510d1076a295e526367c4e2bf10c160d2a68b8ce9f01bc39817ca64736f6c634300081b0033