@paraspell/sdk-core 10.4.4 → 10.4.6
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 +12 -6
- package/dist/index.mjs +12 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -6930,7 +6930,13 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6930
6930
|
}
|
|
6931
6931
|
throw new InvalidParameterError('Multi-Location address is not supported for this scenario');
|
|
6932
6932
|
case 2:
|
|
6933
|
-
|
|
6933
|
+
if (senderAddress) {
|
|
6934
|
+
_context.n = 3;
|
|
6935
|
+
break;
|
|
6936
|
+
}
|
|
6937
|
+
throw new InvalidParameterError("Please provide senderAddress");
|
|
6938
|
+
case 3:
|
|
6939
|
+
_context.n = 4;
|
|
6934
6940
|
return dryRunInternal({
|
|
6935
6941
|
api: api,
|
|
6936
6942
|
tx: defaultTx,
|
|
@@ -6940,19 +6946,19 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6940
6946
|
address: address,
|
|
6941
6947
|
currency: currency
|
|
6942
6948
|
});
|
|
6943
|
-
case
|
|
6949
|
+
case 4:
|
|
6944
6950
|
dryRunResult = _context.v;
|
|
6945
6951
|
if (!((_dryRunResult$destina = dryRunResult.destination) !== null && _dryRunResult$destina !== void 0 && _dryRunResult$destina.success)) {
|
|
6946
|
-
_context.n =
|
|
6952
|
+
_context.n = 5;
|
|
6947
6953
|
break;
|
|
6948
6954
|
}
|
|
6949
6955
|
return _context.a(2, defaultTx);
|
|
6950
|
-
case
|
|
6956
|
+
case 5:
|
|
6951
6957
|
// If the default tx dry run failed, we need to create execute transaction
|
|
6952
6958
|
dummyTx = createExecuteExchangeXcm(input, MAX_WEIGHT,
|
|
6953
6959
|
// Enter dummy fee values just to get the dry run to pass
|
|
6954
6960
|
BigInt(asset.amount), BigInt(asset.amount) / 2n);
|
|
6955
|
-
_context.n =
|
|
6961
|
+
_context.n = 6;
|
|
6956
6962
|
return getXcmFee({
|
|
6957
6963
|
api: api,
|
|
6958
6964
|
tx: dummyTx,
|
|
@@ -6963,7 +6969,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6963
6969
|
currency: currency,
|
|
6964
6970
|
disableFallback: false
|
|
6965
6971
|
});
|
|
6966
|
-
case
|
|
6972
|
+
case 6:
|
|
6967
6973
|
feeResult = _context.v;
|
|
6968
6974
|
originExecutionFee = padFeeBy(feeResult.origin.fee, 20); // Pad by 20%
|
|
6969
6975
|
destinationExecutionFee = padFeeBy(
|
package/dist/index.mjs
CHANGED
|
@@ -6931,7 +6931,13 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6931
6931
|
}
|
|
6932
6932
|
throw new InvalidParameterError('Multi-Location address is not supported for this scenario');
|
|
6933
6933
|
case 2:
|
|
6934
|
-
|
|
6934
|
+
if (senderAddress) {
|
|
6935
|
+
_context.n = 3;
|
|
6936
|
+
break;
|
|
6937
|
+
}
|
|
6938
|
+
throw new InvalidParameterError("Please provide senderAddress");
|
|
6939
|
+
case 3:
|
|
6940
|
+
_context.n = 4;
|
|
6935
6941
|
return dryRunInternal({
|
|
6936
6942
|
api: api,
|
|
6937
6943
|
tx: defaultTx,
|
|
@@ -6941,19 +6947,19 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6941
6947
|
address: address,
|
|
6942
6948
|
currency: currency
|
|
6943
6949
|
});
|
|
6944
|
-
case
|
|
6950
|
+
case 4:
|
|
6945
6951
|
dryRunResult = _context.v;
|
|
6946
6952
|
if (!((_dryRunResult$destina = dryRunResult.destination) !== null && _dryRunResult$destina !== void 0 && _dryRunResult$destina.success)) {
|
|
6947
|
-
_context.n =
|
|
6953
|
+
_context.n = 5;
|
|
6948
6954
|
break;
|
|
6949
6955
|
}
|
|
6950
6956
|
return _context.a(2, defaultTx);
|
|
6951
|
-
case
|
|
6957
|
+
case 5:
|
|
6952
6958
|
// If the default tx dry run failed, we need to create execute transaction
|
|
6953
6959
|
dummyTx = createExecuteExchangeXcm(input, MAX_WEIGHT,
|
|
6954
6960
|
// Enter dummy fee values just to get the dry run to pass
|
|
6955
6961
|
BigInt(asset.amount), BigInt(asset.amount) / 2n);
|
|
6956
|
-
_context.n =
|
|
6962
|
+
_context.n = 6;
|
|
6957
6963
|
return getXcmFee({
|
|
6958
6964
|
api: api,
|
|
6959
6965
|
tx: dummyTx,
|
|
@@ -6964,7 +6970,7 @@ var handleToAhTeleport = /*#__PURE__*/function () {
|
|
|
6964
6970
|
currency: currency,
|
|
6965
6971
|
disableFallback: false
|
|
6966
6972
|
});
|
|
6967
|
-
case
|
|
6973
|
+
case 6:
|
|
6968
6974
|
feeResult = _context.v;
|
|
6969
6975
|
originExecutionFee = padFeeBy(feeResult.origin.fee, 20); // Pad by 20%
|
|
6970
6976
|
destinationExecutionFee = padFeeBy(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.6",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@noble/hashes": "^1.8.0",
|
|
27
27
|
"@scure/base": "^1.2.6",
|
|
28
28
|
"viem": "^2.30.5",
|
|
29
|
-
"@paraspell/
|
|
30
|
-
"@paraspell/
|
|
31
|
-
"@paraspell/
|
|
29
|
+
"@paraspell/assets": "10.4.6",
|
|
30
|
+
"@paraspell/sdk-common": "10.4.6",
|
|
31
|
+
"@paraspell/pallets": "10.4.6"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|