Skip to main content

ERC-721 Contract Factory

This contract is used to create new collections for artists. New contracts are owned by the artists.

Endemic team can also create collections for artists and mint their art for them. Artist still owns everything, but trusts Endemic with helping them onboard in the NFT space. Artwork can't be minted by our team in collections that are created by the artist though our Create page.

New contracts are deployed using the beacon proxy pattern.

Methods

createToken

function createToken(DeployParams calldata params) external whenNotPaused onlyRole(MINTER_ROLE)

Deploys new ERC-721 contract, callable by accounts with minter roles.

DeployParams parameters

NameTypeDescription
namestringname of the collection
symbolstringsymbol of the collection
categorystringcategory Art or Collectible
baseURIstringbase URI for metada (ex. ipfs://)

createTokenForOwner

function createTokenForOwner(OwnedDeployParams calldata params) external whenNotPaused onlyRole(DEFAULT_ADMIN_ROLE)

Deploys new ERC-721 contract for an account, callable by admins of the factory contract

DeployParams parameters

NameTypeDescription
ownerstringowner of the collection
namestringname of the collection
symbolstringsymbol of the collection
categorystringcategory Art or Collectible
baseURIstringbase URI for metada (ex. ipfs://)