@gasfree-kit/ton-gasless 0.2.0 → 0.3.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 (2) hide show
  1. package/README.md +10 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -46,21 +46,20 @@ With this package, the user only needs USDT. The relay pays the TON gas and char
46
46
  └──────────────────────────┘
47
47
  ```
48
48
 
49
- ```mermaid
50
- flowchart TD
51
- A["Your app"] --> B["@gasfree-kit/ton-gasless"]
52
- B --> C["WDK TON wallet"]
53
- B --> D["Relay fee quote"]
54
- C --> E["Sponsored relay"]
55
- D --> E
56
- E -->|pays TON gas| F["TON blockchain"]
57
- E -->|deducts fee| G["USDT commission"]
58
- ```
49
+ ## Prerequisites
50
+
51
+ This package depends on [`@gasfree-kit/core`](../core/README.md) for:
52
+
53
+ - **Seed phrase generation** — `generateSeedPhrase()` creates the mnemonic used to set up wallets
54
+ - **Address validation** — `validateTonAddress()` catches malformed addresses before sending
55
+ - **Error classes** — `GasfreeError`, `InsufficientBalanceError`, etc. for consistent error handling
56
+
57
+ `@gasfree-kit/core` is installed automatically as a dependency.
59
58
 
60
59
  ## Installation
61
60
 
62
61
  ```bash
63
- npm install @gasfree-kit/ton-gasless
62
+ npm install @gasfree-kit/ton-gasless @gasfree-kit/core
64
63
  ```
65
64
 
66
65
  Peer dependencies:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasfree-kit/ton-gasless",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Gasless USDT transfers on TON via sponsored relay",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",