@galacticcouncil/xc-cfg 1.6.0-pr340-47728eb → 1.6.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.
@@ -1,7 +1,5 @@
1
- export type SnowbridgeFast = boolean;
2
1
  export declare const SNOWBRIDGE_BASE_DISPATCH_GAS = 80000n;
3
2
  export declare const SNOWBRIDGE_BASE_VERIFICATION_GAS = 120000n;
4
3
  export declare const SNOWBRIDGE_TOKEN_DELIVERY_GAS = 100000n;
5
- export declare const SNOWBRIDGE_SUBMIT_GAS = 1000000n;
6
- export declare const SNOWBRIDGE_FIAT_SHAMIR_GAS = 2000000n;
4
+ export declare const SNOWBRIDGE_SUBMIT_GAS = 2000000n;
7
5
  export declare const ASSETHUB_ETHER_ED = 15000000000000n;
@@ -1,2 +1 @@
1
1
  export * from './constants';
2
- export * from './volumeFee';
@@ -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
  calculateInboundFeeV1: (opts: SendFeeOpts) => FeeAmountConfigBuilder;
19
15
  calculateOutboundFeeV1: (opts: SendFeeOpts) => FeeAmountConfigBuilder;
20
16
  };
@@ -1,2 +1 @@
1
1
  export declare function padFeeByPercentage(fee: bigint, padPercent: bigint): bigint;
2
- export declare function scaledPadPercentage(staticPadPercent: bigint, tip: bigint, rawCost: bigint): bigint;
@@ -3,6 +3,7 @@ import { XcmTransferType } from '../../../builders';
3
3
  export declare const MRL_EXECUTION_FEE = 0.9;
4
4
  export declare const MRL_XCM_FEE = 1;
5
5
  export declare const GLMR_MIN_DEST_FEE = 1;
6
+ export declare const HUB_EXT_USDT_DEST_FEE = 0.02;
6
7
  export declare function toTransferTemplate(asset: Asset, destination: AnyChain, reserve?: Parachain): AssetRoute;
7
8
  export declare function toParaTemplate(asset: Asset, destination: AnyChain, feeAmount: number): AssetRoute;
8
9
  export declare function toHubTemplate(asset: Asset, hub: Parachain): AssetRoute;
@@ -11,7 +12,5 @@ export declare function toKusamaHubTemplate(asset: Asset, destFee: number, execu
11
12
  export declare function toParaErc20Template(asset: Asset, destination: Parachain, transferType?: XcmTransferType): AssetRoute;
12
13
  export declare function toMoonbeamErc20Template(asset: Asset): AssetRoute;
13
14
  export declare function viaWormholeBridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;
14
- export declare function viaSnowbridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain, opts?: {
15
- fast?: boolean;
16
- }): AssetRoute;
15
+ export declare function viaSnowbridgeTemplate(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;
17
16
  export declare function viaSnowbridgeV1Template(assetIn: Asset, assetOut: Asset, to: AnyChain): AssetRoute;