@moonbeam-network/xcm-config 1.0.0-dev.282 → 1.0.0-dev.283

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Asset, AnyChain, SetOptional, ChainAsset, AnyAsset, AnyParachain, Ecosystem, Parachain, EvmParachain, EvmChain } from '@moonbeam-network/xcm-types';
2
- import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder, BridgeFeeConfigBuilder } from '@moonbeam-network/xcm-builder';
2
+ import { BalanceConfigBuilder, AssetMinConfigBuilder, FeeConfigBuilder, ContractConfigBuilder, ExtrinsicConfigBuilder, EventMonitoringConfig, MrlConfigBuilder, ProtocolFeeConfigBuilder } from '@moonbeam-network/xcm-builder';
3
3
 
4
4
  declare const aca: Asset;
5
5
  declare const agng: Asset;
@@ -153,12 +153,12 @@ interface MrlAssetRouteConstructorParams extends AssetRouteConstructorParams {
153
153
  mrl: MrlConfig;
154
154
  }
155
155
  interface MrlConfig {
156
- isAutomaticPossible: boolean;
156
+ isAutomaticPossible?: boolean;
157
157
  transfer: MrlConfigBuilder;
158
158
  bridgeChain: BridgeChainConfig;
159
159
  }
160
160
  interface ProtocolFeeConfig {
161
- amount: number | BridgeFeeConfigBuilder;
161
+ amount: number | ProtocolFeeConfigBuilder;
162
162
  asset: Asset;
163
163
  balance: BalanceConfigBuilder;
164
164
  }
@@ -180,7 +180,9 @@ interface BridgeChainFeeConfig extends FeeConfig {
180
180
  amount: number | FeeConfigBuilder;
181
181
  }
182
182
  declare class MrlAssetRoute extends AssetRoute {
183
- readonly mrl: MrlConfig;
183
+ readonly mrl: MrlConfig & {
184
+ isAutomaticPossible: boolean;
185
+ };
184
186
  readonly source: MrlSourceConfig;
185
187
  constructor({ source, destination, contract, extrinsic, mrl, }: MrlAssetRouteConstructorParams & {
186
188
  source: MrlSourceConfig;
package/build/index.mjs CHANGED
@@ -3672,7 +3672,10 @@ var MrlAssetRoute = class extends AssetRoute {
3672
3672
  mrl
3673
3673
  }) {
3674
3674
  super({ source, destination, contract, extrinsic });
3675
- this.mrl = mrl;
3675
+ this.mrl = {
3676
+ ...mrl,
3677
+ isAutomaticPossible: mrl.isAutomaticPossible ?? true
3678
+ };
3676
3679
  this.source = source;
3677
3680
  }
3678
3681
  };