@paraspell/sdk-core 8.3.0 → 8.3.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/dist/index.cjs +3 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18397,16 +18397,16 @@ var Builder = function Builder(api) {
|
|
|
18397
18397
|
var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
18398
18398
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
18399
18399
|
var _getExistentialDeposi;
|
|
18400
|
-
var api, account, accountDestination, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
18400
|
+
var api, account, accountDestination, ahAccount, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
18401
18401
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18402
18402
|
while (1) switch (_context.prev = _context.next) {
|
|
18403
18403
|
case 0:
|
|
18404
|
-
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 === undefined ? 10 : _ref$feeMarginPercent;
|
|
18404
|
+
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, ahAccount = _ref.ahAccount, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === undefined ? 10 : _ref$feeMarginPercent;
|
|
18405
18405
|
_context.next = 3;
|
|
18406
18406
|
return api.init(origin);
|
|
18407
18407
|
case 3:
|
|
18408
18408
|
_context.next = 5;
|
|
18409
|
-
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).build();
|
|
18409
|
+
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination, ahAccount).build();
|
|
18410
18410
|
case 5:
|
|
18411
18411
|
tx = _context.sent;
|
|
18412
18412
|
_context.next = 8;
|
package/dist/index.d.ts
CHANGED
|
@@ -1213,7 +1213,7 @@ type TGetOriginFeeDetailsOptionsBase = {
|
|
|
1213
1213
|
/**
|
|
1214
1214
|
* The destination node.
|
|
1215
1215
|
*/
|
|
1216
|
-
destination:
|
|
1216
|
+
destination: TNodeWithRelayChains;
|
|
1217
1217
|
/**
|
|
1218
1218
|
* The currency to transfer.
|
|
1219
1219
|
*/
|
|
@@ -1226,6 +1226,10 @@ type TGetOriginFeeDetailsOptionsBase = {
|
|
|
1226
1226
|
* The destination account.
|
|
1227
1227
|
*/
|
|
1228
1228
|
accountDestination: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* The AssetHub address
|
|
1231
|
+
*/
|
|
1232
|
+
ahAccount?: string;
|
|
1229
1233
|
/**
|
|
1230
1234
|
* The fee margin percentage.
|
|
1231
1235
|
*/
|
|
@@ -1418,7 +1422,7 @@ declare const getBalanceNative: <TApi, TRes>(options: TGetBalanceNativeOptions<T
|
|
|
1418
1422
|
declare const getBalanceForeignInternal: <TApi, TRes>({ address, node, currency, api }: TGetBalanceForeignOptions<TApi, TRes>) => Promise<bigint>;
|
|
1419
1423
|
declare const getBalanceForeign: <TApi, TRes>(options: TGetBalanceForeignOptions<TApi, TRes>) => Promise<bigint>;
|
|
1420
1424
|
|
|
1421
|
-
declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1425
|
+
declare const getOriginFeeDetailsInternal: <TApi, TRes>({ api, account, accountDestination, ahAccount, currency, origin, destination, feeMarginPercentage }: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1422
1426
|
declare const getOriginFeeDetails: <TApi, TRes>(options: TGetOriginFeeDetailsOptions<TApi, TRes>) => Promise<TOriginFeeDetails>;
|
|
1423
1427
|
|
|
1424
1428
|
declare const getTransferInfo: <TApi, TRes>({ origin, destination, accountOrigin, accountDestination, currency, api }: TGetTransferInfoOptions<TApi, TRes>) => Promise<TTransferInfo>;
|
package/dist/index.mjs
CHANGED
|
@@ -18395,16 +18395,16 @@ var Builder = function Builder(api) {
|
|
|
18395
18395
|
var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
18396
18396
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
18397
18397
|
var _getExistentialDeposi;
|
|
18398
|
-
var api, account, accountDestination, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
18398
|
+
var api, account, accountDestination, ahAccount, currency, origin, destination, _ref$feeMarginPercent, feeMarginPercentage, tx, xcmFee, xcmFeeWithMargin, nativeBalance, existentialDeposit, sufficientForXCM;
|
|
18399
18399
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18400
18400
|
while (1) switch (_context.prev = _context.next) {
|
|
18401
18401
|
case 0:
|
|
18402
|
-
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 === undefined ? 10 : _ref$feeMarginPercent;
|
|
18402
|
+
api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, ahAccount = _ref.ahAccount, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === undefined ? 10 : _ref$feeMarginPercent;
|
|
18403
18403
|
_context.next = 3;
|
|
18404
18404
|
return api.init(origin);
|
|
18405
18405
|
case 3:
|
|
18406
18406
|
_context.next = 5;
|
|
18407
|
-
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination).build();
|
|
18407
|
+
return Builder(api).from(origin).to(destination).currency(currency).address(accountDestination, ahAccount).build();
|
|
18408
18408
|
case 5:
|
|
18409
18409
|
tx = _context.sent;
|
|
18410
18410
|
_context.next = 8;
|