@swapkit/toolboxes 4.18.0 → 4.20.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunk-3pne8gaa.js +1 -0
  3. package/dist/chunk-44m22jy1.js +1 -0
  4. package/dist/chunk-4q573g5z.js +2 -0
  5. package/dist/chunk-54gntgt1.js +2 -0
  6. package/dist/chunk-ntbvmmch.js +2 -0
  7. package/dist/chunk-r2htb2ce.js +1 -0
  8. package/dist/src/aptos/index.js +1 -1
  9. package/dist/src/cardano/index.cjs +1 -1
  10. package/dist/src/cardano/index.js +1 -1
  11. package/dist/src/cosmos/index.cjs +1 -1
  12. package/dist/src/cosmos/index.js +1 -1
  13. package/dist/src/evm/index.cjs +1 -1
  14. package/dist/src/evm/index.js +1 -1
  15. package/dist/src/hypercore/index.cjs +1 -1
  16. package/dist/src/hypercore/index.js +1 -1
  17. package/dist/src/index.cjs +1 -1
  18. package/dist/src/index.js +1 -1
  19. package/dist/src/near/index.cjs +1 -1
  20. package/dist/src/near/index.js +1 -1
  21. package/dist/src/radix/index.cjs +1 -1
  22. package/dist/src/radix/index.js +1 -1
  23. package/dist/src/ripple/index.cjs +1 -1
  24. package/dist/src/ripple/index.js +1 -1
  25. package/dist/src/solana/index.js +1 -1
  26. package/dist/src/starknet/index.js +1 -1
  27. package/dist/src/stellar/index.js +1 -1
  28. package/dist/src/substrate/index.cjs +1 -1
  29. package/dist/src/substrate/index.js +1 -1
  30. package/dist/src/sui/index.js +1 -1
  31. package/dist/src/ton/index.cjs +1 -1
  32. package/dist/src/ton/index.js +1 -1
  33. package/dist/src/tron/index.cjs +1 -1
  34. package/dist/src/tron/index.js +1 -1
  35. package/dist/src/utxo/index.js +1 -1
  36. package/dist/types/cardano/toolbox.d.ts +1 -1
  37. package/dist/types/cosmos/toolbox/cosmos.d.ts +2 -3
  38. package/dist/types/evm/helpers.d.ts +11 -1
  39. package/dist/types/near/toolbox.d.ts +1 -2
  40. package/dist/types/radix/index.d.ts +2 -2
  41. package/dist/types/ripple/index.d.ts +4 -8
  42. package/dist/types/substrate/substrate.d.ts +1 -1
  43. package/dist/types/ton/toolbox.d.ts +5 -2
  44. package/dist/types/ton/types.d.ts +1 -0
  45. package/package.json +4 -2
@@ -1,4 +1,4 @@
1
- import { GatewayApiClient } from "@radixdlt/babylon-gateway-api-sdk";
1
+ import type { GatewayApiClient } from "@radixdlt/babylon-gateway-api-sdk";
2
2
  import { AssetValue, type SKConfigIntegrations } from "@swapkit/helpers";
3
3
  export type RadixWallet = ReturnType<typeof getRadixToolbox>;
4
4
  export declare function validateRadixAddress(address: string): boolean;
@@ -7,7 +7,7 @@ export declare function getRadixToolbox({ dappConfig }?: {
7
7
  }): {
8
8
  getAddress: () => string;
9
9
  getBalance: (address: string) => Promise<AssetValue[]>;
10
- networkApi: GatewayApiClient;
10
+ getNetworkApi: () => Promise<GatewayApiClient>;
11
11
  signAndBroadcast: (params: any) => Promise<string>;
12
12
  validateAddress: typeof validateRadixAddress;
13
13
  };
@@ -1,10 +1,9 @@
1
1
  import { AssetValue, type ChainSigner, type GenericTransferParams } from "@swapkit/helpers";
2
- import type { Transaction as RippleTransaction } from "xrpl";
3
- import { type Payment } from "xrpl";
2
+ import type { Payment, Transaction as RippleTransaction } from "xrpl";
4
3
  export * from "./currency";
5
4
  export * from "./tokens";
6
5
  export type RippleWallet = ReturnType<typeof getRippleToolbox>;
7
- export { hashes, type Transaction as RippleTransaction } from "xrpl";
6
+ export type { Transaction as RippleTransaction } from "xrpl";
8
7
  export declare const XRPL_TOKEN_ERROR_CODES: {
9
8
  readonly tecFROZEN: "tecFROZEN";
10
9
  readonly tecNO_AUTH: "tecNO_AUTH";
@@ -65,7 +64,7 @@ export declare function getRippleToolbox(params?: RippleToolboxParams): {
65
64
  }) => Promise<Payment>;
66
65
  disconnect: () => void;
