kit-squared 0.2.3 → 0.2.4

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 +19 -0
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -188,6 +188,25 @@ const address = await myProgram.pda(["user",[67n, "u32"]]);
188
188
  Full details available in the [PDA section of the docs](https://github.com/AnAllergyToAnalogy/kit-squared/blob/main/docs/PDAs.md).
189
189
 
190
190
 
191
+ ## SPL Tokens
192
+
193
+ The library requires no additional features or functionality for interacting with tokens. The [@solana-program/token](https://www.npmjs.com/package/@solana-program/token) package may be used for these purposes.
194
+
195
+ The [@solana-program/token-2022](https://www.npmjs.com/package/@solana-program/token-2022) package will be supported after its next release. It currently has outdated peer dependencies that I have patched with a PR. These are slow moving wheels beyond my control.
196
+
197
+ You can retreive the RPC of your Kit2 instance with
198
+ ```typescript
199
+ const rpc = (getConnection()).rpc;
200
+ ```
201
+
202
+ Then follow the token [exmaples in the Solana cookbook](https://solana.com/developers/cookbook/tokens/get-token-account), using `@solana-program/token`.
203
+
204
+
205
+
206
+
207
+
208
+
209
+
191
210
  # Contents
192
211
 
193
212
  ### [Initialisation](https://github.com/AnAllergyToAnalogy/kit-squared/blob/main/docs/framework/INITIALISATION.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kit-squared",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Solana Kit functionality with SvelteKit",
5
5
  "license": "ISC",
6
6
  "author": "AnAllergyToAnalogy",
@@ -43,7 +43,7 @@
43
43
  "publint": "^0.3.18",
44
44
  "svelte": "^5.55.2",
45
45
  "svelte-check": "^4.4.6",
46
- "typescript": "^6.0.2",
46
+ "typescript": "^6.0.3",
47
47
  "vite": "^8.0.7"
48
48
  },
49
49
  "keywords": [
@@ -51,8 +51,9 @@
51
51
  "solana"
52
52
  ],
53
53
  "dependencies": {
54
- "@solana/keys": "^6.8.0",
55
- "@solana/kit": "^6.8.0",
54
+ "@solana-program/token": "^0.14.0",
55
+ "@solana/keys": "^6.10.0",
56
+ "@solana/kit": "^6.10.0",
56
57
  "@solana/promises": "^6.8.0",
57
58
  "@solana/signers": "^6.8.0",
58
59
  "@solana/transaction-confirmation": "^6.8.0",