@orbinum/sdk 0.6.0 → 0.7.0

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.d.mts CHANGED
@@ -159,12 +159,12 @@ declare class SubstrateClient {
159
159
  * const result = await tx.signAndSubmit(signer);
160
160
  * ```
161
161
  */
162
- get unsafe(): polkadot_api.UnsafeApi<unknown>;
162
+ get unsafe(): polkadot_api.TypedApi<polkadot_api.ChainDefinition, false>;
163
163
  /**
164
164
  * Wraps pre-built SCALE call bytes (from protocol-core TransactionBuilder)
165
165
  * into a PAPI UnsafeTransaction that can be signed and submitted.
166
166
  */
167
- txFromCallData(callData: Uint8Array): Promise<polkadot_api.UnsafeTransaction<any, string, string, any, Record<string, {
167
+ txFromCallData(callData: Uint8Array): Promise<polkadot_api.Transaction<any, Record<string, {
168
168
  value: any;
169
169
  additionalSigned: any;
170
170
  } | {
@@ -1346,6 +1346,20 @@ declare class AccountMappingModule {
1346
1346
  dispatchAsLinkedAccount(params: DispatchAsLinkedParams, signer: PolkadotSigner): Promise<TxResult>;
1347
1347
  }
1348
1348
 
1349
+ /**
1350
+ * Typed client for general chain state queries under the `chain_*` namespace.
1351
+ */
1352
+ declare class ChainModule {
1353
+ private readonly substrate;
1354
+ constructor(substrate: SubstrateClient);
1355
+ /**
1356
+ * Returns `true` if the given SS58 account is an active Aura validator.
1357
+ *
1358
+ * Reads `pallet_aura::Authorities` directly from storage at the best known block.
1359
+ */
1360
+ isValidator(ss58Address: string): Promise<boolean>;
1361
+ }
1362
+
1349
1363
  type RpcV2MerkleProof = {
1350
1364
  path: string[];
1351
1365
  leafIndex: number;
@@ -1896,6 +1910,8 @@ declare class OrbinumClient {
1896
1910
  readonly accountMapping: AccountMappingModule;
1897
1911
  /** Typed access to `privacy_*` custom RPC endpoints. */
1898
1912
  readonly privacy: PrivacyModule;
1913
+ /** Typed access to general chain state via `chain_*` custom RPC endpoints. */
1914
+ readonly chain: ChainModule;
1899
1915
  /** Typed access to `zkVerifier_*` custom RPC endpoints. */
1900
1916
  readonly zkVerifier: ZkVerifierModule;
1901
1917
  /** Typed access to `relayer_*` RPC endpoints (registry lookup and pending fee queries). */
package/dist/index.d.ts CHANGED
@@ -159,12 +159,12 @@ declare class SubstrateClient {
159
159
  * const result = await tx.signAndSubmit(signer);
160
160
  * ```
161
161
  */
162
- get unsafe(): polkadot_api.UnsafeApi<unknown>;
162
+ get unsafe(): polkadot_api.TypedApi<polkadot_api.ChainDefinition, false>;
163
163
  /**
164
164
  * Wraps pre-built SCALE call bytes (from protocol-core TransactionBuilder)
165
165
  * into a PAPI UnsafeTransaction that can be signed and submitted.
166
166
  */
167
- txFromCallData(callData: Uint8Array): Promise<polkadot_api.UnsafeTransaction<any, string, string, any, Record<string, {
167
+ txFromCallData(callData: Uint8Array): Promise<polkadot_api.Transaction<any, Record<string, {
168
168
  value: any;
169
169
  additionalSigned: any;
170
170
  } | {
@@ -1346,6 +1346,20 @@ declare class AccountMappingModule {
1346
1346
  dispatchAsLinkedAccount(params: DispatchAsLinkedParams, signer: PolkadotSigner): Promise<TxResult>;
1347
1347
  }
1348
1348
 
1349
+ /**
1350
+ * Typed client for general chain state queries under the `chain_*` namespace.
1351
+ */
1352
+ declare class ChainModule {
1353
+ private readonly substrate;
1354
+ constructor(substrate: SubstrateClient);
1355
+ /**
1356
+ * Returns `true` if the given SS58 account is an active Aura validator.
1357
+ *
1358
+ * Reads `pallet_aura::Authorities` directly from storage at the best known block.
1359
+ */
1360
+ isValidator(ss58Address: string): Promise<boolean>;
1361
+ }
1362
+
1349
1363
  type RpcV2MerkleProof = {
1350
1364
  path: string[];
1351
1365
  leafIndex: number;
@@ -1896,6 +1910,8 @@ declare class OrbinumClient {
1896
1910
  readonly accountMapping: AccountMappingModule;
1897
1911
  /** Typed access to `privacy_*` custom RPC endpoints. */
1898
1912
  readonly privacy: PrivacyModule;
1913
+ /** Typed access to general chain state via `chain_*` custom RPC endpoints. */
1914
+ readonly chain: ChainModule;
1899
1915
  /** Typed access to `zkVerifier_*` custom RPC endpoints. */
1900
1916
  readonly zkVerifier: ZkVerifierModule;
1901
1917
  /** Typed access to `relayer_*` RPC endpoints (registry lookup and pending fee queries). */
package/dist/index.js CHANGED
@@ -130,7 +130,7 @@ module.exports = __toCommonJS(index_exports);
130
130
 
131
131
  // src/substrate/SubstrateClient.ts
132
132
  var import_polkadot_api = require("polkadot-api");
133
- var import_ws_provider = require("polkadot-api/ws-provider");
133
+ var import_ws = require("polkadot-api/ws");
134
134
  var import_metadata_builders = require("@polkadot-api/metadata-builders");
135
135
  var import_substrate_bindings = require("@polkadot-api/substrate-bindings");
136
136
  var import_substrate_bindings2 = require("@polkadot-api/substrate-bindings");
@@ -176,7 +176,7 @@ var SubstrateClient = class _SubstrateClient {
176
176
  * Throws if the node does not respond within `timeoutMs`.
177
177
  */
178
178
  static async connect(wsUrl, timeoutMs = 15e3) {
179
- const provider = (0, import_ws_provider.getWsProvider)(wsUrl);
179
+ const provider = (0, import_ws.getWsProvider)(wsUrl);
180
180
  const papi = (0, import_polkadot_api.createClient)(provider);
181
181
  await Promise.race([
182
182
  papi._request("system_name", []),
@@ -353,20 +353,20 @@ var SubstrateClient = class _SubstrateClient {
353
353
  * into a PAPI UnsafeTransaction that can be signed and submitted.
354
354
  */
355
355
  async txFromCallData(callData) {
356
- return this._papi.getUnsafeApi().txFromCallData(import_polkadot_api.Binary.fromBytes(callData));
356
+ return this._papi.getUnsafeApi().txFromCallData(callData);
357
357
  }
358
358
  /**
359
359
  * Submits a pre-signed extrinsic (hex string) and waits for finalization.
360
360
  */
361
361
  async submit(signedHex) {
362
- return this._papi.submit(signedHex);
362
+ return this._papi.submit(import_polkadot_api.Binary.fromHex(signedHex));
363
363
  }
364
364
  /**
365
365
  * Submits a pre-signed extrinsic and returns an Observable of tx lifecycle events.
366
366
  * Events: TxSigned → TxBroadcasted → TxBestBlocksState → TxFinalized
367
367
  */
368
368
  submitAndWatch(signedHex) {
369
- return this._papi.submitAndWatch(signedHex);
369
+ return this._papi.submitAndWatch(import_polkadot_api.Binary.fromHex(signedHex));
370
370
  }
371
371
  /**
372
372
  * Submits a bare (unsigned) extrinsic hex and waits for finalization.
@@ -374,7 +374,7 @@ var SubstrateClient = class _SubstrateClient {
374
374
  * The bare tx hex is produced by `tx.getBareTx()` from polkadot-api.
375
375
  */
376
376
  async submitUnsignedAndWatch(bareTxHex) {
377
- return this._papi.submit(bareTxHex);
377
+ return this._papi.submit(import_polkadot_api.Binary.fromHex(bareTxHex));
378
378
  }
379
379
  /**
380
380
  * Convenience: wrap raw call bytes and sign+submit in one step.
@@ -1839,7 +1839,7 @@ var ShieldedPoolModule = class {
1839
1839
  asset_id: params.assetId,
1840
1840
  amount: params.amount,
1841
1841
  commitment: import_polkadot_api2.Binary.fromHex(params.commitment),
1842
- encrypted_memo: import_polkadot_api2.Binary.fromBytes(params.encryptedMemo)
1842
+ encrypted_memo: params.encryptedMemo
1843
1843
  });
1844
1844
  return toTxResult(
1845
1845
  await (txOptions !== void 0 ? tx.signAndSubmit(signer, txOptions) : tx.signAndSubmit(signer))
@@ -1859,12 +1859,12 @@ var ShieldedPoolModule = class {
1859
1859
  let changeEncryptedMemo;
1860
1860
  if (params.changeEncryptedMemo && params.changeEncryptedMemo.length > 0) {
1861
1861
  EncryptedMemo.validate(params.changeEncryptedMemo, "changeEncryptedMemo");
1862
- changeEncryptedMemo = import_polkadot_api2.Binary.fromBytes(params.changeEncryptedMemo);
1862
+ changeEncryptedMemo = params.changeEncryptedMemo;
1863
1863
  } else {
1864
- changeEncryptedMemo = import_polkadot_api2.Binary.fromBytes(new Uint8Array(0));
1864
+ changeEncryptedMemo = new Uint8Array(0);
1865
1865
  }
1866
1866
  const tx = callUnsafeTx(entry, {
1867
- proof: import_polkadot_api2.Binary.fromBytes(params.proof),
1867
+ proof: params.proof,
1868
1868
  merkle_root: import_polkadot_api2.Binary.fromHex(params.merkleRoot),
1869
1869
  nullifier: import_polkadot_api2.Binary.fromHex(params.nullifier),
1870
1870
  asset_id: params.assetId,
@@ -1897,11 +1897,11 @@ var ShieldedPoolModule = class {
1897
1897
  out.encryptedMemo,
1898
1898
  `privateTransfer.outputs[${i}].encryptedMemo`
1899
1899
  );
1900
- return import_polkadot_api2.Binary.fromBytes(out.encryptedMemo);
1900
+ return out.encryptedMemo;
1901
1901
  });
1902
1902
  const entry = resolveTx(this.substrate.unsafe, "ShieldedPool", "private_transfer");
1903
1903
  const tx = callUnsafeTx(entry, {
1904
- proof: import_polkadot_api2.Binary.fromBytes(params.proof),
1904
+ proof: params.proof,
1905
1905
  merkle_root: import_polkadot_api2.Binary.fromHex(params.merkleRoot),
1906
1906
  nullifiers,
1907
1907
  commitments,
@@ -1929,7 +1929,7 @@ var ShieldedPoolModule = class {
1929
1929
  assetId: item.assetId,
1930
1930
  amount: item.amount.toString(),
1931
1931
  commitment: import_polkadot_api2.Binary.fromHex(item.commitment),
1932
- encryptedMemo: import_polkadot_api2.Binary.fromBytes(item.encryptedMemo)
1932
+ encryptedMemo: item.encryptedMemo
1933
1933
  };
1934
1934
  });
1935
1935
  const entry = resolveTx(this.substrate.unsafe, "ShieldedPool", "shield_batch");
@@ -1952,9 +1952,9 @@ var ShieldedPoolModule = class {
1952
1952
  commitment: import_polkadot_api2.Binary.fromHex(params.commitment),
1953
1953
  amount: params.amount,
1954
1954
  asset_id: params.assetId,
1955
- encrypted_memo: import_polkadot_api2.Binary.fromBytes(params.encryptedMemo),
1956
- proof: import_polkadot_api2.Binary.fromBytes(params.proof),
1957
- public_signals: import_polkadot_api2.Binary.fromBytes(params.publicSignals)
1955
+ encrypted_memo: params.encryptedMemo,
1956
+ proof: params.proof,
1957
+ public_signals: params.publicSignals
1958
1958
  });
1959
1959
  return toTxResult(
1960
1960
  await (txOptions !== void 0 ? tx.signAndSubmit(signer, txOptions) : tx.signAndSubmit(signer))
@@ -2266,12 +2266,7 @@ var AccountMappingModule = class {
2266
2266
  */
2267
2267
  async addChainLink(params, signer) {
2268
2268
  const entry = resolveTx(this.substrate.unsafe, "accountMapping", "addChainLink");
2269
- const tx = callUnsafeTx(
2270
- entry,
2271
- params.chainId,
2272
- import_polkadot_api3.Binary.fromBytes(params.address),
2273
- import_polkadot_api3.Binary.fromBytes(params.signature)
2274
- );
2269
+ const tx = callUnsafeTx(entry, params.chainId, params.address, params.signature);
2275
2270
  return toTxResult(await tx.signAndSubmit(signer));
2276
2271
  }
2277
2272
  /**
@@ -2342,14 +2337,30 @@ var AccountMappingModule = class {
2342
2337
  entry,
2343
2338
  params.owner,
2344
2339
  params.chainId,
2345
- import_polkadot_api3.Binary.fromBytes(params.address),
2346
- import_polkadot_api3.Binary.fromBytes(params.signature),
2347
- import_polkadot_api3.Binary.fromBytes(params.callData)
2340
+ params.address,
2341
+ params.signature,
2342
+ params.callData
2348
2343
  );
2349
2344
  return toTxResult(await tx.signAndSubmit(signer));
2350
2345
  }
2351
2346
  };
2352
2347
 
2348
+ // src/rpc-v2/ChainModule.ts
2349
+ var ChainModule = class {
2350
+ constructor(substrate) {
2351
+ this.substrate = substrate;
2352
+ }
2353
+ substrate;
2354
+ /**
2355
+ * Returns `true` if the given SS58 account is an active Aura validator.
2356
+ *
2357
+ * Reads `pallet_aura::Authorities` directly from storage at the best known block.
2358
+ */
2359
+ async isValidator(ss58Address) {
2360
+ return this.substrate.request("chain_isValidator", [ss58Address]);
2361
+ }
2362
+ };
2363
+
2353
2364
  // src/rpc-v2/helpers.ts
2354
2365
  function mapAssetBalance(balance) {
2355
2366
  return {
@@ -3391,6 +3402,8 @@ var OrbinumClient = class _OrbinumClient {
3391
3402
  accountMapping;
3392
3403
  /** Typed access to `privacy_*` custom RPC endpoints. */
3393
3404
  privacy;
3405
+ /** Typed access to general chain state via `chain_*` custom RPC endpoints. */
3406
+ chain;
3394
3407
  /** Typed access to `zkVerifier_*` custom RPC endpoints. */
3395
3408
  zkVerifier;
3396
3409
  /** Typed access to `relayer_*` RPC endpoints (registry lookup and pending fee queries). */
@@ -3409,6 +3422,7 @@ var OrbinumClient = class _OrbinumClient {
3409
3422
  this.shieldedPool = new ShieldedPoolModule(substrate);
3410
3423
  this.accountMapping = new AccountMappingModule(substrate);
3411
3424
  this.privacy = new PrivacyModule(substrate);
3425
+ this.chain = new ChainModule(substrate);
3412
3426
  this.zkVerifier = new ZkVerifierModule(substrate);
3413
3427
  this.relayerStatus = new RelayerStatusModule(substrate);
3414
3428
  this.precompiles = evm ? {
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  createClient,
4
4
  Binary
5
5
  } from "polkadot-api";
6
- import { getWsProvider } from "polkadot-api/ws-provider";
6
+ import { getWsProvider } from "polkadot-api/ws";
7
7
  import { getDynamicBuilder, getLookupFn } from "@polkadot-api/metadata-builders";
8
8
  import { decAnyMetadata, unifyMetadata } from "@polkadot-api/substrate-bindings";
9
9
  import { AccountId } from "@polkadot-api/substrate-bindings";
@@ -226,20 +226,20 @@ var SubstrateClient = class _SubstrateClient {
226
226
  * into a PAPI UnsafeTransaction that can be signed and submitted.
227
227
  */
228
228
  async txFromCallData(callData) {
229
- return this._papi.getUnsafeApi().txFromCallData(Binary.fromBytes(callData));
229
+ return this._papi.getUnsafeApi().txFromCallData(callData);
230
230
  }
231
231
  /**
232
232
  * Submits a pre-signed extrinsic (hex string) and waits for finalization.
233
233
  */
234
234
  async submit(signedHex) {
235
- return this._papi.submit(signedHex);
235
+ return this._papi.submit(Binary.fromHex(signedHex));
236
236
  }
237
237
  /**
238
238
  * Submits a pre-signed extrinsic and returns an Observable of tx lifecycle events.
239
239
  * Events: TxSigned → TxBroadcasted → TxBestBlocksState → TxFinalized
240
240
  */
241
241
  submitAndWatch(signedHex) {
242
- return this._papi.submitAndWatch(signedHex);
242
+ return this._papi.submitAndWatch(Binary.fromHex(signedHex));
243
243
  }
244
244
  /**
245
245
  * Submits a bare (unsigned) extrinsic hex and waits for finalization.
@@ -247,7 +247,7 @@ var SubstrateClient = class _SubstrateClient {
247
247
  * The bare tx hex is produced by `tx.getBareTx()` from polkadot-api.
248
248
  */
249
249
  async submitUnsignedAndWatch(bareTxHex) {
250
- return this._papi.submit(bareTxHex);
250
+ return this._papi.submit(Binary.fromHex(bareTxHex));
251
251
  }
252
252
  /**
253
253
  * Convenience: wrap raw call bytes and sign+submit in one step.
@@ -1712,7 +1712,7 @@ var ShieldedPoolModule = class {
1712
1712
  asset_id: params.assetId,
1713
1713
  amount: params.amount,
1714
1714
  commitment: Binary2.fromHex(params.commitment),
1715
- encrypted_memo: Binary2.fromBytes(params.encryptedMemo)
1715
+ encrypted_memo: params.encryptedMemo
1716
1716
  });
1717
1717
  return toTxResult(
1718
1718
  await (txOptions !== void 0 ? tx.signAndSubmit(signer, txOptions) : tx.signAndSubmit(signer))
@@ -1732,12 +1732,12 @@ var ShieldedPoolModule = class {
1732
1732
  let changeEncryptedMemo;
1733
1733
  if (params.changeEncryptedMemo && params.changeEncryptedMemo.length > 0) {
1734
1734
  EncryptedMemo.validate(params.changeEncryptedMemo, "changeEncryptedMemo");
1735
- changeEncryptedMemo = Binary2.fromBytes(params.changeEncryptedMemo);
1735
+ changeEncryptedMemo = params.changeEncryptedMemo;
1736
1736
  } else {
1737
- changeEncryptedMemo = Binary2.fromBytes(new Uint8Array(0));
1737
+ changeEncryptedMemo = new Uint8Array(0);
1738
1738
  }
1739
1739
  const tx = callUnsafeTx(entry, {
1740
- proof: Binary2.fromBytes(params.proof),
1740
+ proof: params.proof,
1741
1741
  merkle_root: Binary2.fromHex(params.merkleRoot),
1742
1742
  nullifier: Binary2.fromHex(params.nullifier),
1743
1743
  asset_id: params.assetId,
@@ -1770,11 +1770,11 @@ var ShieldedPoolModule = class {
1770
1770
  out.encryptedMemo,
1771
1771
  `privateTransfer.outputs[${i}].encryptedMemo`
1772
1772
  );
1773
- return Binary2.fromBytes(out.encryptedMemo);
1773
+ return out.encryptedMemo;
1774
1774
  });
1775
1775
  const entry = resolveTx(this.substrate.unsafe, "ShieldedPool", "private_transfer");
1776
1776
  const tx = callUnsafeTx(entry, {
1777
- proof: Binary2.fromBytes(params.proof),
1777
+ proof: params.proof,
1778
1778
  merkle_root: Binary2.fromHex(params.merkleRoot),
1779
1779
  nullifiers,
1780
1780
  commitments,
@@ -1802,7 +1802,7 @@ var ShieldedPoolModule = class {
1802
1802
  assetId: item.assetId,
1803
1803
  amount: item.amount.toString(),
1804
1804
  commitment: Binary2.fromHex(item.commitment),
1805
- encryptedMemo: Binary2.fromBytes(item.encryptedMemo)
1805
+ encryptedMemo: item.encryptedMemo
1806
1806
  };
1807
1807
  });
1808
1808
  const entry = resolveTx(this.substrate.unsafe, "ShieldedPool", "shield_batch");
@@ -1825,9 +1825,9 @@ var ShieldedPoolModule = class {
1825
1825
  commitment: Binary2.fromHex(params.commitment),
1826
1826
  amount: params.amount,
1827
1827
  asset_id: params.assetId,
1828
- encrypted_memo: Binary2.fromBytes(params.encryptedMemo),
1829
- proof: Binary2.fromBytes(params.proof),
1830
- public_signals: Binary2.fromBytes(params.publicSignals)
1828
+ encrypted_memo: params.encryptedMemo,
1829
+ proof: params.proof,
1830
+ public_signals: params.publicSignals
1831
1831
  });
1832
1832
  return toTxResult(
1833
1833
  await (txOptions !== void 0 ? tx.signAndSubmit(signer, txOptions) : tx.signAndSubmit(signer))
@@ -2139,12 +2139,7 @@ var AccountMappingModule = class {
2139
2139
  */
2140
2140
  async addChainLink(params, signer) {
2141
2141
  const entry = resolveTx(this.substrate.unsafe, "accountMapping", "addChainLink");
2142
- const tx = callUnsafeTx(
2143
- entry,
2144
- params.chainId,
2145
- Binary3.fromBytes(params.address),
2146
- Binary3.fromBytes(params.signature)
2147
- );
2142
+ const tx = callUnsafeTx(entry, params.chainId, params.address, params.signature);
2148
2143
  return toTxResult(await tx.signAndSubmit(signer));
2149
2144
  }
2150
2145
  /**
@@ -2215,14 +2210,30 @@ var AccountMappingModule = class {
2215
2210
  entry,
2216
2211
  params.owner,
2217
2212
  params.chainId,
2218
- Binary3.fromBytes(params.address),
2219
- Binary3.fromBytes(params.signature),
2220
- Binary3.fromBytes(params.callData)
2213
+ params.address,
2214
+ params.signature,
2215
+ params.callData
2221
2216
  );
2222
2217
  return toTxResult(await tx.signAndSubmit(signer));
2223
2218
  }
2224
2219
  };
2225
2220
 
2221
+ // src/rpc-v2/ChainModule.ts
2222
+ var ChainModule = class {
2223
+ constructor(substrate) {
2224
+ this.substrate = substrate;
2225
+ }
2226
+ substrate;
2227
+ /**
2228
+ * Returns `true` if the given SS58 account is an active Aura validator.
2229
+ *
2230
+ * Reads `pallet_aura::Authorities` directly from storage at the best known block.
2231
+ */
2232
+ async isValidator(ss58Address) {
2233
+ return this.substrate.request("chain_isValidator", [ss58Address]);
2234
+ }
2235
+ };
2236
+
2226
2237
  // src/rpc-v2/helpers.ts
2227
2238
  function mapAssetBalance(balance) {
2228
2239
  return {
@@ -3264,6 +3275,8 @@ var OrbinumClient = class _OrbinumClient {
3264
3275
  accountMapping;
3265
3276
  /** Typed access to `privacy_*` custom RPC endpoints. */
3266
3277
  privacy;
3278
+ /** Typed access to general chain state via `chain_*` custom RPC endpoints. */
3279
+ chain;
3267
3280
  /** Typed access to `zkVerifier_*` custom RPC endpoints. */
3268
3281
  zkVerifier;
3269
3282
  /** Typed access to `relayer_*` RPC endpoints (registry lookup and pending fee queries). */
@@ -3282,6 +3295,7 @@ var OrbinumClient = class _OrbinumClient {
3282
3295
  this.shieldedPool = new ShieldedPoolModule(substrate);
3283
3296
  this.accountMapping = new AccountMappingModule(substrate);
3284
3297
  this.privacy = new PrivacyModule(substrate);
3298
+ this.chain = new ChainModule(substrate);
3285
3299
  this.zkVerifier = new ZkVerifierModule(substrate);
3286
3300
  this.relayerStatus = new RelayerStatusModule(substrate);
3287
3301
  this.precompiles = evm ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbinum/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Official TypeScript SDK for Orbinum.",
5
5
  "author": "Orbinum",
6
6
  "license": "MIT",
@@ -35,26 +35,26 @@
35
35
  "homepage": "https://github.com/orbinum/ts-sdk#readme",
36
36
  "devDependencies": {
37
37
  "@eslint/js": "10.0.1",
38
- "@types/node": "25.5.2",
39
- "eslint": "10.2.0",
40
- "prettier": "3.8.1",
38
+ "@types/node": "25.8.0",
39
+ "eslint": "10.4.0",
40
+ "prettier": "3.8.3",
41
41
  "ts-node": "10.9.2",
42
42
  "tsup": "8.5.1",
43
- "typescript": "6.0.2",
44
- "typescript-eslint": "8.58.0",
45
- "vitest": "4.1.3"
43
+ "typescript": "6.0.3",
44
+ "typescript-eslint": "8.59.3",
45
+ "vitest": "4.1.6"
46
46
  },
47
47
  "dependencies": {
48
- "@noble/ciphers": "2.1.1",
49
- "@noble/hashes": "2.0.1",
48
+ "@noble/ciphers": "2.2.0",
49
+ "@noble/hashes": "2.2.0",
50
50
  "@orbinum/proof-generator": "3.7.0",
51
- "@polkadot-api/metadata-builders": "0.13.9",
52
- "@polkadot-api/substrate-bindings": "0.17.0",
53
- "@polkadot-api/tx-utils": "0.2.2",
51
+ "@polkadot-api/metadata-builders": "0.14.2",
52
+ "@polkadot-api/substrate-bindings": "0.20.2",
53
+ "@polkadot-api/tx-utils": "0.3.2",
54
54
  "@polkadot/util-crypto": "14.0.3",
55
- "@scure/base": "2.0.0",
55
+ "@scure/base": "2.2.0",
56
56
  "@zk-kit/baby-jubjub": "1.0.3",
57
- "polkadot-api": "1.23.3",
57
+ "polkadot-api": "2.1.3",
58
58
  "poseidon-lite": "0.3.0"
59
59
  },
60
60
  "scripts": {