@galacticcouncil/xc-cfg 1.3.0-pr297-5ef0efa → 1.3.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/assets.d.ts CHANGED
@@ -21,7 +21,6 @@ export declare const intr: Asset;
21
21
  export declare const jito_sol: Asset;
22
22
  export declare const ksm: Asset;
23
23
  export declare const ldo: Asset;
24
- export declare const laos: Asset;
25
24
  export declare const lbtc: Asset;
26
25
  export declare const ewt: Asset;
27
26
  export declare const link: Asset;
@@ -11,7 +11,7 @@ export declare function ContractBuilder(): {
11
11
  };
12
12
  PolkadotXcm: typeof PolkadotXcm;
13
13
  Snowbridge: () => {
14
- v2SendMessage: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
14
+ sendToken: () => import("@galacticcouncil/xc-core").ContractConfigBuilder;
15
15
  };
16
16
  Wormhole: typeof Wormhole;
17
17
  };
@@ -22,12 +22,6 @@ export declare function ExtrinsicBuilder(): {
22
22
  transferAssetsUsingTypeAndThen: (opts: {
23
23
  transferType: import(".").XcmTransferType;
24
24
  }) => ExtrinsicConfigBuilder;
25
- execute: {
26
- (messageBuilder: import("./extrinsics/xcm/polkadotXcm").XcmMessageBuilder): ExtrinsicConfigBuilder;
27
- (): {
28
- viaSnowbridge: () => ExtrinsicConfigBuilder;
29
- };
30
- };
31
25
  send: () => {
32
26
  transact: (opts: {
33
27
  fee: number;
@@ -1,5 +1,4 @@
1
1
  import { FeeAmountConfigBuilder, Parachain } from '@galacticcouncil/xc-core';
2
- import { SnowbridgeFast } from '../bridges/snowbridge';
3
2
  declare function TokenRelayer(): {
4
3
  calculateRelayerFee: () => FeeAmountConfigBuilder;
5
4
  };
@@ -9,12 +8,9 @@ declare function Wormhole(): {
9
8
  type SendFeeOpts = {
10
9
  hub: Parachain;
11
10
  };
12
- type OutboundFeeOpts = SendFeeOpts & {
13
- fast?: SnowbridgeFast;
14
- };
15
11
  declare function Snowbridge(): {
16
12
  calculateInboundFee: (opts: SendFeeOpts) => FeeAmountConfigBuilder;
17
- calculateOutboundFee: (opts: OutboundFeeOpts) => FeeAmountConfigBuilder;
13
+ calculateOutboundFee: (opts: SendFeeOpts) => FeeAmountConfigBuilder;
18
14
  };
19
15
  declare function XcmPaymentApi(): {
20
16
  calculateDestFee: (opts?: {
@@ -1,4 +1,4 @@
1
1
  import { ContractConfigBuilder } from '@galacticcouncil/xc-core';
2
2
  export declare const Snowbridge: () => {
3
- v2SendMessage: () => ContractConfigBuilder;
3
+ sendToken: () => ContractConfigBuilder;
4
4
  };
@@ -2,5 +2,3 @@ export * from './const';
2
2
  export * from './buildParaERC20Received';
3
3
  export * from './buildERC20TransferFromPara';
4
4
  export * from './buildLimitedReserveTransfer';
5
- export * from './buildParaERC20ReceivedV5';
6
- export * from './Snowbridge';
@@ -1,5 +1,4 @@
1
- import { ExtrinsicConfigBuilder, ExtrinsicConfigBuilderParams } from '@galacticcouncil/xc-core';
2
- export type XcmMessageBuilder = (params: ExtrinsicConfigBuilderParams) => any;
1
+ import { ExtrinsicConfigBuilder } from '@galacticcouncil/xc-core';
3
2
  import { XcmTransferType } from './types';
4
3
  type TransferOpts = {
5
4
  transferType: XcmTransferType;
@@ -7,17 +6,12 @@ type TransferOpts = {
7
6
  type TransactOpts = {
8
7
  fee: number;
9
8
  };
10
- declare function execute(messageBuilder: XcmMessageBuilder): ExtrinsicConfigBuilder;
11
- declare function execute(): {
12
- viaSnowbridge: () => ExtrinsicConfigBuilder;
13
- };
14
9
  export declare const polkadotXcm: () => {
15
10
  limitedReserveTransferAssets: () => ExtrinsicConfigBuilder;
16
11
  limitedTeleportAssets: () => ExtrinsicConfigBuilder;
17
12
  reserveTransferAssets: () => ExtrinsicConfigBuilder;
18
13
  transferAssets: () => ExtrinsicConfigBuilder;
19
14
  transferAssetsUsingTypeAndThen: (opts: TransferOpts) => ExtrinsicConfigBuilder;
20
- execute: typeof execute;
21
15
  send: () => {
22
16
  transact: (opts: TransactOpts) => ExtrinsicConfigBuilder;
23
17
  transferAsset: (opts: TransactOpts) => ExtrinsicConfigBuilder;
@@ -6,7 +6,6 @@ import { bifrost } from './bifrost';
6
6
  import { crust } from './crust';
7
7
  import { hydration } from './hydration';
8
8
  import { interlay } from './interlay';
9
- import { laos_chain } from './laos';
10
9
  import { moonbeam } from './moonbeam';
11
10
  import { mythos } from './mythos';
12
11
  import { neuroweb } from './neuroweb';
@@ -15,4 +14,4 @@ import { polkadot } from './polkadot';
15
14
  import { unique } from './unique';
16
15
  import { energywebx } from './energywebx';
17
16
  export declare const polkadotChains: AnyChain[];
18
- export { ajuna, assetHub, assetHubCex, astar, bifrost, crust, hydration, laos_chain, neuroweb, interlay, moonbeam, mythos, pendulum, polkadot, unique, energywebx, };
17
+ export { ajuna, assetHub, assetHubCex, astar, bifrost, crust, hydration, neuroweb, interlay, moonbeam, mythos, pendulum, polkadot, unique, energywebx, };
@@ -1,6 +1,6 @@
1
1
  import { ChainDefinition, TypedApi } from 'polkadot-api';
2
2
  import { Asset, Parachain } from '@galacticcouncil/xc-core';
3
- import { hub, XcmV4Instruction, XcmV5Instruction } from '@galacticcouncil/descriptors';
3
+ import { hub, XcmV4Instruction } from '@galacticcouncil/descriptors';
4
4
  export declare class BaseClient<C extends ChainDefinition = typeof hub> {
5
5
  readonly chain: Parachain;
6
6
  protected descriptor: C;
@@ -10,5 +10,4 @@ export declare class BaseClient<C extends ChainDefinition = typeof hub> {
10
10
  private get refApi();
11
11
  getSystemAccountBalance(address: string): Promise<bigint>;
12
12
  calculateDestinationFee(xcm: XcmV4Instruction[], asset: Asset): Promise<bigint>;
13
- calculateDestinationFeeV5(xcm: XcmV5Instruction[], asset: Asset): Promise<bigint>;
14
13
  }
@@ -1,9 +1,5 @@
1
1
  import { Asset, Parachain } from '@galacticcouncil/xc-core';
2
2
  import { XcmV4Instruction, Hub } from '@galacticcouncil/descriptors';
3
- type AssetLocation = {
4
- parents: number;
5
- interior: any;
6
- };
7
3
  import { BaseClient } from '../base';
8
4
  export declare class AssethubClient extends BaseClient<Hub> {
9
5
  constructor(chain: Parachain);
@@ -14,8 +10,4 @@ export declare class AssethubClient extends BaseClient<Hub> {
14
10
  defaultFee: bigint;
15
11
  }): Promise<bigint>;
16
12
  calculateDeliveryFee(xcm: XcmV4Instruction[], destParachainId: number): Promise<bigint>;
17
- quoteDotToEther(etherLocation: AssetLocation, dotAmount: bigint): Promise<bigint>;
18
- quoteEtherForDot(etherLocation: AssetLocation, dotAmount: bigint): Promise<bigint>;
19
- quoteDotForExactEther(etherLocation: AssetLocation, etherAmount: bigint): Promise<bigint>;
20
13
  }
21
- export {};
@@ -10,6 +10,4 @@ export declare function toHubExtTemplate(asset: Asset): AssetRoute;
10
10
  export declare function toParaErc20Template(asset: Asset, destination: Parachain, transferType?: XcmTransferType): AssetRoute;
11
11
  export declare function toMoonbeamErc20Template(asset: Asset): AssetRoute;
12
12
  export declare function viaWormholeBridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;
13
- export declare function viaSnowbridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain, opts?: {
14
- fast?: boolean;
15
- }): AssetRoute;
13
+ export declare function viaSnowbridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;