Factory
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
7
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Factory"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Factory"
ABI
ABI objects
Getter at block 22924853
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 role) view returns (bytes32)
hasRole(bytes32 role, address account) view returns (bool)
s_escrow_admin(uint256) view returns (address)
s_escrows(uint256) view returns (address)
supportsInterface(bytes4 interfaceId) view returns (bool)
State-modifying
Events addTokenToWhitelist(uint256 questId, address token)
createEscrow(uint256 questId, address admin, address[] whitelistedTokens, address treasury)
distributeRewards(uint256 questId, address token, address to, uint256 amount, uint256 rewardTokenId, uint8 tokenType, uint256 rakeBps)
grantRole(bytes32 role, address account)
initialize(address admin)
removeTokenFromWhitelist(uint256 questId, address token)
renounceRole(bytes32 role, address callerConfirmation)
revokeRole(bytes32 role, address account)
updateEscrowAdmin(uint256 questId, address newAdmin)
upgradeToAndCall(address newImplementation, bytes data) payable
withdrawFunds(uint256 questId, address to, address token, uint256 tokenId, uint8 tokenType)
EscrowAdminUpdated(address indexed updater, uint256 indexed questId, address indexed newAdmin)
EscrowRegistered(address indexed registror, address indexed escrowAddress, uint256 indexed questId)
EscrowWithdrawal(address indexed caller, address indexed receiver, address indexed tokenAddress, uint256 tokenId, uint256 amount, uint8 tokenType, uint256 questId)
Initialized(uint64 version)
RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TokenPayout(address indexed receiver, address indexed tokenAddress, uint256 indexed tokenId, uint256 amount, uint8 tokenType, uint256 questId)
Upgraded(address indexed implementation)
constructor(address cube)
This contract contains no fallback and receive objects.
AccessControlBadConfirmation()
AccessControlUnauthorizedAccount(address account, bytes32 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)