@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.
- package/dist/api.json +1656 -1656
- package/dist/cjs/instructions/closeContract.js +4 -22
- package/dist/cjs/instructions/closeContract.js.map +1 -1
- package/dist/cjs/instructions/closeContractThread.js +5 -5
- package/dist/cjs/instructions/closeContractThread.js.map +1 -1
- package/dist/cjs/instructions/deleteContractThread.js +5 -5
- package/dist/cjs/instructions/deleteContractThread.js.map +1 -1
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/utils/fibers.js +38 -0
- package/dist/cjs/utils/fibers.js.map +1 -0
- package/dist/cjs/utils/fibers.test.js +51 -0
- package/dist/cjs/utils/fibers.test.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/instructions/closeContract.js +6 -24
- package/dist/esm/instructions/closeContract.js.map +1 -1
- package/dist/esm/instructions/closeContractThread.js +8 -8
- package/dist/esm/instructions/closeContractThread.js.map +1 -1
- package/dist/esm/instructions/deleteContractThread.js +8 -8
- package/dist/esm/instructions/deleteContractThread.js.map +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/esm/utils/fibers.js +35 -0
- package/dist/esm/utils/fibers.js.map +1 -0
- package/dist/esm/utils/fibers.test.js +49 -0
- package/dist/esm/utils/fibers.test.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/instructions/closeContract.d.ts.map +1 -1
- package/dist/types/instructions/closeContractThread.d.ts.map +1 -1
- package/dist/types/instructions/deleteContractThread.d.ts.map +1 -1
- package/dist/types/utils/fibers.d.ts +27 -0
- package/dist/types/utils/fibers.d.ts.map +1 -0
- package/dist/types/utils/fibers.test.d.ts +2 -0
- package/dist/types/utils/fibers.test.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"fibers.test.d.ts","sourceRoot":"","sources":["../../../src/utils/fibers.test.ts"],"names":[],"mappings":""}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "5.5.
|
|
1
|
+
export declare const VERSION = "5.5.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|