ozLoupeFacetV1_1
Upgrade of ozLoupeFacet that adds the methods to the Diamond in order to fully allow the creation of Accounts in L2 (ozAccountProxyL2), such as storing the user's key data or getting the total of Accounts that they've created.
Open methods
getAccountsByUser
function getAccountsByUser(
address user_
) external view returns(address[] memory, string[] memory);Gets all the Accounts that a particular user has.
Parameters:
user_
address
User to query
Return values:
address[]
Accounts user_ has
string[]
Accounts' names in same order as above
getNameBytes
function getNameBytes(
address user_,
address account_
) public view returns(bytes32);Gets the 32-bytes representation of the name of an Account.
Parameters:
user_
address
Owner of the Account
account_
address
Account to get the name of
Return values:
bytes32
The 32-bytes representation of the name
Owner methods
isSelectorAuthorized
function isSelectorAuthorized(bytes4 selector_) external view returns(bool);Queries if a function is authorized for a specific call.
Parameters:
selector_
bytes4
First 4 bytes of function signature to query
Return values:
boolean
If the function is authorized or not
Last updated