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