contracts/sales/NFTSalesFactory.sol
Once installed will be use methods:
method name | called by | description |
---|---|---|
addToBlackList | owner | adding instance to black list |
getInstanceNFTcontract | instance | view nft contrac address |
instancesCount | everyone | view amount of created instances |
mintAndDistribute | instance | mint distribute nfts |
owner | everyone | |
produce | owner | creation NFTSales instance |
removeFromBlackList | owner | adding instance to black list |
renounceOwnership | everyone | |
transferOwnership | everyone |
Arguments
name | type | description |
---|---|---|
implementation | address |
Arguments
name | type | description |
---|---|---|
instance | address | not indexed |
instancesCount | uint256 | not indexed |
Arguments
name | type | description |
---|---|---|
previousOwner | address | indexed |
newOwner | address | indexed |
Notice: Community implementation address
type |
---|
address |
Notice: remove ability to mintAndDistibute nft tokens for certain instance
Arguments
name | type | description |
---|---|---|
instance | address | instance's address that would be added to blacklist and prevent call mintAndDistibute |
Notice: view nft contrac address. used by instances in external calls
Outputs
name | type | description |
---|---|---|
-/- | address |
Details: view amount of created instances
Outputs
name | type | description |
---|---|---|
amount | uint256 | amount instances |
Notice: mint distribute nfts
Arguments
name | type | description |
---|---|---|
tokenIds | uint256[] | array of tokens that would be a minted |
addresses | address[] | array of desired owners to newly minted nft tokens |
Details: Returns the address of the current owner.
Outputs
name | type | description |
---|---|---|
-/- | address |
Notice: creation NFTSales instance
Arguments
name | type | description |
---|---|---|
NFTcontract | address | nftcontract's address that allows to mintAndDistribute for this factory |
owner | address | owner's adddress for newly created NFTSales contract |
currency | address | currency for every sale nft token |
price | uint256 | price amount for every sale nft token |
beneficiary | address | address where which receive funds after sale |
duration | uint64 | locked time when nft will be locked after sale |
Outputs
name | type | description |
---|---|---|
instance | address | address of created instance NFTSales |
Notice: remove ability to mintAndDistibute nft tokens for certain instance
Arguments
name | type | description |
---|---|---|
instance | address | instance's address that would be added to blacklist and prevent call mintAndDistibute |
Details: Leaves the contract without owner. It will not be possible to call
onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
Details: Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.
Arguments
name | type | description |
---|---|---|
newOwner | address |