@moonbeam-network/mrl 1.0.0-dev.158 → 1.0.0-dev.159
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 +5 -11
- package/build/index.mjs +4 -1
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
package/build/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import * as _moonbeam_network_xcm_sdk from '@moonbeam-network/xcm-sdk';
|
|
2
1
|
import { SourceChainTransferData, EvmSigner } from '@moonbeam-network/xcm-sdk';
|
|
3
|
-
import * as _wormhole_foundation_sdk_connect from '@wormhole-foundation/sdk-connect';
|
|
4
|
-
import { TokenTransfer } from '@wormhole-foundation/sdk-connect';
|
|
5
2
|
import * as _moonbeam_network_xcm_types from '@moonbeam-network/xcm-types';
|
|
6
3
|
import { AssetAmount, AnyChain, EvmChain, EvmParachain, Ecosystem, AnyAsset } from '@moonbeam-network/xcm-types';
|
|
7
4
|
import { Signer } from '@polkadot/api/types';
|
|
8
5
|
import { IKeyringPair, ISubmittableResult } from '@polkadot/types/types';
|
|
6
|
+
import { TokenTransfer } from '@wormhole-foundation/sdk-connect';
|
|
9
7
|
import { WalletClient } from 'viem';
|
|
10
8
|
import { ConfigService } from '@moonbeam-network/xcm-config';
|
|
11
9
|
|
|
@@ -41,11 +39,11 @@ interface ChainTransferData {
|
|
|
41
39
|
fee: AssetAmount;
|
|
42
40
|
min: AssetAmount;
|
|
43
41
|
}
|
|
44
|
-
|
|
42
|
+
interface RedeemData {
|
|
45
43
|
vaa: TokenTransfer.VAA;
|
|
46
44
|
tokenTransfer: TokenTransfer;
|
|
47
|
-
|
|
48
|
-
}
|
|
45
|
+
redeem(signer: EvmSigner): Promise<string>;
|
|
46
|
+
}
|
|
49
47
|
|
|
50
48
|
interface WormholeRedeemParams {
|
|
51
49
|
txId: string;
|
|
@@ -72,11 +70,7 @@ declare function Mrl(options?: MrlOptions): {
|
|
|
72
70
|
};
|
|
73
71
|
};
|
|
74
72
|
};
|
|
75
|
-
getRedeemData({ txId, chain }: WormholeRedeemParams): Promise<
|
|
76
|
-
vaa: _wormhole_foundation_sdk_connect.TokenTransfer.VAA;
|
|
77
|
-
tokenTransfer: _wormhole_foundation_sdk_connect.TokenTransfer<"Mainnet" | "Testnet">;
|
|
78
|
-
redeem(signer: _moonbeam_network_xcm_sdk.EvmSigner): Promise<string>;
|
|
79
|
-
}>;
|
|
73
|
+
getRedeemData({ txId, chain }: WormholeRedeemParams): Promise<RedeemData>;
|
|
80
74
|
};
|
|
81
75
|
|
|
82
76
|
export { type ChainTransferData, type DestinationTransferData, type MoonChainTransferData, Mrl, type MrlOptions, type RedeemData, type Signers, type SourceTransferData, type TransferData };
|
package/build/index.mjs
CHANGED
|
@@ -11040,7 +11040,10 @@ var WormholeService = class _WormholeService {
|
|
|
11040
11040
|
};
|
|
11041
11041
|
|
|
11042
11042
|
// src/getTransferData/getRedeemData.ts
|
|
11043
|
-
async function getRedeemData({
|
|
11043
|
+
async function getRedeemData({
|
|
11044
|
+
txId,
|
|
11045
|
+
chain
|
|
11046
|
+
}) {
|
|
11044
11047
|
const wh = WormholeService.create(chain);
|
|
11045
11048
|
const vaa = await wh.getVaa(txId);
|
|
11046
11049
|
if (!vaa) {
|