kit-squared 0.2.3 → 0.2.5

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 @@
6
6
 
7
7
  [Skip to Contents](#contents)
8
8
 
9
- [Skip to Example Project](https://github.com/AnAllergyToAnalogy/kit-squared/tree/main/example)
9
+ [Skip to Example Project](https://github.com/AnAllergyToAnalogy/kit-squared-example-site/tree/main/src)
10
10
 
11
11
  ## Initialising
12
12
 
@@ -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 Kit² 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)
@@ -208,5 +227,5 @@ Managing accounts included in instructions and transactions.
208
227
  ### [Utils](https://github.com/AnAllergyToAnalogy/kit-squared/blob/main/docs/utils/UTILS.md)
209
228
  Various utilities, some relating specific to Solana, others that are more broadly used by this library.
210
229
 
211
- ### [Example](https://github.com/AnAllergyToAnalogy/kit-squared/tree/main/example)
230
+ ### [Example](https://github.com/AnAllergyToAnalogy/kit-squared-example-site/tree/main/src)
212
231
  An example repo showing basic usage of the Kit² library.
@@ -276,7 +276,7 @@ export function parseSeconds(time) {
276
276
  let days = time / 24n;
277
277
  let parsed = p(hours) + ":" + p(minutes) + ":" + p(seconds);
278
278
  if (days) {
279
- parsed = p(days) + parsed;
279
+ parsed = p(days) + ":" + parsed;
280
280
  }
281
281
  return parsed;
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kit-squared",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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",