ROJIERC1155Proxy
ROJIERC1155Proxy
instantiated for each deployed contract.
constructor
constructor(address diamond, address rojiVerse, address rojiVerseAuthority, address organizationAccessManager, struct ROJIERC1155ProxyInitParams params) public
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 ROJIERC1155ProxyInitParams
Parameters.
_getImplementation
function _getImplementation() internal view returns (address)
get logic implementation address
Return Values
[0]
address
implementation address
receive
receive() external payable
The default receive function.
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)
_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
function diamondBase() public view returns (address)
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
function isDiamondContract() public pure returns (bool)
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?