@paraspell/sdk-core 8.15.1 → 8.15.2
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 +3 -3
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -9103,16 +9103,16 @@ var getAssetBalance = /*#__PURE__*/function () {
|
|
|
9103
9103
|
var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
9104
9104
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
9105
9105
|
var _getExistentialDeposi;
|
|
9106
|
-
var api, account, accountDestination, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
9106
|
+
var api, account, accountDestination, ahAddress, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
9107
9107
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9108
9108
|
while (1) switch (_context.prev = _context.next) {
|
|
9109
9109
|
case 0:
|
|
9110
|
-
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
|
|
9110
|
+
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, ahAddress = _ref.ahAddress, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
|
|
9111
9111
|
_context.next = 3;
|
|
9112
9112
|
return api.init(origin);
|
|
9113
9113
|
case 3:
|
|
9114
9114
|
_context.next = 5;
|
|
9115
|
-
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).build();
|
|
9115
|
+
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).ahAddress(ahAddress).build();
|
|
9116
9116
|
case 5:
|
|
9117
9117
|
tx = _context.sent;
|
|
9118
9118
|
_context.next = 8;
|
package/dist/index.d.ts
CHANGED
|
@@ -352,6 +352,10 @@ type TGetOriginFeeDetailsOptionsBase = {
|
|
|
352
352
|
* The destination account.
|
|
353
353
|
*/
|
|
354
354
|
accountDestination: string;
|
|
355
|
+
/**
|
|
356
|
+
* The address of the account.
|
|
357
|
+
*/
|
|
358
|
+
ahAddress?: string;
|
|
355
359
|
/**
|
|
356
360
|
* The fee margin percentage.
|
|
357
361
|
*/
|
|
@@ -1659,7 +1663,7 @@ declare const getBalanceForeign: <TApi, TRes>(options: TGetBalanceForeignOptions
|
|
|
1659
1663
|
declare const getBalanceNativeInternal: <TApi, TRes>({ address, node, api, currency }: TGetBalanceNativeOptions<TApi, TRes>) => Promise<bigint>;
|
|
1660
1664
|
declare const getBalanceNative: <TApi, TRes>(options: TGetBalanceNativeOptions<TApi, TRes>) => Promise<bigint>;
|
|
1661
1665
|
|
|
1662
|
-
declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1666
|
+
declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, ahAddress, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1663
1667
|
declare const getOriginFeeDetails: <TApi, TRes>(options: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1664
1668
|
|
|
1665
1669
|
declare const getMaxNativeTransferableAmountInternal: <TApi, TRes>({ api, address, node, currency }: TGetMaxNativeTransferableAmountOptions<TApi, TRes>) => Promise<bigint>;
|
package/dist/index.mjs
CHANGED
|
@@ -9104,16 +9104,16 @@ var getAssetBalance = /*#__PURE__*/function () {
|
|
|
9104
9104
|
var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
9105
9105
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
9106
9106
|
var _getExistentialDeposi;
|
|
9107
|
-
var api, account, accountDestination, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
9107
|
+
var api, account, accountDestination, ahAddress, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
9108
9108
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9109
9109
|
while (1) switch (_context.prev = _context.next) {
|
|
9110
9110
|
case 0:
|
|
9111
|
-
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
|
|
9111
|
+
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, ahAddress = _ref.ahAddress, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
|
|
9112
9112
|
_context.next = 3;
|
|
9113
9113
|
return api.init(origin);
|
|
9114
9114
|
case 3:
|
|
9115
9115
|
_context.next = 5;
|
|
9116
|
-
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).build();
|
|
9116
|
+
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).senderAddress(account).ahAddress(ahAddress).build();
|
|
9117
9117
|
case 5:
|
|
9118
9118
|
tx = _context.sent;
|
|
9119
9119
|
_context.next = 8;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk-core",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.2",
|
|
4
4
|
"description": "SDK core for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"ethers": "^6.13.7",
|
|
27
27
|
"viem": "^2.28.1",
|
|
28
|
-
"@paraspell/
|
|
29
|
-
"@paraspell/sdk-common": "8.15.
|
|
30
|
-
"@paraspell/
|
|
28
|
+
"@paraspell/assets": "8.15.2",
|
|
29
|
+
"@paraspell/sdk-common": "8.15.2",
|
|
30
|
+
"@paraspell/pallets": "8.15.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@babel/plugin-syntax-import-attributes": "^7.27.1",
|