@gasfree-kit/ton-gasless 0.3.0 → 0.3.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 CHANGED
@@ -6,7 +6,7 @@ With this package, the user only needs USDT. The relay pays the TON gas and char
6
6
 
7
7
  ## What This Package Does
8
8
 
9
- - creates a WDK-backed TON wallet
9
+ - creates a TON wallet from a seed phrase
10
10
  - quotes the relay fee in USDT
11
11
  - checks that balance covers transfer amount plus fee
12
12
  - submits the gasless transfer
@@ -26,7 +26,7 @@ With this package, the user only needs USDT. The relay pays the TON gas and char
26
26
  │ │
27
27
  v v
28
28
  ┌────────────┐ ┌───────────────┐
29
- WDK TON │ │ Relay fee │
29
+ │ TON │ │ Relay fee │
30
30
  │ wallet │ │ quote (USDT) │
31
31
  └──────┬─────┘ └───────┬───────┘
32
32
  │ │
@@ -62,11 +62,7 @@ This package depends on [`@gasfree-kit/core`](../core/README.md) for:
62
62
  npm install @gasfree-kit/ton-gasless @gasfree-kit/core
63
63
  ```
64
64
 
65
- Peer dependencies:
66
-
67
- ```bash
68
- npm install @tetherto/wdk-wallet-ton-gasless tonweb
69
- ```
65
+ After installing, your package manager will prompt you to install the peer dependencies listed in `package.json`.
70
66
 
71
67
  ## Configuration
72
68
 
@@ -169,15 +165,15 @@ console.log(result.data.fee);
169
165
 
170
166
  ## Main Exports
171
167
 
172
- | Export | What it does |
173
- | ------------------------ | ---------------------------------------------------------- |
174
- | `setupTonGaslessWallet` | Creates the WDK-backed TON wallet and resolves the address |
175
- | `TonTransfer` | Checks balances, estimates fees, and sends transfers |
176
- | `getTonGaslessConfig` | Expands and validates the runtime config |
177
- | `tonUsdtTokenRoot` | Built-in TON USDT root address |
178
- | `usdtTonBaseUnits` | Converts human-readable USDT to base units |
179
- | `fromTonBaseUnitsToUsdt` | Converts base units back to readable USDT |
180
- | `getTonUsdtValue` | Utility helper for TON to USDT conversions |
168
+ | Export | What it does |
169
+ | ------------------------ | ------------------------------------------------------------------ |
170
+ | `setupTonGaslessWallet` | Creates the TON wallet from a seed phrase and resolves the address |
171
+ | `TonTransfer` | Checks balances, estimates fees, and sends transfers |
172
+ | `getTonGaslessConfig` | Expands and validates the runtime config |
173
+ | `tonUsdtTokenRoot` | Built-in TON USDT root address |
174
+ | `usdtTonBaseUnits` | Converts human-readable USDT to base units |
175
+ | `fromTonBaseUnitsToUsdt` | Converts base units back to readable USDT |
176
+ | `getTonUsdtValue` | Utility helper for TON to USDT conversions |
181
177
 
182
178
  ## Safety Notes
183
179
 
package/dist/index.d.mts CHANGED
@@ -26,10 +26,10 @@ type TonGaslessClientConfig = {
26
26
  declare function getTonGaslessConfig(config: TonGaslessClientConfig): TonGaslessNetworkConfig;
27
27
 
28
28
  /**
29
- * Set up a TON gasless wallet via WDK.
29
+ * Set up a TON gasless wallet.
30
30
  *
31
- * Uses legacy derivation path (m/44'/607'/0'/0/{index}) for compatibility
32
- * with wallets created by wdk-wallet-ton <= beta.5.
31
+ * Pins the BIP-44 derivation path at m/44'/607'/0'/0/{index} so the
32
+ * resulting address stays stable across underlying-library upgrades.
33
33
  */
34
34
  declare function setupTonGaslessWallet(seedPhrase: string, config: TonGaslessClientConfig, derivationPath?: string): Promise<{
35
35
  wallet: _tetherto_wdk_wallet_ton_gasless.default;
package/dist/index.d.ts CHANGED
@@ -26,10 +26,10 @@ type TonGaslessClientConfig = {
26
26
  declare function getTonGaslessConfig(config: TonGaslessClientConfig): TonGaslessNetworkConfig;
27
27
 
28
28
  /**
29
- * Set up a TON gasless wallet via WDK.
29
+ * Set up a TON gasless wallet.
30
30
  *
31
- * Uses legacy derivation path (m/44'/607'/0'/0/{index}) for compatibility
32
- * with wallets created by wdk-wallet-ton <= beta.5.
31
+ * Pins the BIP-44 derivation path at m/44'/607'/0'/0/{index} so the
32
+ * resulting address stays stable across underlying-library upgrades.
33
33
  */
34
34
  declare function setupTonGaslessWallet(seedPhrase: string, config: TonGaslessClientConfig, derivationPath?: string): Promise<{
35
35
  wallet: _tetherto_wdk_wallet_ton_gasless.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasfree-kit/ton-gasless",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Gasless USDT transfers on TON via sponsored relay",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -17,12 +17,25 @@
17
17
  "README.md"
18
18
  ],
19
19
  "dependencies": {
20
- "@gasfree-kit/core": "0.2.0"
20
+ "@gasfree-kit/core": "0.2.1"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@tetherto/wdk-wallet-ton-gasless": "^1.0.0-beta.4",
24
24
  "tonweb": "^0.0.66"
25
25
  },
26
+ "keywords": [
27
+ "gasless",
28
+ "gas-free",
29
+ "ton",
30
+ "toncoin",
31
+ "usdt",
32
+ "transfer",
33
+ "sponsored",
34
+ "relay",
35
+ "web3",
36
+ "sdk",
37
+ "meta-transactions"
38
+ ],
26
39
  "license": "MIT",
27
40
  "publishConfig": {
28
41
  "access": "public"