@moonbeam-network/xcm-builder 1.0.0-dev.284 → 1.0.0-dev.285

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
@@ -417,7 +417,7 @@ declare function eqBalances(): {
417
417
  transferXcm: () => ExtrinsicConfigBuilder;
418
418
  };
419
419
 
420
- declare function polkadotXcm$2(): {
420
+ declare function polkadotXcm$1(): {
421
421
  limitedReserveTransferAssets: () => {
422
422
  here: () => ExtrinsicConfigBuilder;
423
423
  X1: () => ExtrinsicConfigBuilder;
@@ -478,7 +478,7 @@ declare function ExtrinsicBuilder(): {
478
478
  eqBalances: typeof eqBalances;
479
479
  xTokens: typeof xTokens;
480
480
  xTransfer: typeof xTransfer;
481
- polkadotXcm: typeof polkadotXcm$2;
481
+ polkadotXcm: typeof polkadotXcm$1;
482
482
  xcmPallet: typeof xcmPallet$1;
483
483
  };
484
484
 
@@ -494,7 +494,7 @@ declare class SubstrateCallConfig {
494
494
  }
495
495
 
496
496
  type FeeConfigBuilder = ConfigBuilder<SubstrateCallConfig | ContractConfig, FeeConfigBuilderParams>;
497
- type ProtocolFeeConfigBuilder = ConfigBuilder<SubstrateQueryConfig | ContractConfig, ProtocolFeeConfigBuilderParams>;
497
+ type BridgeFeeConfigBuilder = ConfigBuilder<SubstrateQueryConfig | ContractConfig, BridgeFeeConfigBuilderParams>;
498
498
  interface FeeConfigBuilderParams {
499
499
  address: string;
500
500
  api: ApiPromise;
@@ -504,8 +504,13 @@ interface FeeConfigBuilderParams {
504
504
  feeAsset: ChainAsset;
505
505
  source: AnyChain;
506
506
  }
507
- interface ProtocolFeeConfigBuilderParams extends Omit<FeeConfigBuilderParams, 'api'> {
508
- bridgeChainFee: AssetAmount;
507
+ interface BridgeFeeConfigBuilderParams {
508
+ asset: ChainAsset;
509
+ feeAsset: ChainAsset;
510
+ address: string;
511
+ balance?: AssetAmount;
512
+ destination: AnyChain;
513
+ source: AnyChain;
509
514
  }
510
515
  interface XcmPaymentFeeProps {
511
516
  isAssetReserveChain: boolean;
@@ -521,14 +526,11 @@ interface MoonbeamRuntimeXcmConfigAssetType extends Enum {
521
526
  type GetVersionedAssetId = (params: FeeConfigBuilderParams) => Promise<object> | object;
522
527
 
523
528
  declare function gateway(): {
524
- quoteSendTokenFee(): ProtocolFeeConfigBuilder;
529
+ quoteSendTokenFee(): BridgeFeeConfigBuilder;
525
530
  };
526
531
 
527
532
  declare function outboundQueueApi(): {
528
- calculateFee: () => {
529
- mintForeignToken: () => ProtocolFeeConfigBuilder;
530
- agentExecute: () => ProtocolFeeConfigBuilder;
531
- };
533
+ calculateFee: () => BridgeFeeConfigBuilder;
532
534
  };
533
535
 
534
536
  declare function xcmPaymentApi(): {
@@ -605,8 +607,8 @@ interface SnowbridgeFunctionArgs {
605
607
  destinationParaId: number;
606
608
  amount: bigint;
607
609
  bridgeFeeAmount: bigint;
608
- bridgeChainFee: bigint;
609
610
  requiresApproval: boolean;
611
+ value: bigint;
610
612
  }
611
613
  interface SnowbridgeConfigConstructorParams {
612
614
  args: SnowbridgeFunctionArgs;
@@ -1738,7 +1740,6 @@ type MrlExecuteConfigBuilder = ConfigBuilder<ContractConfig, MrlExecuteBuilderPa
1738
1740
  interface MrlBuilderParams extends BuilderParams<AnyChain> {
1739
1741
  isAutomatic: boolean;
1740
1742
  protocolFee?: AssetAmount;
1741
- bridgeChainFee?: AssetAmount;
1742
1743
  moonApi: ApiPromise;
1743
1744
  moonAsset: ChainAsset;
1744
1745
  bridgeChain: AnyParachain;
@@ -1770,12 +1771,6 @@ declare function ethereumTokenTransfers(): {
1770
1771
  transferNativeToken: () => MrlConfigBuilder;
1771
1772
  };
1772
1773
 
1773
- declare function polkadotXcm$1(): {
1774
- transferAssetsUsingTypeAndThen: () => {
1775
- canonicalEth: () => MrlConfigBuilder;
1776
- };
1777
- };
1778
-
1779
1774
  declare function xcmPallet(): {
1780
1775
  transferAssets: () => {
1781
1776
  globalConsensus: () => MrlConfigBuilder;
@@ -1786,7 +1781,6 @@ declare function xcmPallet(): {
1786
1781
  declare function extrinsic$1(): {
1787
1782
  ethereumTokenTransfers: typeof ethereumTokenTransfers;
1788
1783
  xcmPallet: typeof xcmPallet;
1789
- polkadotXcm: typeof polkadotXcm$1;
1790
1784
  };
1791
1785
 
1792
1786
  declare function snowbridge(): {
@@ -1931,4 +1925,4 @@ declare function MrlBuilder(): {
1931
1925
 
1932
1926
  declare const BATCH_CONTRACT_ADDRESS = "0x0000000000000000000000000000000000000808";
1933
1927
 
1934
- export { type AssetAddressFormat, AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, type AssetMultilocation, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, type DestinationMultilocation, ERC20_ABI, type EquilibriumSystemBalanceData, type EventMonitoringConfig, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, GATEWAY_ABI, type GetVersionedAssetId, MonitoringBuilder, type MonitoringBuilderConfig, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type MrlTransferConfig, type PalletBalancesAccountDataOld, type Parents, type ProtocolFeeConfigBuilder, type ProtocolFeeConfigBuilderParams, Protocols, Provider, type QueryConfigConstructorParams, SnowbridgeConfig, type SnowbridgeConfigConstructorParams, type SnowbridgeFunctionArgs, type SnowbridgeFunctions, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, TransferType, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, snowbridge, substrate, wormhole, wormholeFactory };
1928
+ export { type AssetAddressFormat, AssetMinBuilder, type AssetMinConfigBuilder, type AssetMinConfigBuilderParams, type AssetMultilocation, BATCH_CONTRACT_ABI, BATCH_CONTRACT_ADDRESS, BalanceBuilder, type BalanceBuilderParams, type BalanceConfigBuilder, type BridgeFeeConfigBuilder, type BridgeFeeConfigBuilderParams, type BuilderParams, type ConfigBuilder, ContractBuilder, ContractConfig, type ContractConfigBuilder, type ContractConfigConstructorParams, type DestinationMultilocation, ERC20_ABI, type EquilibriumSystemBalanceData, type EventMonitoringConfig, type EvmFunctionArgs, EvmQueryConfig, type EvmQueryConfigParams, type EvmQueryFunctions, ExtrinsicBuilder, ExtrinsicConfig, type ExtrinsicConfigBuilder, type ExtrinsicConfigConstructorParams, FeeBuilder, type FeeConfigBuilder, type FeeConfigBuilderParams, GATEWAY_ABI, type GetVersionedAssetId, MonitoringBuilder, type MonitoringBuilderConfig, type MoonbeamRuntimeXcmConfigAssetType, MrlBuilder, type MrlBuilderParams, type MrlConfigBuilder, type MrlExecuteBuilderParams, type MrlExecuteConfigBuilder, type MrlTransferConfig, type PalletBalancesAccountDataOld, type Parents, Protocols, Provider, type QueryConfigConstructorParams, SnowbridgeConfig, type SnowbridgeConfigConstructorParams, type SnowbridgeFunctionArgs, type SnowbridgeFunctions, SubstrateCallConfig, type SubstrateCallConfigConstructorParams, SubstrateQueryConfig, type TokensPalletAccountData, type Transact, TransferType, WormholeConfig, type WormholeConfigConstructorParams, type WormholeFunctionArgs, type WormholeTransferFunctions, type XcmPaymentFeeProps, XcmVersion, calculateSystemAccountBalance, evm, snowbridge, substrate, wormhole, wormholeFactory };
package/build/index.mjs CHANGED
@@ -119,11 +119,11 @@ function AssetMinBuilder() {
119
119
  };
120
120
  }
121
121
  function assetRegistry() {
122
- const pallet9 = "assetRegistry";
122
+ const pallet8 = "assetRegistry";
123
123
  return {
124
124
  assetMetadatas: () => ({
125
125
  build: ({ asset }) => new SubstrateQueryConfig({
126
- module: pallet9,
126
+ module: pallet8,
127
127
  func: "assetMetadatas",
128
128
  args: [asset],
129
129
  // biome-ignore lint/suspicious/noExplicitAny: not sure how to fix this
@@ -132,7 +132,7 @@ function assetRegistry() {
132
132
  }),
133
133
  currencyMetadatas: () => ({
134
134
  build: ({ asset }) => new SubstrateQueryConfig({
135
- module: pallet9,
135
+ module: pallet8,
136
136
  func: "currencyMetadatas",
137
137
  args: [asset],
138
138
  // biome-ignore lint/suspicious/noExplicitAny: not sure how to fix this
@@ -141,7 +141,7 @@ function assetRegistry() {
141
141
  }),
142
142
  metadata: () => ({
143
143
  build: ({ asset }) => new SubstrateQueryConfig({
144
- module: pallet9,
144
+ module: pallet8,
145
145
  func: "metadata",
146
146
  args: [asset],
147
147
  // biome-ignore lint/suspicious/noExplicitAny: not sure how to fix this
@@ -3912,7 +3912,7 @@ function gateway() {
3912
3912
  return {
3913
3913
  quoteSendTokenFee() {
3914
3914
  return {
3915
- build: ({ asset, destination, source, bridgeChainFee }) => {
3915
+ build: ({ asset, destination, source }) => {
3916
3916
  if (!asset.address) {
3917
3917
  throw new Error(`Asset ${asset.key} has no address`);
3918
3918
  }
@@ -3929,11 +3929,7 @@ function gateway() {
3929
3929
  return new ContractConfig({
3930
3930
  address: source.contracts.Gateway,
3931
3931
  abi: GATEWAY_ABI,
3932
- args: [
3933
- asset.address,
3934
- destination.parachainId,
3935
- bridgeChainFee.amount
3936
- ],
3932
+ args: [asset.address, destination.parachainId, 0n],
3937
3933
  func: "quoteSendTokenFee",
3938
3934
  module: "Gateway"
3939
3935
  });
@@ -3946,8 +3942,8 @@ function gateway() {
3946
3942
  // src/fee/outboundQueueApi/outboundQueueApi.ts
3947
3943
  function outboundQueueApi() {
3948
3944
  return {
3949
- calculateFee: () => ({
3950
- mintForeignToken: () => ({
3945
+ calculateFee: () => {
3946
+ return {
3951
3947
  build: ({ address, balance, feeAsset }) => {
3952
3948
  const args = [
3953
3949
  {
@@ -3967,34 +3963,8 @@ function outboundQueueApi() {
3967
3963
  transform: async (data) => data.local.toBigInt() + data.remote.toBigInt()
3968
3964
  });
3969
3965
  }
3970
- }),
3971
- agentExecute: () => ({
3972
- build: ({ address, balance, destination }) => {
3973
- const assetInDestination = balance ? destination.getChainAsset(balance) : void 0;
3974
- const args = [
3975
- {
3976
- AgentExecute: {
3977
- agentId: "0x0000000000000000000000000000000000000000000000000000000000000000",
3978
- // actual value is not important
3979
- TokenTransfer: {
3980
- tokenId: assetInDestination?.address,
3981
- recipient: address,
3982
- amount: balance?.amount
3983
- }
3984
- }
3985
- },
3986
- null
3987
- ];
3988
- return new SubstrateQueryConfig({
3989
- module: "outboundQueueApi",
3990
- func: "calculateFee",
3991
- args,
3992
- queryType: "call",
3993
- transform: async (data) => data.local.toBigInt() + data.remote.toBigInt()
3994
- });
3995
- }
3996
- })
3997
- })
3966
+ };
3967
+ }
3998
3968
  };
3999
3969
  }
4000
3970
 
@@ -4745,54 +4715,34 @@ function Gateway() {
4745
4715
  return {
4746
4716
  sendToken: () => ({
4747
4717
  provider,
4748
- build: ({
4749
- asset,
4750
- destinationAddress,
4751
- protocolFee,
4752
- destination,
4753
- bridgeChainFee
4754
- }) => callSendToken(
4755
- asset,
4756
- protocolFee,
4757
- destination,
4758
- destinationAddress,
4759
- bridgeChainFee
4760
- )
4718
+ build: ({ asset, destinationAddress, protocolFee, destination }) => callSendToken(asset, protocolFee, destination, destinationAddress)
4761
4719
  }),
4762
4720
  approveAndSendToken: () => ({
4763
4721
  provider,
4764
- build: ({
4765
- asset,
4766
- destinationAddress,
4767
- protocolFee,
4768
- destination,
4769
- bridgeChainFee
4770
- }) => {
4722
+ build: ({ asset, destinationAddress, protocolFee, destination }) => {
4771
4723
  const requiresApproval = protocolFee && !protocolFee.isSame(asset);
4772
4724
  return callSendToken(
4773
4725
  asset,
4774
4726
  protocolFee,
4775
4727
  destination,
4776
4728
  destinationAddress,
4777
- bridgeChainFee,
4778
4729
  requiresApproval
4779
4730
  );
4780
4731
  }
4781
4732
  })
4782
4733
  };
4783
4734
  }
4784
- function callSendToken(asset, protocolFee, destination, destinationAddress, bridgeChainFee, requiresApproval = false) {
4735
+ function callSendToken(asset, protocolFee, destination, destinationAddress, requiresApproval = false) {
4785
4736
  if (!protocolFee) {
4786
4737
  throw new Error("Protocol fee is required for Gateway module");
4787
4738
  }
4788
- if (!bridgeChainFee) {
4789
- throw new Error("Bridge chain fee is required for Gateway module");
4790
- }
4791
4739
  if (!EvmParachain4.isAnyParachain(destination)) {
4792
4740
  throw new Error(
4793
4741
  "Destination must be a Parachain or EvmParachain for sending token with Gateway module"
4794
4742
  );
4795
4743
  }
4744
+ const isDifferentAsset = !asset.isSame(protocolFee);
4745
+ const value = requiresApproval || isDifferentAsset ? protocolFee.amount : asset.amount + protocolFee.amount;
4796
4746
  return new SnowbridgeConfig({
4797
4747
  args: {
4798
4748
  tokenAddress: asset.address,
@@ -4800,8 +4750,8 @@ function callSendToken(asset, protocolFee, destination, destinationAddress, brid
4800
4750
  destinationParaId: destination.parachainId,
4801
4751
  amount: asset.amount,
4802
4752
  bridgeFeeAmount: protocolFee.amount,
4803
- bridgeChainFee: bridgeChainFee.amount,
4804
- requiresApproval
4753
+ requiresApproval,
4754
+ value
4805
4755
  },
4806
4756
  func: "sendToken"
4807
4757
  });
@@ -4833,165 +4783,8 @@ function ethereumTokenTransfers() {
4833
4783
  };
4834
4784
  }
4835
4785
 
4836
- // src/mrl/providers/snowbridge/extrinsic/polkadotXcm/polkadotXcm.ts
4837
- import { EvmChain as EvmChain2 } from "@moonbeam-network/xcm-types";
4838
- var pallet7 = "polkadotXcm";
4839
- function polkadotXcm2() {
4840
- return {
4841
- transferAssetsUsingTypeAndThen: () => {
4842
- const func = "transferAssetsUsingTypeAndThen";
4843
- const provider = "snowbridge" /* Snowbridge */;
4844
- return {
4845
- canonicalEth: () => ({
4846
- provider,
4847
- build: ({ asset, destination, destinationAddress, protocolFee }) => {
4848
- if (!EvmChain2.is(destination)) {
4849
- throw new Error(
4850
- "Destination must be an EVM chain for globalConsensus function"
4851
- );
4852
- }
4853
- if (!protocolFee) {
4854
- throw new Error(
4855
- "Bridge chain fee is required for the polkadotXcm.canonicalEth function"
4856
- );
4857
- }
4858
- const protocolFeeAmount = protocolFee.amount * 110n / 100n;
4859
- return new ExtrinsicConfig({
4860
- module: pallet7,
4861
- func,
4862
- getArgs: (extrinsicFunction) => {
4863
- const version = getExtrinsicArgumentVersion(extrinsicFunction);
4864
- const dest = {
4865
- [version]: {
4866
- parents: 1,
4867
- interior: "Here"
4868
- }
4869
- };
4870
- const assets3 = {
4871
- [version]: [
4872
- {
4873
- id: {
4874
- parents: 1,
4875
- interior: "Here"
4876
- },
4877
- fun: { Fungible: protocolFeeAmount }
4878
- },
4879
- {
4880
- id: {
4881
- parents: 2,
4882
- interior: {
4883
- X1: [
4884
- {
4885
- GlobalConsensus: {
4886
- Ethereum: { chainId: destination.id }
4887
- }
4888
- }
4889
- ]
4890
- }
4891
- },
4892
- fun: { Fungible: asset.amount }
4893
- }
4894
- ]
4895
- };
4896
- const assetsTransferType = 2 /* DestinationReserve */;
4897
- const remoteFeesId = {
4898
- [version]: {
4899
- parents: 1,
4900
- interior: "Here"
4901
- }
4902
- };
4903
- const feesTransferType = 2 /* DestinationReserve */;
4904
- const customXcmOnDest = {
4905
- [version]: [
4906
- {
4907
- InitiateReserveWithdraw: {
4908
- assets: {
4909
- Definite: [
4910
- {
4911
- id: {
4912
- parents: 1,
4913
- interior: {
4914
- X1: [
4915
- {
4916
- GlobalConsensus: {
4917
- Ethereum: { chainId: destination.id }
4918
- }
4919
- }
4920
- ]
4921
- }
4922
- },
4923
- fun: { Fungible: asset.amount }
4924
- }
4925
- ]
4926
- },
4927
- reserve: {
4928
- parents: 1,
4929
- interior: {
4930
- X1: [
4931
- {
4932
- GlobalConsensus: {
4933
- Ethereum: { chainId: destination.id }
4934
- }
4935
- }
4936
- ]
4937
- }
4938
- },
4939
- xcm: [
4940
- {
4941
- DepositAsset: {
4942
- assets: {
4943
- Definite: [
4944
- {
4945
- id: {
4946
- parents: 0,
4947
- interior: "Here"
4948
- },
4949
- fun: { Fungible: asset.amount }
4950
- }
4951
- ]
4952
- },
4953
- beneficiary: {
4954
- parents: 0,
4955
- interior: {
4956
- X1: [
4957
- {
4958
- AccountKey20: {
4959
- network: {
4960
- Ethereum: { chainId: destination.id }
4961
- },
4962
- key: destinationAddress
4963
- }
4964
- }
4965
- ]
4966
- }
4967
- }
4968
- }
4969
- }
4970
- ]
4971
- }
4972
- }
4973
- ]
4974
- };
4975
- return [
4976
- dest,
4977
- assets3,
4978
- assetsTransferType,
4979
- remoteFeesId,
4980
- feesTransferType,
4981
- customXcmOnDest,
4982
- "Unlimited"
4983
- ];
4984
- }
4985
- });
4986
- }
4987
- })
4988
- };
4989
- }
4990
- };
4991
- }
4992
-
4993
4786
  // src/mrl/providers/snowbridge/extrinsic/xcmPallet/xcmPallet.ts
4994
- import { EvmChain as EvmChain3 } from "@moonbeam-network/xcm-types";
4787
+ import { EvmChain as EvmChain2 } from "@moonbeam-network/xcm-types";
4995
4788
 
4996
4789
  // src/mrl/providers/snowbridge/extrinsic/xcmPallet/xcmPallet.utils.ts
4997
4790
  function getGlobalConsensusArgs({
@@ -5044,7 +4837,7 @@ function getGlobalConsensusArgs({
5044
4837
  }
5045
4838
 
5046
4839
  // src/mrl/providers/snowbridge/extrinsic/xcmPallet/xcmPallet.ts
5047
- var pallet8 = "xcmPallet";
4840
+ var pallet7 = "xcmPallet";
5048
4841
  function xcmPallet2() {
5049
4842
  return {
5050
4843
  transferAssets: () => {
@@ -5054,13 +4847,13 @@ function xcmPallet2() {
5054
4847
  globalConsensus: () => ({
5055
4848
  provider,
5056
4849
  build: ({ asset, destination, destinationAddress }) => {
5057
- if (!EvmChain3.is(destination)) {
4850
+ if (!EvmChain2.is(destination)) {
5058
4851
  throw new Error(
5059
4852
  "Destination must be an EVM chain for globalConsensus function"
5060
4853
  );
5061
4854
  }
5062
4855
  return new ExtrinsicConfig({
5063
- module: pallet8,
4856
+ module: pallet7,
5064
4857
  func,
5065
4858
  getArgs: (extrinsicFunction) => {
5066
4859
  const assets3 = [
@@ -5093,14 +4886,14 @@ function xcmPallet2() {
5093
4886
  globalConsensusErc20: () => ({
5094
4887
  provider,
5095
4888
  build: ({ asset, destination, destinationAddress }) => {
5096
- if (!EvmChain3.is(destination)) {
4889
+ if (!EvmChain2.is(destination)) {
5097
4890
  throw new Error(
5098
4891
  "Destination must be an EVM chain for globalConsensusErc20 function"
5099
4892
  );
5100
4893
  }
5101
4894
  const assetInDestination = destination.getChainAsset(asset);
5102
4895
  return new ExtrinsicConfig({
5103
- module: pallet8,
4896
+ module: pallet7,
5104
4897
  func,
5105
4898
  getArgs: (extrinsicFunction) => {
5106
4899
  const assets3 = [
@@ -5145,7 +4938,7 @@ function xcmPallet2() {
5145
4938
 
5146
4939
  // src/mrl/providers/snowbridge/extrinsic/index.ts
5147
4940
  function extrinsic() {
5148
- return { ethereumTokenTransfers, xcmPallet: xcmPallet2, polkadotXcm: polkadotXcm2 };
4941
+ return { ethereumTokenTransfers, xcmPallet: xcmPallet2 };
5149
4942
  }
5150
4943
 
5151
4944
  // src/mrl/providers/snowbridge/index.ts
@@ -5172,7 +4965,7 @@ import {
5172
4965
  import { getMultilocationDerivedAddresses } from "@moonbeam-network/xcm-utils";
5173
4966
  var BUY_EXECUTION_FEE = 100000000000000000n;
5174
4967
  var CROSS_CHAIN_FEE = 100000000000000000n;
5175
- function polkadotXcm3() {
4968
+ function polkadotXcm2() {
5176
4969
  const provider = "wormhole" /* Wormhole */;
5177
4970
  return {
5178
4971
  send: () => ({
@@ -6125,7 +5918,7 @@ var WormholeConfig = class _WormholeConfig {
6125
5918
  };
6126
5919
 
6127
5920
  // src/mrl/providers/wormhole/wormhole/wormhole.ts
6128
- import { EvmChain as EvmChain4, EvmParachain as EvmParachain7, Parachain as Parachain3 } from "@moonbeam-network/xcm-types";
5921
+ import { EvmChain as EvmChain3, EvmParachain as EvmParachain7, Parachain as Parachain3 } from "@moonbeam-network/xcm-types";
6129
5922
  import { getMultilocationDerivedAddresses as getMultilocationDerivedAddresses3 } from "@moonbeam-network/xcm-utils";
6130
5923
  import { evmToAddress as evmToAddress4 } from "@polkadot/util-crypto/address";
6131
5924
  import { Wormhole as Wormhole2 } from "@wormhole-foundation/sdk-connect";
@@ -6166,7 +5959,7 @@ function wormhole() {
6166
5959
  }) => {
6167
5960
  const isSourceParachain = Parachain3.is(source);
6168
5961
  const isDestinationMoonChain = destination.isEqual(moonChain);
6169
- const isDestinationEvmChain = EvmChain4.is(destination);
5962
+ const isDestinationEvmChain = EvmChain3.is(destination);
6170
5963
  const isNativeAsset = asset.isSame(
6171
5964
  isDestinationEvmChain ? moonChain.nativeAsset : source.nativeAsset
6172
5965
  );
@@ -7820,7 +7613,7 @@ function ethereumXcm() {
7820
7613
 
7821
7614
  // src/mrl/providers/wormhole/extrinsic/index.ts
7822
7615
  function extrinsic2() {
7823
- return { ethereumXcm, polkadotXcm: polkadotXcm3 };
7616
+ return { ethereumXcm, polkadotXcm: polkadotXcm2 };
7824
7617
  }
7825
7618
 
7826
7619
  // src/mrl/providers/wormhole/index.ts