@moonbeam-network/mrl 4.0.23 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +13 -7
- package/build/index.mjs +392 -126
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SourceChainTransferData, EvmSigner } from '@moonbeam-network/xcm-sdk';
|
|
2
2
|
import * as _moonbeam_network_xcm_types from '@moonbeam-network/xcm-types';
|
|
3
|
-
import { AnyChain, AssetAmount,
|
|
3
|
+
import { AnyChain, AssetAmount, Parachain, EvmChain, EvmParachain, Ecosystem, AnyAsset } from '@moonbeam-network/xcm-types';
|
|
4
4
|
import { Signer } from '@polkadot/api/types';
|
|
5
5
|
import { IKeyringPair, ISubmittableResult } from '@polkadot/types/types';
|
|
6
6
|
import { TokenTransfer } from '@wormhole-foundation/sdk-connect';
|
|
@@ -17,7 +17,7 @@ interface TransferData {
|
|
|
17
17
|
isAutomaticPossible: boolean;
|
|
18
18
|
max: AssetAmount;
|
|
19
19
|
min: AssetAmount;
|
|
20
|
-
|
|
20
|
+
bridgeChain: BridgeChainTransferData;
|
|
21
21
|
source: SourceTransferData;
|
|
22
22
|
transfer(params: TransferParams): Promise<string[]>;
|
|
23
23
|
}
|
|
@@ -28,17 +28,23 @@ interface TransferParams {
|
|
|
28
28
|
statusCallback?: (status: ISubmittableResult) => void;
|
|
29
29
|
sendOnlyRemoteExecution?: boolean;
|
|
30
30
|
}
|
|
31
|
+
interface MrlOtherFees {
|
|
32
|
+
/** Protocol bridge fee (e.g., Snowbridge) - deducted from transfer amount */
|
|
33
|
+
protocol?: AssetAmount;
|
|
34
|
+
/** Relayer service fee for automatic execution - only applies when isAutomatic=true */
|
|
35
|
+
relayer?: AssetAmount;
|
|
36
|
+
}
|
|
31
37
|
interface SourceTransferData extends SourceChainTransferData {
|
|
32
38
|
destinationFeeBalance: AssetAmount;
|
|
33
|
-
|
|
34
|
-
relayerFee?: AssetAmount;
|
|
39
|
+
bridgeChainFeeBalance?: AssetAmount;
|
|
35
40
|
feeBalance: AssetAmount;
|
|
36
41
|
max: AssetAmount;
|
|
42
|
+
otherFees: MrlOtherFees;
|
|
37
43
|
}
|
|
38
44
|
interface DestinationTransferData extends ChainTransferData {
|
|
39
45
|
}
|
|
40
|
-
type
|
|
41
|
-
chain:
|
|
46
|
+
type BridgeChainTransferData = Omit<ChainTransferData, 'min'> & {
|
|
47
|
+
chain: Parachain;
|
|
42
48
|
address: string;
|
|
43
49
|
feeBalance: AssetAmount;
|
|
44
50
|
};
|
|
@@ -82,4 +88,4 @@ declare function Mrl(options?: MrlOptions): {
|
|
|
82
88
|
getExecuteTransferData({ txId, chain }: WormholeExecuteTransferParams): Promise<ExecuteTransferData>;
|
|
83
89
|
};
|
|
84
90
|
|
|
85
|
-
export { type
|
|
91
|
+
export { type BridgeChainTransferData, type ChainTransferData, type DestinationTransferData, type ExecuteTransferData, Mrl, type MrlOptions, type MrlOtherFees, type Signers, type SourceTransferData, type TransferData, type TransferParams };
|