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