Factory

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x45ce67cf at 12294079
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Factory"

No transactions found for "Factory"


Functions
Getter at block 22773552
DEFAULT_ADMIN_ROLE(view returns (bytes32)
0x0000000000000000000000000000000000000000000000000000000000000000
UPGRADE_INTERFACE_VERSION(view returns (string)
5.0.0
i_cube(view returns (address)
0x1195cf65f83b3a5768f3c496d3a05ad6412c64b7
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
Read-only
getRoleAdmin(bytes32 roleview returns (bytes32)
hasRole(bytes32 roleaddress accountview returns (bool)
s_escrow_admin(uint256view returns (address)
s_escrows(uint256view returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
State-modifying
addTokenToWhitelist(uint256 questIdaddress token
createEscrow(uint256 questIdaddress adminaddress[] whitelistedTokensaddress treasury
distributeRewards(uint256 questIdaddress tokenaddress touint256 amountuint256 rewardTokenIduint8 tokenTypeuint256 rakeBps
grantRole(bytes32 roleaddress account
initialize(address admin
removeTokenFromWhitelist(uint256 questIdaddress token
renounceRole(bytes32 roleaddress callerConfirmation
revokeRole(bytes32 roleaddress account
updateEscrowAdmin(uint256 questIdaddress newAdmin
upgradeToAndCall(address newImplementationbytes datapayable 
withdrawFunds(uint256 questIdaddress toaddress tokenuint256 tokenIduint8 tokenType
Events
EscrowAdminUpdated(address indexed updateruint256 indexed questIdaddress indexed newAdmin
EscrowRegistered(address indexed registroraddress indexed escrowAddressuint256 indexed questId
EscrowWithdrawal(address indexed calleraddress indexed receiveraddress indexed tokenAddressuint256 tokenIduint256 amountuint8 tokenTypeuint256 questId
Initialized(uint64 version
RoleAdminChanged(bytes32 indexed rolebytes32 indexed previousAdminRolebytes32 indexed newAdminRole
RoleGranted(bytes32 indexed roleaddress indexed accountaddress indexed sender
RoleRevoked(bytes32 indexed roleaddress indexed accountaddress indexed sender
TokenPayout(address indexed receiveraddress indexed tokenAddressuint256 indexed tokenIduint256 amountuint8 tokenTypeuint256 questId
Upgraded(address indexed implementation
Constructor
constructor(address cube
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AccessControlBadConfirmation(
AccessControlUnauthorizedAccount(address accountbytes32 neededRole
AddressEmptyCode(address target
ERC1967InvalidImplementation(address implementation
ERC1967NonPayable(
Factory__CUBEQuestIsActive(
Factory__EscrowAlreadyExists(
Factory__NoQuestEscrowFound(
Factory__OnlyCallableByAdmin(
Factory__OnlyCallableByCUBE(
Factory__ZeroAddress(
FailedInnerCall(
InvalidInitialization(
NotInitializing(
UUPSUnauthorizedCallContext(
UUPSUnsupportedProxiableUUID(bytes32 slot