@swapkit/helpers 4.17.1 → 4.18.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.
@@ -114,6 +114,7 @@ declare const initialState: {
114
114
  };
115
115
  rpcUrls: {
116
116
  ADI: string[];
117
+ ALEO: string[];
117
118
  APT: string[];
118
119
  ARB: string[];
119
120
  AURORA: string[];
@@ -458,6 +458,22 @@ declare const errorCodes: {
458
458
  readonly toolbox_stellar_account_not_found: 91104;
459
459
  readonly toolbox_stellar_transaction_failed: 91105;
460
460
  readonly toolbox_stellar_balance_error: 91106;
461
+ /**
462
+ * Toolboxes - Aleo
463
+ */
464
+ readonly toolbox_aleo_no_signer: 91201;
465
+ readonly toolbox_aleo_invalid_address: 91202;
466
+ readonly toolbox_aleo_balance_error: 91203;
467
+ readonly toolbox_aleo_fee_estimation_failed: 91204;
468
+ readonly toolbox_aleo_broadcast_error: 91205;
469
+ readonly toolbox_aleo_transaction_failed: 91206;
470
+ readonly toolbox_aleo_wasm_init_failed: 91207;
471
+ readonly toolbox_aleo_unsupported_token: 91208;
472
+ readonly toolbox_aleo_token_transfer_rejected: 91209;
473
+ readonly toolbox_aleo_insufficient_fee_balance: 91210;
474
+ readonly toolbox_aleo_no_unspent_records: 91211;
475
+ readonly toolbox_aleo_conflicting_signers: 91212;
476
+ readonly toolbox_aleo_no_rpc_urls: 91213;
461
477
  /**
462
478
  * Toolboxes - General
463
479
  */
@@ -973,6 +989,22 @@ export declare class SwapKitError extends Error {
973
989
  readonly toolbox_stellar_account_not_found: 91104;
974
990
  readonly toolbox_stellar_transaction_failed: 91105;
975
991
  readonly toolbox_stellar_balance_error: 91106;
992
+ /**
993
+ * Toolboxes - Aleo
994
+ */
995
+ readonly toolbox_aleo_no_signer: 91201;
996
+ readonly toolbox_aleo_invalid_address: 91202;
997
+ readonly toolbox_aleo_balance_error: 91203;
998
+ readonly toolbox_aleo_fee_estimation_failed: 91204;
999
+ readonly toolbox_aleo_broadcast_error: 91205;
1000
+ readonly toolbox_aleo_transaction_failed: 91206;
1001
+ readonly toolbox_aleo_wasm_init_failed: 91207;
1002
+ readonly toolbox_aleo_unsupported_token: 91208;
1003
+ readonly toolbox_aleo_token_transfer_rejected: 91209;
1004
+ readonly toolbox_aleo_insufficient_fee_balance: 91210;
1005
+ readonly toolbox_aleo_no_unspent_records: 91211;
1006
+ readonly toolbox_aleo_conflicting_signers: 91212;
1007
+ readonly toolbox_aleo_no_rpc_urls: 91213;
976
1008
  /**
977
1009
  * Toolboxes - General
978
1010
  */
@@ -1,3 +1,3 @@
1
1
  import { type Chain, getChainConfig } from "@swapkit/types";
2
2
  export type DerivationPathArray = ReturnType<typeof getChainConfig>["networkDerivationPath"];
3
- export declare const NetworkDerivationPath: Record<Chain, [44, 118, 0, 0, 0] | [44, 931, 0, 0, 0] | [number, number, number, number, number] | [44, 637, 0, 0, 0] | [44, 60, 0, 0, 0] | [44, 397, 0, 0, 0] | [0, 0, 0, 0, 0] | [44, 144, 0, 0, 0] | [44, 501, 0, 0, 0] | [8797555, 1, 0, 0, 0] | [44, 607, 0, 0, 0] | [44, 195, 0, 0, 0] | [44, 148, 0, 0, 0] | [44, 784, 0, 0, 0] | [1852, 1815, 0, 0, 0] | [44, 9004, 0, 0, 0] | [number, number, number, number, (number | undefined)?] | [44, 145, 0, 0, 0] | [84, 2, 0, 0, 0] | [44, 3, 0, 0, 0] | [44, 5, 0, 0, 0] | [44, 133, 0, 0, 0]>;
3
+ export declare const NetworkDerivationPath: Record<Chain, [44, 118, 0, 0, 0] | [44, 931, 0, 0, 0] | [number, number, number, number, number] | [44, 683, 0, 0] | [44, 637, 0, 0, 0] | [44, 60, 0, 0, 0] | [44, 397, 0, 0, 0] | [0, 0, 0, 0, 0] | [44, 144, 0, 0, 0] | [44, 501, 0, 0, 0] | [8797555, 1, 0, 0, 0] | [44, 607, 0, 0, 0] | [44, 195, 0, 0, 0] | [44, 148, 0, 0, 0] | [44, 784, 0, 0, 0] | [1852, 1815, 0, 0, 0] | [44, 9004, 0, 0, 0] | [number, number, number, number, (number | undefined)?] | [44, 145, 0, 0, 0] | [84, 2, 0, 0, 0] | [44, 3, 0, 0, 0] | [44, 5, 0, 0, 0] | [44, 133, 0, 0, 0]>;
@@ -12,7 +12,7 @@ export declare function updateDerivationPath(path: DerivationPathArray, params:
12
12
  account: number;
13
13
  } | {
14
14
  change: number;
15
- }): [44, 118, 0, 0, 0] | [44, 931, 0, 0, 0] | [number, number, number, number, number] | [44, 637, 0, 0, 0] | [44, 60, 0, 0, 0] | [44, 397, 0, 0, 0] | [0, 0, 0, 0, 0] | [44, 144, 0, 0, 0] | [44, 501, 0, 0, 0] | [8797555, 1, 0, 0, 0] | [44, 607, 0, 0, 0] | [44, 195, 0, 0, 0] | [44, 148, 0, 0, 0] | [44, 784, 0, 0, 0] | [1852, 1815, 0, 0, 0] | [44, 9004, 0, 0, 0] | [number, number, number, number, (number | undefined)?] | [44, 145, 0, 0, 0] | [84, 2, 0, 0, 0] | [44, 3, 0, 0, 0] | [44, 5, 0, 0, 0] | [44, 133, 0, 0, 0];
15
+ }): [44, 118, 0, 0, 0] | [44, 931, 0, 0, 0] | [number, number, number, number, number] | [44, 683, 0, 0] | [44, 637, 0, 0, 0] | [44, 60, 0, 0, 0] | [44, 397, 0, 0, 0] | [0, 0, 0, 0, 0] | [44, 144, 0, 0, 0] | [44, 501, 0, 0, 0] | [8797555, 1, 0, 0, 0] | [44, 607, 0, 0, 0] | [44, 195, 0, 0, 0] | [44, 148, 0, 0, 0] | [44, 784, 0, 0, 0] | [1852, 1815, 0, 0, 0] | [44, 9004, 0, 0, 0] | [number, number, number, number, (number | undefined)?] | [44, 145, 0, 0, 0] | [84, 2, 0, 0, 0] | [44, 3, 0, 0, 0] | [44, 5, 0, 0, 0] | [44, 133, 0, 0, 0];
16
16
  export declare function derivationPathToString([network, chainId, account, change, index]: [number, number, number, number?, number?] | [number, number, number, number, number?] | DerivationPathArray, { allHardened }?: {
17
17
  allHardened?: boolean;
18
18
  }): string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
- "dependencies": { "@swapkit/contracts": "4.1.5", "@swapkit/tokens": "4.3.2", "@swapkit/types": "0.11.1" },
3
+ "dependencies": { "@swapkit/contracts": "4.1.5", "@swapkit/tokens": "4.3.3", "@swapkit/types": "0.12.0" },
4
4
  "description": "SwapKit - Helpers",
5
- "devDependencies": { "@near-js/providers": "2.5.1", "@swapkit/toolboxes": "4.24.1", "ethers": "6.16.0" },
5
+ "devDependencies": { "@near-js/providers": "2.5.1", "@swapkit/toolboxes": "4.25.0", "ethers": "6.16.0" },
6
6
  "exports": {
7
7
  ".": { "default": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/types/index.d.ts" },
8
8
  "./api": {
@@ -39,5 +39,5 @@
39
39
  "type-check:go": "tsgo"
40
40
  },
41
41
  "type": "module",
42
- "version": "4.17.1"
42
+ "version": "4.18.0"
43
43
  }