Implementation of NFT Sales Template
The NFT Sales template supports an scenario where a NFT owner can sell that asset to a new Owner. Anyone (consumer/provider/publisher) can use this template in order to setup an agreement allowing a NFT owner to transfer the asset ownership after some payment. The template is a composite of 3 basic conditions: - Lock Payment Condition - Transfer NFT Condition - Escrow Reward Condition This scenario takes into account royalties for original creators in the secondary market. Once the agreement is created, the consumer after payment can request the transfer of the NFT from the current owner for a specific DID.
function initialize( address _owner, address _agreementStoreManagerAddress, address _lockPaymentConditionAddress, address _transferConditionAddress, address payable _escrowPaymentAddress ) external
this function is called only once during the contract initialization. It initializes the ownable feature, and set push the required condition types including access secret store, lock reward and escrow reward conditions.
||address||contract's owner account address|
||address||agreement store manager contract address|
||address||lock reward condition contract address|
||address||transfer NFT condition contract address|
||address payable||escrow reward condition contract address|