ROJIERC721AProxy
ROJIERC721AProxy
instantiated for each deployed contract.
constructor
Initializes the proxy with the diamond address and the init parameters.
Parameters
diamond
address
The underlying diamond contract
rojiVerse
address
The ROJI verse contract
rojiVerseAuthority
address
The authority for ROJI
organizationAccessManager
address
The authoriy (organization that manages this contract)
params
struct ROJIERC721AProxyInitParams
Parameters.
_getImplementation
get logic implementation address
Return Values
[0]
address
implementation address
receive
The default receive function.
supportsInterface
_Returns true if this contract implements the interface defined by interfaceId_
. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.
This function call must use less than 30 000 gas._
Parameters
interfaceId
bytes4
The interface identifier, as specified in ERC-165.
Return Values
[0]
bool
true
if the interface is supported.
diamondBase
Returns the diamondBase which is the diamond the proxy is derived from Make sure this is public when implemented and not external.
Return Values
[0]
address
string The diamondBase.
isDiamondContract
Determines if we are operating against the proxy or the diamond.
Return Values
[0]
bool
bool True if this is the diamond contract, false if it's a proxy. Note - this must be public when implemented in the proxy or the diamond facet.
Was this helpful?