0 txs
4.2k calls
constructor
constructor()
functions
checkAccess
viewfunction checkAccess(bytes4 _selector, address _contract, address _caller) view returns (bool hasAccess)
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
getRoleMember
viewfunction getRoleMember(bytes32 role, uint256 index) view returns (address)
getRoleMemberCount
viewfunction getRoleMemberCount(bytes32 role) view returns (uint256)
getRoleMembers
viewfunction getRoleMembers(bytes32 role) view returns (address[])
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
proxiableUUID
viewfunction proxiableUUID() view returns (bytes32)
role
purefunction role(bytes4 _selector, address _contract) pure returns (bytes32 roleId)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
UPGRADE_INTERFACE_VERSION
viewfunction UPGRADE_INTERFACE_VERSION() view returns (string)
grantAccess
nonpayablefunction grantAccess(bytes4 _selector, address _contract, address _address)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
initialize
nonpayablefunction initialize(address _admin)
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeAccess
nonpayablefunction revokeAccess(bytes4 _selector, address _contract, address _address)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
upgradeToAndCall
payablefunction upgradeToAndCall(address newImplementation, bytes data) payable
events
Initialized
event Initialized(uint64 version)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
Upgraded
event Upgraded(address indexed implementation)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
AddressEmptyCode
error AddressEmptyCode(address target)
CannotRevokeSelf
error CannotRevokeSelf()
ERC1967InvalidImplementation
error ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable
error ERC1967NonPayable()
FailedCall
error FailedCall()
InvalidInitialization
error InvalidInitialization()
NotInitializing
error NotInitializing()
UUPSUnauthorizedCallContext
error UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID
error UUPSUnsupportedProxiableUUID(bytes32 slot)
creation bytecode
0x60a060405230608052348015610013575f5ffd5b5061001c610021565b6100d3565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156100715760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146100d05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b6080516112af6100f95f395f81816108120152818161083b015261098301526112af5ff3fe608060405260043610610105575f3560e01c8063a3246ad311610092578063bdf639d511610062578063bdf639d5146102e1578063c4d66de814610300578063ca15c8731461031f578063d547741f1461033e578063d95d920c1461035d575f5ffd5b8063a3246ad31461023a578063a5a492b414610266578063ad3cb1cc14610285578063b716247b146102c2575f5ffd5b80634f1ef286116100d85780634f1ef286146101aa57806352d1902d146101bd5780639010d07c146101d157806391d1485414610208578063a217fddf14610227575f5ffd5b806301ffc9a714610109578063248a9ca31461013d5780632f2ff15d1461016a57806336568abe1461018b575b5f5ffd5b348015610114575f5ffd5b50610128610123366004610f3c565b61037c565b60405190151581526020015b60405180910390f35b348015610148575f5ffd5b5061015c610157366004610f55565b6103a6565b604051908152602001610134565b348015610175575f5ffd5b50610189610184366004610f82565b6103c6565b005b348015610196575f5ffd5b506101896101a5366004610f82565b6103e8565b6101896101b8366004610fc0565b610420565b3480156101c8575f5ffd5b5061015c61043f565b3480156101dc575f5ffd5b506101f06101eb366004611084565b61045a565b6040516001600160a01b039091168152602001610134565b348015610213575f5ffd5b50610128610222366004610f82565b610487565b348015610232575f5ffd5b5061015c5f81565b348015610245575f5ffd5b50610259610254366004610f55565b6104bd565b60405161013491906110a4565b348015610271575f5ffd5b5061015c6102803660046110ef565b6104ed565b348015610290575f5ffd5b506102b5604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516101349190611117565b3480156102cd575f5ffd5b506101896102dc36600461114c565b610507565b3480156102ec575f5ffd5b506101896102fb36600461114c565b610534565b34801561030b575f5ffd5b5061018961031a36600461118c565b6105a6565b34801561032a575f5ffd5b5061015c610339366004610f55565b6106ed565b348015610349575f5ffd5b50610189610358366004610f82565b610711565b348015610368575f5ffd5b5061012861037736600461114c565b61072d565b5f6001600160e01b03198216635a05180f60e01b14806103a057506103a08261074b565b92915050565b5f9081525f51602061125a5f395f51905f52602052604090206001015490565b6103cf826103a6565b6103d88161077f565b6103e2838361078c565b50505050565b6001600160a01b03811633146104115760405163334bd91960e11b815260040160405180910390fd5b61041b82826107ce565b505050565b610428610807565b610431826108ad565b61043b82826108b7565b5050565b5f610448610978565b505f51602061123a5f395f51905f5290565b5f8281525f51602061121a5f395f51905f5260208190526040822061047f90846109c1565b949350505050565b5f9182525f51602061125a5f395f51905f52602090815260408084206001600160a01b0393909316845291905290205460ff1690565b5f8181525f51602061121a5f395f51905f5260208190526040909120606091906104e6906109cc565b9392505050565b6001600160a01b03166001600160e01b0319919091161790565b61052161051b63b716247b60e01b306104ed565b336109d8565b6103e261052e84846104ed565b8261078c565b5f61054663bdf639d560e01b306104ed565b905061055281336109d8565b5f61055d85856104ed565b90506001600160a01b0383163314801561057657508181145b156105945760405163373d752960e01b815260040160405180910390fd5b61059e81846107ce565b505050505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f811580156105eb5750825b90505f8267ffffffffffffffff1660011480156106075750303b155b905081158015610615575080155b156106335760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561065d57845460ff60401b1916600160401b1785555b610665610a11565b61066f5f8761078c565b5061068a61068463b716247b60e01b306104ed565b8761078c565b5061069f61068463bdf639d560e01b306104ed565b50831561059e57845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a1505050505050565b5f8181525f51602061121a5f395f51905f526020819052604082206104e690610a19565b61071a826103a6565b6107238161077f565b6103e283836107ce565b5f61074161073b85856104ed565b836109d8565b5060019392505050565b5f6001600160e01b03198216637965db0b60e01b14806103a057506301ffc9a760e01b6001600160e01b03198316146103a0565b61078981336109d8565b50565b5f5f51602061121a5f395f51905f52816107a68585610a22565b9050801561047f575f8581526020839052604090206107c59085610ac3565b50949350505050565b5f5f51602061121a5f395f51905f52816107e88585610ad7565b9050801561047f575f8581526020839052604090206107c59085610b50565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148061088d57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166108815f51602061123a5f395f51905f52546001600160a01b031690565b6001600160a01b031614155b156108ab5760405163703e46dd60e11b815260040160405180910390fd5b565b5f61043b8161077f565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610911575060408051601f3d908101601f1916820190925261090e918101906111a5565b60015b61093e57604051634c9c8ce360e01b81526001600160a01b03831660048201526024015b60405180910390fd5b5f51602061123a5f395f51905f52811461096e57604051632a87526960e21b815260048101829052602401610935565b61041b8383610b64565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108ab5760405163703e46dd60e11b815260040160405180910390fd5b5f6104e68383610bb9565b60605f6104e683610bdf565b6109e28282610487565b61043b5760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610935565b6108ab610c38565b5f6103a0825490565b5f5f51602061125a5f395f51905f52610a3b8484610487565b610aba575f848152602082815260408083206001600160a01b03871684529091529020805460ff19166001179055610a703390565b6001600160a01b0316836001600160a01b0316857f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019150506103a0565b5f9150506103a0565b5f6104e6836001600160a01b038416610c81565b5f5f51602061125a5f395f51905f52610af08484610487565b15610aba575f848152602082815260408083206001600160a01b0387168085529252808320805460ff1916905551339287917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a460019150506103a0565b5f6104e6836001600160a01b038416610ccd565b610b6d82610da7565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a2805115610bb15761041b8282610e0a565b61043b610e7c565b5f825f018281548110610bce57610bce6111bc565b905f5260205f200154905092915050565b6060815f01805480602002602001604051908101604052809291908181526020018280548015610c2c57602002820191905f5260205f20905b815481526020019060010190808311610c18575b50505050509050919050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff166108ab57604051631afcd79f60e31b815260040160405180910390fd5b5f818152600183016020526040812054610cc657508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556103a0565b505f6103a0565b5f8181526001830160205260408120548015610aba575f610cef6001836111d0565b85549091505f90610d02906001906111d0565b9050808214610d61575f865f018281548110610d2057610d206111bc565b905f5260205f200154905080875f018481548110610d4057610d406111bc565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080610d7257610d726111ef565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506103a0565b806001600160a01b03163b5f03610ddc57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610935565b5f51602061123a5f395f51905f5280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610e269190611203565b5f60405180830381855af49150503d805f8114610e5e576040519150601f19603f3d011682016040523d82523d5f602084013e610e63565b606091505b5091509150610e73858383610e9b565b95945050505050565b34156108ab5760405163b398979f60e01b815260040160405180910390fd5b606082610eb057610eab82610ef7565b6104e6565b8151158015610ec757506001600160a01b0384163b155b15610ef057604051639996b31560e01b81526001600160a01b0385166004820152602401610935565b5092915050565b805115610f075780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b80356001600160e01b031981168114610f37575f5ffd5b919050565b5f60208284031215610f4c575f5ffd5b6104e682610f20565b5f60208284031215610f65575f5ffd5b5035919050565b80356001600160a01b0381168114610f37575f5ffd5b5f5f60408385031215610f93575f5ffd5b82359150610fa360208401610f6c565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215610fd1575f5ffd5b610fda83610f6c565b9150602083013567ffffffffffffffff811115610ff5575f5ffd5b8301601f81018513611005575f5ffd5b803567ffffffffffffffff81111561101f5761101f610fac565b604051601f8201601f19908116603f0116810167ffffffffffffffff8111828210171561104e5761104e610fac565b604052818152828201602001871015611065575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f5f60408385031215611095575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b818110156110e45783516001600160a01b03168352602093840193909201916001016110bd565b509095945050505050565b5f5f60408385031215611100575f5ffd5b61110983610f20565b9150610fa360208401610f6c565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b5f5f5f6060848603121561115e575f5ffd5b61116784610f20565b925061117560208501610f6c565b915061118360408501610f6c565b90509250925092565b5f6020828403121561119c575f5ffd5b6104e682610f6c565b5f602082840312156111b5575f5ffd5b5051919050565b634e487b7160e01b5f52603260045260245ffd5b818103818111156103a057634e487b7160e01b5f52601160045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b5f82518060208501845e5f92019182525091905056fec1f6fe24621ce81ec5827caf0253cadb74709b061630e6b55e82371705932000360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800a26469706673582212206950df92cc45626234479afc2b4418ae172795ddeb70cc74beec368e53ea284464736f6c634300081c0033