wNFTFactory

Factory contract for creating wNFT contracts

operator

address operator

Operator address

beacons

mapping(enum IwNFTFactory.SupportedERC => address) beacons

Mapping from SupportedERC to address of beacon associated to ERC type

onlyOperator

modifier onlyOperator()

Checks if transaction sender is operator

constructor

constructor(address beacon721, address beacon1155, address operator_) public

Operator zero address check is left out intentionally

Parameters

Name
Type
Description

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

Name
Type
Description

beacon

address

New beacon address

set1155Beacon

Set new beacon for ERC-1155 contract

Parameters

Name
Type
Description

beacon

address

New beacon address

_setBeacon

Set new beacon contract

Parameters

Name
Type
Description

ercType

enum IwNFTFactory.SupportedERC

Supported ERC type beacon is associated to

beacon

address

Beacon address

create721WContract

Creates a new ERC-721 wrapper contract

Parameters

Name
Type
Description

oContract

address

Original contract address

Return Values

Name
Type
Description

[0]

address

Created contract address

create1155WContract

Creates a new ERC-1155 wrapper contract

Parameters

Name
Type
Description

oContract

address

Original contract address

Return Values

Name
Type
Description

[0]

address

Created contract address

_createBeaconProxy

Creates new beacon proxy associated to given ERC type

Parameters

Name
Type
Description

ercType

enum IwNFTFactory.SupportedERC

ERC type proxy

initData

bytes

Initial calldata passed to proxy contract after creation

oContract

address

Original contract address

Last updated