Skip to content

Commit

Permalink
fix getSourceData
Browse files Browse the repository at this point in the history
  • Loading branch information
Rihyx committed Nov 22, 2024
1 parent cd9acd3 commit 5fc3dd3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/mrl/src/getTransferData/getMoonChainData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
MoonChainTransferData,
} from '../mrl.interfaces';

export interface GetMoonChainDataParams {
interface GetMoonChainDataParams {
destinationData: DestinationTransferData;
route: MrlAssetRoute;
sourceAddress: string;
Expand Down
16 changes: 8 additions & 8 deletions packages/mrl/src/getTransferData/getSourceData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
getMrlBuilderParams,
} from './getTransferData.utils';

export interface GetSourceDataParams {
interface GetSourceDataParams {
route: MrlAssetRoute;
destinationAddress: string;
destinationFee: AssetAmount;
Expand Down Expand Up @@ -142,7 +142,7 @@ export async function getSourceData({
};
}

export interface GetFeeParams {
interface GetFeeParams {
balance: AssetAmount;
chain: AnyChain;
destinationFee: AssetAmount;
Expand All @@ -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,
Expand Down Expand Up @@ -200,7 +200,7 @@ export async function getFee({
});
}

export async function getRelayerFee({
async function getRelayerFee({
asset,
chain,
destinationAddress,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/mrl/src/getTransferData/getTransferData.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export async function getMrlBuilderParams({
};
}

export async function getTransact(params: MrlBuilderParams): Promise<Transact> {
async function getTransact(params: MrlBuilderParams): Promise<Transact> {
const { sourceAddress, source, moonChain } = params;
const polkadot = await PolkadotService.create(moonChain);
const moonGasLimit = await getMoonGasLimit(params);
Expand Down
1 change: 1 addition & 0 deletions packages/mrl/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './mrl';
export * from './mrl.interfaces';

0 comments on commit 5fc3dd3

Please sign in to comment.