@moonbeam-network/xcm-builder 1.0.0-dev.198 → 1.0.0-dev.199

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
@@ -376,10 +376,6 @@ declare function polkadotXcm$1(): {
376
376
  here: () => ExtrinsicConfigBuilder;
377
377
  globalConsensusEthereum: () => ExtrinsicConfigBuilder;
378
378
  };
379
- transferAssetsToEcosystem: () => {
380
- X1: () => ExtrinsicConfigBuilder;
381
- X3: () => ExtrinsicConfigBuilder;
382
- };
383
379
  };
384
380
 
385
381
  declare function xTokens(): {
package/build/index.mjs CHANGED
@@ -1489,7 +1489,6 @@ function getPolkadotXcmExtrinsicArgs({
1489
1489
  }) {
1490
1490
  const version = getExtrinsicArgumentVersion(func);
1491
1491
  return [
1492
- // dest
1493
1492
  {
1494
1493
  [version]: normalizeX1(version, {
1495
1494
  parents,
@@ -1500,7 +1499,6 @@ function getPolkadotXcmExtrinsicArgs({
1500
1499
  }
1501
1500
  })
1502
1501
  },
1503
- // beneficiary
1504
1502
  {
1505
1503
  [version]: normalizeX1(version, {
1506
1504
  parents: 0,
@@ -1509,13 +1507,10 @@ function getPolkadotXcmExtrinsicArgs({
1509
1507
  }
1510
1508
  })
1511
1509
  },
1512
- // assets
1513
1510
  {
1514
1511
  [version]: asset
1515
1512
  },
1516
- // feeAssetItem
1517
1513
  feeIndex,
1518
- // weightLimit
1519
1514
  "Unlimited"
1520
1515
  ];
1521
1516
  }
@@ -1914,151 +1909,6 @@ function polkadotXcm() {
1914
1909
  })
1915
1910
  })
1916
1911
  };
1917
- },
1918
- transferAssetsToEcosystem: () => {
1919
- const func = "transferAssets";
1920
- return {
1921
- X1: () => ({
1922
- build: (params) => {
1923
- return new ExtrinsicConfig({
1924
- module: pallet2,
1925
- func,
1926
- getArgs: (extrinsicFunction) => {
1927
- const version = getExtrinsicArgumentVersion(extrinsicFunction);
1928
- return [
1929
- // dest
1930
- {
1931
- [version]: normalizeX1(version, {
1932
- parents: 2,
1933
- interior: {
1934
- X2: [
1935
- {
1936
- GlobalConsensus: {
1937
- ByGenesis: params.destination.relayGenesisHash
1938
- }
1939
- },
1940
- {
1941
- Parachain: params.destination.parachainId
1942
- }
1943
- ]
1944
- }
1945
- })
1946
- },
1947
- // beneficiary
1948
- {
1949
- [version]: normalizeX1(version, {
1950
- parents: 0,
1951
- interior: {
1952
- X1: getExtrinsicAccount(params.destinationAddress)
1953
- }
1954
- })
1955
- },
1956
- // assets
1957
- {
1958
- [version]: [
1959
- {
1960
- id: normalizeConcrete(
1961
- version,
1962
- normalizeX1(version, {
1963
- parents: 0,
1964
- interior: {
1965
- X1: {
1966
- PalletInstance: params.asset.getAssetPalletInstance()
1967
- }
1968
- }
1969
- })
1970
- ),
1971
- fun: {
1972
- Fungible: params.asset.amount
1973
- }
1974
- }
1975
- ]
1976
- },
1977
- // feeAssetItem
1978
- 0,
1979
- // weightLimit
1980
- "Unlimited"
1981
- ];
1982
- }
1983
- });
1984
- }
1985
- }),
1986
- X3: () => ({
1987
- build: (params) => {
1988
- const assetInDestination = params.destination.getChainAsset(
1989
- params.asset
1990
- );
1991
- return new ExtrinsicConfig({
1992
- module: pallet2,
1993
- func,
1994
- getArgs: (extrinsicFunction) => {
1995
- const version = getExtrinsicArgumentVersion(extrinsicFunction);
1996
- return [
1997
- // dest
1998
- {
1999
- [version]: normalizeX1(version, {
2000
- parents: 2,
2001
- interior: {
2002
- X2: [
2003
- {
2004
- GlobalConsensus: {
2005
- ByGenesis: params.destination.relayGenesisHash
2006
- }
2007
- },
2008
- {
2009
- Parachain: params.destination.parachainId
2010
- }
2011
- ]
2012
- }
2013
- })
2014
- },
2015
- // beneficiary
2016
- {
2017
- [version]: normalizeX1(version, {
2018
- parents: 0,
2019
- interior: {
2020
- X1: getExtrinsicAccount(params.destinationAddress)
2021
- }
2022
- })
2023
- },
2024
- // assets
2025
- {
2026
- [version]: [
2027
- {
2028
- id: normalizeConcrete(version, {
2029
- parents: 2,
2030
- interior: {
2031
- X3: [
2032
- {
2033
- GlobalConsensus: {
2034
- ByGenesis: params.destination.relayGenesisHash
2035
- }
2036
- },
2037
- {
2038
- Parachain: params.destination.parachainId
2039
- },
2040
- {
2041
- PalletInstance: assetInDestination.getAssetPalletInstance()
2042
- }
2043
- ]
2044
- }
2045
- }),
2046
- fun: {
2047
- Fungible: params.asset.amount
2048
- }
2049
- }
2050
- ]
2051
- },
2052
- // feeAssetItem
2053
- 0,
2054
- // weightLimit
2055
- "Unlimited"
2056
- ];
2057
- }
2058
- });
2059
- }
2060
- })
2061
- };
2062
1912
  }
2063
1913
  };
2064
1914
  }