git.delta.rocks / unique-network / refs/commits / c311337f0c46

difftreelog

Add data fields for limited owners control

Greg Zaitsev2021-02-09parent: #563ceaa.patch.diff
in: master

2 files changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
185185
186 // Timeouts for item types in passed blocks186 // Timeouts for item types in passed blocks
187 pub sponsor_transfer_timeout: u32,187 pub sponsor_transfer_timeout: u32,
188 pub owner_can_transfer: bool,
189 pub owner_can_destroy: bool,
188}190}
189191
190impl Default for CollectionLimits {192impl Default for CollectionLimits {
193 account_token_ownership_limit: 10_000_000, 195 account_token_ownership_limit: 10_000_000,
194 token_limit: u32::max_value(),196 token_limit: u32::max_value(),
195 sponsored_data_size: u32::max_value(), 197 sponsored_data_size: u32::max_value(),
196 sponsor_transfer_timeout: 14400 }198 sponsor_transfer_timeout: 14400,
199 owner_can_transfer: true,
200 owner_can_destroy: true
201 }
197 }202 }
198}203}
modifiedruntime_types.jsondiffbeforeafterboth
117 "AccountTokenOwnershipLimit": "u32",117 "AccountTokenOwnershipLimit": "u32",
118 "SponsoredMintSize": "u32",118 "SponsoredMintSize": "u32",
119 "TokenLimit": "u32",119 "TokenLimit": "u32",
120 "SponsorTimeout": "u32"120 "SponsorTimeout": "u32",
121 "OwnerCanTransfer": "bool",
122 "OwnerCanDestroy": "bool"
121 },123 },
122 "AccountInfo": "AccountInfoWithProviders",124 "AccountInfo": "AccountInfoWithProviders",
123 "AccountInfoWithProviders": {125 "AccountInfoWithProviders": {