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

difftreelog

feat add dmpQueue event section

Daniel Shiposha2023-09-28parent: #58b781a.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
9import {IKeyringPair} from '@polkadot/types/types';9import {IKeyringPair} from '@polkadot/types/types';
10import {EventRecord} from '@polkadot/types/interfaces';10import {EventRecord} from '@polkadot/types/interfaces';
11import {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from './types';11import {ICrossAccountId, ILogger, IPovInfo, ISchedulerOptions, ITransactionResult, TSigner} from './types';
12import {FrameSystemEventRecord, XcmV2TraitsError} from '@polkadot/types/lookup';12import {FrameSystemEventRecord, XcmV2TraitsError, XcmV3TraitsOutcome} from '@polkadot/types/lookup';
13import {SignerOptions, VoidFn} from '@polkadot/api/types';13import {SignerOptions, VoidFn} from '@polkadot/api/types';
14import {Pallets} from '..';14import {Pallets} from '..';
15import {spawnSync} from 'child_process';15import {spawnSync} from 'child_process';
261 }));261 }));
262 };262 };
263
264 static DmpQueue = class extends EventSection('dmpQueue') {
265 static ExecutedDownward = this.Method('ExecutedDownward', data => ({
266 outcome: eventData<XcmV3TraitsOutcome>(data, 1),
267 }));
268 };
263}269}
264270
265// eslint-disable-next-line @typescript-eslint/naming-convention271// eslint-disable-next-line @typescript-eslint/naming-convention
560 this.wait = new WaitGroup(this);566 this.wait = new WaitGroup(this);
561 }567 }
568
569 getSudo() {
570 // eslint-disable-next-line @typescript-eslint/naming-convention
571 const SudoHelperType = SudoHelper(this.helperBase);
572 return this.clone(SudoHelperType) as DevRelayHelper;
573 }
562}574}
563575
564export class DevWestmintHelper extends WestmintHelper {576export class DevWestmintHelper extends WestmintHelper {
969 };981 };
970 }982 }
983
984 makeTransactProgram(info: {weightMultiplier: number, call: string}) {
985 return {
986 V3: [
987 {
988 UnpaidExecution: {
989 weightLimit: 'Unlimited',
990 checkOrigin: null,
991 },
992 },
993 {
994 Transact: {
995 originKind: 'Superuser',
996 requireWeightAtMost: {
997 refTime: info.weightMultiplier * 200000000,
998 proofSize: info.weightMultiplier * 3000,
999 },
1000 call: {
1001 encoded: info.call,
1002 },
1003 },
1004 },
1005 ],
1006 };
1007 }
971}1008}
9721009
973class MoonbeamAccountGroup {1010class MoonbeamAccountGroup {