git.delta.rocks / unique-network / refs/commits / 5811ea85a5fa

difftreelog

fmt

Trubnikov Sergey2022-12-09parent: #1a0647e.patch.diff
in: master

5 files changed

modifiedtests/src/eth/collectionSponsoring.test.tsdiffbeforeafterboth
161 {161 {
162 const result = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});162 const result = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});
163 const event = helper.eth.normalizeEvents(result.events)163 const event = helper.eth.normalizeEvents(result.events)
164 .find(event => event.event === 'Transfer');;164 .find(event => event.event === 'Transfer');
165 165
166 expect(event).to.be.deep.equal(166 expect(event).to.be.deep.equal({
167 {
modifiedtests/src/eth/events.test.tsdiffbeforeafterboth
47 }47 }
48 {48 {
49 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);49 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);
50 let result = await collectionHelper.methods.destroyCollection(collectionAddress).send({from:owner});50 const result = await collectionHelper.methods.destroyCollection(collectionAddress).send({from:owner});
51 expect(result.events).to.be.like({51 expect(result.events).to.be.like({
52 CollectionDestroyed: {52 CollectionDestroyed: {
53 returnValues: {53 returnValues: {
66 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);66 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);
67 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);67 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);
68 68
69 let {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionPropertySet', 'CollectionPropertyDeleted']}]);69 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionPropertySet', 'CollectionPropertyDeleted']}]);
70 {70 {
71 const ethEvents: any = [];71 const ethEvents: any = [];
72 collectionHelper.events.allEvents((_: any, event: any) => {72 collectionHelper.events.allEvents((_: any, event: any) => {
modifiedtests/src/eth/proxy/nonFungibleProxy.test.tsdiffbeforeafterboth

no syntactic changes

modifiedtests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth
197 }197 }
198 }198 }
199199
200 async createCollection(mode: TCollectionMode, signer: string, name: string, description: string, tokenPrefix: string, decimals: number = 18): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {200 async createCollection(mode: TCollectionMode, signer: string, name: string, description: string, tokenPrefix: string, decimals = 18): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
201 const collectionCreationPrice = this.helper.balance.getCollectionCreationPrice();201 const collectionCreationPrice = this.helper.balance.getCollectionCreationPrice();
202 const collectionHelper = this.helper.ethNativeContract.collectionHelpers(signer);202 const collectionHelper = this.helper.ethNativeContract.collectionHelpers(signer);
203 const functionName: string = this.createCollectionMethodName(mode);203 const functionName: string = this.createCollectionMethodName(mode);
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
415 if (event.section === e.section && e.names.includes(event.method)) {415 if (event.section === e.section && e.names.includes(event.method)) {
416 collectedEvents.push(event);416 collectedEvents.push(event);
417 }417 }
418 }))418 }));
419 });419 });
420 });420 });
421 return {unsubscribe: unsubscribe as any, collectedEvents};421 return {unsubscribe: unsubscribe as any, collectedEvents};