wNFTFactory
Factory contract for creating wNFT contracts
operator
Operator address
beacons
Mapping from SupportedERC
to address of beacon associated to ERC type
onlyOperator
Checks if transaction sender is operator
constructor
Operator zero address check is left out intentionally
Parameters
beacon721
address
ERC-721 contracts beacon
beacon1155
address
ERC-1155 contracts beacon
operator_
address
Operator address
set721Beacon
Set new beacon for ERC-721 contract
Parameters
beacon
address
New beacon address
set1155Beacon
Set new beacon for ERC-1155 contract
Parameters
beacon
address
New beacon address
_setBeacon
Set new beacon contract
Parameters
ercType
enum IwNFTFactory.SupportedERC
Supported ERC type beacon is associated to
beacon
address
Beacon address
create721WContract
Creates a new ERC-721 wrapper contract
Parameters
oContract
address
Original contract address
Return Values
[0]
address
Created contract address
create1155WContract
Creates a new ERC-1155 wrapper contract
Parameters
oContract
address
Original contract address
Return Values
[0]
address
Created contract address
_createBeaconProxy
Creates new beacon proxy associated to given ERC type
Parameters
ercType
enum IwNFTFactory.SupportedERC
ERC type proxy
initData
bytes
Initial calldata passed to proxy contract after creation
oContract
address
Original contract address
Last updated