@paraspell/sdk 12.6.3 → 12.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.mjs +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -399,6 +399,9 @@ import { getSupportedDestinations, getFeeAssets, getAssetsObject, getAssetId, ge
|
|
|
399
399
|
//Get chains that support the specific asset related to origin
|
|
400
400
|
getSupportedDestinations(TChain, CURRENCY)
|
|
401
401
|
|
|
402
|
+
//Get reserve chain for specific asset on specific chain
|
|
403
|
+
getAssetReserveChain(chain: TSubstrateChain, location: TLocation)
|
|
404
|
+
|
|
402
405
|
//Find out whether asset is registered on chain and return its entire parameters. If not found, returns null.
|
|
403
406
|
findAssetInfo(TChain, CURRENCY, DESTINATION?)
|
|
404
407
|
|
package/dist/index.mjs
CHANGED
|
@@ -1014,12 +1014,12 @@ var PapiApi = /*#__PURE__*/function () {
|
|
|
1014
1014
|
key: "resolveFeeAsset",
|
|
1015
1015
|
value: function () {
|
|
1016
1016
|
var _resolveFeeAsset = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(options) {
|
|
1017
|
-
var chain, address, assetId;
|
|
1017
|
+
var chain, address, feeAsset, assetId;
|
|
1018
1018
|
return _regenerator().w(function (_context0) {
|
|
1019
1019
|
while (1) switch (_context0.n) {
|
|
1020
1020
|
case 0:
|
|
1021
|
-
chain = options.chain, address = options.address;
|
|
1022
|
-
if (chain.startsWith('Hydration')) {
|
|
1021
|
+
chain = options.chain, address = options.address, feeAsset = options.feeAsset;
|
|
1022
|
+
if (!(!chain.startsWith('Hydration') || feeAsset)) {
|
|
1023
1023
|
_context0.n = 1;
|
|
1024
1024
|
break;
|
|
1025
1025
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.7.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@polkadot-labs/hdkd": "^0.0.26",
|
|
29
29
|
"@polkadot-labs/hdkd-helpers": "^0.0.27",
|
|
30
30
|
"viem": "2.45.0",
|
|
31
|
-
"@paraspell/sdk-core": "12.
|
|
31
|
+
"@paraspell/sdk-core": "12.7.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"polkadot-api": ">= 1.23.3 < 2"
|