67
66
  estimateTransactionFee: () => Promise<AssetValue>;
68
- getAddress: () => string | Promise<string>;
67
+ getAddress: () => Promise<string>;
69
68
  getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
70
69
  getTrustLines: (address?: string) => Promise<TrustLineInfo[]>;
71
70
  hasTrustLine: ({ address, currency, issuer, }: {
@@ -76,10 +75,7 @@ export declare function getRippleToolbox(params?: RippleToolboxParams): {
76
75
  setTrustLine: ({ currency, issuer, limit, sender }: TrustLineParams) => Promise<RippleTransaction>;
77
76
  setTrustLineAndBroadcast: (params: TrustLineParams) => Promise<string>;
78
77
  signAndBroadcastTransaction: (tx: RippleTransaction) => Promise<string>;
79
- signTransaction: (tx: RippleTransaction) => {
80
- tx_blob: string;
81
- hash: string;
82
- } | Promise<{
78
+ signTransaction: (tx: RippleTransaction) => Promise<{
83
79
  tx_blob: string;
84
80
  hash: string;
85
81
  }>;
@@ -1,4 +1,4 @@
1
- import { ApiPromise } from "@polkadot/api";
1
+ import type { ApiPromise } from "@polkadot/api";
2
2
  import type { SubmittableExtrinsic } from "@polkadot/api/types";
3
3
  import type { KeyringPair } from "@polkadot/keyring/types";
4
4
  import type { Callback, IKeyringPair, ISubmittableResult, Signer } from "@polkadot/types/types";
@@ -1,10 +1,11 @@
1
1
  import { AssetValue, type GenericTransferParams } from "@swapkit/helpers";
2
- import { Address, Cell } from "@ton/ton";
2
+ import { Address, Cell } from "@ton/core";
3
3
  import type { TONToolboxParams, TONTransactionMessage } from "./types";
4
4
  export declare function getTONToolbox(toolboxParams?: TONToolboxParams): {
5
5
  broadcastTransaction: (transferCell: Cell) => Promise<string>;
6
6
  createTransaction: ({ sender, ...params }: GenericTransferParams & {
7
7
  sender?: string;
8
+ sweep?: boolean;
8
9
  }) => Promise<TONTransactionMessage[]>;
9
10
  estimateTransactionFee: ({ sender, ...params }: GenericTransferParams & {
10
11
  sender?: string;
@@ -17,7 +18,9 @@ export declare function getTONToolbox(toolboxParams?: TONToolboxParams): {
17
18
  }) => Promise<Address>;
18
19
  sign: (messages: TONTransactionMessage[]) => Promise<Cell>;
19
20
  signAndBroadcastTransaction: (messages: TONTransactionMessage[]) => Promise<string>;
20
- transfer: ({ assetValue, recipient, memo }: GenericTransferParams) => Promise<string>;
21
+ transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams & {
22
+ sweep?: boolean;
23
+ }) => Promise<string>;
21
24
  validateAddress: typeof validateTonAddress;
22
25
  };
23
26
  export declare function validateTonAddress(address: string): boolean;
@@ -18,5 +18,6 @@ export type TONTransactionMessage = {
18
18
  amount: string;
19
19
  payload?: string;
20
20
  stateInit?: string;
21
+ sendMode?: number;
21
22
  };
22
23
  export type TONWallet = ReturnType<typeof getTONToolbox>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "dependencies": { "@swapkit/helpers": "4.15.1", "@swapkit/utxo-signer": "2.2.2" },
2
+ "dependencies": { "@swapkit/helpers": "4.15.2", "@swapkit/utxo-signer": "2.2.2" },
3
3
  "description": "SwapKit - Toolboxes",
4
4
  "devDependencies": {
5
5
  "@aptos-labs/ts-sdk": "7.0.1",
@@ -49,6 +49,7 @@
49
49
  "micro-key-producer": "0.8.6",
50
50
  "near-seed-phrase": "0.2.1",
51
51
  "protobufjs": "8.0.3",
52
+ "ripple-address-codec": "5.0.1",
52
53
  "starknet": "10.0.2",
53
54
  "ts-pattern": "5.9.0",
54
55
  "xrpl": "4.6.0"
@@ -182,6 +183,7 @@
182
183
  "micro-key-producer": "0.8.6",
183
184
  "near-seed-phrase": "0.2.1",
184
185
  "protobufjs": "8.0.3",
186
+ "ripple-address-codec": "5.0.1",
185
187
  "starknet": "10.0.2",
186
188
  "ts-pattern": "5.9.0",
187
189
  "xrpl": "4.6.0"
@@ -196,5 +198,5 @@
196
198
  "type-check:go": "tsgo"
197
199
  },
198
200
  "type": "module",
199
- "version": "4.18.0"
201
+ "version": "4.20.0"
200
202
  }