@paraspell/sdk-core 10.9.0 → 10.10.0
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 +787 -86
- package/dist/index.d.ts +131 -31
- package/dist/index.mjs +786 -86
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -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;
|
|
@@ -5119,8 +5575,8 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5119
5575
|
case 7:
|
|
5120
5576
|
return _context.f(6);
|
|
5121
5577
|
case 8:
|
|
5122
|
-
assetHubNode =
|
|
5123
|
-
bridgeHubNode =
|
|
5578
|
+
assetHubNode = "AssetHub".concat(getRelayChainOf(origin));
|
|
5579
|
+
bridgeHubNode = "BridgeHub".concat(getRelayChainOf(origin));
|
|
5124
5580
|
currentOrigin = origin;
|
|
5125
5581
|
forwardedXcms = initialForwardedXcm;
|
|
5126
5582
|
nextParaId = initialDestParaId;
|
|
@@ -5133,7 +5589,7 @@ var getXcmFee = /*#__PURE__*/function () {
|
|
|
5133
5589
|
_context.n = 21;
|
|
5134
5590
|
break;
|
|
5135
5591
|
}
|
|
5136
|
-
nextChain = getTNode(nextParaId,
|
|
5592
|
+
nextChain = getTNode(nextParaId, getRelayChainOf(origin).toLowerCase());
|
|
5137
5593
|
if (!(nextChain === null)) {
|
|
5138
5594
|
_context.n = 10;
|
|
5139
5595
|
break;
|
|
@@ -5419,13 +5875,6 @@ var getXcmFeeEstimate = /*#__PURE__*/function () {
|
|
|
5419
5875
|
};
|
|
5420
5876
|
}();
|
|
5421
5877
|
|
|
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
5878
|
var transferRelayToPara = /*#__PURE__*/function () {
|
|
5430
5879
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
5431
5880
|
var api, origin, destination, asset, address, paraIdTo, version, pallet, method, isMultiLocationDestination, serializedApiCall;
|
|
@@ -5961,7 +6410,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
5961
6410
|
_context2.n = 11;
|
|
5962
6411
|
return buildHopInfo({
|
|
5963
6412
|
api: api,
|
|
5964
|
-
node:
|
|
6413
|
+
node: "AssetHub".concat(getRelayChainOf(origin)),
|
|
5965
6414
|
feeData: assetHubFeeResult,
|
|
5966
6415
|
originNode: origin,
|
|
5967
6416
|
currency: currency,
|
|
@@ -5975,7 +6424,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
5975
6424
|
_context2.n = 14;
|
|
5976
6425
|
break;
|
|
5977
6426
|
}
|
|
5978
|
-
bridgeHubNode =
|
|
6427
|
+
bridgeHubNode = "BridgeHub".concat(getRelayChainOf(origin));
|
|
5979
6428
|
_context2.n = 13;
|
|
5980
6429
|
return buildHopInfo({
|
|
5981
6430
|
api: api,
|
|
@@ -6296,7 +6745,7 @@ var handleExecuteTransfer = /*#__PURE__*/function () {
|
|
|
6296
6745
|
}
|
|
6297
6746
|
};
|
|
6298
6747
|
checkAmount(MIN_FEE$1);
|
|
6299
|
-
destChain = getTNode(paraIdTo,
|
|
6748
|
+
destChain = getTNode(paraIdTo, getRelayChainOf(chain).toLowerCase());
|
|
6300
6749
|
internalOptions = {
|
|
6301
6750
|
api: api,
|
|
6302
6751
|
chain: chain,
|
|
@@ -6844,17 +7293,6 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6844
7293
|
};
|
|
6845
7294
|
}();
|
|
6846
7295
|
|
|
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
7296
|
var resolveMultiLocationFromDest = function resolveMultiLocationFromDest(destination, asset) {
|
|
6859
7297
|
if (_typeof(destination) === 'object') return destination;
|
|
6860
7298
|
if (sdkCommon.isRelayChain(destination)) return DOT_MULTILOCATION;
|
|
@@ -7603,8 +8041,12 @@ var transferPolkadotXcm = function transferPolkadotXcm(_ref, method) {
|
|
|
7603
8041
|
|
|
7604
8042
|
var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
7605
8043
|
function Ajuna() {
|
|
8044
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Ajuna';
|
|
8045
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ajuna';
|
|
8046
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8047
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
7606
8048
|
_classCallCheck(this, Ajuna);
|
|
7607
|
-
return _callSuper(this, Ajuna, [
|
|
8049
|
+
return _callSuper(this, Ajuna, [chain, info, type, version]);
|
|
7608
8050
|
}
|
|
7609
8051
|
_inherits(Ajuna, _ParachainNode);
|
|
7610
8052
|
return _createClass(Ajuna, [{
|
|
@@ -7664,6 +8106,15 @@ var Ajuna = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7664
8106
|
}]);
|
|
7665
8107
|
}(ParachainNode);
|
|
7666
8108
|
|
|
8109
|
+
var AjunaPaseo = /*#__PURE__*/function (_Ajuna) {
|
|
8110
|
+
function AjunaPaseo() {
|
|
8111
|
+
_classCallCheck(this, AjunaPaseo);
|
|
8112
|
+
return _callSuper(this, AjunaPaseo, ['AjunaPaseo', 'Ajuna(paseo)', 'paseo', sdkCommon.Version.V4]);
|
|
8113
|
+
}
|
|
8114
|
+
_inherits(AjunaPaseo, _Ajuna);
|
|
8115
|
+
return _createClass(AjunaPaseo);
|
|
8116
|
+
}(Ajuna);
|
|
8117
|
+
|
|
7667
8118
|
var Altair = /*#__PURE__*/function (_ParachainNode) {
|
|
7668
8119
|
function Altair() {
|
|
7669
8120
|
_classCallCheck(this, Altair);
|
|
@@ -7803,8 +8254,12 @@ var createCustomXcmToBifrost = function createCustomXcmToBifrost(_ref, version)
|
|
|
7803
8254
|
var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
7804
8255
|
function AssetHubPolkadot() {
|
|
7805
8256
|
var _this;
|
|
8257
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'AssetHubPolkadot';
|
|
8258
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'PolkadotAssetHub';
|
|
8259
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8260
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
7806
8261
|
_classCallCheck(this, AssetHubPolkadot);
|
|
7807
|
-
_this = _callSuper(this, AssetHubPolkadot, [
|
|
8262
|
+
_this = _callSuper(this, AssetHubPolkadot, [chain, info, type, version]);
|
|
7808
8263
|
_this.handleLocalReserveTransfer = function (input) {
|
|
7809
8264
|
var useDOTAsFeeAsset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
7810
8265
|
var api = input.api,
|
|
@@ -7845,7 +8300,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7845
8300
|
address = input.address,
|
|
7846
8301
|
version = input.version,
|
|
7847
8302
|
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()) ===
|
|
8303
|
+
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
8304
|
var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
7850
8305
|
destLocation: createBridgeDestination(targetChain, destination, paraIdTo),
|
|
7851
8306
|
beneficiaryLocation: createBeneficiaryLocation({
|
|
@@ -7856,7 +8311,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
7856
8311
|
multiAsset: createMultiAsset(version, asset.amount, asset.multiLocation)
|
|
7857
8312
|
});
|
|
7858
8313
|
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()) ===
|
|
8314
|
+
} 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
8315
|
var _modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
7861
8316
|
destLocation: createBridgeDestination(targetChain, destination, paraIdTo),
|
|
7862
8317
|
multiAsset: createMultiAsset(version, asset.amount, DOT_MULTILOCATION)
|
|
@@ -8031,7 +8486,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8031
8486
|
destination = input.destination,
|
|
8032
8487
|
_input$version = input.version,
|
|
8033
8488
|
version = _input$version === void 0 ? this.version : _input$version;
|
|
8034
|
-
if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && asset.symbol ===
|
|
8489
|
+
if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && asset.symbol === this.getNativeAssetSymbol()) {
|
|
8035
8490
|
return _objectSpread2(_objectSpread2({}, input), {}, {
|
|
8036
8491
|
multiAsset: createMultiAsset(version, asset.amount, DOT_MULTILOCATION)
|
|
8037
8492
|
});
|
|
@@ -8116,7 +8571,7 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8116
8571
|
case 9:
|
|
8117
8572
|
isTrusted = !sdkCommon.isTMultiLocation(destination) && sdkCommon.isSystemChain(destination);
|
|
8118
8573
|
isDotReserveAh = !sdkCommon.isTMultiLocation(destination) && CHAINS_DOT_RESERVE_AH.has(destination);
|
|
8119
|
-
if (!(scenario === 'ParaToPara' && asset.symbol ===
|
|
8574
|
+
if (!(scenario === 'ParaToPara' && asset.symbol === this.getNativeAssetSymbol() && !assets.isForeignAsset(asset) && !isDotReserveAh && !isTrusted)) {
|
|
8120
8575
|
_context3.n = 10;
|
|
8121
8576
|
break;
|
|
8122
8577
|
}
|
|
@@ -8203,6 +8658,24 @@ var AssetHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8203
8658
|
}]);
|
|
8204
8659
|
}(ParachainNode);
|
|
8205
8660
|
|
|
8661
|
+
var AssetHubPaseo = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8662
|
+
function AssetHubPaseo() {
|
|
8663
|
+
_classCallCheck(this, AssetHubPaseo);
|
|
8664
|
+
return _callSuper(this, AssetHubPaseo, ['AssetHubPaseo', 'PaseoAssetHub', 'paseo', sdkCommon.Version.V4]);
|
|
8665
|
+
}
|
|
8666
|
+
_inherits(AssetHubPaseo, _AssetHubPolkadot);
|
|
8667
|
+
return _createClass(AssetHubPaseo);
|
|
8668
|
+
}(AssetHubPolkadot);
|
|
8669
|
+
|
|
8670
|
+
var AssetHubWestend = /*#__PURE__*/function (_AssetHubPolkadot) {
|
|
8671
|
+
function AssetHubWestend() {
|
|
8672
|
+
_classCallCheck(this, AssetHubWestend);
|
|
8673
|
+
return _callSuper(this, AssetHubWestend, ['AssetHubWestend', 'WestendAssetHub', 'westend', sdkCommon.Version.V4]);
|
|
8674
|
+
}
|
|
8675
|
+
_inherits(AssetHubWestend, _AssetHubPolkadot);
|
|
8676
|
+
return _createClass(AssetHubWestend);
|
|
8677
|
+
}(AssetHubPolkadot);
|
|
8678
|
+
|
|
8206
8679
|
var Astar = /*#__PURE__*/function (_ParachainNode) {
|
|
8207
8680
|
function Astar() {
|
|
8208
8681
|
_classCallCheck(this, Astar);
|
|
@@ -8305,8 +8778,12 @@ var BifrostKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8305
8778
|
|
|
8306
8779
|
var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8307
8780
|
function BifrostPolkadot() {
|
|
8781
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BifrostPolkadot';
|
|
8782
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'bifrost';
|
|
8783
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8784
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
8308
8785
|
_classCallCheck(this, BifrostPolkadot);
|
|
8309
|
-
return _callSuper(this, BifrostPolkadot, [
|
|
8786
|
+
return _callSuper(this, BifrostPolkadot, [chain, info, type, version]);
|
|
8310
8787
|
}
|
|
8311
8788
|
_inherits(BifrostPolkadot, _ParachainNode);
|
|
8312
8789
|
return _createClass(BifrostPolkadot, [{
|
|
@@ -8405,6 +8882,15 @@ var BifrostPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8405
8882
|
}]);
|
|
8406
8883
|
}(ParachainNode);
|
|
8407
8884
|
|
|
8885
|
+
var BifrostPaseo = /*#__PURE__*/function (_BifrostPolkadot) {
|
|
8886
|
+
function BifrostPaseo() {
|
|
8887
|
+
_classCallCheck(this, BifrostPaseo);
|
|
8888
|
+
return _callSuper(this, BifrostPaseo, ['BifrostPaseo', 'Bifrost(Paseo)', 'paseo', sdkCommon.Version.V4]);
|
|
8889
|
+
}
|
|
8890
|
+
_inherits(BifrostPaseo, _BifrostPolkadot);
|
|
8891
|
+
return _createClass(BifrostPaseo);
|
|
8892
|
+
}(BifrostPolkadot);
|
|
8893
|
+
|
|
8408
8894
|
var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
8409
8895
|
function BridgeHubKusama() {
|
|
8410
8896
|
_classCallCheck(this, BridgeHubKusama);
|
|
@@ -8434,8 +8920,12 @@ var BridgeHubKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8434
8920
|
|
|
8435
8921
|
var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8436
8922
|
function BridgeHubPolkadot() {
|
|
8923
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'BridgeHubPolkadot';
|
|
8924
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotBridgeHub';
|
|
8925
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
8926
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
8437
8927
|
_classCallCheck(this, BridgeHubPolkadot);
|
|
8438
|
-
return _callSuper(this, BridgeHubPolkadot, [
|
|
8928
|
+
return _callSuper(this, BridgeHubPolkadot, [chain, info, type, version]);
|
|
8439
8929
|
}
|
|
8440
8930
|
_inherits(BridgeHubPolkadot, _ParachainNode);
|
|
8441
8931
|
return _createClass(BridgeHubPolkadot, [{
|
|
@@ -8459,6 +8949,24 @@ var BridgeHubPolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8459
8949
|
}]);
|
|
8460
8950
|
}(ParachainNode);
|
|
8461
8951
|
|
|
8952
|
+
var BridgeHubPaseo = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
8953
|
+
function BridgeHubPaseo() {
|
|
8954
|
+
_classCallCheck(this, BridgeHubPaseo);
|
|
8955
|
+
return _callSuper(this, BridgeHubPaseo, ['BridgeHubPaseo', 'PaseoBridgeHub', 'paseo', sdkCommon.Version.V4]);
|
|
8956
|
+
}
|
|
8957
|
+
_inherits(BridgeHubPaseo, _BridgeHubPolkadot);
|
|
8958
|
+
return _createClass(BridgeHubPaseo);
|
|
8959
|
+
}(BridgeHubPolkadot);
|
|
8960
|
+
|
|
8961
|
+
var BridgeHubWestend = /*#__PURE__*/function (_BridgeHubPolkadot) {
|
|
8962
|
+
function BridgeHubWestend() {
|
|
8963
|
+
_classCallCheck(this, BridgeHubWestend);
|
|
8964
|
+
return _callSuper(this, BridgeHubWestend, ['BridgeHubWestend', 'westendBridgeHub', 'westend', sdkCommon.Version.V4]);
|
|
8965
|
+
}
|
|
8966
|
+
_inherits(BridgeHubWestend, _BridgeHubPolkadot);
|
|
8967
|
+
return _createClass(BridgeHubWestend);
|
|
8968
|
+
}(BridgeHubPolkadot);
|
|
8969
|
+
|
|
8462
8970
|
var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
8463
8971
|
function Centrifuge() {
|
|
8464
8972
|
_classCallCheck(this, Centrifuge);
|
|
@@ -8512,8 +9020,12 @@ var Centrifuge = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8512
9020
|
|
|
8513
9021
|
var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
8514
9022
|
function Collectives() {
|
|
9023
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Collectives';
|
|
9024
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCollectives';
|
|
9025
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9026
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
8515
9027
|
_classCallCheck(this, Collectives);
|
|
8516
|
-
return _callSuper(this, Collectives, [
|
|
9028
|
+
return _callSuper(this, Collectives, [chain, info, type, version]);
|
|
8517
9029
|
}
|
|
8518
9030
|
_inherits(Collectives, _ParachainNode);
|
|
8519
9031
|
return _createClass(Collectives, [{
|
|
@@ -8536,6 +9048,15 @@ var Collectives = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8536
9048
|
}]);
|
|
8537
9049
|
}(ParachainNode);
|
|
8538
9050
|
|
|
9051
|
+
var CollectivesWestend = /*#__PURE__*/function (_Collectives) {
|
|
9052
|
+
function CollectivesWestend() {
|
|
9053
|
+
_classCallCheck(this, CollectivesWestend);
|
|
9054
|
+
return _callSuper(this, CollectivesWestend, ['CollectivesWestend', 'westendCollectives', 'westend', sdkCommon.Version.V4]);
|
|
9055
|
+
}
|
|
9056
|
+
_inherits(CollectivesWestend, _Collectives);
|
|
9057
|
+
return _createClass(CollectivesWestend);
|
|
9058
|
+
}(Collectives);
|
|
9059
|
+
|
|
8539
9060
|
var ComposableFinance = /*#__PURE__*/function (_ParachainNode) {
|
|
8540
9061
|
function ComposableFinance() {
|
|
8541
9062
|
_classCallCheck(this, ComposableFinance);
|
|
@@ -8581,8 +9102,12 @@ var CoretimeKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8581
9102
|
|
|
8582
9103
|
var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
8583
9104
|
function CoretimePolkadot() {
|
|
9105
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'CoretimePolkadot';
|
|
9106
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotCoretime';
|
|
9107
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9108
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
8584
9109
|
_classCallCheck(this, CoretimePolkadot);
|
|
8585
|
-
return _callSuper(this, CoretimePolkadot, [
|
|
9110
|
+
return _callSuper(this, CoretimePolkadot, [chain, info, type, version]);
|
|
8586
9111
|
}
|
|
8587
9112
|
_inherits(CoretimePolkadot, _ParachainNode);
|
|
8588
9113
|
return _createClass(CoretimePolkadot, [{
|
|
@@ -8603,6 +9128,24 @@ var CoretimePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8603
9128
|
}]);
|
|
8604
9129
|
}(ParachainNode);
|
|
8605
9130
|
|
|
9131
|
+
var CoretimePaseo = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9132
|
+
function CoretimePaseo() {
|
|
9133
|
+
_classCallCheck(this, CoretimePaseo);
|
|
9134
|
+
return _callSuper(this, CoretimePaseo, ['CoretimePaseo', 'PaseoCoretime', 'paseo', sdkCommon.Version.V4]);
|
|
9135
|
+
}
|
|
9136
|
+
_inherits(CoretimePaseo, _CoretimePolkadot);
|
|
9137
|
+
return _createClass(CoretimePaseo);
|
|
9138
|
+
}(CoretimePolkadot);
|
|
9139
|
+
|
|
9140
|
+
var CoretimeWestend = /*#__PURE__*/function (_CoretimePolkadot) {
|
|
9141
|
+
function CoretimeWestend() {
|
|
9142
|
+
_classCallCheck(this, CoretimeWestend);
|
|
9143
|
+
return _callSuper(this, CoretimeWestend, ['CoretimeWestend', 'westendCoretime', 'westend', sdkCommon.Version.V4]);
|
|
9144
|
+
}
|
|
9145
|
+
_inherits(CoretimeWestend, _CoretimePolkadot);
|
|
9146
|
+
return _createClass(CoretimeWestend);
|
|
9147
|
+
}(CoretimePolkadot);
|
|
9148
|
+
|
|
8606
9149
|
var Crab = /*#__PURE__*/function (_ParachainNode) {
|
|
8607
9150
|
function Crab() {
|
|
8608
9151
|
_classCallCheck(this, Crab);
|
|
@@ -8840,8 +9383,12 @@ var Encointer = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8840
9383
|
|
|
8841
9384
|
var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
8842
9385
|
function Heima() {
|
|
9386
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Heima';
|
|
9387
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'litentry';
|
|
9388
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9389
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
8843
9390
|
_classCallCheck(this, Heima);
|
|
8844
|
-
return _callSuper(this, Heima, [
|
|
9391
|
+
return _callSuper(this, Heima, [chain, info, type, version]);
|
|
8845
9392
|
}
|
|
8846
9393
|
_inherits(Heima, _ParachainNode);
|
|
8847
9394
|
return _createClass(Heima, [{
|
|
@@ -8860,6 +9407,15 @@ var Heima = /*#__PURE__*/function (_ParachainNode) {
|
|
|
8860
9407
|
}]);
|
|
8861
9408
|
}(ParachainNode);
|
|
8862
9409
|
|
|
9410
|
+
var HeimaPaseo = /*#__PURE__*/function (_Heima) {
|
|
9411
|
+
function HeimaPaseo() {
|
|
9412
|
+
_classCallCheck(this, HeimaPaseo);
|
|
9413
|
+
return _callSuper(this, HeimaPaseo, ['HeimaPaseo', 'heima-paseo', 'paseo', sdkCommon.Version.V4]);
|
|
9414
|
+
}
|
|
9415
|
+
_inherits(HeimaPaseo, _Heima);
|
|
9416
|
+
return _createClass(HeimaPaseo);
|
|
9417
|
+
}(Heima);
|
|
9418
|
+
|
|
8863
9419
|
var GAS_LIMIT = 1000000000n;
|
|
8864
9420
|
var getAssetMultiLocation = function getAssetMultiLocation(asset) {
|
|
8865
9421
|
if (!assets.isForeignAsset(asset) && asset.symbol === assets.getNativeAssetSymbol('Polimec')) {
|
|
@@ -9057,8 +9613,12 @@ var createCustomXcmAh = function createCustomXcmAh(_ref, version) {
|
|
|
9057
9613
|
};
|
|
9058
9614
|
var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
9059
9615
|
function Hydration() {
|
|
9616
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Hydration';
|
|
9617
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'hydradx';
|
|
9618
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9619
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9060
9620
|
_classCallCheck(this, Hydration);
|
|
9061
|
-
return _callSuper(this, Hydration, [
|
|
9621
|
+
return _callSuper(this, Hydration, [chain, info, type, version]);
|
|
9062
9622
|
}
|
|
9063
9623
|
_inherits(Hydration, _ParachainNode);
|
|
9064
9624
|
return _createClass(Hydration, [{
|
|
@@ -9218,6 +9778,15 @@ var Hydration = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9218
9778
|
}(ParachainNode);
|
|
9219
9779
|
Hydration.NATIVE_ASSET_ID = 0;
|
|
9220
9780
|
|
|
9781
|
+
var HydrationPaseo = /*#__PURE__*/function (_Hydration) {
|
|
9782
|
+
function HydrationPaseo() {
|
|
9783
|
+
_classCallCheck(this, HydrationPaseo);
|
|
9784
|
+
return _callSuper(this, HydrationPaseo, ['HydrationPaseo', 'rococoHydraDX', 'paseo', sdkCommon.Version.V4]);
|
|
9785
|
+
}
|
|
9786
|
+
_inherits(HydrationPaseo, _Hydration);
|
|
9787
|
+
return _createClass(HydrationPaseo);
|
|
9788
|
+
}(Hydration);
|
|
9789
|
+
|
|
9221
9790
|
var Interlay = /*#__PURE__*/function (_ParachainNode) {
|
|
9222
9791
|
function Interlay() {
|
|
9223
9792
|
_classCallCheck(this, Interlay);
|
|
@@ -9339,8 +9908,12 @@ var Karura = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9339
9908
|
|
|
9340
9909
|
var KiltSpiritnet = /*#__PURE__*/function (_ParachainNode) {
|
|
9341
9910
|
function KiltSpiritnet() {
|
|
9911
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'KiltSpiritnet';
|
|
9912
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'kilt';
|
|
9913
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9914
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9342
9915
|
_classCallCheck(this, KiltSpiritnet);
|
|
9343
|
-
return _callSuper(this, KiltSpiritnet, [
|
|
9916
|
+
return _callSuper(this, KiltSpiritnet, [chain, info, type, version]);
|
|
9344
9917
|
}
|
|
9345
9918
|
_inherits(KiltSpiritnet, _ParachainNode);
|
|
9346
9919
|
return _createClass(KiltSpiritnet, [{
|
|
@@ -9361,6 +9934,15 @@ var KiltSpiritnet = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9361
9934
|
}]);
|
|
9362
9935
|
}(ParachainNode);
|
|
9363
9936
|
|
|
9937
|
+
var KiltPaseo = /*#__PURE__*/function (_KiltSpiritnet) {
|
|
9938
|
+
function KiltPaseo() {
|
|
9939
|
+
_classCallCheck(this, KiltPaseo);
|
|
9940
|
+
return _callSuper(this, KiltPaseo, ['KiltPaseo', 'kilt', 'paseo', sdkCommon.Version.V4]);
|
|
9941
|
+
}
|
|
9942
|
+
_inherits(KiltPaseo, _KiltSpiritnet);
|
|
9943
|
+
return _createClass(KiltPaseo);
|
|
9944
|
+
}(KiltSpiritnet);
|
|
9945
|
+
|
|
9364
9946
|
var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
9365
9947
|
function Kintsugi() {
|
|
9366
9948
|
_classCallCheck(this, Kintsugi);
|
|
@@ -9409,8 +9991,12 @@ var Kintsugi = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9409
9991
|
|
|
9410
9992
|
var Laos = /*#__PURE__*/function (_ParachainNode) {
|
|
9411
9993
|
function Laos() {
|
|
9994
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Laos';
|
|
9995
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'laos';
|
|
9996
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
9997
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9412
9998
|
_classCallCheck(this, Laos);
|
|
9413
|
-
return _callSuper(this, Laos, [
|
|
9999
|
+
return _callSuper(this, Laos, [chain, info, type, version]);
|
|
9414
10000
|
}
|
|
9415
10001
|
_inherits(Laos, _ParachainNode);
|
|
9416
10002
|
return _createClass(Laos, [{
|
|
@@ -9438,6 +10024,15 @@ var Laos = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9438
10024
|
}]);
|
|
9439
10025
|
}(ParachainNode);
|
|
9440
10026
|
|
|
10027
|
+
var LaosPaseo = /*#__PURE__*/function (_Laos) {
|
|
10028
|
+
function LaosPaseo() {
|
|
10029
|
+
_classCallCheck(this, LaosPaseo);
|
|
10030
|
+
return _callSuper(this, LaosPaseo, ['LaosPaseo', 'laos-sigma', 'paseo', sdkCommon.Version.V4]);
|
|
10031
|
+
}
|
|
10032
|
+
_inherits(LaosPaseo, _Laos);
|
|
10033
|
+
return _createClass(LaosPaseo);
|
|
10034
|
+
}(Laos);
|
|
10035
|
+
|
|
9441
10036
|
var Manta = /*#__PURE__*/function (_ParachainNode) {
|
|
9442
10037
|
function Manta() {
|
|
9443
10038
|
_classCallCheck(this, Manta);
|
|
@@ -9492,8 +10087,12 @@ Manta.NATIVE_ASSET_ID = 1n;
|
|
|
9492
10087
|
|
|
9493
10088
|
var Moonbeam = /*#__PURE__*/function (_ParachainNode) {
|
|
9494
10089
|
function Moonbeam() {
|
|
10090
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Moonbeam';
|
|
10091
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'moonbeam';
|
|
10092
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10093
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9495
10094
|
_classCallCheck(this, Moonbeam);
|
|
9496
|
-
return _callSuper(this, Moonbeam, [
|
|
10095
|
+
return _callSuper(this, Moonbeam, [chain, info, type, version]);
|
|
9497
10096
|
}
|
|
9498
10097
|
_inherits(Moonbeam, _ParachainNode);
|
|
9499
10098
|
return _createClass(Moonbeam, [{
|
|
@@ -9752,8 +10351,12 @@ var Mythos = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9752
10351
|
|
|
9753
10352
|
var NeuroWeb = /*#__PURE__*/function (_ParachainNode) {
|
|
9754
10353
|
function NeuroWeb() {
|
|
10354
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'NeuroWeb';
|
|
10355
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'neuroweb';
|
|
10356
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10357
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9755
10358
|
_classCallCheck(this, NeuroWeb);
|
|
9756
|
-
return _callSuper(this, NeuroWeb, [
|
|
10359
|
+
return _callSuper(this, NeuroWeb, [chain, info, type, version]);
|
|
9757
10360
|
}
|
|
9758
10361
|
_inherits(NeuroWeb, _ParachainNode);
|
|
9759
10362
|
return _createClass(NeuroWeb, [{
|
|
@@ -9764,10 +10367,23 @@ var NeuroWeb = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9764
10367
|
}]);
|
|
9765
10368
|
}(ParachainNode);
|
|
9766
10369
|
|
|
10370
|
+
var NeuroWebPaseo = /*#__PURE__*/function (_NeuroWeb) {
|
|
10371
|
+
function NeuroWebPaseo() {
|
|
10372
|
+
_classCallCheck(this, NeuroWebPaseo);
|
|
10373
|
+
return _callSuper(this, NeuroWebPaseo, ['NeuroWebPaseo', 'NeuroWeb', 'paseo', sdkCommon.Version.V4]);
|
|
10374
|
+
}
|
|
10375
|
+
_inherits(NeuroWebPaseo, _NeuroWeb);
|
|
10376
|
+
return _createClass(NeuroWebPaseo);
|
|
10377
|
+
}(NeuroWeb);
|
|
10378
|
+
|
|
9767
10379
|
var Nodle = /*#__PURE__*/function (_ParachainNode) {
|
|
9768
10380
|
function Nodle() {
|
|
10381
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Nodle';
|
|
10382
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'nodle';
|
|
10383
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10384
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
9769
10385
|
_classCallCheck(this, Nodle);
|
|
9770
|
-
return _callSuper(this, Nodle, [
|
|
10386
|
+
return _callSuper(this, Nodle, [chain, info, type, version]);
|
|
9771
10387
|
}
|
|
9772
10388
|
_inherits(Nodle, _ParachainNode);
|
|
9773
10389
|
return _createClass(Nodle, [{
|
|
@@ -9791,6 +10407,54 @@ var Nodle = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9791
10407
|
}]);
|
|
9792
10408
|
}(ParachainNode);
|
|
9793
10409
|
|
|
10410
|
+
var NodlePaseo = /*#__PURE__*/function (_Nodle) {
|
|
10411
|
+
function NodlePaseo() {
|
|
10412
|
+
_classCallCheck(this, NodlePaseo);
|
|
10413
|
+
return _callSuper(this, NodlePaseo, ['NodlePaseo', 'NodleParadis', 'paseo', sdkCommon.Version.V4]);
|
|
10414
|
+
}
|
|
10415
|
+
_inherits(NodlePaseo, _Nodle);
|
|
10416
|
+
return _createClass(NodlePaseo);
|
|
10417
|
+
}(Nodle);
|
|
10418
|
+
|
|
10419
|
+
var PeoplePolkadot = /*#__PURE__*/function (_ParachainNode) {
|
|
10420
|
+
function PeoplePolkadot() {
|
|
10421
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'PeoplePolkadot';
|
|
10422
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'polkadotPeople';
|
|
10423
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10424
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V4;
|
|
10425
|
+
_classCallCheck(this, PeoplePolkadot);
|
|
10426
|
+
return _callSuper(this, PeoplePolkadot, [chain, info, type, version]);
|
|
10427
|
+
}
|
|
10428
|
+
_inherits(PeoplePolkadot, _ParachainNode);
|
|
10429
|
+
return _createClass(PeoplePolkadot, [{
|
|
10430
|
+
key: "transferPolkadotXCM",
|
|
10431
|
+
value: function transferPolkadotXCM(input) {
|
|
10432
|
+
var scenario = input.scenario;
|
|
10433
|
+
if (scenario === 'ParaToPara') {
|
|
10434
|
+
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
10435
|
+
}
|
|
10436
|
+
return transferPolkadotXcm(input, 'limited_teleport_assets', 'Unlimited');
|
|
10437
|
+
}
|
|
10438
|
+
}, {
|
|
10439
|
+
key: "getRelayToParaOverrides",
|
|
10440
|
+
value: function getRelayToParaOverrides() {
|
|
10441
|
+
return {
|
|
10442
|
+
method: 'limited_teleport_assets',
|
|
10443
|
+
includeFee: true
|
|
10444
|
+
};
|
|
10445
|
+
}
|
|
10446
|
+
}]);
|
|
10447
|
+
}(ParachainNode);
|
|
10448
|
+
|
|
10449
|
+
var PAssetHub = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10450
|
+
function PAssetHub() {
|
|
10451
|
+
_classCallCheck(this, PAssetHub);
|
|
10452
|
+
return _callSuper(this, PAssetHub, ['PAssetHub', 'PAssetHub - Contracts', 'paseo', sdkCommon.Version.V4]);
|
|
10453
|
+
}
|
|
10454
|
+
_inherits(PAssetHub, _PeoplePolkadot);
|
|
10455
|
+
return _createClass(PAssetHub);
|
|
10456
|
+
}(PeoplePolkadot);
|
|
10457
|
+
|
|
9794
10458
|
var Peaq = /*#__PURE__*/function (_ParachainNode) {
|
|
9795
10459
|
function Peaq() {
|
|
9796
10460
|
_classCallCheck(this, Peaq);
|
|
@@ -9875,6 +10539,15 @@ var Pendulum = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9875
10539
|
}]);
|
|
9876
10540
|
}(ParachainNode);
|
|
9877
10541
|
|
|
10542
|
+
var Penpal = /*#__PURE__*/function (_Moonbeam) {
|
|
10543
|
+
function Penpal() {
|
|
10544
|
+
_classCallCheck(this, Penpal);
|
|
10545
|
+
return _callSuper(this, Penpal, ['Penpal', 'westendPenpal', 'westend', sdkCommon.Version.V4]);
|
|
10546
|
+
}
|
|
10547
|
+
_inherits(Penpal, _Moonbeam);
|
|
10548
|
+
return _createClass(Penpal);
|
|
10549
|
+
}(Moonbeam);
|
|
10550
|
+
|
|
9878
10551
|
var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
9879
10552
|
function PeopleKusama() {
|
|
9880
10553
|
_classCallCheck(this, PeopleKusama);
|
|
@@ -9902,31 +10575,23 @@ var PeopleKusama = /*#__PURE__*/function (_ParachainNode) {
|
|
|
9902
10575
|
}]);
|
|
9903
10576
|
}(ParachainNode);
|
|
9904
10577
|
|
|
9905
|
-
var
|
|
9906
|
-
function
|
|
9907
|
-
_classCallCheck(this,
|
|
9908
|
-
return _callSuper(this,
|
|
10578
|
+
var PeoplePaseo = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10579
|
+
function PeoplePaseo() {
|
|
10580
|
+
_classCallCheck(this, PeoplePaseo);
|
|
10581
|
+
return _callSuper(this, PeoplePaseo, ['PeoplePaseo', 'PaseoPeopleChain', 'paseo', sdkCommon.Version.V4]);
|
|
9909
10582
|
}
|
|
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);
|
|
10583
|
+
_inherits(PeoplePaseo, _PeoplePolkadot);
|
|
10584
|
+
return _createClass(PeoplePaseo);
|
|
10585
|
+
}(PeoplePolkadot);
|
|
10586
|
+
|
|
10587
|
+
var PeopleWestend = /*#__PURE__*/function (_PeoplePolkadot) {
|
|
10588
|
+
function PeopleWestend() {
|
|
10589
|
+
_classCallCheck(this, PeopleWestend);
|
|
10590
|
+
return _callSuper(this, PeopleWestend, ['PeopleWestend', 'westendPeople', 'westend', sdkCommon.Version.V4]);
|
|
10591
|
+
}
|
|
10592
|
+
_inherits(PeopleWestend, _PeoplePolkadot);
|
|
10593
|
+
return _createClass(PeopleWestend);
|
|
10594
|
+
}(PeoplePolkadot);
|
|
9930
10595
|
|
|
9931
10596
|
var determineDestWeight = function determineDestWeight(destNode) {
|
|
9932
10597
|
if (destNode === 'Astar') {
|
|
@@ -10189,8 +10854,12 @@ Unique.NATIVE_ASSET_ID = 0;
|
|
|
10189
10854
|
|
|
10190
10855
|
var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
10191
10856
|
function Zeitgeist() {
|
|
10857
|
+
var chain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Zeitgeist';
|
|
10858
|
+
var info = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zeitgeist';
|
|
10859
|
+
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'polkadot';
|
|
10860
|
+
var version = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : sdkCommon.Version.V3;
|
|
10192
10861
|
_classCallCheck(this, Zeitgeist);
|
|
10193
|
-
return _callSuper(this, Zeitgeist, [
|
|
10862
|
+
return _callSuper(this, Zeitgeist, [chain, info, type, version]);
|
|
10194
10863
|
}
|
|
10195
10864
|
_inherits(Zeitgeist, _ParachainNode);
|
|
10196
10865
|
return _createClass(Zeitgeist, [{
|
|
@@ -10238,6 +10907,15 @@ var Zeitgeist = /*#__PURE__*/function (_ParachainNode) {
|
|
|
10238
10907
|
}]);
|
|
10239
10908
|
}(ParachainNode);
|
|
10240
10909
|
|
|
10910
|
+
var ZeitgeistPaseo = /*#__PURE__*/function (_Zeitgeist) {
|
|
10911
|
+
function ZeitgeistPaseo() {
|
|
10912
|
+
_classCallCheck(this, ZeitgeistPaseo);
|
|
10913
|
+
return _callSuper(this, ZeitgeistPaseo, ['ZeitgeistPaseo', 'ZeitgeistBatteryStation', 'paseo', sdkCommon.Version.V3]);
|
|
10914
|
+
}
|
|
10915
|
+
_inherits(ZeitgeistPaseo, _Zeitgeist);
|
|
10916
|
+
return _createClass(ZeitgeistPaseo);
|
|
10917
|
+
}(Zeitgeist);
|
|
10918
|
+
|
|
10241
10919
|
var nodes = function nodes() {
|
|
10242
10920
|
return {
|
|
10243
10921
|
AssetHubPolkadot: new AssetHubPolkadot(),
|
|
@@ -10289,7 +10967,29 @@ var nodes = function nodes() {
|
|
|
10289
10967
|
Curio: new Curio(),
|
|
10290
10968
|
Mythos: new Mythos(),
|
|
10291
10969
|
Peaq: new Peaq(),
|
|
10292
|
-
Polimec: new Polimec()
|
|
10970
|
+
Polimec: new Polimec(),
|
|
10971
|
+
// Westend chains
|
|
10972
|
+
AssetHubWestend: new AssetHubWestend(),
|
|
10973
|
+
BridgeHubWestend: new BridgeHubWestend(),
|
|
10974
|
+
CollectivesWestend: new CollectivesWestend(),
|
|
10975
|
+
CoretimeWestend: new CoretimeWestend(),
|
|
10976
|
+
PeopleWestend: new PeopleWestend(),
|
|
10977
|
+
Penpal: new Penpal(),
|
|
10978
|
+
// Paseo chains
|
|
10979
|
+
AssetHubPaseo: new AssetHubPaseo(),
|
|
10980
|
+
BridgeHubPaseo: new BridgeHubPaseo(),
|
|
10981
|
+
CoretimePaseo: new CoretimePaseo(),
|
|
10982
|
+
PAssetHub: new PAssetHub(),
|
|
10983
|
+
PeoplePaseo: new PeoplePaseo(),
|
|
10984
|
+
AjunaPaseo: new AjunaPaseo(),
|
|
10985
|
+
BifrostPaseo: new BifrostPaseo(),
|
|
10986
|
+
HeimaPaseo: new HeimaPaseo(),
|
|
10987
|
+
HydrationPaseo: new HydrationPaseo(),
|
|
10988
|
+
KiltPaseo: new KiltPaseo(),
|
|
10989
|
+
LaosPaseo: new LaosPaseo(),
|
|
10990
|
+
NeuroWebPaseo: new NeuroWebPaseo(),
|
|
10991
|
+
NodlePaseo: new NodlePaseo(),
|
|
10992
|
+
ZeitgeistPaseo: new ZeitgeistPaseo()
|
|
10293
10993
|
};
|
|
10294
10994
|
};
|
|
10295
10995
|
|
|
@@ -11184,7 +11884,6 @@ exports.createMultiAsset = createMultiAsset;
|
|
|
11184
11884
|
exports.createVersionedMultiAssets = createVersionedMultiAssets;
|
|
11185
11885
|
exports.createX1Payload = createX1Payload;
|
|
11186
11886
|
exports.deriveAccountId = deriveAccountId;
|
|
11187
|
-
exports.determineRelayChain = determineRelayChain;
|
|
11188
11887
|
exports.dryRun = dryRun;
|
|
11189
11888
|
exports.dryRunOrigin = dryRunOrigin;
|
|
11190
11889
|
exports.encodeSs58 = encodeSs58;
|
|
@@ -11196,6 +11895,7 @@ exports.getBalanceNative = getBalanceNative;
|
|
|
11196
11895
|
exports.getBalanceNativeInternal = getBalanceNativeInternal;
|
|
11197
11896
|
exports.getBridgeStatus = getBridgeStatus;
|
|
11198
11897
|
exports.getChainLocation = getChainLocation;
|
|
11898
|
+
exports.getChainVersion = getChainVersion;
|
|
11199
11899
|
exports.getNode = getNode;
|
|
11200
11900
|
exports.getNodeConfig = getNodeConfig;
|
|
11201
11901
|
exports.getNodeProviders = getNodeProviders;
|
|
@@ -11205,6 +11905,7 @@ exports.getOriginXcmFee = getOriginXcmFee;
|
|
|
11205
11905
|
exports.getOriginXcmFeeEstimate = getOriginXcmFeeEstimate;
|
|
11206
11906
|
exports.getParaEthTransferFees = getParaEthTransferFees;
|
|
11207
11907
|
exports.getParaId = getParaId;
|
|
11908
|
+
exports.getRelayChainOf = getRelayChainOf;
|
|
11208
11909
|
exports.getTNode = getTNode;
|
|
11209
11910
|
exports.getTransferInfo = getTransferInfo;
|
|
11210
11911
|
exports.getTransferableAmount = getTransferableAmount;
|