@paraspell/sdk-core 10.9.0 → 10.10.1
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/dist/index.cjs +795 -92
- package/dist/index.d.ts +131 -31
- package/dist/index.mjs +795 -93
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { blake2b } from '@noble/hashes/blake2';
|
|
2
|
-
import { isNodeEvm, getAssetsObject, InvalidCurrencyError, getNativeAssetSymbol, getOtherAssets, extractMultiAssetLoc, isAssetEqual, isForeignAsset, findAssetForNodeOrThrow, getExistentialDeposit, isOverrideMultiLocationSpecifier, findAssetByMultiLocation, findAsset, isTMultiAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier,
|
|
2
|
+
import { isNodeEvm, getAssetsObject, InvalidCurrencyError, getNativeAssetSymbol, getOtherAssets, extractMultiAssetLoc, isAssetEqual, isForeignAsset, findAssetForNodeOrThrow, getExistentialDeposit, isOverrideMultiLocationSpecifier, findAssetByMultiLocation, findAsset, isTMultiAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, hasSupportForAsset, getRelayChainSymbol, isSymbolSpecifier, findAssetOnDest, normalizeMultiLocation, findAssetOnDestOrThrow, normalizeSymbol, getAssetId, getNativeAssets } from '@paraspell/assets';
|
|
3
3
|
export * from '@paraspell/assets';
|
|
4
4
|
import { base58 } from '@scure/base';
|
|
5
5
|
import { isAddress, createPublicClient, http, getContract } from 'viem';
|
|
@@ -696,7 +696,7 @@ var DOT_MULTILOCATION = {
|
|
|
696
696
|
parents: Parents.ONE,
|
|
697
697
|
interior: 'Here'
|
|
698
698
|
};
|
|
699
|
-
var CHAINS_DOT_RESERVE_AH = new Set(['
|
|
699
|
+
var CHAINS_DOT_RESERVE_AH = new Set(['Polimec', 'Moonbeam', 'BifrostPolkadot', 'PeoplePolkadot', 'Ajuna']);
|
|
700
700
|
var ASSET_HUB_EXECUTION_FEE = 2200000000n; // 0.22 DOT
|
|
701
701
|
var TX_CLIENT_TIMEOUT_MS = 20 * 60 * 1000; // 20 minutes
|
|
702
702
|
var DRY_RUN_CLIENT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
|
|
@@ -728,6 +728,48 @@ var assertHasLocation = function assertHasLocation(asset) {
|
|
|
728
728
|
}
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
+
/**
|
|
732
|
+
* Retrieves the node instance for a given node.
|
|
733
|
+
*
|
|
734
|
+
* @param node - The node identifier.
|
|
735
|
+
* @returns The node instance
|
|
736
|
+
*/
|
|
737
|
+
var getNode = function getNode(node) {
|
|
738
|
+
var nodeMap = nodes();
|
|
739
|
+
return nodeMap[node];
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
var getChainVersion = function getChainVersion(chain) {
|
|
743
|
+
if (isRelayChain(chain) || chain === 'Ethereum') {
|
|
744
|
+
return Version.V4;
|
|
745
|
+
}
|
|
746
|
+
return getNode(chain).version;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Gets the relay chain (Polkadot, Kusama, Westend, or Paseo) of a given chain.
|
|
751
|
+
*
|
|
752
|
+
* @param chain - The chain to evaluate.
|
|
753
|
+
* @returns The corresponding relay chain.
|
|
754
|
+
*/
|
|
755
|
+
var getRelayChainOf = function getRelayChainOf(chain) {
|
|
756
|
+
if (chain === 'Polkadot') return 'Polkadot';
|
|
757
|
+
if (chain === 'Kusama') return 'Kusama';
|
|
758
|
+
if (chain === 'Westend') return 'Westend';
|
|
759
|
+
if (chain === 'Paseo') return 'Paseo';
|
|
760
|
+
var ecosystem = getNode(chain).type;
|
|
761
|
+
switch (ecosystem) {
|
|
762
|
+
case 'kusama':
|
|
763
|
+
return 'Kusama';
|
|
764
|
+
case 'westend':
|
|
765
|
+
return 'Westend';
|
|
766
|
+
case 'paseo':
|
|
767
|
+
return 'Paseo';
|
|
768
|
+
default:
|
|
769
|
+
return 'Polkadot';
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
|
|
731
773
|
var AssetHubPolkadot$1 = {
|
|
732
774
|
name: "AssetHub",
|
|
733
775
|
info: "PolkadotAssetHub",
|
|
@@ -1858,6 +1900,338 @@ var Polimec$1 = {
|
|
|
1858
1900
|
}
|
|
1859
1901
|
]
|
|
1860
1902
|
};
|
|
1903
|
+
var AssetHubWestend$1 = {
|
|
1904
|
+
name: "AssetHub",
|
|
1905
|
+
info: "WestendAssetHub",
|
|
1906
|
+
paraId: 1000,
|
|
1907
|
+
providers: [
|
|
1908
|
+
{
|
|
1909
|
+
name: "Dwellir",
|
|
1910
|
+
endpoint: "wss://asset-hub-westend-rpc.n.dwellir.com"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
name: "Dwellir Tunisia",
|
|
1914
|
+
endpoint: "wss://westmint-rpc-tn.dwellir.com"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
name: "IBP1",
|
|
1918
|
+
endpoint: "wss://sys.ibp.network/asset-hub-westend"
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
name: "IBP2",
|
|
1922
|
+
endpoint: "wss://asset-hub-westend.dotters.network"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
name: "Parity",
|
|
1926
|
+
endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
name: "Permanence DAO EU",
|
|
1930
|
+
endpoint: "wss://asset-hub-westend.rpc.permanence.io"
|
|
1931
|
+
}
|
|
1932
|
+
]
|
|
1933
|
+
};
|
|
1934
|
+
var BridgeHubWestend$1 = {
|
|
1935
|
+
name: "BridgeHub",
|
|
1936
|
+
info: "westendBridgeHub",
|
|
1937
|
+
paraId: 1002,
|
|
1938
|
+
providers: [
|
|
1939
|
+
{
|
|
1940
|
+
name: "Dwellir",
|
|
1941
|
+
endpoint: "wss://bridge-hub-westend-rpc.n.dwellir.com"
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
name: "Dwellir Tunisia",
|
|
1945
|
+
endpoint: "wss://westend-bridge-hub-rpc-tn.dwellir.com"
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
name: "IBP1",
|
|
1949
|
+
endpoint: "wss://sys.ibp.network/bridgehub-westend"
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
name: "IBP2",
|
|
1953
|
+
endpoint: "wss://bridge-hub-westend.dotters.network"
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
name: "Parity",
|
|
1957
|
+
endpoint: "wss://westend-bridge-hub-rpc.polkadot.io"
|
|
1958
|
+
}
|
|
1959
|
+
]
|
|
1960
|
+
};
|
|
1961
|
+
var CollectivesWestend$1 = {
|
|
1962
|
+
name: "Collectives",
|
|
1963
|
+
info: "westendCollectives",
|
|
1964
|
+
paraId: 1001,
|
|
1965
|
+
providers: [
|
|
1966
|
+
{
|
|
1967
|
+
name: "Dwellir",
|
|
1968
|
+
endpoint: "wss://collectives-westend-rpc.n.dwellir.com"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
name: "Dwellir Tunisia",
|
|
1972
|
+
endpoint: "wss://westend-collectives-rpc-tn.dwellir.com"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
name: "IBP1",
|
|
1976
|
+
endpoint: "wss://sys.ibp.network/collectives-westend"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
name: "IBP2",
|
|
1980
|
+
endpoint: "wss://collectives-westend.dotters.network"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
name: "Parity",
|
|
1984
|
+
endpoint: "wss://westend-collectives-rpc.polkadot.io"
|
|
1985
|
+
}
|
|
1986
|
+
]
|
|
1987
|
+
};
|
|
1988
|
+
var CoretimeWestend$1 = {
|
|
1989
|
+
name: "Coretime",
|
|
1990
|
+
info: "westendCoretime",
|
|
1991
|
+
paraId: 1005,
|
|
1992
|
+
providers: [
|
|
1993
|
+
{
|
|
1994
|
+
name: "Dwellir",
|
|
1995
|
+
endpoint: "wss://coretime-westend-rpc.n.dwellir.com"
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
name: "IBP1",
|
|
1999
|
+
endpoint: "wss://sys.ibp.network/coretime-westend"
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
name: "IBP2",
|
|
2003
|
+
endpoint: "wss://coretime-westend.dotters.network"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
name: "Parity",
|
|
2007
|
+
endpoint: "wss://westend-coretime-rpc.polkadot.io"
|
|
2008
|
+
}
|
|
2009
|
+
]
|
|
2010
|
+
};
|
|
2011
|
+
var PeopleWestend$1 = {
|
|
2012
|
+
name: "People",
|
|
2013
|
+
info: "westendPeople",
|
|
2014
|
+
paraId: 1004,
|
|
2015
|
+
providers: [
|
|
2016
|
+
{
|
|
2017
|
+
name: "Dwellir",
|
|
2018
|
+
endpoint: "wss://people-westend-rpc.n.dwellir.com"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
name: "IBP1",
|
|
2022
|
+
endpoint: "wss://sys.ibp.network/people-westend"
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
name: "IBP2",
|
|
2026
|
+
endpoint: "wss://people-westend.dotters.network"
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
name: "Parity",
|
|
2030
|
+
endpoint: "wss://westend-people-rpc.polkadot.io"
|
|
2031
|
+
}
|
|
2032
|
+
]
|
|
2033
|
+
};
|
|
2034
|
+
var Penpal$1 = {
|
|
2035
|
+
name: "Penpal",
|
|
2036
|
+
info: "westendPenpal",
|
|
2037
|
+
paraId: 2042,
|
|
2038
|
+
providers: [
|
|
2039
|
+
{
|
|
2040
|
+
name: "Parity",
|
|
2041
|
+
endpoint: "wss://westend-penpal-rpc.polkadot.io"
|
|
2042
|
+
}
|
|
2043
|
+
]
|
|
2044
|
+
};
|
|
2045
|
+
var AssetHubPaseo$1 = {
|
|
2046
|
+
name: "AssetHub",
|
|
2047
|
+
info: "PaseoAssetHub",
|
|
2048
|
+
paraId: 1000,
|
|
2049
|
+
providers: [
|
|
2050
|
+
{
|
|
2051
|
+
name: "Dwellir",
|
|
2052
|
+
endpoint: "wss://asset-hub-paseo-rpc.n.dwellir.com"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
name: "IBP1",
|
|
2056
|
+
endpoint: "wss://sys.ibp.network/asset-hub-paseo"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
name: "IBP2",
|
|
2060
|
+
endpoint: "wss://asset-hub-paseo.dotters.network"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
name: "StakeWorld",
|
|
2064
|
+
endpoint: "wss://pas-rpc.stakeworld.io/assethub"
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
name: "TurboFlakes",
|
|
2068
|
+
endpoint: "wss://sys.turboflakes.io/asset-hub-paseo"
|
|
2069
|
+
}
|
|
2070
|
+
]
|
|
2071
|
+
};
|
|
2072
|
+
var BridgeHubPaseo$1 = {
|
|
2073
|
+
name: "BridgeHub",
|
|
2074
|
+
info: "PaseoBridgeHub",
|
|
2075
|
+
paraId: 1002,
|
|
2076
|
+
providers: [
|
|
2077
|
+
{
|
|
2078
|
+
name: "IBP1",
|
|
2079
|
+
endpoint: "wss://sys.ibp.network/bridgehub-paseo"
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
name: "IBP2",
|
|
2083
|
+
endpoint: "wss://bridge-hub-paseo.dotters.network"
|
|
2084
|
+
}
|
|
2085
|
+
]
|
|
2086
|
+
};
|
|
2087
|
+
var CoretimePaseo$1 = {
|
|
2088
|
+
name: "Coretime",
|
|
2089
|
+
info: "PaseoCoretime",
|
|
2090
|
+
paraId: 1005,
|
|
2091
|
+
providers: [
|
|
2092
|
+
{
|
|
2093
|
+
name: "IBP1",
|
|
2094
|
+
endpoint: "wss://sys.ibp.network/coretime-paseo"
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
name: "IBP2",
|
|
2098
|
+
endpoint: "wss://coretime-paseo.dotters.network"
|
|
2099
|
+
}
|
|
2100
|
+
]
|
|
2101
|
+
};
|
|
2102
|
+
var PAssetHub$1 = {
|
|
2103
|
+
name: "PAssetHub - Contracts",
|
|
2104
|
+
info: "PAssetHub - Contracts",
|
|
2105
|
+
paraId: 1111,
|
|
2106
|
+
providers: [
|
|
2107
|
+
{
|
|
2108
|
+
name: "IBP1",
|
|
2109
|
+
endpoint: "wss://passet-hub-paseo.ibp.network"
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
name: "Parity",
|
|
2113
|
+
endpoint: "wss://testnet-passet-hub.polkadot.io"
|
|
2114
|
+
}
|
|
2115
|
+
]
|
|
2116
|
+
};
|
|
2117
|
+
var PeoplePaseo$1 = {
|
|
2118
|
+
name: "People",
|
|
2119
|
+
info: "PaseoPeopleChain",
|
|
2120
|
+
paraId: 1004,
|
|
2121
|
+
providers: [
|
|
2122
|
+
{
|
|
2123
|
+
name: "Amforc",
|
|
2124
|
+
endpoint: "wss://people-paseo.rpc.amforc.com"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
name: "IBP1",
|
|
2128
|
+
endpoint: "wss://sys.ibp.network/people-paseo"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
name: "IBP2",
|
|
2132
|
+
endpoint: "wss://people-paseo.dotters.network"
|
|
2133
|
+
}
|
|
2134
|
+
]
|
|
2135
|
+
};
|
|
2136
|
+
var AjunaPaseo$1 = {
|
|
2137
|
+
name: "Ajuna Network (Paseo)",
|
|
2138
|
+
info: "Ajuna(paseo)",
|
|
2139
|
+
paraId: 2051,
|
|
2140
|
+
providers: [
|
|
2141
|
+
{
|
|
2142
|
+
name: "BajunNetwork",
|
|
2143
|
+
endpoint: "wss://rpc-paseo.ajuna.network"
|
|
2144
|
+
}
|
|
2145
|
+
]
|
|
2146
|
+
};
|
|
2147
|
+
var BifrostPaseo$1 = {
|
|
2148
|
+
name: "Bifrost",
|
|
2149
|
+
info: "Bifrost(Paseo)",
|
|
2150
|
+
paraId: 2030,
|
|
2151
|
+
providers: [
|
|
2152
|
+
{
|
|
2153
|
+
name: "Liebi",
|
|
2154
|
+
endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
|
|
2155
|
+
}
|
|
2156
|
+
]
|
|
2157
|
+
};
|
|
2158
|
+
var HeimaPaseo$1 = {
|
|
2159
|
+
name: "Heima paseo",
|
|
2160
|
+
info: "heima-paseo",
|
|
2161
|
+
paraId: 2106,
|
|
2162
|
+
providers: [
|
|
2163
|
+
{
|
|
2164
|
+
name: "Heima",
|
|
2165
|
+
endpoint: "wss://rpc.paseo-parachain.heima.network"
|
|
2166
|
+
}
|
|
2167
|
+
]
|
|
2168
|
+
};
|
|
2169
|
+
var HydrationPaseo$1 = {
|
|
2170
|
+
name: "Hydration (Paseo)",
|
|
2171
|
+
info: "rococoHydraDX",
|
|
2172
|
+
paraId: 2034,
|
|
2173
|
+
providers: [
|
|
2174
|
+
{
|
|
2175
|
+
name: "Galactic Council",
|
|
2176
|
+
endpoint: "wss://paseo-rpc.play.hydration.cloud"
|
|
2177
|
+
}
|
|
2178
|
+
]
|
|
2179
|
+
};
|
|
2180
|
+
var KiltPaseo$1 = {
|
|
2181
|
+
name: "KILT Peregrine",
|
|
2182
|
+
info: "kilt",
|
|
2183
|
+
paraId: 2086,
|
|
2184
|
+
providers: [
|
|
2185
|
+
{
|
|
2186
|
+
name: "KILT Foundation",
|
|
2187
|
+
endpoint: "wss://peregrine.kilt.io/"
|
|
2188
|
+
}
|
|
2189
|
+
]
|
|
2190
|
+
};
|
|
2191
|
+
var LaosPaseo$1 = {
|
|
2192
|
+
name: "Laos Sigma",
|
|
2193
|
+
info: "laos-sigma",
|
|
2194
|
+
paraId: 4006,
|
|
2195
|
+
providers: [
|
|
2196
|
+
{
|
|
2197
|
+
name: "freeverse.io",
|
|
2198
|
+
endpoint: "wss://rpc.laossigma.laosfoundation.io"
|
|
2199
|
+
}
|
|
2200
|
+
]
|
|
2201
|
+
};
|
|
2202
|
+
var NeuroWebPaseo$1 = {
|
|
2203
|
+
name: "NeuroWeb Testnet",
|
|
2204
|
+
info: "NeuroWeb",
|
|
2205
|
+
paraId: 2043,
|
|
2206
|
+
providers: [
|
|
2207
|
+
{
|
|
2208
|
+
name: "TraceLabs",
|
|
2209
|
+
endpoint: "wss://parachain-testnet-rpc.origin-trail.network/"
|
|
2210
|
+
}
|
|
2211
|
+
]
|
|
2212
|
+
};
|
|
2213
|
+
var NodlePaseo$1 = {
|
|
2214
|
+
name: "Nodle",
|
|
2215
|
+
info: "NodleParadis",
|
|
2216
|
+
paraId: 2026,
|
|
2217
|
+
providers: [
|
|
2218
|
+
{
|
|
2219
|
+
name: "OnFinality",
|
|
2220
|
+
endpoint: "wss://node-7273232234617282560.nv.onfinality.io/ws?apikey=b937a7d7-7395-49b9-b745-60a0342fa365"
|
|
2221
|
+
}
|
|
2222
|
+
]
|
|
2223
|
+
};
|
|
2224
|
+
var ZeitgeistPaseo$1 = {
|
|
2225
|
+
name: "Zeitgeist Battery Station",
|
|
2226
|
+
info: "ZeitgeistBatteryStation",
|
|
2227
|
+
paraId: 2101,
|
|
2228
|
+
providers: [
|
|
2229
|
+
{
|
|
2230
|
+
name: "Zeitgeist",
|
|
2231
|
+
endpoint: "wss://bsr.zeitgeist.pm"
|
|
2232
|
+
}
|
|
2233
|
+
]
|
|
2234
|
+
};
|
|
1861
2235
|
var Polkadot = {
|
|
1862
2236
|
name: "Polkadot",
|
|
1863
2237
|
info: "polkadot",
|
|
@@ -1964,6 +2338,68 @@ var Kusama = {
|
|
|
1964
2338
|
}
|
|
1965
2339
|
]
|
|
1966
2340
|
};
|
|
2341
|
+
var Westend = {
|
|
2342
|
+
name: "Westend",
|
|
2343
|
+
info: "westend",
|
|
2344
|
+
paraId: 0,
|
|
2345
|
+
providers: [
|
|
2346
|
+
{
|
|
2347
|
+
name: "Dwellir",
|
|
2348
|
+
endpoint: "wss://westend-rpc.n.dwellir.com"
|
|
2349
|
+
},
|
|
2350
|
+
{
|
|
2351
|
+
name: "Dwellir Tunisia",
|
|
2352
|
+
endpoint: "wss://westend-rpc-tn.dwellir.com"
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
name: "IBP1",
|
|
2356
|
+
endpoint: "wss://rpc.ibp.network/westend"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
name: "IBP2",
|
|
2360
|
+
endpoint: "wss://westend.dotters.network"
|
|
2361
|
+
},
|
|
2362
|
+
{
|
|
2363
|
+
name: "OnFinality",
|
|
2364
|
+
endpoint: "wss://westend.api.onfinality.io/public-ws"
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
name: "Parity",
|
|
2368
|
+
endpoint: "wss://westend-rpc.polkadot.io"
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
name: "RadiumBlock",
|
|
2372
|
+
endpoint: "wss://westend.public.curie.radiumblock.co/ws"
|
|
2373
|
+
}
|
|
2374
|
+
]
|
|
2375
|
+
};
|
|
2376
|
+
var Paseo = {
|
|
2377
|
+
name: "Paseo",
|
|
2378
|
+
info: "paseo",
|
|
2379
|
+
paraId: 0,
|
|
2380
|
+
providers: [
|
|
2381
|
+
{
|
|
2382
|
+
name: "Amforc",
|
|
2383
|
+
endpoint: "wss://paseo.rpc.amforc.com"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
name: "Dwellir",
|
|
2387
|
+
endpoint: "wss://paseo-rpc.n.dwellir.com"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
name: "IBP1",
|
|
2391
|
+
endpoint: "wss://rpc.ibp.network/paseo"
|
|
2392
|
+
},
|
|
2393
|
+
{
|
|
2394
|
+
name: "IBP2",
|
|
2395
|
+
endpoint: "wss://paseo.dotters.network"
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
name: "StakeWorld",
|
|
2399
|
+
endpoint: "wss://pas-rpc.stakeworld.io"
|
|
2400
|
+
}
|
|
2401
|
+
]
|
|
2402
|
+
};
|
|
1967
2403
|
var configs = {
|
|
1968
2404
|
AssetHubPolkadot: AssetHubPolkadot$1,
|
|
1969
2405
|
Acala: Acala$1,
|
|
@@ -2015,8 +2451,30 @@ var configs = {
|
|
|
2015
2451
|
Mythos: Mythos$1,
|
|
2016
2452
|
Peaq: Peaq$1,
|
|
2017
2453
|
Polimec: Polimec$1,
|
|
2454
|
+
AssetHubWestend: AssetHubWestend$1,
|
|
2455
|
+
BridgeHubWestend: BridgeHubWestend$1,
|
|
2456
|
+
CollectivesWestend: CollectivesWestend$1,
|
|
2457
|
+
CoretimeWestend: CoretimeWestend$1,
|
|
2458
|
+
PeopleWestend: PeopleWestend$1,
|
|
2459
|
+
Penpal: Penpal$1,
|
|
2460
|
+
AssetHubPaseo: AssetHubPaseo$1,
|
|
2461
|
+
BridgeHubPaseo: BridgeHubPaseo$1,
|
|
2462
|
+
CoretimePaseo: CoretimePaseo$1,
|
|
2463
|
+
PAssetHub: PAssetHub$1,
|
|
2464
|
+
PeoplePaseo: PeoplePaseo$1,
|
|
2465
|
+
AjunaPaseo: AjunaPaseo$1,
|
|
2466
|
+
BifrostPaseo: BifrostPaseo$1,
|
|
2467
|
+
HeimaPaseo: HeimaPaseo$1,
|
|
2468
|
+
HydrationPaseo: HydrationPaseo$1,
|
|
2469
|
+
KiltPaseo: KiltPaseo$1,
|
|
2470
|
+
LaosPaseo: LaosPaseo$1,
|
|
2471
|
+
NeuroWebPaseo: NeuroWebPaseo$1,
|
|
2472
|
+
NodlePaseo: NodlePaseo$1,
|
|
2473
|
+
ZeitgeistPaseo: ZeitgeistPaseo$1,
|
|
2018
2474
|
Polkadot: Polkadot,
|
|
2019
|
-
Kusama: Kusama
|
|
2475
|
+
Kusama: Kusama,
|
|
2476
|
+
Westend: Westend,
|
|
2477
|
+
Paseo: Paseo
|
|
2020
2478
|
};
|
|
2021
2479
|
|
|
2022
2480
|
var configsMap = configs;
|
|
@@ -2295,17 +2753,6 @@ var resolveModuleError = function resolveModuleError(node, error) {
|
|
|
2295
2753
|
return failureReason;
|
|
2296
2754
|
};
|
|
2297
2755
|
|
|
2298
|
-
/**
|
|
2299
|
-
* Retrieves the node instance for a given node.
|
|
2300
|
-
*
|
|
2301
|
-
* @param node - The node identifier.
|
|
2302
|
-
* @returns The node instance
|
|
2303
|
-
*/
|
|
2304
|
-
var getNode = function getNode(node) {
|
|
2305
|
-
var nodeMap = nodes();
|
|
2306
|
-
return nodeMap[node];
|
|
2307
|
-
};
|
|
2308
|
-
|
|
2309
2756
|
var resolveScenario = function resolveScenario(origin, destination) {
|
|
2310
2757
|
if (isRelayChain(origin)) return 'RelayToPara';
|
|
2311
2758
|
var isRelayDestination = !isTMultiLocation(destination) && isRelayChain(destination);
|
|
@@ -2614,7 +3061,7 @@ var resolveTNodeFromMultiLocation = function resolveTNodeFromMultiLocation(relay
|
|
|
2614
3061
|
throw new InvalidParameterError('Parachain ID not found in destination multi-location.');
|
|
2615
3062
|
}
|
|
2616
3063
|
var node = (_NODE_NAMES_DOT_KSM$f = NODE_NAMES_DOT_KSM.find(function (nodeName) {
|
|
2617
|
-
return getParaId(nodeName) === parachainId &&
|
|
3064
|
+
return getParaId(nodeName) === parachainId && getRelayChainOf(nodeName) === relayChain;
|
|
2618
3065
|
})) !== null && _NODE_NAMES_DOT_KSM$f !== void 0 ? _NODE_NAMES_DOT_KSM$f : null;
|
|
2619
3066
|
if (node === null) {
|
|
2620
3067
|
throw new InvalidParameterError('Node with specified paraId not found in destination multi location.');
|
|
@@ -2641,7 +3088,16 @@ var throwUnsupportedCurrency = function throwUnsupportedCurrency(currency, node)
|
|
|
2641
3088
|
var getTNode = function getTNode(paraId, ecosystem) {
|
|
2642
3089
|
var _NODE_NAMES_DOT_KSM$f;
|
|
2643
3090
|
if (paraId === 0) {
|
|
2644
|
-
|
|
3091
|
+
switch (ecosystem) {
|
|
3092
|
+
case 'polkadot':
|
|
3093
|
+
return 'Polkadot';
|
|
3094
|
+
case 'kusama':
|
|
3095
|
+
return 'Kusama';
|
|
3096
|
+
case 'westend':
|
|
3097
|
+
return 'Westend';
|
|
3098
|
+
case 'paseo':
|
|
3099
|
+
return 'Paseo';
|
|
3100
|
+
}
|
|
2645
3101
|
}
|
|
2646
3102
|
if (paraId === 1) {
|
|
2647
3103
|
return 'Ethereum';
|
|
@@ -2655,7 +3111,7 @@ var getAssetReserveChain = function getAssetReserveChain(origin, assetLocation)
|
|
|
2655
3111
|
var hasGlobalConsensusJunction = hasJunction(assetLocation, 'GlobalConsensus');
|
|
2656
3112
|
var paraId = getJunctionValue(assetLocation, 'Parachain');
|
|
2657
3113
|
if (paraId) {
|
|
2658
|
-
var chain = getTNode(paraId,
|
|
3114
|
+
var chain = getTNode(paraId, getRelayChainOf(origin).toLowerCase());
|
|
2659
3115
|
if (!chain) {
|
|
2660
3116
|
throw new InvalidParameterError("Chain with paraId ".concat(paraId, " not found"));
|
|
2661
3117
|
}
|
|
@@ -4469,8 +4925,8 @@ var dryRunInternal = /*#__PURE__*/function () {
|
|
|
4469
4925
|
});
|
|
4470
4926
|
case 2:
|
|
4471
4927
|
initialForwardedXcms = originDryRun.forwardedXcms, initialDestParaId = originDryRun.destParaId;
|
|
4472
|
-
assetHubNode =
|
|
4473
|
-
bridgeHubNode =
|
|
4928
|
+
assetHubNode = "AssetHub".concat(getRelayChainOf(origin));
|
|
4929
|
+
bridgeHubNode = "BridgeHub".concat(getRelayChainOf(origin));
|
|
4474
4930
|
currentOrigin = origin;
|
|
4475
4931
|
forwardedXcms = initialForwardedXcms;
|
|
4476
4932
|
nextParaId = initialDestParaId;
|
|
@@ -4481,7 +4937,7 @@ var dryRunInternal = /*#__PURE__*/function () {
|
|
|
4481
4937
|
_context.n = 13;
|
|
4482
4938
|
break;
|
|
4483
4939
|
}
|
|
4484
|
-
nextChain = getTNode(nextParaId,
|
|
4940
|
+
nextChain = getTNode(nextParaId, getRelayChainOf(origin).toLowerCase());
|
|
4485
4941
|
if (nextChain) {
|
|
4486
4942
|
_context.n = 4;
|
|
4487
4943
|
break;
|
|
@@ -5019,7 +5475,8 @@ var getFailureInfo = function getFailureInfo(nodes, hops) {
|
|
|
5019
5475
|
};
|
|
5020
5476
|
var getXcmFee = /*#__PURE__*/function () {
|
|
5021
5477
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
5022
|
-
var
|
|
5478
|
+
var _findAssetOnDest2;
|
|
5479
|
+
var api, tx, origin, destination, senderAddress, address, currency, feeAsset, disableFallback, asset, _yield$getOriginXcmFe, originFee, originCurrency, originFeeType, originDryRunError, initialForwardedXcm, initialDestParaId, originWeight, sufficientOriginFee, hops, destApi, destFeeRes, _result, _getFailureInfo, _failureChain, _failureReason, assetHubNode, bridgeHubNode, currentOrigin, forwardedXcms, nextParaId, intermediateFees, destinationFee, destinationFeeType, destinationDryRunError, destinationSufficient, nextChain, hopApi, _findAssetOnDest, hopResult, hopCurrency, hopDetail, failingRecord, hopIsDestination, _destApi, destFallback, processedBridgeHubData, ahApi, _yield$getParaEthTran, _yield$getParaEthTran2, bridgeFee, bridgeHubHopIndex, destCurrency, result, _getFailureInfo2, failureChain, failureReason;
|
|
5023
5480
|
return _regenerator().w(function (_context) {
|
|
5024
5481
|
while (1) switch (_context.n) {
|
|
5025
5482
|
case 0:
|
|
@@ -5120,8 +5577,8 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5120
5577
|
case 7:
|
|
5121
5578
|
return _context.f(6);
|
|
5122
5579
|
case 8:
|
|
5123
|
-
assetHubNode =
|
|
5124
|
-
bridgeHubNode =
|
|
5580
|
+
assetHubNode = "AssetHub".concat(getRelayChainOf(origin));
|
|
5581
|
+
bridgeHubNode = "BridgeHub".concat(getRelayChainOf(origin));
|
|
5125
5582
|
currentOrigin = origin;
|
|
5126
5583
|
forwardedXcms = initialForwardedXcm;
|
|
5127
5584
|
nextParaId = initialDestParaId;
|
|
@@ -5134,7 +5591,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5134
5591
|
_context.n = 21;
|
|
5135
5592
|
break;
|
|
5136
5593
|
}
|
|
5137
|
-
nextChain = getTNode(nextParaId,
|
|
5594
|
+
nextChain = getTNode(nextParaId, getRelayChainOf(origin).toLowerCase());
|
|
5138
5595
|
if (!(nextChain === null)) {
|
|
5139
5596
|
_context.n = 10;
|
|
5140
5597
|
break;
|
|
@@ -5163,7 +5620,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5163
5620
|
});
|
|
5164
5621
|
case 13:
|
|
5165
5622
|
hopResult = _context.v;
|
|
5166
|
-
hopCurrency = hopResult.feeType === 'dryRun' ? destination === nextChain ?
|
|
5623
|
+
hopCurrency = hopResult.feeType === 'dryRun' ? destination === nextChain ? ((_findAssetOnDest = findAssetOnDest(origin, nextChain, currency)) !== null && _findAssetOnDest !== void 0 ? _findAssetOnDest : asset).symbol : asset.symbol : getNativeAssetSymbol(nextChain);
|
|
5167
5624
|
hopDetail = hopResult.dryRunError ? {
|
|
5168
5625
|
fee: hopResult.fee,
|
|
5169
5626
|
feeType: hopResult.feeType,
|
|
@@ -5283,7 +5740,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5283
5740
|
}
|
|
5284
5741
|
case 24:
|
|
5285
5742
|
intermediateFees.bridgeHub = processedBridgeHubData;
|
|
5286
|
-
destCurrency = destinationFeeType === 'dryRun' ?
|
|
5743
|
+
destCurrency = destinationFeeType === 'dryRun' ? ((_findAssetOnDest2 = findAssetOnDest(origin, destination, currency)) !== null && _findAssetOnDest2 !== void 0 ? _findAssetOnDest2 : asset).symbol : getNativeAssetSymbol(destination);
|
|
5287
5744
|
result = _objectSpread2(_objectSpread2({
|
|
5288
5745
|
origin: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, originWeight && {
|
|
5289
5746
|
weight: originWeight
|
|
@@ -5420,13 +5877,6 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
|
|
|
5420
5877
|
};
|
|
5421
5878
|
}();
|
|
5422
5879
|
|
|
5423
|
-
var getChainVersion = function getChainVersion(chain) {
|
|
5424
|
-
if (isRelayChain(chain) || chain === 'Ethereum') {
|
|
5425
|
-
return Version.V4;
|
|
5426
|
-
}
|
|
5427
|
-
return getNode(chain).version;
|
|
5428
|
-
};
|
|
5429
|
-
|
|
5430
5880
|
var transferRelayToPara = /*#__PURE__*/function () {
|
|
5431
5881
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5432
5882
|
var api, origin, destination, asset, address, paraIdTo, version, pallet, method, isMultiLocationDestination, serializedApiCall;
|
|
@@ -5962,7 +6412,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
5962
6412
|
_context2.n = 11;
|
|
5963
6413
|
return buildHopInfo({
|
|
5964
6414
|
api: api,
|
|
5965
|
-
node:
|
|
6415
|
+
node: "AssetHub".concat(getRelayChainOf(origin)),
|
|
5966
6416
|
feeData: assetHubFeeResult,
|
|
5967
6417
|
originNode: origin,
|
|
5968
6418
|
currency: currency,
|
|
@@ -5976,7 +6426,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
5976
6426
|
_context2.n = 14;
|
|
5977
6427
|
break;
|
|
5978
6428
|
}
|
|
5979
|
-
bridgeHubNode =
|
|
6429
|
+
bridgeHubNode = "BridgeHub".concat(getRelayChainOf(origin));
|
|
5980
6430
|
_context2.n = 13;
|
|
5981
6431
|
return buildHopInfo({
|
|
5982
6432
|
api: api,
|
|
@@ -6297,7 +6747,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
|
|
|
6297
6747
|
}
|
|
6298
6748
|
};
|
|
6299
6749
|
checkAmount(MIN_FEE$1);
|
|
6300
|
-
destChain = getTNode(paraIdTo,
|
|
6750
|
+
destChain = getTNode(paraIdTo, getRelayChainOf(chain).toLowerCase());
|
|
6301
6751
|
internalOptions = {
|
|
6302
6752
|
api: api,
|
|
6303
6753
|
chain: chain,
|
|
@@ -6845,17 +7295,6 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6845
7295
|
};
|
|
6846
7296
|
}();
|
|
6847
7297
|
|
|
6848
|
-
// Contains important call creation utils (Selection of fees,formating of header and more.. )
|
|
6849
|
-
/**
|
|
6850
|
-
* Determines the relay chain for a given node.
|
|
6851
|
-
*
|
|
6852
|
-
* @param node - The node for which to determine the relay chain.
|
|
6853
|
-
* @returns 'Kusama' if the node's relay chain symbol is 'KSM'; otherwise, 'Polkadot'.
|
|
6854
|
-
*/
|
|
6855
|
-
var determineRelayChain = function determineRelayChain(node) {
|
|
6856
|
-
return getRelayChainSymbol(node) === 'KSM' ? 'Kusama' : 'Polkadot';
|
|
6857
|
-
};
|
|
6858
|
-
|
|
6859
7298
|
var resolveMultiLocationFromDest = function resolveMultiLocationFromDest(destination, asset) {
|
|
6860
7299
|
if (_typeof(destination) === 'object') return destination;
|
|
6861
7300
|
if (isRelayChain(destination)) return DOT_MULTILOCATION;
|
|
@@ -7604,8 +8043,12 @@ var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
|
|
|
7604
8043
|
|
|
7605
8044
|
var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
7606
8045
|
function Ajuna() {
|
|
8046
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Ajuna';
|
|
8047
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ajuna';
|
|
8048
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8049
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
7607
8050
|
_classCallCheck(this, Ajuna);
|
|
7608
|
-
return _callSuper(this, Ajuna, [
|
|
8051
|
+
return _callSuper(this, Ajuna, [chain, info, type, version]);
|
|
7609
8052
|
}
|
|
7610
8053
|
_inherits(Ajuna, _ParachainNode);
|
|
7611
8054
|
return _createClass(Ajuna, [{
|
|
@@ -7665,6 +8108,15 @@ var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7665
8108
|
}]);
|
|
7666
8109
|
}(ParachainNode);
|
|
7667
8110
|
|
|
8111
|
+
var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
8112
|
+
function AjunaPaseo() {
|
|
8113
|
+
_classCallCheck(this, AjunaPaseo);
|
|
8114
|
+
return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'paseo', Version.V4]);
|
|
8115
|
+
}
|
|
8116
|
+
_inherits(AjunaPaseo, _Ajuna);
|
|
8117
|
+
return _createClass(AjunaPaseo);
|
|
8118
|
+
}(Ajuna);
|
|
8119
|
+
|
|
7668
8120
|
var Altair = /*#__PURE__*/function (_ParachainNode) {
|
|
7669
8121
|
function Altair() {
|
|
7670
8122
|
_classCallCheck(this, Altair);
|
|
@@ -7804,8 +8256,12 @@ var createCustomXcmToBifrost = function createCustomXcmToBifrost(_ref, version)
|
|
|
7804
8256
|
var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
7805
8257
|
function AssetHubPolkadot() {
|
|
7806
8258
|
var _this;
|
|
8259
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
8260
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
8261
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8262
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
7807
8263
|
_classCallCheck(this, AssetHubPolkadot);
|
|
7808
|
-
_this = _callSuper(this, AssetHubPolkadot, [
|
|
8264
|
+
_this = _callSuper(this, AssetHubPolkadot, [chain, info, type, version]);
|
|
7809
8265
|
_this.handleLocalReserveTransfer = function (input) {
|
|
7810
8266
|
var useDOTAsFeeAsset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
7811
8267
|
var api = input.api,
|
|
@@ -7846,7 +8302,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7846
8302
|
address = input.address,
|
|
7847
8303
|
version = input.version,
|
|
7848
8304
|
paraIdTo = input.paraIdTo;
|
|
7849
|
-
if (targetChain === 'Kusama' && ((_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toUpperCase()) === 'KSM' || targetChain === 'Polkadot' && ((_asset$symbol2 = asset.symbol) === null || _asset$symbol2 === void 0 ? void 0 : _asset$symbol2.toUpperCase()) ===
|
|
8305
|
+
if (targetChain === 'Kusama' && ((_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toUpperCase()) === 'KSM' || targetChain === 'Polkadot' && ((_asset$symbol2 = asset.symbol) === null || _asset$symbol2 === void 0 ? void 0 : _asset$symbol2.toUpperCase()) === this.getNativeAssetSymbol()) {
|
|
7850
8306
|
var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
7851
8307
|
destLocation: createBridgeDestination(targetChain, destination, paraIdTo),
|
|
7852
8308
|
beneficiaryLocation: createBeneficiaryLocation({
|
|
@@ -7857,7 +8313,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7857
8313
|
multiAsset: createMultiAsset(version, asset.amount, asset.multiLocation)
|
|
7858
8314
|
});
|
|
7859
8315
|
return transferPolkadotXcm(modifiedInput, 'transfer_assets', 'Unlimited');
|
|
7860
|
-
} else if (targetChain === 'Polkadot' && ((_asset$symbol3 = asset.symbol) === null || _asset$symbol3 === void 0 ? void 0 : _asset$symbol3.toUpperCase()) === 'KSM' || targetChain === 'Kusama' && ((_asset$symbol4 = asset.symbol) === null || _asset$symbol4 === void 0 ? void 0 : _asset$symbol4.toUpperCase()) ===
|
|
8316
|
+
} else if (targetChain === 'Polkadot' && ((_asset$symbol3 = asset.symbol) === null || _asset$symbol3 === void 0 ? void 0 : _asset$symbol3.toUpperCase()) === 'KSM' || targetChain === 'Kusama' && ((_asset$symbol4 = asset.symbol) === null || _asset$symbol4 === void 0 ? void 0 : _asset$symbol4.toUpperCase()) === this.getNativeAssetSymbol()) {
|
|
7861
8317
|
var _modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
7862
8318
|
destLocation: createBridgeDestination(targetChain, destination, paraIdTo),
|
|
7863
8319
|
multiAsset: createMultiAsset(version, asset.amount, DOT_MULTILOCATION)
|
|
@@ -8032,7 +8488,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8032
8488
|
destination = input.destination,
|
|
8033
8489
|
_input$version = input.version,
|
|
8034
8490
|
version = _input$version === void 0 ? this.version : _input$version;
|
|
8035
|
-
if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && asset.symbol ===
|
|
8491
|
+
if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && asset.symbol === this.getNativeAssetSymbol()) {
|
|
8036
8492
|
return _objectSpread2(_objectSpread2({}, input), {}, {
|
|
8037
8493
|
multiAsset: createMultiAsset(version, asset.amount, DOT_MULTILOCATION)
|
|
8038
8494
|
});
|
|
@@ -8050,7 +8506,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8050
8506
|
key: "transferPolkadotXCM",
|
|
8051
8507
|
value: function () {
|
|
8052
8508
|
var _transferPolkadotXCM = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(input) {
|
|
8053
|
-
var api, scenario, asset, destination, feeAsset, overriddenAsset, isNativeAsset, isNativeFeeAsset, isEthereumAsset, isTrusted, isDotReserveAh, method, modifiedInput, _t, _t2;
|
|
8509
|
+
var api, scenario, asset, destination, feeAsset, overriddenAsset, isNativeAsset, isNativeFeeAsset, isEthereumAsset, CHAINS_SUPPORT_DOT_TRANSFER, isTrusted, isDotReserveAh, method, modifiedInput, _t, _t2;
|
|
8054
8510
|
return _regenerator().w(function (_context3) {
|
|
8055
8511
|
while (1) switch (_context3.n) {
|
|
8056
8512
|
case 0:
|
|
@@ -8115,9 +8571,10 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8115
8571
|
}
|
|
8116
8572
|
return _context3.a(2, this.handleLocalReserveTransfer(input, true));
|
|
8117
8573
|
case 9:
|
|
8574
|
+
CHAINS_SUPPORT_DOT_TRANSFER = new Set(['Hydration', 'Polimec', 'Moonbeam', 'BifrostPolkadot', 'PeoplePolkadot', 'Ajuna']);
|
|
8118
8575
|
isTrusted = !isTMultiLocation(destination) && isSystemChain(destination);
|
|
8119
|
-
isDotReserveAh = !isTMultiLocation(destination) &&
|
|
8120
|
-
if (!(scenario === 'ParaToPara' && asset.symbol ===
|
|
8576
|
+
isDotReserveAh = !isTMultiLocation(destination) && CHAINS_SUPPORT_DOT_TRANSFER.has(destination);
|
|
8577
|
+
if (!(scenario === 'ParaToPara' && asset.symbol === this.getNativeAssetSymbol() && !isForeignAsset(asset) && !isDotReserveAh && !isTrusted)) {
|
|
8121
8578
|
_context3.n = 10;
|
|
8122
8579
|
break;
|
|
8123
8580
|
}
|
|
@@ -8204,6 +8661,24 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8204
8661
|
}]);
|
|
8205
8662
|
}(ParachainNode);
|
|
8206
8663
|
|
|
8664
|
+
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8665
|
+
function AssetHubPaseo() {
|
|
8666
|
+
_classCallCheck(this, AssetHubPaseo);
|
|
8667
|
+
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', Version.V4]);
|
|
8668
|
+
}
|
|
8669
|
+
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
8670
|
+
return _createClass(AssetHubPaseo);
|
|
8671
|
+
}(AssetHubPolkadot);
|
|
8672
|
+
|
|
8673
|
+
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8674
|
+
function AssetHubWestend() {
|
|
8675
|
+
_classCallCheck(this, AssetHubWestend);
|
|
8676
|
+
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', Version.V4]);
|
|
8677
|
+
}
|
|
8678
|
+
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
8679
|
+
return _createClass(AssetHubWestend);
|
|
8680
|
+
}(AssetHubPolkadot);
|
|
8681
|
+
|
|
8207
8682
|
var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
8208
8683
|
function Astar() {
|
|
8209
8684
|
_classCallCheck(this, Astar);
|
|
@@ -8306,8 +8781,12 @@ var BifrostKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8306
8781
|
|
|
8307
8782
|
var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8308
8783
|
function BifrostPolkadot() {
|
|
8784
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
8785
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
8786
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8787
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
8309
8788
|
_classCallCheck(this, BifrostPolkadot);
|
|
8310
|
-
return _callSuper(this, BifrostPolkadot, [
|
|
8789
|
+
return _callSuper(this, BifrostPolkadot, [chain, info, type, version]);
|
|
8311
8790
|
}
|
|
8312
8791
|
_inherits(BifrostPolkadot, _ParachainNode);
|
|
8313
8792
|
return _createClass(BifrostPolkadot, [{
|
|
@@ -8406,6 +8885,15 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8406
8885
|
}]);
|
|
8407
8886
|
}(ParachainNode);
|
|
8408
8887
|
|
|
8888
|
+
var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
8889
|
+
function BifrostPaseo() {
|
|
8890
|
+
_classCallCheck(this, BifrostPaseo);
|
|
8891
|
+
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', Version.V4]);
|
|
8892
|
+
}
|
|
8893
|
+
_inherits(BifrostPaseo, _BifrostPolkadot);
|
|
8894
|
+
return _createClass(BifrostPaseo);
|
|
8895
|
+
}(BifrostPolkadot);
|
|
8896
|
+
|
|
8409
8897
|
var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8410
8898
|
function BridgeHubKusama() {
|
|
8411
8899
|
_classCallCheck(this, BridgeHubKusama);
|
|
@@ -8435,8 +8923,12 @@ var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8435
8923
|
|
|
8436
8924
|
var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8437
8925
|
function BridgeHubPolkadot() {
|
|
8926
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
8927
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
8928
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8929
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
8438
8930
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
8439
|
-
return _callSuper(this, BridgeHubPolkadot, [
|
|
8931
|
+
return _callSuper(this, BridgeHubPolkadot, [chain, info, type, version]);
|
|
8440
8932
|
}
|
|
8441
8933
|
_inherits(BridgeHubPolkadot, _ParachainNode);
|
|
8442
8934
|
return _createClass(BridgeHubPolkadot, [{
|
|
@@ -8460,6 +8952,24 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8460
8952
|
}]);
|
|
8461
8953
|
}(ParachainNode);
|
|
8462
8954
|
|
|
8955
|
+
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
8956
|
+
function BridgeHubPaseo() {
|
|
8957
|
+
_classCallCheck(this, BridgeHubPaseo);
|
|
8958
|
+
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', Version.V4]);
|
|
8959
|
+
}
|
|
8960
|
+
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
8961
|
+
return _createClass(BridgeHubPaseo);
|
|
8962
|
+
}(BridgeHubPolkadot);
|
|
8963
|
+
|
|
8964
|
+
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
8965
|
+
function BridgeHubWestend() {
|
|
8966
|
+
_classCallCheck(this, BridgeHubWestend);
|
|
8967
|
+
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', Version.V4]);
|
|
8968
|
+
}
|
|
8969
|
+
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
8970
|
+
return _createClass(BridgeHubWestend);
|
|
8971
|
+
}(BridgeHubPolkadot);
|
|
8972
|
+
|
|
8463
8973
|
var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
8464
8974
|
function Centrifuge() {
|
|
8465
8975
|
_classCallCheck(this, Centrifuge);
|
|
@@ -8513,8 +9023,12 @@ var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8513
9023
|
|
|
8514
9024
|
var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
8515
9025
|
function Collectives() {
|
|
9026
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
9027
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
9028
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9029
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
8516
9030
|
_classCallCheck(this, Collectives);
|
|
8517
|
-
return _callSuper(this, Collectives, [
|
|
9031
|
+
return _callSuper(this, Collectives, [chain, info, type, version]);
|
|
8518
9032
|
}
|
|
8519
9033
|
_inherits(Collectives, _ParachainNode);
|
|
8520
9034
|
return _createClass(Collectives, [{
|
|
@@ -8537,6 +9051,15 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8537
9051
|
}]);
|
|
8538
9052
|
}(ParachainNode);
|
|
8539
9053
|
|
|
9054
|
+
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
9055
|
+
function CollectivesWestend() {
|
|
9056
|
+
_classCallCheck(this, CollectivesWestend);
|
|
9057
|
+
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', Version.V4]);
|
|
9058
|
+
}
|
|
9059
|
+
_inherits(CollectivesWestend, _Collectives);
|
|
9060
|
+
return _createClass(CollectivesWestend);
|
|
9061
|
+
}(Collectives);
|
|
9062
|
+
|
|
8540
9063
|
var ComposableFinance = /*#__PURE__*/function (_ParachainNode) {
|
|
8541
9064
|
function ComposableFinance() {
|
|
8542
9065
|
_classCallCheck(this, ComposableFinance);
|
|
@@ -8582,8 +9105,12 @@ var CoretimeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8582
9105
|
|
|
8583
9106
|
var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8584
9107
|
function CoretimePolkadot() {
|
|
9108
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
9109
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
9110
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9111
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
8585
9112
|
_classCallCheck(this, CoretimePolkadot);
|
|
8586
|
-
return _callSuper(this, CoretimePolkadot, [
|
|
9113
|
+
return _callSuper(this, CoretimePolkadot, [chain, info, type, version]);
|
|
8587
9114
|
}
|
|
8588
9115
|
_inherits(CoretimePolkadot, _ParachainNode);
|
|
8589
9116
|
return _createClass(CoretimePolkadot, [{
|
|
@@ -8604,6 +9131,24 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8604
9131
|
}]);
|
|
8605
9132
|
}(ParachainNode);
|
|
8606
9133
|
|
|
9134
|
+
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9135
|
+
function CoretimePaseo() {
|
|
9136
|
+
_classCallCheck(this, CoretimePaseo);
|
|
9137
|
+
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', Version.V4]);
|
|
9138
|
+
}
|
|
9139
|
+
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
9140
|
+
return _createClass(CoretimePaseo);
|
|
9141
|
+
}(CoretimePolkadot);
|
|
9142
|
+
|
|
9143
|
+
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9144
|
+
function CoretimeWestend() {
|
|
9145
|
+
_classCallCheck(this, CoretimeWestend);
|
|
9146
|
+
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', Version.V4]);
|
|
9147
|
+
}
|
|
9148
|
+
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
9149
|
+
return _createClass(CoretimeWestend);
|
|
9150
|
+
}(CoretimePolkadot);
|
|
9151
|
+
|
|
8607
9152
|
var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
8608
9153
|
function Crab() {
|
|
8609
9154
|
_classCallCheck(this, Crab);
|
|
@@ -8841,8 +9386,12 @@ var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8841
9386
|
|
|
8842
9387
|
var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
8843
9388
|
function Heima() {
|
|
9389
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
9390
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'litentry';
|
|
9391
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9392
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
8844
9393
|
_classCallCheck(this, Heima);
|
|
8845
|
-
return _callSuper(this, Heima, [
|
|
9394
|
+
return _callSuper(this, Heima, [chain, info, type, version]);
|
|
8846
9395
|
}
|
|
8847
9396
|
_inherits(Heima, _ParachainNode);
|
|
8848
9397
|
return _createClass(Heima, [{
|
|
@@ -8861,6 +9410,15 @@ var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8861
9410
|
}]);
|
|
8862
9411
|
}(ParachainNode);
|
|
8863
9412
|
|
|
9413
|
+
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
9414
|
+
function HeimaPaseo() {
|
|
9415
|
+
_classCallCheck(this, HeimaPaseo);
|
|
9416
|
+
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', Version.V4]);
|
|
9417
|
+
}
|
|
9418
|
+
_inherits(HeimaPaseo, _Heima);
|
|
9419
|
+
return _createClass(HeimaPaseo);
|
|
9420
|
+
}(Heima);
|
|
9421
|
+
|
|
8864
9422
|
var GAS_LIMIT = 1000000000n;
|
|
8865
9423
|
var getAssetMultiLocation = function getAssetMultiLocation(asset) {
|
|
8866
9424
|
if (!isForeignAsset(asset) && asset.symbol === getNativeAssetSymbol('Polimec')) {
|
|
@@ -9058,8 +9616,12 @@ var createCustomXcmAh = function createCustomXcmAh(_ref, version) {
|
|
|
9058
9616
|
};
|
|
9059
9617
|
var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
9060
9618
|
function Hydration() {
|
|
9619
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Hydration';
|
|
9620
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hydradx';
|
|
9621
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9622
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9061
9623
|
_classCallCheck(this, Hydration);
|
|
9062
|
-
return _callSuper(this, Hydration, [
|
|
9624
|
+
return _callSuper(this, Hydration, [chain, info, type, version]);
|
|
9063
9625
|
}
|
|
9064
9626
|
_inherits(Hydration, _ParachainNode);
|
|
9065
9627
|
return _createClass(Hydration, [{
|
|
@@ -9219,6 +9781,15 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9219
9781
|
}(ParachainNode);
|
|
9220
9782
|
Hydration.NATIVE_ASSET_ID = 0;
|
|
9221
9783
|
|
|
9784
|
+
var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
9785
|
+
function HydrationPaseo() {
|
|
9786
|
+
_classCallCheck(this, HydrationPaseo);
|
|
9787
|
+
return _callSuper(this, HydrationPaseo, ['HydrationPaseo', 'rococoHydraDX', 'paseo', Version.V4]);
|
|
9788
|
+
}
|
|
9789
|
+
_inherits(HydrationPaseo, _Hydration);
|
|
9790
|
+
return _createClass(HydrationPaseo);
|
|
9791
|
+
}(Hydration);
|
|
9792
|
+
|
|
9222
9793
|
var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
9223
9794
|
function Interlay() {
|
|
9224
9795
|
_classCallCheck(this, Interlay);
|
|
@@ -9340,8 +9911,12 @@ var Karura = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9340
9911
|
|
|
9341
9912
|
var KiltSpiritnet = /*#__PURE__*/function (_ParachainNode) {
|
|
9342
9913
|
function KiltSpiritnet() {
|
|
9914
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'KiltSpiritnet';
|
|
9915
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'kilt';
|
|
9916
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9917
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9343
9918
|
_classCallCheck(this, KiltSpiritnet);
|
|
9344
|
-
return _callSuper(this, KiltSpiritnet, [
|
|
9919
|
+
return _callSuper(this, KiltSpiritnet, [chain, info, type, version]);
|
|
9345
9920
|
}
|
|
9346
9921
|
_inherits(KiltSpiritnet, _ParachainNode);
|
|
9347
9922
|
return _createClass(KiltSpiritnet, [{
|
|
@@ -9362,6 +9937,15 @@ var KiltSpiritnet = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9362
9937
|
}]);
|
|
9363
9938
|
}(ParachainNode);
|
|
9364
9939
|
|
|
9940
|
+
var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
9941
|
+
function KiltPaseo() {
|
|
9942
|
+
_classCallCheck(this, KiltPaseo);
|
|
9943
|
+
return _callSuper(this, KiltPaseo, ['KiltPaseo', 'kilt', 'paseo', Version.V4]);
|
|
9944
|
+
}
|
|
9945
|
+
_inherits(KiltPaseo, _KiltSpiritnet);
|
|
9946
|
+
return _createClass(KiltPaseo);
|
|
9947
|
+
}(KiltSpiritnet);
|
|
9948
|
+
|
|
9365
9949
|
var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
9366
9950
|
function Kintsugi() {
|
|
9367
9951
|
_classCallCheck(this, Kintsugi);
|
|
@@ -9410,8 +9994,12 @@ var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9410
9994
|
|
|
9411
9995
|
var Laos = /*#__PURE__*/function (_ParachainNode) {
|
|
9412
9996
|
function Laos() {
|
|
9997
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Laos';
|
|
9998
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'laos';
|
|
9999
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10000
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9413
10001
|
_classCallCheck(this, Laos);
|
|
9414
|
-
return _callSuper(this, Laos, [
|
|
10002
|
+
return _callSuper(this, Laos, [chain, info, type, version]);
|
|
9415
10003
|
}
|
|
9416
10004
|
_inherits(Laos, _ParachainNode);
|
|
9417
10005
|
return _createClass(Laos, [{
|
|
@@ -9439,6 +10027,15 @@ var Laos = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9439
10027
|
}]);
|
|
9440
10028
|
}(ParachainNode);
|
|
9441
10029
|
|
|
10030
|
+
var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
10031
|
+
function LaosPaseo() {
|
|
10032
|
+
_classCallCheck(this, LaosPaseo);
|
|
10033
|
+
return _callSuper(this, LaosPaseo, ['LaosPaseo', 'laos-sigma', 'paseo', Version.V4]);
|
|
10034
|
+
}
|
|
10035
|
+
_inherits(LaosPaseo, _Laos);
|
|
10036
|
+
return _createClass(LaosPaseo);
|
|
10037
|
+
}(Laos);
|
|
10038
|
+
|
|
9442
10039
|
var Manta = /*#__PURE__*/function (_ParachainNode) {
|
|
9443
10040
|
function Manta() {
|
|
9444
10041
|
_classCallCheck(this, Manta);
|
|
@@ -9493,8 +10090,12 @@ Manta.NATIVE_ASSET_ID = 1n;
|
|
|
9493
10090
|
|
|
9494
10091
|
var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
9495
10092
|
function Moonbeam() {
|
|
10093
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
10094
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
10095
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10096
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9496
10097
|
_classCallCheck(this, Moonbeam);
|
|
9497
|
-
return _callSuper(this, Moonbeam, [
|
|
10098
|
+
return _callSuper(this, Moonbeam, [chain, info, type, version]);
|
|
9498
10099
|
}
|
|
9499
10100
|
_inherits(Moonbeam, _ParachainNode);
|
|
9500
10101
|
return _createClass(Moonbeam, [{
|
|
@@ -9753,8 +10354,12 @@ var Mythos = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9753
10354
|
|
|
9754
10355
|
var NeuroWeb = /*#__PURE__*/function (_ParachainNode) {
|
|
9755
10356
|
function NeuroWeb() {
|
|
10357
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'NeuroWeb';
|
|
10358
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'neuroweb';
|
|
10359
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10360
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9756
10361
|
_classCallCheck(this, NeuroWeb);
|
|
9757
|
-
return _callSuper(this, NeuroWeb, [
|
|
10362
|
+
return _callSuper(this, NeuroWeb, [chain, info, type, version]);
|
|
9758
10363
|
}
|
|
9759
10364
|
_inherits(NeuroWeb, _ParachainNode);
|
|
9760
10365
|
return _createClass(NeuroWeb, [{
|
|
@@ -9765,10 +10370,23 @@ var NeuroWeb = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9765
10370
|
}]);
|
|
9766
10371
|
}(ParachainNode);
|
|
9767
10372
|
|
|
10373
|
+
var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
10374
|
+
function NeuroWebPaseo() {
|
|
10375
|
+
_classCallCheck(this, NeuroWebPaseo);
|
|
10376
|
+
return _callSuper(this, NeuroWebPaseo, ['NeuroWebPaseo', 'NeuroWeb', 'paseo', Version.V4]);
|
|
10377
|
+
}
|
|
10378
|
+
_inherits(NeuroWebPaseo, _NeuroWeb);
|
|
10379
|
+
return _createClass(NeuroWebPaseo);
|
|
10380
|
+
}(NeuroWeb);
|
|
10381
|
+
|
|
9768
10382
|
var Nodle = /*#__PURE__*/function (_ParachainNode) {
|
|
9769
10383
|
function Nodle() {
|
|
10384
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Nodle';
|
|
10385
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'nodle';
|
|
10386
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10387
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
9770
10388
|
_classCallCheck(this, Nodle);
|
|
9771
|
-
return _callSuper(this, Nodle, [
|
|
10389
|
+
return _callSuper(this, Nodle, [chain, info, type, version]);
|
|
9772
10390
|
}
|
|
9773
10391
|
_inherits(Nodle, _ParachainNode);
|
|
9774
10392
|
return _createClass(Nodle, [{
|
|
@@ -9792,6 +10410,54 @@ var Nodle = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9792
10410
|
}]);
|
|
9793
10411
|
}(ParachainNode);
|
|
9794
10412
|
|
|
10413
|
+
var NodlePaseo = /*#__PURE__*/function (_Nodle) {
|
|
10414
|
+
function NodlePaseo() {
|
|
10415
|
+
_classCallCheck(this, NodlePaseo);
|
|
10416
|
+
return _callSuper(this, NodlePaseo, ['NodlePaseo', 'NodleParadis', 'paseo', Version.V4]);
|
|
10417
|
+
}
|
|
10418
|
+
_inherits(NodlePaseo, _Nodle);
|
|
10419
|
+
return _createClass(NodlePaseo);
|
|
10420
|
+
}(Nodle);
|
|
10421
|
+
|
|
10422
|
+
var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
10423
|
+
function PeoplePolkadot() {
|
|
10424
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
10425
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
10426
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10427
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V4;
|
|
10428
|
+
_classCallCheck(this, PeoplePolkadot);
|
|
10429
|
+
return _callSuper(this, PeoplePolkadot, [chain, info, type, version]);
|
|
10430
|
+
}
|
|
10431
|
+
_inherits(PeoplePolkadot, _ParachainNode);
|
|
10432
|
+
return _createClass(PeoplePolkadot, [{
|
|
10433
|
+
key: "transferPolkadotXCM",
|
|
10434
|
+
value: function transferPolkadotXCM(input) {
|
|
10435
|
+
var scenario = input.scenario;
|
|
10436
|
+
if (scenario === 'ParaToPara') {
|
|
10437
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
10438
|
+
}
|
|
10439
|
+
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
10440
|
+
}
|
|
10441
|
+
}, {
|
|
10442
|
+
key: "getRelayToParaOverrides",
|
|
10443
|
+
value: function getRelayToParaOverrides() {
|
|
10444
|
+
return {
|
|
10445
|
+
method: 'limited_teleport_assets',
|
|
10446
|
+
includeFee: true
|
|
10447
|
+
};
|
|
10448
|
+
}
|
|
10449
|
+
}]);
|
|
10450
|
+
}(ParachainNode);
|
|
10451
|
+
|
|
10452
|
+
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10453
|
+
function PAssetHub() {
|
|
10454
|
+
_classCallCheck(this, PAssetHub);
|
|
10455
|
+
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', Version.V4]);
|
|
10456
|
+
}
|
|
10457
|
+
_inherits(PAssetHub, _PeoplePolkadot);
|
|
10458
|
+
return _createClass(PAssetHub);
|
|
10459
|
+
}(PeoplePolkadot);
|
|
10460
|
+
|
|
9795
10461
|
var Peaq = /*#__PURE__*/function (_ParachainNode) {
|
|
9796
10462
|
function Peaq() {
|
|
9797
10463
|
_classCallCheck(this, Peaq);
|
|
@@ -9876,6 +10542,15 @@ var Pendulum = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9876
10542
|
}]);
|
|
9877
10543
|
}(ParachainNode);
|
|
9878
10544
|
|
|
10545
|
+
var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
10546
|
+
function Penpal() {
|
|
10547
|
+
_classCallCheck(this, Penpal);
|
|
10548
|
+
return _callSuper(this, Penpal, ['Penpal', 'westendPenpal', 'westend', Version.V4]);
|
|
10549
|
+
}
|
|
10550
|
+
_inherits(Penpal, _Moonbeam);
|
|
10551
|
+
return _createClass(Penpal);
|
|
10552
|
+
}(Moonbeam);
|
|
10553
|
+
|
|
9879
10554
|
var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9880
10555
|
function PeopleKusama() {
|
|
9881
10556
|
_classCallCheck(this, PeopleKusama);
|
|
@@ -9903,31 +10578,23 @@ var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9903
10578
|
}]);
|
|
9904
10579
|
}(ParachainNode);
|
|
9905
10580
|
|
|
9906
|
-
var
|
|
9907
|
-
function
|
|
9908
|
-
_classCallCheck(this,
|
|
9909
|
-
return _callSuper(this,
|
|
10581
|
+
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10582
|
+
function PeoplePaseo() {
|
|
10583
|
+
_classCallCheck(this, PeoplePaseo);
|
|
10584
|
+
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', Version.V4]);
|
|
9910
10585
|
}
|
|
9911
|
-
_inherits(
|
|
9912
|
-
return _createClass(
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
value: function getRelayToParaOverrides() {
|
|
9924
|
-
return {
|
|
9925
|
-
method: 'limited_teleport_assets',
|
|
9926
|
-
includeFee: true
|
|
9927
|
-
};
|
|
9928
|
-
}
|
|
9929
|
-
}]);
|
|
9930
|
-
}(ParachainNode);
|
|
10586
|
+
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
10587
|
+
return _createClass(PeoplePaseo);
|
|
10588
|
+
}(PeoplePolkadot);
|
|
10589
|
+
|
|
10590
|
+
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10591
|
+
function PeopleWestend() {
|
|
10592
|
+
_classCallCheck(this, PeopleWestend);
|
|
10593
|
+
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', Version.V4]);
|
|
10594
|
+
}
|
|
10595
|
+
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
10596
|
+
return _createClass(PeopleWestend);
|
|
10597
|
+
}(PeoplePolkadot);
|
|
9931
10598
|
|
|
9932
10599
|
var determineDestWeight = function determineDestWeight(destNode) {
|
|
9933
10600
|
if (destNode === 'Astar') {
|
|
@@ -10190,8 +10857,12 @@ Unique.NATIVE_ASSET_ID = 0;
|
|
|
10190
10857
|
|
|
10191
10858
|
var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
10192
10859
|
function Zeitgeist() {
|
|
10860
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Zeitgeist';
|
|
10861
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zeitgeist';
|
|
10862
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10863
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Version.V3;
|
|
10193
10864
|
_classCallCheck(this, Zeitgeist);
|
|
10194
|
-
return _callSuper(this, Zeitgeist, [
|
|
10865
|
+
return _callSuper(this, Zeitgeist, [chain, info, type, version]);
|
|
10195
10866
|
}
|
|
10196
10867
|
_inherits(Zeitgeist, _ParachainNode);
|
|
10197
10868
|
return _createClass(Zeitgeist, [{
|
|
@@ -10239,6 +10910,15 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10239
10910
|
}]);
|
|
10240
10911
|
}(ParachainNode);
|
|
10241
10912
|
|
|
10913
|
+
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
10914
|
+
function ZeitgeistPaseo() {
|
|
10915
|
+
_classCallCheck(this, ZeitgeistPaseo);
|
|
10916
|
+
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', Version.V3]);
|
|
10917
|
+
}
|
|
10918
|
+
_inherits(ZeitgeistPaseo, _Zeitgeist);
|
|
10919
|
+
return _createClass(ZeitgeistPaseo);
|
|
10920
|
+
}(Zeitgeist);
|
|
10921
|
+
|
|
10242
10922
|
var nodes = function nodes() {
|
|
10243
10923
|
return {
|
|
10244
10924
|
AssetHubPolkadot: new AssetHubPolkadot(),
|
|
@@ -10290,7 +10970,29 @@ var nodes = function nodes() {
|
|
|
10290
10970
|
Curio: new Curio(),
|
|
10291
10971
|
Mythos: new Mythos(),
|
|
10292
10972
|
Peaq: new Peaq(),
|
|
10293
|
-
Polimec: new Polimec()
|
|
10973
|
+
Polimec: new Polimec(),
|
|
10974
|
+
// Westend chains
|
|
10975
|
+
AssetHubWestend: new AssetHubWestend(),
|
|
10976
|
+
BridgeHubWestend: new BridgeHubWestend(),
|
|
10977
|
+
CollectivesWestend: new CollectivesWestend(),
|
|
10978
|
+
CoretimeWestend: new CoretimeWestend(),
|
|
10979
|
+
PeopleWestend: new PeopleWestend(),
|
|
10980
|
+
Penpal: new Penpal(),
|
|
10981
|
+
// Paseo chains
|
|
10982
|
+
AssetHubPaseo: new AssetHubPaseo(),
|
|
10983
|
+
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
10984
|
+
CoretimePaseo: new CoretimePaseo(),
|
|
10985
|
+
PAssetHub: new PAssetHub(),
|
|
10986
|
+
PeoplePaseo: new PeoplePaseo(),
|
|
10987
|
+
AjunaPaseo: new AjunaPaseo(),
|
|
10988
|
+
BifrostPaseo: new BifrostPaseo(),
|
|
10989
|
+
HeimaPaseo: new HeimaPaseo(),
|
|
10990
|
+
HydrationPaseo: new HydrationPaseo(),
|
|
10991
|
+
KiltPaseo: new KiltPaseo(),
|
|
10992
|
+
LaosPaseo: new LaosPaseo(),
|
|
10993
|
+
NeuroWebPaseo: new NeuroWebPaseo(),
|
|
10994
|
+
NodlePaseo: new NodlePaseo(),
|
|
10995
|
+
ZeitgeistPaseo: new ZeitgeistPaseo()
|
|
10294
10996
|
};
|
|
10295
10997
|
};
|
|
10296
10998
|
|
|
@@ -11146,4 +11848,4 @@ var Builder = function Builder(api) {
|
|
|
11146
11848
|
return new GeneralBuilder(api, new BatchTransactionManager());
|
|
11147
11849
|
};
|
|
11148
11850
|
|
|
11149
|
-
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addXcmVersionHeader, assertAddressIsString, assertHasLocation, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId,
|
|
11851
|
+
export { AssetClaimBuilder, BatchMode, BridgeHaltedError, Builder, DRY_RUN_CLIENT_TIMEOUT_MS, DryRunFailedError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidParameterError, NoXCMSupportImplementedError, NodeNotSupportedError, PolkadotXcmError, ScenarioNotSupportedError, TX_CLIENT_TIMEOUT_MS, TransferToAhNotSupported, UnableToComputeError, XTokensError, addXcmVersionHeader, assertAddressIsString, assertHasLocation, assertToIsString, blake2b256, blake2b512, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, convertSs58, createApiInstanceForNode, createAssetsFilter, createBaseExecuteXcm, createBeneficiaryLocXTokens, createBeneficiaryLocation, createDirectExecuteXcm, createExecuteCall, createExecuteExchangeXcm, createMultiAsset, createVersionedMultiAssets, createX1Payload, deriveAccountId, dryRun, dryRunOrigin, encodeSs58, getAssetBalance, getAssetBalanceInternal, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getBridgeStatus, getChainLocation, getChainVersion, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOriginXcmFee, getOriginXcmFeeEstimate, getParaEthTransferFees, getParaId, getRelayChainOf, getTNode, getTransferInfo, getTransferableAmount, getTransferableAmountInternal, getXcmFee, getXcmFeeEstimate, handleExecuteTransfer, handleSwapExecuteTransfer, handleToAhTeleport, localizeLocation, maybeOverrideMultiAsset, maybeOverrideMultiAssets, resolveModuleError, resolveParaId, reverseTransformMultiLocation, send, sortMultiAssets, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, validateAddress, verifyEdOnDestination };
|