Closed peshwar9 closed 1 year ago
Revocation type
has been replaced by two new flags: renter_can_cancel
and a bool that represents if a subscription can be cahnged.private
extrinsics don't exist anymore@peshwar9 More explainations step by step. 1- I assume we can't set the royalty while the contract is rented. See : https://ternoa.atlassian.net/wiki/spaces/TO/pages/307658769/Phase+3.1+-+NFT+Renting+-+Technical+Specification#Side-Effects 2- Revocation type has been replaced as @markopoloparadox explained. 3- see NFTR-F07 from : https://ternoa.atlassian.net/wiki/spaces/PRODUCT/pages/307462352/NFT+Renting+Specifications#Functional-Requirements 4- Maybe this rule does not need to be written as it seems more confusing than anything : it means that the creator of the contract, can't rent its own contract he created. 5- When creating a contract, rentFee can be either a token amount or an NFT (So RentFee Type can be an amount as BN or an NFTId as Number). If you create a Subscription rent contract, you can only set the rentFee as an Amount (not an NFT). So when you change the Subscription Terms, you can only set a new amount not an NFT. 6- I will let @markopoloparadox / @Leouarz answer. end_contract is triggered when the contract reach its ending block or if the new terms of a subscription contract are not accepted. remove_expired_contract is triggered if a contract is created and reach the expiration periode without anyone renting it. 7- Both acceptanceType can have a white list of user, but it's optionnal:
8- Indeed needs to be fixed.
Again, some changes are coming on the pallet and will impact the TIP/SDK/Indexer. I'll make the changes asap.
Hi @Victor-Salomon : Well written spec, with complex rules!
I had the following questions/comments:
Revocation type
is not mentioned in any of the interfaces, but is referred in spec. Should therevocation type
be added to contract creation interface?flexible tokens
' mean in this sentence? Flexible Tokens can only be applied for Fixed Contract Duration: Fees will be calculated on a Pro-Rata basis.tokenstype
mean in this sentence? rentFee can only be a tokens type, as an NFT can be used for subscription fee.`remove_expired_contract
.`cc @Leouarz @markopoloparadox