Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Oct 14, 2024
1 parent 0e92590 commit faacca8
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion packages/builder/fixtures/builderParamsMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: <explanation>
} as any;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit faacca8

Please sign in to comment.