@paraspell/sdk 13.6.0 → 13.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 +45 -21
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -345,6 +345,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
345
345
|
{
|
|
346
346
|
symbol: 'USDC',
|
|
347
347
|
decimals: 6,
|
|
348
|
+
existentialDeposit: 0.1,
|
|
348
349
|
location: {
|
|
349
350
|
parents: 1,
|
|
350
351
|
interior: { X3: [{ Parachain: 1000 }, { PalletInstance: 50 }, {
|
|
@@ -363,6 +364,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
363
364
|
symbol: 'MYNEWUSD',
|
|
364
365
|
decimals: 6,
|
|
365
366
|
assetId: '9999',
|
|
367
|
+
existentialDeposit: 0.1,
|
|
366
368
|
location: {
|
|
367
369
|
parents: 0,
|
|
368
370
|
interior: { X2: [{ PalletInstance: 50 }, { GeneralIndex: 9999 }] }
|
|
@@ -373,6 +375,7 @@ SDK features ability to add custom chain and/or custom assets simply by adding i
|
|
|
373
375
|
symbol: 'USDT',
|
|
374
376
|
decimals: 6,
|
|
375
377
|
assetId: '1984',
|
|
378
|
+
existentialDeposit: 0.1,
|
|
376
379
|
location: {
|
|
377
380
|
parents: 0,
|
|
378
381
|
interior: { X2: [{ PalletInstance: 50 }, { GeneralIndex: 1984 }] }
|
package/dist/index.mjs
CHANGED
|
@@ -1807,25 +1807,49 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1807
1807
|
return getBridgeStatus;
|
|
1808
1808
|
}()
|
|
1809
1809
|
}, {
|
|
1810
|
-
key: "
|
|
1810
|
+
key: "getConstant",
|
|
1811
1811
|
value: function () {
|
|
1812
|
-
var
|
|
1813
|
-
var spec, props;
|
|
1812
|
+
var _getConstant = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(pallet, name) {
|
|
1814
1813
|
return _regenerator().w(function (_context18) {
|
|
1815
|
-
while (1) switch (_context18.n) {
|
|
1814
|
+
while (1) switch (_context18.p = _context18.n) {
|
|
1816
1815
|
case 0:
|
|
1816
|
+
_context18.p = 0;
|
|
1817
1817
|
_context18.n = 1;
|
|
1818
|
+
return this.untypedApi.constants[pallet][name]();
|
|
1819
|
+
case 1:
|
|
1820
|
+
return _context18.a(2, _context18.v);
|
|
1821
|
+
case 2:
|
|
1822
|
+
_context18.p = 2;
|
|
1823
|
+
_context18.v;
|
|
1824
|
+
return _context18.a(2, undefined);
|
|
1825
|
+
}
|
|
1826
|
+
}, _callee18, this, [[0, 2]]);
|
|
1827
|
+
}));
|
|
1828
|
+
function getConstant(_x31, _x32) {
|
|
1829
|
+
return _getConstant.apply(this, arguments);
|
|
1830
|
+
}
|
|
1831
|
+
return getConstant;
|
|
1832
|
+
}()
|
|
1833
|
+
}, {
|
|
1834
|
+
key: "getSystemProperties",
|
|
1835
|
+
value: function () {
|
|
1836
|
+
var _getSystemProperties = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19() {
|
|
1837
|
+
var spec, props;
|
|
1838
|
+
return _regenerator().w(function (_context19) {
|
|
1839
|
+
while (1) switch (_context19.n) {
|
|
1840
|
+
case 0:
|
|
1841
|
+
_context19.n = 1;
|
|
1818
1842
|
return this.api.getChainSpecData();
|
|
1819
1843
|
case 1:
|
|
1820
|
-
spec =
|
|
1844
|
+
spec = _context19.v;
|
|
1821
1845
|
props = spec === null || spec === void 0 ? void 0 : spec.properties;
|
|
1822
|
-
return
|
|
1846
|
+
return _context19.a(2, {
|
|
1823
1847
|
ss58Format: typeof (props === null || props === void 0 ? void 0 : props.ss58Format) === 'number' ? props.ss58Format : undefined,
|
|
1824
1848
|
tokenSymbol: [props === null || props === void 0 ? void 0 : props.tokenSymbol].flat()[0],
|
|
1825
1849
|
tokenDecimals: [props === null || props === void 0 ? void 0 : props.tokenDecimals].flat()[0]
|
|
1826
1850
|
});
|
|
1827
1851
|
}
|
|
1828
|
-
},
|
|
1852
|
+
}, _callee19, this);
|
|
1829
1853
|
}));
|
|
1830
1854
|
function getSystemProperties() {
|
|
1831
1855
|
return _getSystemProperties.apply(this, arguments);
|
|
@@ -1863,22 +1887,22 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1863
1887
|
}, {
|
|
1864
1888
|
key: "signAndSubmit",
|
|
1865
1889
|
value: function () {
|
|
1866
|
-
var _signAndSubmit = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
1890
|
+
var _signAndSubmit = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(tx, sender) {
|
|
1867
1891
|
var signer, _yield$tx$signAndSubm, txHash;
|
|
1868
|
-
return _regenerator().w(function (
|
|
1869
|
-
while (1) switch (
|
|
1892
|
+
return _regenerator().w(function (_context20) {
|
|
1893
|
+
while (1) switch (_context20.n) {
|
|
1870
1894
|
case 0:
|
|
1871
1895
|
signer = isSenderSigner(sender) ? sender : createDevSigner(sender);
|
|
1872
|
-
|
|
1896
|
+
_context20.n = 1;
|
|
1873
1897
|
return tx.signAndSubmit(signer);
|
|
1874
1898
|
case 1:
|
|
1875
|
-
_yield$tx$signAndSubm =
|
|
1899
|
+
_yield$tx$signAndSubm = _context20.v;
|
|
1876
1900
|
txHash = _yield$tx$signAndSubm.txHash;
|
|
1877
|
-
return
|
|
1901
|
+
return _context20.a(2, txHash);
|
|
1878
1902
|
}
|
|
1879
|
-
},
|
|
1903
|
+
}, _callee20);
|
|
1880
1904
|
}));
|
|
1881
|
-
function signAndSubmit(
|
|
1905
|
+
function signAndSubmit(_x33, _x34) {
|
|
1882
1906
|
return _signAndSubmit.apply(this, arguments);
|
|
1883
1907
|
}
|
|
1884
1908
|
return signAndSubmit;
|
|
@@ -1886,13 +1910,13 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1886
1910
|
}, {
|
|
1887
1911
|
key: "signAndSubmitFinalized",
|
|
1888
1912
|
value: function () {
|
|
1889
|
-
var _signAndSubmitFinalized = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function
|
|
1913
|
+
var _signAndSubmitFinalized = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(tx, sender) {
|
|
1890
1914
|
var signer;
|
|
1891
|
-
return _regenerator().w(function (
|
|
1892
|
-
while (1) switch (
|
|
1915
|
+
return _regenerator().w(function (_context21) {
|
|
1916
|
+
while (1) switch (_context21.n) {
|
|
1893
1917
|
case 0:
|
|
1894
1918
|
signer = isSenderSigner(sender) ? sender : createDevSigner(sender);
|
|
1895
|
-
return
|
|
1919
|
+
return _context21.a(2, new Promise(function (resolve, reject) {
|
|
1896
1920
|
tx.signSubmitAndWatch(signer).subscribe({
|
|
1897
1921
|
next: function next(event) {
|
|
1898
1922
|
if (event.type === 'finalized' || event.type === 'txBestBlocksState' && event.found) {
|
|
@@ -1909,9 +1933,9 @@ var PapiApi = /*#__PURE__*/function (_PolkadotApi) {
|
|
|
1909
1933
|
});
|
|
1910
1934
|
}));
|
|
1911
1935
|
}
|
|
1912
|
-
},
|
|
1936
|
+
}, _callee21);
|
|
1913
1937
|
}));
|
|
1914
|
-
function signAndSubmitFinalized(
|
|
1938
|
+
function signAndSubmitFinalized(_x35, _x36) {
|
|
1915
1939
|
return _signAndSubmitFinalized.apply(this, arguments);
|
|
1916
1940
|
}
|
|
1917
1941
|
return signAndSubmitFinalized;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paraspell/sdk",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.7.1",
|
|
4
4
|
"description": "SDK for ParaSpell XCM/XCMP tool for developers",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@polkadot-labs/hdkd": "^0.0.28",
|
|
28
28
|
"@polkadot-labs/hdkd-helpers": "^0.0.30",
|
|
29
29
|
"viem": "^2.51.3",
|
|
30
|
-
"@paraspell/sdk-core": "13.
|
|
30
|
+
"@paraspell/sdk-core": "13.7.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"polkadot-api": ">= 2 < 3"
|