@sly-rentals/core 5.5.1 → 5.5.2

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 (34) hide show
  1. package/dist/api.json +1656 -1656
  2. package/dist/cjs/instructions/closeContract.js +4 -22
  3. package/dist/cjs/instructions/closeContract.js.map +1 -1
  4. package/dist/cjs/instructions/closeContractThread.js +5 -5
  5. package/dist/cjs/instructions/closeContractThread.js.map +1 -1
  6. package/dist/cjs/instructions/deleteContractThread.js +5 -5
  7. package/dist/cjs/instructions/deleteContractThread.js.map +1 -1
  8. package/dist/cjs/package.json +1 -1
  9. package/dist/cjs/utils/fibers.js +38 -0
  10. package/dist/cjs/utils/fibers.js.map +1 -0
  11. package/dist/cjs/utils/fibers.test.js +51 -0
  12. package/dist/cjs/utils/fibers.test.js.map +1 -0
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/esm/instructions/closeContract.js +6 -24
  15. package/dist/esm/instructions/closeContract.js.map +1 -1
  16. package/dist/esm/instructions/closeContractThread.js +8 -8
  17. package/dist/esm/instructions/closeContractThread.js.map +1 -1
  18. package/dist/esm/instructions/deleteContractThread.js +8 -8
  19. package/dist/esm/instructions/deleteContractThread.js.map +1 -1
  20. package/dist/esm/package.json +1 -1
  21. package/dist/esm/utils/fibers.js +35 -0
  22. package/dist/esm/utils/fibers.js.map +1 -0
  23. package/dist/esm/utils/fibers.test.js +49 -0
  24. package/dist/esm/utils/fibers.test.js.map +1 -0
  25. package/dist/esm/version.js +1 -1
  26. package/dist/types/instructions/closeContract.d.ts.map +1 -1
  27. package/dist/types/instructions/closeContractThread.d.ts.map +1 -1
  28. package/dist/types/instructions/deleteContractThread.d.ts.map +1 -1
  29. package/dist/types/utils/fibers.d.ts +27 -0
  30. package/dist/types/utils/fibers.d.ts.map +1 -0
  31. package/dist/types/utils/fibers.test.d.ts +2 -0
  32. package/dist/types/utils/fibers.test.d.ts.map +1 -0
  33. package/dist/types/version.d.ts +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Resolving a thread's fiber accounts for instructions that close them.
3
+ */
4
+ import { AccountRole, type Address } from '@solana/kit';
5
+ /**
6
+ * The fiber accounts a close instruction should carry, given what a thread
7
+ * tracks.
8
+ *
9
+ * `fiber_ids` records the indices a thread *tracks*, and nothing on chain
10
+ * keeps that list in agreement with the accounts it names — a fiber account
11
+ * can be closed out from under a thread that still lists it, which is what
12
+ * the 2026-08-26 rent sweep did to 623 of them.
13
+ *
14
+ * Passing an index whose account is gone makes the fiber program deserialize
15
+ * an empty buffer and fail with `InvalidFiberData`, from the `buf.len() < 8`
16
+ * branch rather than the discriminator one. It reads like a schema problem
17
+ * and is not one, and no caller can work around it, so a contract tracking a
18
+ * destroyed fiber becomes impossible to close by anyone.
19
+ *
20
+ * A tracked-but-absent fiber has nothing to close, so dropping it is the
21
+ * whole remedy. One `getMultipleAccounts` for the batch.
22
+ */
23
+ export declare function existingFiberAccounts(thread: Address, fiberIds: number[], rpcUrl: string): Promise<{
24
+ address: Address;
25
+ role: AccountRole.WRITABLE;
26
+ }[]>;
27
+ //# sourceMappingURL=fibers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fibers.d.ts","sourceRoot":"","sources":["../../../src/utils/fibers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAIxD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,EAAE,EAClB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAA;CAAE,EAAE,CAAC,CAU7D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=fibers.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fibers.test.d.ts","sourceRoot":"","sources":["../../../src/utils/fibers.test.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.5.1";
1
+ export declare const VERSION = "5.5.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sly-rentals/core",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "TypeScript SDK for SRSLY",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",