diff --git a/packages/mrl/src/getTransferData/getMoonChainData.ts b/packages/mrl/src/getTransferData/getMoonChainData.ts index 98c47eb1..010248ce 100644 --- a/packages/mrl/src/getTransferData/getMoonChainData.ts +++ b/packages/mrl/src/getTransferData/getMoonChainData.ts @@ -7,7 +7,7 @@ import type { MoonChainTransferData, } from '../mrl.interfaces'; -export interface GetMoonChainDataParams { +interface GetMoonChainDataParams { destinationData: DestinationTransferData; route: MrlAssetRoute; sourceAddress: string; diff --git a/packages/mrl/src/getTransferData/getSourceData.ts b/packages/mrl/src/getTransferData/getSourceData.ts index 0b732ef9..baeae161 100644 --- a/packages/mrl/src/getTransferData/getSourceData.ts +++ b/packages/mrl/src/getTransferData/getSourceData.ts @@ -29,7 +29,7 @@ import { getMrlBuilderParams, } from './getTransferData.utils'; -export interface GetSourceDataParams { +interface GetSourceDataParams { route: MrlAssetRoute; destinationAddress: string; destinationFee: AssetAmount; @@ -142,7 +142,7 @@ export async function getSourceData({ }; } -export interface GetFeeParams { +interface GetFeeParams { balance: AssetAmount; chain: AnyChain; destinationFee: AssetAmount; @@ -152,18 +152,18 @@ export interface GetFeeParams { transfer: ContractConfig | ExtrinsicConfig | WormholeConfig; } -export interface GetRelayFeeParams extends BuildTransferParams { +interface GetRelayFeeParams extends BuildTransferParams { chain: AnyChain; transfer: ContractConfig | ExtrinsicConfig | WormholeConfig; } -export interface GetWormholeFeeParams { +interface GetWormholeFeeParams { asset: AssetAmount; chain: AnyChain; config: ContractConfig | ExtrinsicConfig | WormholeConfig; } -export async function getFee({ +async function getFee({ balance, feeBalance, chain, @@ -200,7 +200,7 @@ export async function getFee({ }); } -export async function getRelayerFee({ +async function getRelayerFee({ asset, chain, destinationAddress, @@ -250,14 +250,14 @@ async function getWormholeFee({ return; } -export interface GetMoonChainFeeBalanceParams { +interface GetMoonChainFeeBalanceParams { balance: AssetAmount; feeBalance: AssetAmount; route: MrlAssetRoute; sourceAddress: string; } -export async function getMoonChainFeeBalance({ +async function getMoonChainFeeBalance({ balance, feeBalance, route, diff --git a/packages/mrl/src/getTransferData/getTransferData.utils.ts b/packages/mrl/src/getTransferData/getTransferData.utils.ts index a1716291..9de9f961 100644 --- a/packages/mrl/src/getTransferData/getTransferData.utils.ts +++ b/packages/mrl/src/getTransferData/getTransferData.utils.ts @@ -168,7 +168,7 @@ export async function getMrlBuilderParams({ }; } -export async function getTransact(params: MrlBuilderParams): Promise { +async function getTransact(params: MrlBuilderParams): Promise { const { sourceAddress, source, moonChain } = params; const polkadot = await PolkadotService.create(moonChain); const moonGasLimit = await getMoonGasLimit(params); diff --git a/packages/mrl/src/index.ts b/packages/mrl/src/index.ts index a5b48e19..d4eb4a1e 100644 --- a/packages/mrl/src/index.ts +++ b/packages/mrl/src/index.ts @@ -1 +1,2 @@ export * from './mrl'; +export * from './mrl.interfaces';