git.delta.rocks / unique-network / refs/commits / 196e17086f5d

difftreelog

style(repair) adjust test names + documentation

Fahrrader2022-12-16parent: #c944a0c.patch.diff
in: master

5 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
1223 }1223 }
12241224
1225 /// Set a scoped collection property, where the scope is a special prefix1225 /// Set a scoped collection property, where the scope is a special prefix
1226 /// 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 }
12431243
1244 /// Set scoped collection properties, where the scope is a special prefix1244 /// Set scoped collection properties, where the scope is a special prefix
1245 /// 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.
modifiedpallets/unique/src/lib.rsdiffbeforeafterboth
983 })983 })
984 }984 }
985985
986 /// 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 /// # Arguments
989 ///989 ///
997 <PalletCommon<T>>::repair_collection(collection_id)997 <PalletCommon<T>>::repair_collection(collection_id)
998 }998 }
999999
1000 /// 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 /// # Arguments
1003 ///1003 ///
modifiedtests/src/nesting/collectionProperties.seqtest.tsdiffbeforeafterboth
17import {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';
1919
20describe('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
modifiedtests/src/nesting/collectionProperties.test.tsdiffbeforeafterboth
315 }315 }
316 });316 });
317317
318 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'},
modifiedtests/src/nesting/tokenProperties.seqtest.tsdiffbeforeafterboth
17import {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';
1919
20describe('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 owner
2323