@zubari/sdk 0.1.2 → 0.1.3

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 (37) hide show
  1. package/dist/TransactionService-CxwB1kpN.d.mts +205 -0
  2. package/dist/TransactionService-DdL6H6M-.d.ts +205 -0
  3. package/dist/{WalletManager-TiAdzqrn.d.ts → WalletManager-CYJNiww6.d.ts} +49 -132
  4. package/dist/{WalletManager-DJjdq89b.d.mts → WalletManager-Dmmcbtiw.d.mts} +49 -132
  5. package/dist/{index-BLuxEdLp.d.mts → index-DhluuR9H.d.mts} +1 -1
  6. package/dist/{index-BLuxEdLp.d.ts → index-DhluuR9H.d.ts} +1 -1
  7. package/dist/{index-DO3T2HVe.d.ts → index-OxzgPoRG.d.ts} +2 -2
  8. package/dist/{index-fXVD8_D0.d.mts → index-poGbMJzn.d.mts} +2 -2
  9. package/dist/index.d.mts +5 -6
  10. package/dist/index.d.ts +5 -6
  11. package/dist/index.js +3057 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +3055 -3
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/protocols/index.d.mts +1 -1
  16. package/dist/protocols/index.d.ts +1 -1
  17. package/dist/react/index.d.mts +4 -5
  18. package/dist/react/index.d.ts +4 -5
  19. package/dist/react/index.js +2649 -3
  20. package/dist/react/index.js.map +1 -1
  21. package/dist/react/index.mjs +2649 -3
  22. package/dist/react/index.mjs.map +1 -1
  23. package/dist/services/index.d.mts +87 -3
  24. package/dist/services/index.d.ts +87 -3
  25. package/dist/services/index.js +3065 -2
  26. package/dist/services/index.js.map +1 -1
  27. package/dist/services/index.mjs +3062 -3
  28. package/dist/services/index.mjs.map +1 -1
  29. package/dist/wallet/index.d.mts +4 -5
  30. package/dist/wallet/index.d.ts +4 -5
  31. package/dist/wallet/index.js +2650 -2
  32. package/dist/wallet/index.js.map +1 -1
  33. package/dist/wallet/index.mjs +2650 -2
  34. package/dist/wallet/index.mjs.map +1 -1
  35. package/package.json +6 -1
  36. package/dist/SwapService-C0G8IXW2.d.mts +0 -35
  37. package/dist/SwapService-DZD0OJI_.d.ts +0 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zubari/sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Multi-chain self-custodial wallet SDK for Web3 creator economy. Supports Ethereum, Bitcoin, TON, TRON, Solana, and Lightning (Spark) from a single BIP-39 seed phrase.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -102,6 +102,10 @@
102
102
  "node": ">=18.0.0"
103
103
  },
104
104
  "dependencies": {
105
+ "@noble/hashes": "^2.0.1",
106
+ "@scure/base": "^2.0.0",
107
+ "@scure/bip32": "^2.0.1",
108
+ "@scure/bip39": "^2.0.1",
105
109
  "@tetherto/wdk": "1.0.0-beta.4",
106
110
  "@tetherto/wdk-wallet-btc": "1.0.0-beta.4",
107
111
  "@tetherto/wdk-wallet-evm": "1.0.0-beta.4",
@@ -109,6 +113,7 @@
109
113
  "@tetherto/wdk-wallet-spark": "1.0.0-beta.5",
110
114
  "@tetherto/wdk-wallet-ton": "1.0.0-beta.6",
111
115
  "@tetherto/wdk-wallet-tron": "1.0.0-beta.3",
116
+ "ed25519-hd-key": "^1.3.0",
112
117
  "ethers": "^6.13.0",
113
118
  "viem": "^2.21.0"
114
119
  },
@@ -1,35 +0,0 @@
1
- import { S as SwapQuote, T as TxResult } from './index-BLuxEdLp.mjs';
2
-
3
- /**
4
- * SwapService - DEX integration via Velora
5
- *
6
- * Handles token swaps with slippage protection,
7
- * quote fetching, and earnings conversion.
8
- */
9
- declare class SwapService {
10
- private readonly _chainId;
11
- private readonly isTestnet;
12
- constructor(chainId: number, isTestnet?: boolean);
13
- /**
14
- * Get a swap quote
15
- */
16
- getQuote(tokenIn: string, tokenOut: string, amountIn: bigint): Promise<SwapQuote>;
17
- /**
18
- * Execute a swap with slippage protection
19
- */
20
- executeSwap(quote: SwapQuote, slippageToleranceBps?: number): Promise<TxResult>;
21
- /**
22
- * Convert earnings to USDT, keeping some ETH for gas
23
- */
24
- convertEarningsToStable(ethBalance: bigint, reserveForGas?: bigint): Promise<TxResult>;
25
- /**
26
- * Check if a swap route exists
27
- */
28
- hasRoute(tokenIn: string, tokenOut: string): Promise<boolean>;
29
- /**
30
- * Get supported tokens for swapping
31
- */
32
- getSupportedTokens(): Promise<string[]>;
33
- }
34
-
35
- export { SwapService as S };
@@ -1,35 +0,0 @@
1
- import { S as SwapQuote, T as TxResult } from './index-BLuxEdLp.js';
2
-
3
- /**
4
- * SwapService - DEX integration via Velora
5
- *
6
- * Handles token swaps with slippage protection,
7
- * quote fetching, and earnings conversion.
8
- */
9
- declare class SwapService {
10
- private readonly _chainId;
11
- private readonly isTestnet;
12
- constructor(chainId: number, isTestnet?: boolean);
13
- /**
14
- * Get a swap quote
15
- */
16
- getQuote(tokenIn: string, tokenOut: string, amountIn: bigint): Promise<SwapQuote>;
17
- /**
18
- * Execute a swap with slippage protection
19
- */
20
- executeSwap(quote: SwapQuote, slippageToleranceBps?: number): Promise<TxResult>;
21
- /**
22
- * Convert earnings to USDT, keeping some ETH for gas
23
- */
24
- convertEarningsToStable(ethBalance: bigint, reserveForGas?: bigint): Promise<TxResult>;
25
- /**
26
- * Check if a swap route exists
27
- */
28
- hasRoute(tokenIn: string, tokenOut: string): Promise<boolean>;
29
- /**
30
- * Get supported tokens for swapping
31
- */
32
- getSupportedTokens(): Promise<string[]>;
33
- }
34
-
35
- export { SwapService as S };