@usearete/sdk 0.24.0 → 0.25.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.
- package/README.md +33 -1
- package/dist/index.cjs +577 -107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +196 -8
- package/dist/index.esm.js +573 -108
- package/dist/index.esm.js.map +1 -1
- package/dist/testing.cjs +619 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.ts +482 -0
- package/dist/testing.esm.js +603 -0
- package/dist/testing.esm.js.map +1 -0
- package/package.json +18 -2
package/dist/index.d.ts
CHANGED
|
@@ -954,6 +954,17 @@ interface ProgramSdkDefinition {
|
|
|
954
954
|
readonly programId?: string;
|
|
955
955
|
/** Typed identity of generated program content. V2 excludes compiler provenance. */
|
|
956
956
|
readonly sdkDefinitionHash?: string;
|
|
957
|
+
/**
|
|
958
|
+
* Program package release this SDK was generated from, for program SDKs
|
|
959
|
+
* installed from the registry. It is the program SDK's identity: a stack's
|
|
960
|
+
* embedded program and a standalone install with the same value are the same
|
|
961
|
+
* program, and the SDK runtime treats them as one when both are attached.
|
|
962
|
+
* Generated entries stamp it with `withProgramIdentity` after applying the
|
|
963
|
+
* package's own extension; `extendProgram`, `extendPrograms` and
|
|
964
|
+
* `withProgramRead` drop it, because a program changed outside its generated
|
|
965
|
+
* SDK is no longer provably that SDK.
|
|
966
|
+
*/
|
|
967
|
+
readonly packageReleaseHash?: string;
|
|
957
968
|
readonly programSpecHash?: string;
|
|
958
969
|
readonly idlContentHash?: string;
|
|
959
970
|
readonly normalizedIdlHash?: string;
|
|
@@ -1230,6 +1241,13 @@ interface AreteConfig {
|
|
|
1230
1241
|
reconnectIntervals?: number[];
|
|
1231
1242
|
maxReconnectAttempts?: number;
|
|
1232
1243
|
initialSubscriptions?: Subscription[];
|
|
1244
|
+
/**
|
|
1245
|
+
* Entities kept per view; the oldest are dropped past it. `null` keeps all.
|
|
1246
|
+
* Keep it above the size of every subscription on a view: the server still
|
|
1247
|
+
* counts a dropped entity as held and sends only patches for it, which are
|
|
1248
|
+
* discarded (reported as `'evicted-key'` diagnostics), so it stays missing
|
|
1249
|
+
* until it re-enters the query or the subscription is re-established.
|
|
1250
|
+
*/
|
|
1233
1251
|
maxEntriesPerView?: number | null;
|
|
1234
1252
|
/** Authentication configuration */
|
|
1235
1253
|
auth?: AuthConfig;
|
|
@@ -1356,6 +1374,12 @@ interface SubscribedFrame extends IdentifiedFrame {
|
|
|
1356
1374
|
sort?: SortConfig;
|
|
1357
1375
|
/** Present on append views backed by the journal. */
|
|
1358
1376
|
replayWindow?: ReplayWindow;
|
|
1377
|
+
/**
|
|
1378
|
+
* The server sends a key whole (`upsert` or a snapshot row) before any
|
|
1379
|
+
* `patch` for it, so a patch for a key the client does not hold can be
|
|
1380
|
+
* dropped. Older servers omit it; their patches for unknown keys are kept.
|
|
1381
|
+
*/
|
|
1382
|
+
wholeEntities?: boolean;
|
|
1359
1383
|
}
|
|
1360
1384
|
interface UnsubscribedFrame extends IdentifiedFrame {
|
|
1361
1385
|
op: 'unsubscribed';
|
|
@@ -1625,6 +1649,11 @@ declare class ProcessedSlotTimeoutError extends Error {
|
|
|
1625
1649
|
constructor(targetSlot: bigint, processedSlot: bigint | null);
|
|
1626
1650
|
}
|
|
1627
1651
|
interface FrameProcessorConfig {
|
|
1652
|
+
/**
|
|
1653
|
+
* Entities kept per view (see `AreteConfig.maxEntriesPerView`). Keep it
|
|
1654
|
+
* above every subscription's size: patches for an entity dropped here are
|
|
1655
|
+
* discarded until the server sends it whole again.
|
|
1656
|
+
*/
|
|
1628
1657
|
maxEntriesPerView?: number | null;
|
|
1629
1658
|
/**
|
|
1630
1659
|
* Interval in milliseconds to buffer frames before flushing to storage.
|
|
@@ -1638,9 +1667,13 @@ interface FrameProcessorConfig {
|
|
|
1638
1667
|
schemas?: Record<string, Schema<unknown>>;
|
|
1639
1668
|
patchSchemas?: Record<string, Schema<unknown>>;
|
|
1640
1669
|
queryStore?: QueryStore;
|
|
1641
|
-
/** Whether rejected frames should also be written to `console.warn`. */
|
|
1670
|
+
/** Whether schema-rejected frames should also be written to `console.warn`. */
|
|
1642
1671
|
warnOnValidationError?: boolean;
|
|
1643
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* Receives structured details whenever a frame is not stored: a generated
|
|
1674
|
+
* schema rejected it, or it was a `patch` for a key the client holds no
|
|
1675
|
+
* entity for.
|
|
1676
|
+
*/
|
|
1644
1677
|
onValidationError?: (diagnostic: FrameValidationDiagnostic) => void;
|
|
1645
1678
|
}
|
|
1646
1679
|
interface FrameValidationDiagnostic {
|
|
@@ -1648,6 +1681,25 @@ interface FrameValidationDiagnostic {
|
|
|
1648
1681
|
readonly key?: string;
|
|
1649
1682
|
readonly seq?: string;
|
|
1650
1683
|
readonly operation: 'snapshot' | 'upsert' | 'patch';
|
|
1684
|
+
/**
|
|
1685
|
+
* Why the frame was not stored. `'schema'`: a generated schema rejected it.
|
|
1686
|
+
* `'unknown-key'`: a `patch` for a key the client never received. A patch
|
|
1687
|
+
* is a partial entity, so it is discarded; the entity appears when the
|
|
1688
|
+
* server sends a full `upsert` for the key. `'evicted-key'`: a `patch` for a
|
|
1689
|
+
* key this client dropped to stay within `maxEntriesPerView`. The server
|
|
1690
|
+
* still counts the client as holding it, so it keeps sending patches and
|
|
1691
|
+
* sends no `upsert` until the key re-enters the query or the subscription
|
|
1692
|
+
* is re-established; raise `maxEntriesPerView` above the subscription's
|
|
1693
|
+
* size to avoid this.
|
|
1694
|
+
*
|
|
1695
|
+
* Patches are discarded only when the server's `subscribed` acknowledgement
|
|
1696
|
+
* carries `wholeEntities: true`; with an older server a patch for an unknown
|
|
1697
|
+
* key is stored as the entity, as before. Replayable append-view records
|
|
1698
|
+
* (frames with an `offset`) are events and are never discarded this way.
|
|
1699
|
+
* `'schema'` diagnostics, and the first `'evicted-key'` one per view, are
|
|
1700
|
+
* written to `console.warn` when `warnOnValidationError` is on.
|
|
1701
|
+
*/
|
|
1702
|
+
readonly reason: 'schema' | 'unknown-key' | 'evicted-key';
|
|
1651
1703
|
readonly error: unknown;
|
|
1652
1704
|
}
|
|
1653
1705
|
declare class FrameProcessor {
|
|
@@ -1665,6 +1717,15 @@ declare class FrameProcessor {
|
|
|
1665
1717
|
private latestProcessedSlot;
|
|
1666
1718
|
private processedSlotWaiters;
|
|
1667
1719
|
private cursors;
|
|
1720
|
+
/**
|
|
1721
|
+
* Whether the server's latest acknowledgement guaranteed whole entities.
|
|
1722
|
+
* One connection talks to one server, so its latest ack speaks for every
|
|
1723
|
+
* subscription on it; a reconnect re-acknowledges each one.
|
|
1724
|
+
*/
|
|
1725
|
+
private serverSendsWholeEntities;
|
|
1726
|
+
/** Keys dropped by `maxEntriesPerView`, per view, oldest first; bounded. */
|
|
1727
|
+
private evictedKeys;
|
|
1728
|
+
private warnedEvictedViews;
|
|
1668
1729
|
/**
|
|
1669
1730
|
* Observe the connection's cursor tracker instead of a private one.
|
|
1670
1731
|
*
|
|
@@ -1676,6 +1737,7 @@ declare class FrameProcessor {
|
|
|
1676
1737
|
constructor(storage: StorageAdapter, config?: FrameProcessorConfig);
|
|
1677
1738
|
private getSchema;
|
|
1678
1739
|
private normalizeEntity;
|
|
1740
|
+
private reportDiagnostic;
|
|
1679
1741
|
private hasSchema;
|
|
1680
1742
|
private normalizePathSegment;
|
|
1681
1743
|
private normalizePath;
|
|
@@ -1684,6 +1746,17 @@ declare class FrameProcessor {
|
|
|
1684
1746
|
private extractSeq;
|
|
1685
1747
|
private getInternalSeq;
|
|
1686
1748
|
private compareSeq;
|
|
1749
|
+
private extractVersion;
|
|
1750
|
+
private getInternalVersion;
|
|
1751
|
+
/**
|
|
1752
|
+
* Whether a frame at `incoming` is one this client already applied, or older.
|
|
1753
|
+
* A version is `{epoch}:{counter}`, and counters compare only within an
|
|
1754
|
+
* epoch: a server restart or a reloaded stack starts a new one, whose first
|
|
1755
|
+
* frame is newer than anything from the old one. A version that does not
|
|
1756
|
+
* parse cannot be ordered and is never stale.
|
|
1757
|
+
*/
|
|
1758
|
+
private isStaleVersion;
|
|
1759
|
+
private attachInternalVersion;
|
|
1687
1760
|
private attachInternalSeq;
|
|
1688
1761
|
handleFrame<T>(frame: Frame<T>): void;
|
|
1689
1762
|
/**
|
|
@@ -1715,6 +1788,13 @@ declare class FrameProcessor {
|
|
|
1715
1788
|
private emitRichUpdate;
|
|
1716
1789
|
private createRichUpdate;
|
|
1717
1790
|
private enforceMaxEntries;
|
|
1791
|
+
/**
|
|
1792
|
+
* Remember a key `maxEntriesPerView` dropped, so a later patch for it can be
|
|
1793
|
+
* reported as such. At most `limit` keys per view, most recent kept.
|
|
1794
|
+
*/
|
|
1795
|
+
private rememberEvicted;
|
|
1796
|
+
private forgetEvicted;
|
|
1797
|
+
private reportDiscardedPatch;
|
|
1718
1798
|
}
|
|
1719
1799
|
|
|
1720
1800
|
interface NormalizedSubscriptionRequest {
|
|
@@ -2075,6 +2155,34 @@ declare function instructionOperation<TInput, TArtifacts>(prepare: (input: TInpu
|
|
|
2075
2155
|
declare function transactionOperation<TInput, TArtifacts>(prepare: (input: TInput) => MaybePromise<PreparedTransaction<TArtifacts>>): TransactionOperation<TInput, TArtifacts>;
|
|
2076
2156
|
declare function flowOperation<TInput, TArtifacts>(prepare: (input: TInput) => MaybePromise<PreparedFlow<TArtifacts>>): FlowOperation<TInput, TArtifacts>;
|
|
2077
2157
|
|
|
2158
|
+
/**
|
|
2159
|
+
* Version of the extension contract: `defineStackExtensions`,
|
|
2160
|
+
* `defineProgramExtensions`, `extendProgram`, `extendPrograms`, `extendStack`,
|
|
2161
|
+
* `withProgramRead`, and the instruction helpers generated code imports
|
|
2162
|
+
* (`createInstructionHandler`, `buildInstruction`, `instructionOperation`,
|
|
2163
|
+
* `createPreparedInstruction`, the PDA and read helpers, …).
|
|
2164
|
+
*
|
|
2165
|
+
* It only changes on a breaking change to that contract, so generated SDKs and
|
|
2166
|
+
* extensions built for one value keep working with every SDK release that
|
|
2167
|
+
* exports the same value. The same number is published in this package's
|
|
2168
|
+
* `package.json` as `arete.extensionApi` for tools that read `node_modules`.
|
|
2169
|
+
*/
|
|
2170
|
+
declare const EXTENSION_API_VERSION: 1;
|
|
2171
|
+
/**
|
|
2172
|
+
* Runtime extension carriers live under registry symbols (`Symbol.for`), so
|
|
2173
|
+
* two copies of this module still read each other's definitions. The
|
|
2174
|
+
* properties are enumerable: `{ ...stack }` and `{ ...program }` keep them,
|
|
2175
|
+
* while `Object.keys`, `for…in` and `JSON.stringify` never see a symbol key.
|
|
2176
|
+
*
|
|
2177
|
+
* The constants are typed as their historical property names rather than as
|
|
2178
|
+
* `unique symbol`. Generated program SDKs use them as computed keys inside
|
|
2179
|
+
* object literals, and TypeScript can only name a `unique symbol` key in
|
|
2180
|
+
* emitted declarations from a file that imports it; a string-literal key type
|
|
2181
|
+
* keeps every generated `.d.ts` nameable and identical across module copies.
|
|
2182
|
+
* Always read and write these properties through the constants (or
|
|
2183
|
+
* `getStackRuntimeExtensions` / `getProgramRuntimeExtensions`), never by the
|
|
2184
|
+
* literal name.
|
|
2185
|
+
*/
|
|
2078
2186
|
declare const STACK_RUNTIME_EXTENSIONS: "__areteStackRuntimeExtensions";
|
|
2079
2187
|
declare const PROGRAM_OPERATION_EXTENSIONS: "__areteProgramOperationExtensions";
|
|
2080
2188
|
type EmptyRecord = Record<string, never>;
|
|
@@ -2188,7 +2296,23 @@ declare function applyConnectedStackExtensions<TClient extends object, TStack ex
|
|
|
2188
2296
|
|
|
2189
2297
|
type ProgramMap = Record<string, ProgramSdkDefinition>;
|
|
2190
2298
|
type NormalizeProgramMap<TPrograms> = TPrograms extends ProgramMap ? TPrograms : Record<string, never>;
|
|
2191
|
-
|
|
2299
|
+
/**
|
|
2300
|
+
* The keys a program map names, leaving out an index signature. `keyof` of
|
|
2301
|
+
* `Record<string, never>` (nothing attached) or of a wide
|
|
2302
|
+
* `Record<string, ProgramSdkDefinition>` is `string`, which would omit every
|
|
2303
|
+
* program a stack provides.
|
|
2304
|
+
*/
|
|
2305
|
+
type NamedProgramKeys<TPrograms> = keyof {
|
|
2306
|
+
[K in keyof TPrograms as string extends K ? never : number extends K ? never : K]: unknown;
|
|
2307
|
+
};
|
|
2308
|
+
/**
|
|
2309
|
+
* A stack's programs with attached programs added. An attached program under a
|
|
2310
|
+
* key the stack provides takes that key: it is either the same program SDK
|
|
2311
|
+
* (identical at runtime) or one with the same program spec that could not be
|
|
2312
|
+
* proven identical, which the runtime uses in place of the stack's. Keys the
|
|
2313
|
+
* attached map does not name keep the stack's program types.
|
|
2314
|
+
*/
|
|
2315
|
+
type MergeProgramMaps<TStackPrograms, TAttachedPrograms> = Omit<NormalizeProgramMap<TStackPrograms>, NamedProgramKeys<NormalizeProgramMap<TAttachedPrograms>>> & NormalizeProgramMap<TAttachedPrograms>;
|
|
2192
2316
|
type StackWithAttachedPrograms<TStack extends StackDefinition, TAttachedPrograms extends ProgramMap | undefined> = Omit<TStack, 'programs'> & {
|
|
2193
2317
|
programs: MergeProgramMaps<TStack['programs'], TAttachedPrograms>;
|
|
2194
2318
|
};
|
|
@@ -2226,7 +2350,13 @@ interface ConnectOptions<TPrograms extends ProgramMap | undefined = undefined, T
|
|
|
2226
2350
|
wallet?: WalletAdapter;
|
|
2227
2351
|
/** Optional fetch implementation for HTTP point reads. */
|
|
2228
2352
|
fetch?: typeof fetch;
|
|
2229
|
-
/**
|
|
2353
|
+
/**
|
|
2354
|
+
* Additional program SDKs exposed under client.programs.<key>. Under a key
|
|
2355
|
+
* the stack already provides, the same program SDK (the same object or the
|
|
2356
|
+
* same `packageReleaseHash`) resolves to the stack's; a program with the
|
|
2357
|
+
* same `programSpecHash` that cannot be proven identical replaces it, with a
|
|
2358
|
+
* warning; anything else throws `PROGRAM_KEY_CONFLICT`.
|
|
2359
|
+
*/
|
|
2230
2360
|
programs?: TPrograms;
|
|
2231
2361
|
/** Per-program complete descriptor replacements. */
|
|
2232
2362
|
programReads?: ProgramReadOverrides<MergeProgramMaps<TStackPrograms, TPrograms>>;
|
|
@@ -2419,6 +2549,17 @@ declare class Arete$1<TStack extends StackDefinition> {
|
|
|
2419
2549
|
interface SessionDefinition<TPrograms extends Record<string, ProgramSdkDefinition> = Record<string, ProgramSdkDefinition>> {
|
|
2420
2550
|
readonly mode?: 'composition';
|
|
2421
2551
|
readonly stacks?: Record<string, StackDefinition>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Standalone program SDKs, available at `session.programs.<key>`. Under a key
|
|
2554
|
+
* a stack also provides, the same program SDK (the same object or the same
|
|
2555
|
+
* `packageReleaseHash`) is served from the stack's connected instance, unless
|
|
2556
|
+
* this definition's `programReads.<key>` resolves to a descriptor other than
|
|
2557
|
+
* the one the stack reads through. That program, or one with the same
|
|
2558
|
+
* `programSpecHash` that cannot be proven identical, takes
|
|
2559
|
+
* `session.programs.<key>` with its own read configuration, with a warning,
|
|
2560
|
+
* while `session.stacks.<stack>.programs.<key>` keeps the stack's; anything
|
|
2561
|
+
* else throws `PROGRAM_KEY_CONFLICT`.
|
|
2562
|
+
*/
|
|
2422
2563
|
readonly programs?: TPrograms;
|
|
2423
2564
|
/** Hosted chain and transaction capabilities shared by a generated composition. */
|
|
2424
2565
|
readonly gateway?: HostedSolanaGatewayBindings;
|
|
@@ -2526,10 +2667,57 @@ declare function createSession<TDef extends SessionDefinition, TStackPrograms ex
|
|
|
2526
2667
|
/**
|
|
2527
2668
|
* Bundle a generated program definition with its default read descriptor.
|
|
2528
2669
|
*
|
|
2529
|
-
* Generated SDK entries call this automatically. The descriptor
|
|
2530
|
-
*
|
|
2670
|
+
* Generated SDK entries call this automatically. The descriptor lives under a
|
|
2671
|
+
* registry symbol, so `Object.keys` and `JSON.stringify` never see it, while
|
|
2672
|
+
* `{ ...program }` keeps it: a spread program still reads through its release.
|
|
2673
|
+
* Every other own property (including the runtime extension carrier) is copied
|
|
2674
|
+
* unchanged, except `packageReleaseHash`: the result reads differently from
|
|
2675
|
+
* the generated program SDK, so it is no longer provably that SDK. Generated
|
|
2676
|
+
* entries apply `withProgramIdentity` last.
|
|
2531
2677
|
*/
|
|
2532
2678
|
declare function withProgramRead<TProgram extends ProgramSdkDefinition>(program: TProgram, descriptor: ProgramReadDescriptor): TProgram;
|
|
2679
|
+
/** The identity a generated program SDK entry stamps on its final program. */
|
|
2680
|
+
interface ProgramSdkIdentity {
|
|
2681
|
+
/** The program package release the SDK was generated from, when known. */
|
|
2682
|
+
readonly packageReleaseHash?: string;
|
|
2683
|
+
}
|
|
2684
|
+
/**
|
|
2685
|
+
* Stamp a program definition with the identity of the program SDK it is.
|
|
2686
|
+
*
|
|
2687
|
+
* Generated program SDK entries call this last, after the package's own
|
|
2688
|
+
* extension and read descriptor are applied, so the identity describes
|
|
2689
|
+
* exactly the generated SDK. `extendProgram`, `extendPrograms` and
|
|
2690
|
+
* `withProgramRead` drop the identity again: a program changed outside its
|
|
2691
|
+
* generated SDK is no longer provably that SDK. Every other own property,
|
|
2692
|
+
* including symbol-keyed runtime extensions and the read descriptor, is copied
|
|
2693
|
+
* unchanged. An absent or empty `packageReleaseHash` removes the identity.
|
|
2694
|
+
*/
|
|
2695
|
+
declare function withProgramIdentity<TProgram extends ProgramSdkDefinition>(program: TProgram, identity: ProgramSdkIdentity): TProgram;
|
|
2696
|
+
|
|
2697
|
+
/** Error code for two different program SDKs claiming one program key. */
|
|
2698
|
+
declare const PROGRAM_KEY_CONFLICT: "PROGRAM_KEY_CONFLICT";
|
|
2699
|
+
/**
|
|
2700
|
+
* How two program definitions under one key relate:
|
|
2701
|
+
*
|
|
2702
|
+
* - `'same'`: the same program SDK. They are the same object, or both carry a
|
|
2703
|
+
* `packageReleaseHash` and the hashes are equal.
|
|
2704
|
+
* - `'unproven'`: at least one has no `packageReleaseHash` (a local build, or
|
|
2705
|
+
* a program extended outside its generated SDK), but both carry the same
|
|
2706
|
+
* `programSpecHash`. They describe the same program but cannot be proven to
|
|
2707
|
+
* be the same SDK.
|
|
2708
|
+
* - `'different'`: both carry a `packageReleaseHash` and the hashes differ, or
|
|
2709
|
+
* neither identity matches (different or missing `programSpecHash`).
|
|
2710
|
+
*/
|
|
2711
|
+
type ProgramIdentityMatch = 'same' | 'unproven' | 'different';
|
|
2712
|
+
/** Compare two program definitions by identity, never by name. */
|
|
2713
|
+
declare function compareProgramIdentity(left: ProgramSdkDefinition, right: ProgramSdkDefinition): ProgramIdentityMatch;
|
|
2714
|
+
/**
|
|
2715
|
+
* Whether two program definitions are provably the same program SDK: the same
|
|
2716
|
+
* object, or both carry the same `packageReleaseHash` (the program package
|
|
2717
|
+
* release they were generated from). Anything else is not provably the same,
|
|
2718
|
+
* even under the same name.
|
|
2719
|
+
*/
|
|
2720
|
+
declare function isSameProgramSdk(left: ProgramSdkDefinition, right: ProgramSdkDefinition): boolean;
|
|
2533
2721
|
|
|
2534
2722
|
/**
|
|
2535
2723
|
* Non-enumerable brand attached by the operation and read factories so
|
|
@@ -2724,5 +2912,5 @@ declare const Arete: typeof Arete$1 & {
|
|
|
2724
2912
|
session: typeof createSession;
|
|
2725
2913
|
};
|
|
2726
2914
|
|
|
2727
|
-
export { ASSOCIATED_TOKEN_PROGRAM_ADDRESS, Arete, AreteError, ConnectionManager, DEFAULT_CONFIG, DEFAULT_MAX_ENTRIES_PER_VIEW, FrameProcessor, InstructionError, MemoryAdapter, OPERATION_KIND, OperationCallbackError, OperationExecutionError, PROGRAM_OPERATION_EXTENSIONS, ProcessedSlotTimeoutError, QueryStore, ReadRequestError, SPL_TOKEN_PROGRAM_ADDRESS, STACK_RUNTIME_EXTENSIONS, SYSTEM_PROGRAM_ADDRESS, StreamGapError, SubscriptionRegistry, TOKEN_2022_PROGRAM_ADDRESS, TRANSACTION_RESOURCE_OPTION_KEYS, TransactionExecutionError, TransactionOptionsError, TransactionTransportError, account, appendFlowTransactions, appendTransactionInstructions, applyConnectedStackExtensions, arg, buildInstruction, bytes, canonicalQueryKey, chainAccountLoader, createChainClient, createEntityStream, createHostedSolanaGatewayTransports, createInstructionExecutor, createInstructionHandler, createPreparedFlow, createPreparedInstruction, createPreparedTransaction, createPreparedTransactionBody, createProgramPdas, createPublicKeySeed, createRichUpdateStream, createSeed, createSession, createSignerRegistry, createSubscriptionId, createTransactionTransport, createTypedListView, createTypedStateView, createTypedViews, createUpdateStream, decodeBase58, defineProgramExtensions, defineStackExtensions, deriveAssociatedTokenAccount, deriveHttpEndpoint, findProgramAddress as derivePda, describePreparedOperation, encodeBase58, executeInstruction, executePreparedOperation, extendProgram, extendPrograms, extendStack, findProgramAddress, findProgramAddressSync, flowOperation, formatPreparedOperation, formatProgramError, formatRawToUi, getMintDecimals, getOperationKind, getProgramRuntimeExtensions, getStackRuntimeExtensions, getTransactionFailureOutcome, hostedWebsocketSuffixes, inspectPreparedOperation, instructionOperation, isEntityFrame, isErrorFrame, isHostedAreteEndpoint, isReplayErrorCode, isSnapshotFrame, isStackVersionRefusalCode, isSubscribedFrame, isUnsubscribedFrame, isValidFrame, literal, normalizeSubscription, normalizeSubscriptionQuery, normalizeSubscriptionRequest, normalizeTransactionError, parseFrame, parseFrameFromBlob, parseInstructionError, parseUiAmountToRaw, pda, prependFlowTransactionInstructions, prependTransactionInstructions, programAccountRead, programQuery, resolveAccounts, resolveAmount, resolveAmountToRaw, resolveAmountsToRaw, resolveTokenProgramAddress, resolveTransactionBuildOptions, safeToRawAmount, serializeInstructionData, serializeViewKey, setHostedWebsocketSuffixes, stackQuery, stringifyBigints, toJsonValue, toRawAmount, toWireResourceOptions, transactionOperation, unwrapOperationExecutionError, validateAccountResolution, validateProgramReadDescriptor, validateSubscriptionId, withProgramRead, withPrograms };
|
|
2728
|
-
export type { AccountCategory, AccountLoader, AccountMeta, AccountResolutionOptions, AccountResolutionResult, AmountInput, AnyOperation, AreteConfig, AreteOptions, AreteOptionsWithStorage, ArgSchema, ArgType, AuthConfig, AuthTokenRequest, AuthTokenResult, AuthTokenTarget, BuildOptions, BuiltAccountMeta, BuiltInstruction, ChainClient, ChainClock, ChainFailedTransactionOutcome, CompositionSessionOptions, ConfirmationLevel, ConfirmedTransactionOutcome, ConnectOptions, ConnectedArete, ConnectedStackClient, ConnectionState, ConnectionStateCallback, ContextSlotOptions, CreatePreparedFlowInput, CreatePreparedInstructionInput, CreatePreparedTransactionInput, DefaultViewKey, EntityFrame, ErrorFrame, ErrorMetadata, ExecuteOptions, ExecutionResult, ExtendedProgramDefinition, ExtendedStackDefinition, FlowOperation, FlowOperationNamespace, FlowOperationReceipt, Frame, FrameMode, FrameOp, FrameProcessorConfig, FrameValidationDiagnostic, HostedSolanaGatewayBindings, HostedSolanaGatewayCapabilityBinding, HostedSolanaGatewayTransportOptions, HostedSolanaGatewayTransports, HttpAuthMetadata, InstructionExecutor, InstructionHandler, InstructionHandlerConfig, InstructionOperation, InstructionOperationNamespace, JsonObject, JsonPrimitive, JsonValue, LatestBlockhashResult, MergeProgramMaps, MintAccountInfo, NativeBalanceInfo, NonEmptyReadonlyArray, NotSubmittedTransactionOutcome, OperationCallbackPhase, OperationExecutionEvent, OperationExecutionHost, OperationExecutionOptions, OperationExecutionSuccessEvent, OperationInspection, OperationInspectionOptions, OperationKind, OperationKindBrand, OperationNamespace, OperationPlan, OperationReceiptFor, OperationTransactionReceipt, PdaConfig, PdaDeriveContext, PdaFactory, PdaProgram, PdaProgramSelector, PdaSeed, PreparedFlow, PreparedInstruction, PreparedOperation, PreparedOperationDescription, PreparedTransaction, PreparedTransactionBody, PreparedTransactionInstruction, PreparedTransactionOperation, ProgramAccountBatchItem, ProgramAccountBatchResult, ProgramAccountReadDefinition, ProgramError, ProgramExtensionInput, ProgramInterface, ProgramOperationContext, ProgramOperations, ProgramOperationsOf, ProgramPdas, ProgramQueryDefinition, ProgramReadBinding, ProgramReadBindingAuthTarget, ProgramReadDescriptor, ProgramReadDescriptors, ProgramReadOf, ProgramReadOverride, ProgramReadOverrides, ProgramReadRequest, ProgramReadTransport, ProgramReleaseReference, ProgramRuntimeExtensionCarrier, ProgramRuntimeExtensions, ProgramSdkDefinition, ProgramsInterface, QueriesInterface, QueryLease, QuerySnapshot, RawAccountInfo, RawInstructionsInterface, RawProgramsInterface, ReadArgumentCount, ReadArgumentCounts, ReadTransportMethod, ReplayErrorCode, ReplayWindow, ResolvedAccount, ResolvedAccounts, ResolvedTransactionBuildOptions, ResolvedTransactionResourceOptions, ResourceLamports, ResourceUnits, RichUpdate, RichUpdateCallback, Schema, SchemaResult, SeedDef, SendOptions, SendResult, Session, SessionDefinition, SessionMemberOptions, SessionOptions, SignerRegistry, SingleTransactionOperationReceipt, SnapshotEntity, SnapshotFrame, SocketIssue, SocketIssueCallback, SolanaGatewayAuthMetadata, SolanaGatewayAuthScope, SolanaGatewayBindingAuthTarget, SortConfig, SortOrder, StackConnectedExtensions, StackDefinition, StackEndpoints, StackExtensionClient, StackExtensionInput, StackQueryDefinition, StackRelease, StackRuntimeExtensionCarrier, StackRuntimeExtensions, StackVersionRefusal, StackWithAttachedPrograms, StorageAdapter, StorageAdapterConfig, StringifiedBigints, SubmittedUnknownTransactionOutcome, SubscribeCallback, SubscribedFrame, Subscription, SubscriptionIdentity, SubscriptionOptions, SubscriptionQuery, SubscriptionRequest, SubscriptionSnapshotOptions, TokenAccountInfo, TokenBalanceInfo, TokenBalanceInput, TransactionBuildCapability, TransactionBuildOptions, TransactionCommitment, TransactionFailureOutcome, TransactionFailurePhase, TransactionFailureStatus, TransactionFeeResult, TransactionInspectionOptions, TransactionInspectionResult, TransactionOperation, TransactionOperationNamespace, TransactionOptions, TransactionOptionsErrorCode, TransactionOutcome, TransactionRequestContext, TransactionResourceOptionKey, TransactionResourceOptions, TransactionSendOptions, TransactionSendResult, TransactionSignatureStatus, TransactionSimulationOptions, TransactionSimulationResult, TransactionTransport, TransactionTransportErrorBody, TransactionVersion, TypedAccountReader, TypedInstruction, TypedListView, TypedQueryExecutor, TypedStateView, TypedViewGroup, TypedViews, UnsubscribeFn, UnsubscribedFrame, Update, UpdateCallback, ViewDef, ViewGroup, ViewKeyFields, ViewKeyValue, ViewSortConfig, WaitForProcessedSlotOptions, WalletAdapter, WalletConnectOptions, WalletExecutionContext, WalletState, WatchOptions, WebSocketFactoryInit };
|
|
2915
|
+
export { ASSOCIATED_TOKEN_PROGRAM_ADDRESS, Arete, AreteError, ConnectionManager, DEFAULT_CONFIG, DEFAULT_MAX_ENTRIES_PER_VIEW, EXTENSION_API_VERSION, FrameProcessor, InstructionError, MemoryAdapter, OPERATION_KIND, OperationCallbackError, OperationExecutionError, PROGRAM_KEY_CONFLICT, PROGRAM_OPERATION_EXTENSIONS, ProcessedSlotTimeoutError, QueryStore, ReadRequestError, SPL_TOKEN_PROGRAM_ADDRESS, STACK_RUNTIME_EXTENSIONS, SYSTEM_PROGRAM_ADDRESS, StreamGapError, SubscriptionRegistry, TOKEN_2022_PROGRAM_ADDRESS, TRANSACTION_RESOURCE_OPTION_KEYS, TransactionExecutionError, TransactionOptionsError, TransactionTransportError, account, appendFlowTransactions, appendTransactionInstructions, applyConnectedStackExtensions, arg, buildInstruction, bytes, canonicalQueryKey, chainAccountLoader, compareProgramIdentity, createChainClient, createEntityStream, createHostedSolanaGatewayTransports, createInstructionExecutor, createInstructionHandler, createPreparedFlow, createPreparedInstruction, createPreparedTransaction, createPreparedTransactionBody, createProgramPdas, createPublicKeySeed, createRichUpdateStream, createSeed, createSession, createSignerRegistry, createSubscriptionId, createTransactionTransport, createTypedListView, createTypedStateView, createTypedViews, createUpdateStream, decodeBase58, defineProgramExtensions, defineStackExtensions, deriveAssociatedTokenAccount, deriveHttpEndpoint, findProgramAddress as derivePda, describePreparedOperation, encodeBase58, executeInstruction, executePreparedOperation, extendProgram, extendPrograms, extendStack, findProgramAddress, findProgramAddressSync, flowOperation, formatPreparedOperation, formatProgramError, formatRawToUi, getMintDecimals, getOperationKind, getProgramRuntimeExtensions, getStackRuntimeExtensions, getTransactionFailureOutcome, hostedWebsocketSuffixes, inspectPreparedOperation, instructionOperation, isEntityFrame, isErrorFrame, isHostedAreteEndpoint, isReplayErrorCode, isSameProgramSdk, isSnapshotFrame, isStackVersionRefusalCode, isSubscribedFrame, isUnsubscribedFrame, isValidFrame, literal, normalizeSubscription, normalizeSubscriptionQuery, normalizeSubscriptionRequest, normalizeTransactionError, parseFrame, parseFrameFromBlob, parseInstructionError, parseUiAmountToRaw, pda, prependFlowTransactionInstructions, prependTransactionInstructions, programAccountRead, programQuery, resolveAccounts, resolveAmount, resolveAmountToRaw, resolveAmountsToRaw, resolveTokenProgramAddress, resolveTransactionBuildOptions, safeToRawAmount, serializeInstructionData, serializeViewKey, setHostedWebsocketSuffixes, stackQuery, stringifyBigints, toJsonValue, toRawAmount, toWireResourceOptions, transactionOperation, unwrapOperationExecutionError, validateAccountResolution, validateProgramReadDescriptor, validateSubscriptionId, withProgramIdentity, withProgramRead, withPrograms };
|
|
2916
|
+
export type { AccountCategory, AccountLoader, AccountMeta, AccountResolutionOptions, AccountResolutionResult, AmountInput, AnyOperation, AreteConfig, AreteOptions, AreteOptionsWithStorage, ArgSchema, ArgType, AuthConfig, AuthTokenRequest, AuthTokenResult, AuthTokenTarget, BuildOptions, BuiltAccountMeta, BuiltInstruction, ChainClient, ChainClock, ChainFailedTransactionOutcome, CompositionSessionOptions, ConfirmationLevel, ConfirmedTransactionOutcome, ConnectOptions, ConnectedArete, ConnectedStackClient, ConnectionState, ConnectionStateCallback, ContextSlotOptions, CreatePreparedFlowInput, CreatePreparedInstructionInput, CreatePreparedTransactionInput, DefaultViewKey, EntityFrame, ErrorFrame, ErrorMetadata, ExecuteOptions, ExecutionResult, ExtendedProgramDefinition, ExtendedStackDefinition, FlowOperation, FlowOperationNamespace, FlowOperationReceipt, Frame, FrameMode, FrameOp, FrameProcessorConfig, FrameValidationDiagnostic, HostedSolanaGatewayBindings, HostedSolanaGatewayCapabilityBinding, HostedSolanaGatewayTransportOptions, HostedSolanaGatewayTransports, HttpAuthMetadata, InstructionExecutor, InstructionHandler, InstructionHandlerConfig, InstructionOperation, InstructionOperationNamespace, JsonObject, JsonPrimitive, JsonValue, LatestBlockhashResult, MergeProgramMaps, MintAccountInfo, NativeBalanceInfo, NonEmptyReadonlyArray, NotSubmittedTransactionOutcome, OperationCallbackPhase, OperationExecutionEvent, OperationExecutionHost, OperationExecutionOptions, OperationExecutionSuccessEvent, OperationInspection, OperationInspectionOptions, OperationKind, OperationKindBrand, OperationNamespace, OperationPlan, OperationReceiptFor, OperationTransactionReceipt, PdaConfig, PdaDeriveContext, PdaFactory, PdaProgram, PdaProgramSelector, PdaSeed, PreparedFlow, PreparedInstruction, PreparedOperation, PreparedOperationDescription, PreparedTransaction, PreparedTransactionBody, PreparedTransactionInstruction, PreparedTransactionOperation, ProgramAccountBatchItem, ProgramAccountBatchResult, ProgramAccountReadDefinition, ProgramError, ProgramExtensionInput, ProgramIdentityMatch, ProgramInterface, ProgramOperationContext, ProgramOperations, ProgramOperationsOf, ProgramPdas, ProgramQueryDefinition, ProgramReadBinding, ProgramReadBindingAuthTarget, ProgramReadDescriptor, ProgramReadDescriptors, ProgramReadOf, ProgramReadOverride, ProgramReadOverrides, ProgramReadRequest, ProgramReadTransport, ProgramReleaseReference, ProgramRuntimeExtensionCarrier, ProgramRuntimeExtensions, ProgramSdkDefinition, ProgramSdkIdentity, ProgramsInterface, QueriesInterface, QueryLease, QuerySnapshot, RawAccountInfo, RawInstructionsInterface, RawProgramsInterface, ReadArgumentCount, ReadArgumentCounts, ReadTransportMethod, ReplayErrorCode, ReplayWindow, ResolvedAccount, ResolvedAccounts, ResolvedTransactionBuildOptions, ResolvedTransactionResourceOptions, ResourceLamports, ResourceUnits, RichUpdate, RichUpdateCallback, Schema, SchemaResult, SeedDef, SendOptions, SendResult, Session, SessionDefinition, SessionMemberOptions, SessionOptions, SignerRegistry, SingleTransactionOperationReceipt, SnapshotEntity, SnapshotFrame, SocketIssue, SocketIssueCallback, SolanaGatewayAuthMetadata, SolanaGatewayAuthScope, SolanaGatewayBindingAuthTarget, SortConfig, SortOrder, StackConnectedExtensions, StackDefinition, StackEndpoints, StackExtensionClient, StackExtensionInput, StackQueryDefinition, StackRelease, StackRuntimeExtensionCarrier, StackRuntimeExtensions, StackVersionRefusal, StackWithAttachedPrograms, StorageAdapter, StorageAdapterConfig, StringifiedBigints, SubmittedUnknownTransactionOutcome, SubscribeCallback, SubscribedFrame, Subscription, SubscriptionIdentity, SubscriptionOptions, SubscriptionQuery, SubscriptionRequest, SubscriptionSnapshotOptions, TokenAccountInfo, TokenBalanceInfo, TokenBalanceInput, TransactionBuildCapability, TransactionBuildOptions, TransactionCommitment, TransactionFailureOutcome, TransactionFailurePhase, TransactionFailureStatus, TransactionFeeResult, TransactionInspectionOptions, TransactionInspectionResult, TransactionOperation, TransactionOperationNamespace, TransactionOptions, TransactionOptionsErrorCode, TransactionOutcome, TransactionRequestContext, TransactionResourceOptionKey, TransactionResourceOptions, TransactionSendOptions, TransactionSendResult, TransactionSignatureStatus, TransactionSimulationOptions, TransactionSimulationResult, TransactionTransport, TransactionTransportErrorBody, TransactionVersion, TypedAccountReader, TypedInstruction, TypedListView, TypedQueryExecutor, TypedStateView, TypedViewGroup, TypedViews, UnsubscribeFn, UnsubscribedFrame, Update, UpdateCallback, ViewDef, ViewGroup, ViewKeyFields, ViewKeyValue, ViewSortConfig, WaitForProcessedSlotOptions, WalletAdapter, WalletConnectOptions, WalletExecutionContext, WalletState, WatchOptions, WebSocketFactoryInit };
|