difftreelog
style(repair) adjust test names + documentation
in: master
5 files changed
pallets/common/src/lib.rsdiffbeforeafterboth1223 }1223 }122412241225 /// Set a scoped collection property, where the scope is a special prefix1225 /// Set a scoped collection property, where the scope is a special prefix1226 /// prohibiting a user to change the property.1226 /// prohibiting a user access to change the property directly.1227 ///1227 ///1228 /// * `collection_id` - ID of the collection for which the property is being set.1228 /// * `collection_id` - ID of the collection for which the property is being set.1229 /// * `scope` - Property scope.1229 /// * `scope` - Property scope.1242 }1242 }124312431244 /// Set scoped collection properties, where the scope is a special prefix1244 /// Set scoped collection properties, where the scope is a special prefix1245 /// prohibiting a user to change the properties.1245 /// prohibiting a user access to change the properties directly.1246 ///1246 ///1247 /// * `collection_id` - ID of the collection for which the properties is being set.1247 /// * `collection_id` - ID of the collection for which the properties is being set.1248 /// * `scope` - Property scope.1248 /// * `scope` - Property scope.pallets/unique/src/lib.rsdiffbeforeafterboth983 })983 })984 }984 }985985986 /// Repairs a collection's properties if the data was somehow corrupted.986 /// Repairs a collection if the data was somehow corrupted.987 ///987 ///988 /// # Arguments988 /// # Arguments989 ///989 ///997 <PalletCommon<T>>::repair_collection(collection_id)997 <PalletCommon<T>>::repair_collection(collection_id)998 }998 }9999991000 /// Repairs a token's properties if the data was somehow corrupted.1000 /// Repairs a token if the data was somehow corrupted.1001 ///1001 ///1002 /// # Arguments1002 /// # Arguments1003 ///1003 ///tests/src/nesting/collectionProperties.seqtest.tsdiffbeforeafterboth17import {IKeyringPair} from '@polkadot/types/types';17import {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip} from '../util';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip} from '../util';191920describe('Integration Test: Collection Properties', () => {20describe('Integration Test: Collection Properties with sudo', () => {21 let superuser: IKeyringPair;21 let superuser: IKeyringPair;22 let alice: IKeyringPair;22 let alice: IKeyringPair;23 23 tests/src/nesting/collectionProperties.test.tsdiffbeforeafterboth315 }315 }316 });316 });317317318 itSub('Modifying a collection property with different sizes correctly changes the consumed space', async({helper}) => {318 itSub('Forbids to repair a collection if called with non-sudo', async({helper}) => {319 const collection = await helper[testSuite.mode].mintCollection(alice, {properties: [319 const collection = await helper[testSuite.mode].mintCollection(alice, {properties: [320 {key: 'sea-creatures', value: 'mermaids'},320 {key: 'sea-creatures', value: 'mermaids'},321 {key: 'goldenratio', value: '1.6180339887498948482045868343656381177203091798057628621354486227052604628189'},321 {key: 'goldenratio', value: '1.6180339887498948482045868343656381177203091798057628621354486227052604628189'},tests/src/nesting/tokenProperties.seqtest.tsdiffbeforeafterboth17import {IKeyringPair} from '@polkadot/types/types';17import {IKeyringPair} from '@polkadot/types/types';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip} from '../util';18import {itSub, Pallets, usingPlaygrounds, expect, requirePalletsOrSkip} from '../util';191920describe('Integration Test: Token Properties', () => {20describe('Integration Test: Token Properties with sudo', () => {21 let superuser: IKeyringPair;21 let superuser: IKeyringPair;22 let alice: IKeyringPair; // collection owner22 let alice: IKeyringPair; // collection owner2323