@galacticcouncil/xc-cfg 0.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/README.md +17 -0
- package/build/index.cjs +1 -0
- package/build/index.mjs +1 -0
- package/build/types/assets.d.ts +72 -0
- package/build/types/builders/AssetMinBuilder.d.ts +13 -0
- package/build/types/builders/BalanceBuilder.d.ts +10 -0
- package/build/types/builders/ContractBuilder.d.ts +14 -0
- package/build/types/builders/ExtrinsicBuilder.d.ts +64 -0
- package/build/types/builders/FeeAmountBuilder.d.ts +19 -0
- package/build/types/builders/FeeAssetBuilder.d.ts +8 -0
- package/build/types/builders/MoveBuilder.d.ts +4 -0
- package/build/types/builders/ProgramBuilder.d.ts +4 -0
- package/build/types/builders/balance/evm.d.ts +8 -0
- package/build/types/builders/balance/solana.d.ts +8 -0
- package/build/types/builders/balance/substrate.d.ts +24 -0
- package/build/types/builders/balance/sui.d.ts +6 -0
- package/build/types/builders/contracts/Batch.d.ts +4 -0
- package/build/types/builders/contracts/Erc20.d.ts +4 -0
- package/build/types/builders/contracts/Snowbridge.d.ts +4 -0
- package/build/types/builders/contracts/Wormhole/TokenBridge.d.ts +15 -0
- package/build/types/builders/contracts/Wormhole/TokenBridge.spec.d.ts +1 -0
- package/build/types/builders/contracts/Wormhole/TokenRelayer.d.ts +4 -0
- package/build/types/builders/contracts/Wormhole/index.d.ts +19 -0
- package/build/types/builders/contracts/Xtokens.d.ts +5 -0
- package/build/types/builders/contracts/Xtokens.utils.d.ts +45 -0
- package/build/types/builders/extrinsics/assetConversion.d.ts +8 -0
- package/build/types/builders/extrinsics/assets.d.ts +4 -0
- package/build/types/builders/extrinsics/balances.d.ts +4 -0
- package/build/types/builders/extrinsics/router.d.ts +8 -0
- package/build/types/builders/extrinsics/utility.d.ts +6 -0
- package/build/types/builders/extrinsics/xcm/builder/buildERC20TransferFromPara.d.ts +132 -0
- package/build/types/builders/extrinsics/xcm/builder/buildParaERC20Received.d.ts +77 -0
- package/build/types/builders/extrinsics/xcm/builder/const.d.ts +13 -0
- package/build/types/builders/extrinsics/xcm/builder/index.d.ts +3 -0
- package/build/types/builders/extrinsics/xcm/ethereumXcm.d.ts +4 -0
- package/build/types/builders/extrinsics/xcm/index.d.ts +7 -0
- package/build/types/builders/extrinsics/xcm/polkadotXcm.d.ts +20 -0
- package/build/types/builders/extrinsics/xcm/polkadotXcm.utils.d.ts +322 -0
- package/build/types/builders/extrinsics/xcm/types.d.ts +18 -0
- package/build/types/builders/extrinsics/xcm/utils/account.d.ts +14 -0
- package/build/types/builders/extrinsics/xcm/utils/fee.d.ts +1 -0
- package/build/types/builders/extrinsics/xcm/utils/guard.d.ts +4 -0
- package/build/types/builders/extrinsics/xcm/utils/index.d.ts +5 -0
- package/build/types/builders/extrinsics/xcm/utils/instructions.d.ts +65 -0
- package/build/types/builders/extrinsics/xcm/utils/location.d.ts +12 -0
- package/build/types/builders/extrinsics/xcm/xTokens.d.ts +7 -0
- package/build/types/builders/extrinsics/xcm/xTokens.utils.d.ts +23 -0
- package/build/types/builders/extrinsics/xcm/xTransfer.d.ts +4 -0
- package/build/types/builders/extrinsics/xcm/xTransfer.utils.d.ts +13 -0
- package/build/types/builders/extrinsics/xcm/xcmPallet.d.ts +11 -0
- package/build/types/builders/extrinsics/xcm/xcmPallet.utils.d.ts +24 -0
- package/build/types/builders/index.d.ts +9 -0
- package/build/types/builders/moves/Wormhole/TokenBridge.d.ts +10 -0
- package/build/types/builders/moves/Wormhole/index.d.ts +9 -0
- package/build/types/builders/programs/Wormhole/TokenBridge.d.ts +13 -0
- package/build/types/builders/programs/Wormhole/index.d.ts +14 -0
- package/build/types/builders/utils/amount.d.ts +1 -0
- package/build/types/builders/utils/asset.d.ts +2 -0
- package/build/types/builders/utils/index.d.ts +2 -0
- package/build/types/chains/chains.spec.d.ts +1 -0
- package/build/types/chains/evm/index.d.ts +4 -0
- package/build/types/chains/evm/mainnet.d.ts +2 -0
- package/build/types/chains/index.d.ts +8 -0
- package/build/types/chains/kusama/assethub.d.ts +2 -0
- package/build/types/chains/kusama/basilisk.d.ts +2 -0
- package/build/types/chains/kusama/index.d.ts +10 -0
- package/build/types/chains/kusama/integritee.d.ts +2 -0
- package/build/types/chains/kusama/karura.d.ts +2 -0
- package/build/types/chains/kusama/kusama.d.ts +2 -0
- package/build/types/chains/kusama/robonomics.d.ts +2 -0
- package/build/types/chains/kusama/tinkernet.d.ts +2 -0
- package/build/types/chains/polkadot/acala.d.ts +2 -0
- package/build/types/chains/polkadot/ajuna.d.ts +2 -0
- package/build/types/chains/polkadot/assethub.d.ts +3 -0
- package/build/types/chains/polkadot/astar.d.ts +2 -0
- package/build/types/chains/polkadot/bifrost.d.ts +2 -0
- package/build/types/chains/polkadot/centrifuge.d.ts +2 -0
- package/build/types/chains/polkadot/crust.d.ts +2 -0
- package/build/types/chains/polkadot/darwinia.d.ts +2 -0
- package/build/types/chains/polkadot/energywebx.d.ts +2 -0
- package/build/types/chains/polkadot/hydration.d.ts +2 -0
- package/build/types/chains/polkadot/index.d.ts +25 -0
- package/build/types/chains/polkadot/interlay.d.ts +2 -0
- package/build/types/chains/polkadot/kilt.d.ts +2 -0
- package/build/types/chains/polkadot/laos.d.ts +2 -0
- package/build/types/chains/polkadot/moonbeam.d.ts +2 -0
- package/build/types/chains/polkadot/mythos.d.ts +2 -0
- package/build/types/chains/polkadot/neuroweb.d.ts +2 -0
- package/build/types/chains/polkadot/nodle.d.ts +2 -0
- package/build/types/chains/polkadot/pendulum.d.ts +2 -0
- package/build/types/chains/polkadot/phala.d.ts +2 -0
- package/build/types/chains/polkadot/polkadot.d.ts +3 -0
- package/build/types/chains/polkadot/unique.d.ts +2 -0
- package/build/types/chains/polkadot/zeitgeist.d.ts +2 -0
- package/build/types/chains/solana/index.d.ts +4 -0
- package/build/types/chains/solana/mainnet.d.ts +2 -0
- package/build/types/chains/sui/index.d.ts +4 -0
- package/build/types/chains/sui/mainnet.d.ts +2 -0
- package/build/types/clients/base.d.ts +8 -0
- package/build/types/clients/chain/assethub.d.ts +13 -0
- package/build/types/clients/chain/hydration.d.ts +8 -0
- package/build/types/clients/chain/index.d.ts +2 -0
- package/build/types/clients/index.d.ts +2 -0
- package/build/types/configs/HydrationConfigService.d.ts +5 -0
- package/build/types/configs/HydrationConfigService.utils.d.ts +5 -0
- package/build/types/configs/evm/ethereum/index.d.ts +2 -0
- package/build/types/configs/evm/ethereum/templates.d.ts +3 -0
- package/build/types/configs/evm/index.d.ts +2 -0
- package/build/types/configs/index.d.ts +3 -0
- package/build/types/configs/kusama/assethub/index.d.ts +2 -0
- package/build/types/configs/kusama/assethub/templates.d.ts +3 -0
- package/build/types/configs/kusama/basilisk/configs.d.ts +3 -0
- package/build/types/configs/kusama/basilisk/index.d.ts +2 -0
- package/build/types/configs/kusama/basilisk/templates.d.ts +2 -0
- package/build/types/configs/kusama/index.d.ts +2 -0
- package/build/types/configs/kusama/integritee.d.ts +2 -0
- package/build/types/configs/kusama/karura.d.ts +2 -0
- package/build/types/configs/kusama/robonomics.d.ts +2 -0
- package/build/types/configs/kusama/tinkernet.d.ts +2 -0
- package/build/types/configs/polkadot/acala.d.ts +2 -0
- package/build/types/configs/polkadot/ajuna.d.ts +2 -0
- package/build/types/configs/polkadot/assethub/index.d.ts +3 -0
- package/build/types/configs/polkadot/assethub/templates.d.ts +6 -0
- package/build/types/configs/polkadot/astar.d.ts +2 -0
- package/build/types/configs/polkadot/bifrost.d.ts +2 -0
- package/build/types/configs/polkadot/centrifuge.d.ts +2 -0
- package/build/types/configs/polkadot/crust.d.ts +2 -0
- package/build/types/configs/polkadot/darwinia.d.ts +2 -0
- package/build/types/configs/polkadot/energywebx.d.ts +2 -0
- package/build/types/configs/polkadot/hydration/configs.d.ts +3 -0
- package/build/types/configs/polkadot/hydration/index.d.ts +2 -0
- package/build/types/configs/polkadot/hydration/templates.d.ts +13 -0
- package/build/types/configs/polkadot/index.d.ts +2 -0
- package/build/types/configs/polkadot/interlay.d.ts +2 -0
- package/build/types/configs/polkadot/kilt.d.ts +2 -0
- package/build/types/configs/polkadot/laos.d.ts +2 -0
- package/build/types/configs/polkadot/moonbeam/index.d.ts +2 -0
- package/build/types/configs/polkadot/moonbeam/templates.d.ts +3 -0
- package/build/types/configs/polkadot/mythos.d.ts +2 -0
- package/build/types/configs/polkadot/neuroweb.d.ts +2 -0
- package/build/types/configs/polkadot/nodle.d.ts +2 -0
- package/build/types/configs/polkadot/pendulum.d.ts +2 -0
- package/build/types/configs/polkadot/phala.d.ts +2 -0
- package/build/types/configs/polkadot/unique.d.ts +2 -0
- package/build/types/configs/polkadot/zeitgeist.d.ts +2 -0
- package/build/types/configs/solana/index.d.ts +2 -0
- package/build/types/configs/solana/solana.d.ts +2 -0
- package/build/types/configs/sui/index.d.ts +2 -0
- package/build/types/configs/sui/sui.d.ts +2 -0
- package/build/types/dex/assethub.d.ts +9 -0
- package/build/types/dex/hydration.d.ts +16 -0
- package/build/types/dex/index.d.ts +2 -0
- package/build/types/index.d.ts +9 -0
- package/build/types/resolvers/acala.d.ts +6 -0
- package/build/types/resolvers/hydration.d.ts +4 -0
- package/build/types/resolvers/index.d.ts +2 -0
- package/build/types/tags.d.ts +6 -0
- package/build/types/utils/papi.d.ts +17 -0
- package/build/types/utils/xcm-encoder.d.ts +86 -0
- package/build/types/validations/base.d.ts +9 -0
- package/build/types/validations/chain/assethub.d.ts +8 -0
- package/build/types/validations/chain/hydration.d.ts +9 -0
- package/build/types/validations/chain/index.d.ts +2 -0
- package/build/types/validations/index.d.ts +2 -0
- package/package.json +39 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare function Wormhole(): {
|
|
2
|
+
TokenBridge: () => {
|
|
3
|
+
transferTokens: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
4
|
+
transferTokensWithPayload: () => {
|
|
5
|
+
viaMrl: (opts: {
|
|
6
|
+
moonchain: import("@galacticcouncil/xc-core").EvmParachain;
|
|
7
|
+
}) => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
8
|
+
};
|
|
9
|
+
wrapAndTransferETH: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
10
|
+
wrapAndTransferETHWithPayload: () => {
|
|
11
|
+
viaMrl: (opts: {
|
|
12
|
+
moonchain: import("@galacticcouncil/xc-core").EvmParachain;
|
|
13
|
+
}) => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
TokenRelayer: () => {
|
|
17
|
+
transferTokensWithRelay: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Parachain } from '@galacticcouncil/xc-core';
|
|
2
|
+
type DestinationMultilocation = [
|
|
3
|
+
/**
|
|
4
|
+
* 1 - if transaction is going through a relay chain
|
|
5
|
+
*/
|
|
6
|
+
1,
|
|
7
|
+
([
|
|
8
|
+
/**
|
|
9
|
+
* example '0x00000007DC'
|
|
10
|
+
* 7DC - parachain id in hex
|
|
11
|
+
* can be found here:
|
|
12
|
+
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkusama-rpc.polkadot.io#/parachains
|
|
13
|
+
* - https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/parachains
|
|
14
|
+
*/
|
|
15
|
+
string,
|
|
16
|
+
/**
|
|
17
|
+
* example '0x01%account%00',
|
|
18
|
+
* enum = 01 (AccountId32)
|
|
19
|
+
* networkId = 00 (any)
|
|
20
|
+
*/
|
|
21
|
+
string
|
|
22
|
+
] | [
|
|
23
|
+
/**
|
|
24
|
+
* example '0x01%account%00',
|
|
25
|
+
* enum = 01 (AccountId32)
|
|
26
|
+
* networkId = 00 (any)
|
|
27
|
+
*/
|
|
28
|
+
string
|
|
29
|
+
])
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* Build destination multilocation
|
|
33
|
+
*
|
|
34
|
+
* 01: AccountId32
|
|
35
|
+
* 03: AccountKey20
|
|
36
|
+
*
|
|
37
|
+
* @see https://docs.moonbeam.network/builders/interoperability/xcm/xc20/xtokens/#building-the-precompile-multilocation
|
|
38
|
+
*
|
|
39
|
+
* @param address - destination address
|
|
40
|
+
* @param destination - destination chain
|
|
41
|
+
* @returns multilocation
|
|
42
|
+
*/
|
|
43
|
+
export declare function getDestinationMultilocation(address: string, destination: Parachain): DestinationMultilocation;
|
|
44
|
+
export declare function formatAssetIdToERC20(id: string): string;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ExtrinsicConfig, ExtrinsicConfigBuilder, ExtrinsicConfigBuilderParams } from '@galacticcouncil/xc-core';
|
|
2
|
+
export declare const utility: () => {
|
|
3
|
+
batchAll: (configs: ExtrinsicConfigBuilder[]) => {
|
|
4
|
+
build: (params: ExtrinsicConfigBuilderParams) => ExtrinsicConfig;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Asset, Parachain } from '@galacticcouncil/xc-core';
|
|
2
|
+
export declare function buildERC20TransferFromPara(asset: Asset, chain: Parachain): Promise<{
|
|
3
|
+
V4: ({
|
|
4
|
+
SetAppendix: {
|
|
5
|
+
DepositAsset: {
|
|
6
|
+
assets: {
|
|
7
|
+
Wild: string;
|
|
8
|
+
};
|
|
9
|
+
beneficiary: {
|
|
10
|
+
parents: number;
|
|
11
|
+
interior: {
|
|
12
|
+
X1: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}[];
|
|
17
|
+
InitiateReserveWithdraw?: undefined;
|
|
18
|
+
SetTopic?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
InitiateReserveWithdraw: {
|
|
21
|
+
assets: {
|
|
22
|
+
Wild: {
|
|
23
|
+
AllOf: {
|
|
24
|
+
id: object;
|
|
25
|
+
fun: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
reserve: {
|
|
30
|
+
parents: number;
|
|
31
|
+
interior: {
|
|
32
|
+
X1: {
|
|
33
|
+
GlobalConsensus: {
|
|
34
|
+
Ethereum: {
|
|
35
|
+
chain_id: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
xcm: ({
|
|
42
|
+
BuyExecution: {
|
|
43
|
+
fees: {
|
|
44
|
+
id: {
|
|
45
|
+
parents: number;
|
|
46
|
+
interior: {
|
|
47
|
+
X1: any;
|
|
48
|
+
Here?: undefined;
|
|
49
|
+
};
|
|
50
|
+
} | {
|
|
51
|
+
parents: number;
|
|
52
|
+
interior: {
|
|
53
|
+
Here: null;
|
|
54
|
+
X1?: undefined;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
fun: {
|
|
58
|
+
Fungible: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
weightLimit: string;
|
|
62
|
+
};
|
|
63
|
+
DepositAsset?: undefined;
|
|
64
|
+
SetTopic?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
DepositAsset: {
|
|
67
|
+
assets: {
|
|
68
|
+
Wild: {
|
|
69
|
+
AllCounted: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
beneficiary: {
|
|
73
|
+
parents: number;
|
|
74
|
+
interior: {
|
|
75
|
+
X1: any;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
BuyExecution?: undefined;
|
|
80
|
+
SetTopic?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
SetTopic: string | undefined;
|
|
83
|
+
BuyExecution?: undefined;
|
|
84
|
+
DepositAsset?: undefined;
|
|
85
|
+
})[];
|
|
86
|
+
};
|
|
87
|
+
SetAppendix?: undefined;
|
|
88
|
+
SetTopic?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
SetTopic: string | undefined;
|
|
91
|
+
SetAppendix?: undefined;
|
|
92
|
+
InitiateReserveWithdraw?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
WithdrawAsset: ({
|
|
95
|
+
id: {
|
|
96
|
+
parents: number;
|
|
97
|
+
interior: string;
|
|
98
|
+
};
|
|
99
|
+
fun: {
|
|
100
|
+
Fungible: bigint;
|
|
101
|
+
};
|
|
102
|
+
} | {
|
|
103
|
+
id: Record<string, any> | {
|
|
104
|
+
Concrete: {};
|
|
105
|
+
};
|
|
106
|
+
fun: {
|
|
107
|
+
Fungible: bigint;
|
|
108
|
+
};
|
|
109
|
+
})[];
|
|
110
|
+
ClearOrigin?: undefined;
|
|
111
|
+
BuyExecution?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
ClearOrigin: null;
|
|
114
|
+
WithdrawAsset?: undefined;
|
|
115
|
+
BuyExecution?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
BuyExecution: {
|
|
118
|
+
fees: {
|
|
119
|
+
id: {
|
|
120
|
+
parents: number;
|
|
121
|
+
interior: string;
|
|
122
|
+
};
|
|
123
|
+
fun: {
|
|
124
|
+
Fungible: bigint;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
weightLimit: string;
|
|
128
|
+
};
|
|
129
|
+
WithdrawAsset?: undefined;
|
|
130
|
+
ClearOrigin?: undefined;
|
|
131
|
+
})[];
|
|
132
|
+
}>;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Asset, Parachain } from '@galacticcouncil/xc-core';
|
|
2
|
+
export declare function buildParaERC20Received(asset: Asset, chain: Parachain): Promise<{
|
|
3
|
+
V4: ({
|
|
4
|
+
ReserveAssetDeposited: ({
|
|
5
|
+
id: {
|
|
6
|
+
parents: number;
|
|
7
|
+
interior: string;
|
|
8
|
+
};
|
|
9
|
+
fun: {
|
|
10
|
+
Fungible: bigint;
|
|
11
|
+
};
|
|
12
|
+
} | {
|
|
13
|
+
id: Record<string, any> | {
|
|
14
|
+
Concrete: {};
|
|
15
|
+
};
|
|
16
|
+
fun: {
|
|
17
|
+
Fungible: bigint;
|
|
18
|
+
};
|
|
19
|
+
})[];
|
|
20
|
+
ClearOrigin?: undefined;
|
|
21
|
+
BuyExecution?: undefined;
|
|
22
|
+
DepositAsset?: undefined;
|
|
23
|
+
SetTopic?: undefined;
|
|
24
|
+
} | {
|
|
25
|
+
ClearOrigin: null;
|
|
26
|
+
ReserveAssetDeposited?: undefined;
|
|
27
|
+
BuyExecution?: undefined;
|
|
28
|
+
DepositAsset?: undefined;
|
|
29
|
+
SetTopic?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
BuyExecution: {
|
|
32
|
+
fees: {
|
|
33
|
+
id: {
|
|
34
|
+
parents: number;
|
|
35
|
+
interior: string;
|
|
36
|
+
};
|
|
37
|
+
fun: {
|
|
38
|
+
Fungible: bigint;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
weightLimit: string;
|
|
42
|
+
};
|
|
43
|
+
ReserveAssetDeposited?: undefined;
|
|
44
|
+
ClearOrigin?: undefined;
|
|
45
|
+
DepositAsset?: undefined;
|
|
46
|
+
SetTopic?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
DepositAsset: {
|
|
49
|
+
assets: {
|
|
50
|
+
Wild: {
|
|
51
|
+
AllCounted: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
beneficiary: {
|
|
55
|
+
parents: number;
|
|
56
|
+
interior: {
|
|
57
|
+
X1: {
|
|
58
|
+
AccountId32: {
|
|
59
|
+
id: string;
|
|
60
|
+
network: null;
|
|
61
|
+
};
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
ReserveAssetDeposited?: undefined;
|
|
67
|
+
ClearOrigin?: undefined;
|
|
68
|
+
BuyExecution?: undefined;
|
|
69
|
+
SetTopic?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
SetTopic: string;
|
|
72
|
+
ReserveAssetDeposited?: undefined;
|
|
73
|
+
ClearOrigin?: undefined;
|
|
74
|
+
BuyExecution?: undefined;
|
|
75
|
+
DepositAsset?: undefined;
|
|
76
|
+
})[];
|
|
77
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const AMOUNT_MAX = 340282366920938463463374607431768211455n;
|
|
2
|
+
export declare const TOPIC = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
3
|
+
export declare const DOT_LOCATION: {
|
|
4
|
+
parents: number;
|
|
5
|
+
interior: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const RELAY_ID = 0;
|
|
8
|
+
export declare const ASSET_HUB_ID = 1000;
|
|
9
|
+
export declare const BRIDGE_HUB_ID = 1002;
|
|
10
|
+
export declare const ETHEREUM_CHAIN_ID = 1;
|
|
11
|
+
export declare const ACCOUNT_SS_58 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
|
|
12
|
+
export declare const ACCOUNT_ID_32 = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
13
|
+
export declare const ACCOUNT_KEY_20 = "0x0000000000000000000000000000000000000000";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { ethereumXcm } from './ethereumXcm';
|
|
2
|
+
export { polkadotXcm } from './polkadotXcm';
|
|
3
|
+
export { xcmPallet } from './xcmPallet';
|
|
4
|
+
export { xTokens } from './/xTokens';
|
|
5
|
+
export { xTransfer } from './/xTransfer';
|
|
6
|
+
export * from './builder';
|
|
7
|
+
export * from './types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExtrinsicConfigBuilder } from '@galacticcouncil/xc-core';
|
|
2
|
+
import { XcmTransferType } from './types';
|
|
3
|
+
type TransferOpts = {
|
|
4
|
+
transferType: XcmTransferType;
|
|
5
|
+
};
|
|
6
|
+
type TransactOpts = {
|
|
7
|
+
fee: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const polkadotXcm: () => {
|
|
10
|
+
limitedReserveTransferAssets: () => ExtrinsicConfigBuilder;
|
|
11
|
+
limitedTeleportAssets: () => ExtrinsicConfigBuilder;
|
|
12
|
+
reserveTransferAssets: () => ExtrinsicConfigBuilder;
|
|
13
|
+
transferAssets: () => ExtrinsicConfigBuilder;
|
|
14
|
+
transferAssetsUsingTypeAndThen: (opts: TransferOpts) => ExtrinsicConfigBuilder;
|
|
15
|
+
send: () => {
|
|
16
|
+
transact: (opts: TransactOpts) => ExtrinsicConfigBuilder;
|
|
17
|
+
transferAsset: (opts: TransactOpts) => ExtrinsicConfigBuilder;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {};
|