@moonbeam-network/mrl 1.0.0-dev.145 → 1.0.0-dev.147
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/package.json +27 -17
- package/build/index.d.mts +0 -71
package/package.json
CHANGED
|
@@ -1,45 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbeam-network/mrl",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.147",
|
|
4
4
|
"description": "Moonbeam Routed Liquidity",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsup",
|
|
7
|
-
"dev": "tsup --watch",
|
|
8
|
-
"link": "pnpm ln --global",
|
|
9
|
-
"typecheck": "tsc --noEmit"
|
|
10
|
-
},
|
|
11
5
|
"repository": {
|
|
12
6
|
"directory": "packages/mrl",
|
|
13
7
|
"type": "git",
|
|
14
8
|
"url": "git+https://github.com/moonbeam-foundation/xcm-sdk.git"
|
|
15
9
|
},
|
|
16
|
-
"keywords": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"moonbeam",
|
|
12
|
+
"moonriver",
|
|
13
|
+
"mrl"
|
|
14
|
+
],
|
|
17
15
|
"author": "moonbeam-foundation",
|
|
18
16
|
"license": "MIT",
|
|
19
17
|
"bugs": {
|
|
20
18
|
"url": "https://github.com/moonbeam-foundation/xcm-sdk/issues"
|
|
21
19
|
},
|
|
22
20
|
"homepage": "https://moonbeam-foundation.github.io/xcm-sdk/latest",
|
|
23
|
-
"files": [
|
|
21
|
+
"files": [
|
|
22
|
+
"build"
|
|
23
|
+
],
|
|
24
24
|
"type": "module",
|
|
25
|
-
"exports":
|
|
25
|
+
"exports": {
|
|
26
|
+
"import": "./build/index.mjs",
|
|
27
|
+
"types": "./build/index.d.ts",
|
|
28
|
+
"default": "./build/index.mjs"
|
|
29
|
+
},
|
|
26
30
|
"types": "./build/index.d.ts",
|
|
27
31
|
"main": "./build/index.mjs",
|
|
28
32
|
"dependencies": {
|
|
29
|
-
"@moonbeam-network/xcm-builder": "1.0.0-dev.
|
|
30
|
-
"@moonbeam-network/xcm-config": "1.0.0-dev.
|
|
31
|
-
"@moonbeam-network/xcm-sdk": "1.0.0-dev.
|
|
32
|
-
"@moonbeam-network/xcm-types": "1.0.0-dev.
|
|
33
|
-
"@moonbeam-network/xcm-utils": "1.0.0-dev.
|
|
33
|
+
"@moonbeam-network/xcm-builder": "1.0.0-dev.147",
|
|
34
|
+
"@moonbeam-network/xcm-config": "1.0.0-dev.147",
|
|
35
|
+
"@moonbeam-network/xcm-sdk": "1.0.0-dev.147",
|
|
36
|
+
"@moonbeam-network/xcm-types": "1.0.0-dev.147",
|
|
37
|
+
"@moonbeam-network/xcm-utils": "1.0.0-dev.147",
|
|
34
38
|
"big.js": "^6.2.1"
|
|
35
39
|
},
|
|
36
40
|
"peerDependencies": {
|
|
37
41
|
"@polkadot/api": "^12.4.2",
|
|
38
42
|
"@polkadot/api-augment": "^12.4.2",
|
|
39
43
|
"@polkadot/types": "^12.4.2",
|
|
40
|
-
"@polkadot/util": "^13.
|
|
44
|
+
"@polkadot/util": "^13.1.1",
|
|
41
45
|
"@wormhole-foundation/sdk-connect": "^0.10.7",
|
|
42
46
|
"@wormhole-foundation/sdk-evm": "^0.10.7",
|
|
43
47
|
"viem": "^2.21.7"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsup",
|
|
51
|
+
"dev": "tsup --watch",
|
|
52
|
+
"link": "pnpm ln --global",
|
|
53
|
+
"typecheck": "tsc --noEmit"
|
|
44
54
|
}
|
|
45
|
-
}
|
|
55
|
+
}
|
package/build/index.d.mts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as _moonbeam_network_xcm_sdk from '@moonbeam-network/xcm-sdk';
|
|
2
|
-
import { SourceChainTransferData } from '@moonbeam-network/xcm-sdk';
|
|
3
|
-
import * as _wormhole_foundation_sdk_connect from '@wormhole-foundation/sdk-connect';
|
|
4
|
-
import * as _moonbeam_network_xcm_types from '@moonbeam-network/xcm-types';
|
|
5
|
-
import { AssetAmount, AnyChain, EvmChain, EvmParachain, Ecosystem, AnyAsset } from '@moonbeam-network/xcm-types';
|
|
6
|
-
import { Signer } from '@polkadot/api/types';
|
|
7
|
-
import { IKeyringPair } from '@polkadot/types/types';
|
|
8
|
-
import { WalletClient } from 'viem';
|
|
9
|
-
import { ConfigService } from '@moonbeam-network/xcm-config';
|
|
10
|
-
|
|
11
|
-
interface Signers {
|
|
12
|
-
evmSigner?: WalletClient;
|
|
13
|
-
polkadotSigner?: Signer | IKeyringPair;
|
|
14
|
-
}
|
|
15
|
-
interface TransferData {
|
|
16
|
-
destination: DestinationTransferData;
|
|
17
|
-
getEstimate(amount: number | string): AssetAmount;
|
|
18
|
-
max: AssetAmount;
|
|
19
|
-
min: AssetAmount;
|
|
20
|
-
moonChain: MoonChainTransferData;
|
|
21
|
-
source: SourceTransferData;
|
|
22
|
-
transfer(amount: bigint | number | string, isAutomatic: boolean, signers: Signers): Promise<string[]>;
|
|
23
|
-
}
|
|
24
|
-
interface SourceTransferData extends SourceChainTransferData {
|
|
25
|
-
destinationFeeBalance: AssetAmount;
|
|
26
|
-
moonChainFeeBalance?: AssetAmount;
|
|
27
|
-
relayerFee?: AssetAmount;
|
|
28
|
-
feeBalance: AssetAmount;
|
|
29
|
-
max: AssetAmount;
|
|
30
|
-
}
|
|
31
|
-
interface DestinationTransferData extends ChainTransferData {
|
|
32
|
-
}
|
|
33
|
-
type MoonChainTransferData = Omit<ChainTransferData, 'min'>;
|
|
34
|
-
interface ChainTransferData {
|
|
35
|
-
chain: AnyChain;
|
|
36
|
-
balance: AssetAmount;
|
|
37
|
-
fee: AssetAmount;
|
|
38
|
-
min: AssetAmount;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface WormholeRedeemParams {
|
|
42
|
-
txId: string;
|
|
43
|
-
chain: EvmChain | EvmParachain;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface MrlOptions {
|
|
47
|
-
configService?: ConfigService;
|
|
48
|
-
ecosystem?: Ecosystem;
|
|
49
|
-
}
|
|
50
|
-
declare function Mrl(options?: MrlOptions): {
|
|
51
|
-
sources: AnyChain[];
|
|
52
|
-
setSource(source: string | AnyChain): {
|
|
53
|
-
destinations: AnyChain[];
|
|
54
|
-
setDestination(destination: string | AnyChain): {
|
|
55
|
-
assets: _moonbeam_network_xcm_types.Asset[];
|
|
56
|
-
setAsset(asset: string | AnyAsset): {
|
|
57
|
-
setAddresses({ sourceAddress, destinationAddress, }: {
|
|
58
|
-
sourceAddress: string;
|
|
59
|
-
destinationAddress: string;
|
|
60
|
-
}): Promise<TransferData>;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
getRedeemData({ txId, chain }: WormholeRedeemParams): Promise<{
|
|
65
|
-
vaa: _wormhole_foundation_sdk_connect.TokenTransfer.VAA;
|
|
66
|
-
tokenTransfer: _wormhole_foundation_sdk_connect.TokenTransfer<"Mainnet" | "Testnet">;
|
|
67
|
-
redeem(signer: _moonbeam_network_xcm_sdk.EvmSigner): Promise<string>;
|
|
68
|
-
}>;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export { Mrl, type MrlOptions };
|