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

difftreelog

Merge pull request #870 from UniqueNetwork/fix/xcm-moonbeam-tests

Yaroslav Bolyukin2023-02-01parents: #e31d9d0 #9524862.patch.diff
in: master

2 files changed

modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
159159
160 constructor(logger: { log: (msg: any, level: any) => void, level: any }, options: {[key: string]: any} = {}) {160 constructor(logger: { log: (msg: any, level: any) => void, level: any }, options: {[key: string]: any} = {}) {
161 options.helperBase = options.helperBase ?? DevMoonbeamHelper;161 options.helperBase = options.helperBase ?? DevMoonbeamHelper;
162 options.notePreimagePallet = options.notePreimagePallet ?? 'democracy';162 options.notePreimagePallet = options.notePreimagePallet ?? 'preimage';
163163
164 super(logger, options);164 super(logger, options);
165 this.account = new MoonbeamAccountGroup(this);165 this.account = new MoonbeamAccountGroup(this);
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
760760
761 // >>> Propose external motion through council >>>761 // >>> Propose external motion through council >>>
762 console.log('Propose external motion through council.......');762 console.log('Propose external motion through council.......');
763 const externalMotion = helper.democracy.externalProposeMajority(proposalHash);763 const externalMotion = helper.democracy.externalProposeMajority({Legacy: proposalHash});
764 const encodedMotion = externalMotion?.method.toHex() || '';764 const encodedMotion = externalMotion?.method.toHex() || '';
765 const motionHash = blake2AsHex(encodedMotion);765 const motionHash = blake2AsHex(encodedMotion);
766 console.log('Motion hash is %s', motionHash);766 console.log('Motion hash is %s', motionHash);
775 dorothyAccount,
776 motionHash,
777 councilProposalIdx,
778 {
779 refTime: 1_000_000_000,
780 proofSize: 1_000_000,
781 },
782 externalMotion.encodedLength,
783 );
775 console.log('Propose external motion through council.......DONE');784 console.log('Propose external motion through council.......DONE');
776 // <<< Propose external motion through council <<<785 // <<< Propose external motion through council <<<
801 baltatharAccount,
802 fastTrackHash,
803 techProposalIdx,
804 {
805 refTime: 1_000_000_000,
806 proofSize: 1_000_000,
807 },
808 fastTrack.encodedLength,
809 );
792 console.log('Fast track proposal through technical committee.......DONE');810 console.log('Fast track proposal through technical committee.......DONE');
793 // <<< Fast track proposal through technical committee <<<811 // <<< Fast track proposal through technical committee <<<
899 },917 },
900 },918 },
901 };919 };
902 const destWeight = 50000000;
903920
904 await helper.xTokens.transferMultiasset(randomAccountMoonbeam, asset, destination, destWeight);921 await helper.xTokens.transferMultiasset(randomAccountMoonbeam, asset, destination, 'Unlimited');
905922
906 balanceGlmrTokenFinal = await helper.balance.getEthereum(randomAccountMoonbeam.address);923 balanceGlmrTokenFinal = await helper.balance.getEthereum(randomAccountMoonbeam.address);
907924