From faacca8894b3d9f3943eae44bccb8f5e0fc8022e Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Mon, 14 Oct 2024 11:06:27 +0200 Subject: [PATCH] update tests --- .../builder/fixtures/builderParamsMock.ts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/packages/builder/fixtures/builderParamsMock.ts b/packages/builder/fixtures/builderParamsMock.ts index c5baee0a..4b14992e 100644 --- a/packages/builder/fixtures/builderParamsMock.ts +++ b/packages/builder/fixtures/builderParamsMock.ts @@ -13,7 +13,12 @@ import type { BuilderParams, MrlBuilderParams } from '../src'; export const apiMock = { tx: { polkadotXcm: { send: vi.fn(() => 'polkadotXcm.send => RESULT') }, - xTokens: { transfer: vi.fn(() => 'xTokens.transfer => RESULT') }, + xTokens: { + transfer: vi.fn(() => 'xTokens.transfer => RESULT'), + transferMulticurrencies: vi.fn( + () => 'xTokens.transferMulticurrencies => RESULT', + ), + }, }, // biome-ignore lint/suspicious/noExplicitAny: } as any; @@ -148,6 +153,22 @@ export const mrlBuildParamsMock: MrlBuilderParams = { }, }; +export const mrlBuildParamsSameAssetMock: MrlBuilderParams = { + ...buildParamsSameAssetMock, + isAutomatic: true, + moonApi: apiMock, + moonAsset: testAssetAmount, + moonChain: moonbaseAlphaMock, + moonGasLimit: 999_999n, + transact: { + call: '0x4d79207465787420737472696e67', + txWeight: { + refTime: 24_902_375_000n, + proofSize: 62_193n, + }, + }, +}; + export const mrlBuildParamsMock2: MrlBuilderParams = { ...buildParachainParamsMock, isAutomatic: true,