@blazephoenix/sdk 1.0.0 → 1.1.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 +36 -6
- package/dist/index.cjs +301 -262
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +302 -263
- package/dist/index.js.map +1 -1
- package/llms.txt +56 -0
- package/package.json +6 -3
package/dist/index.d.cts
CHANGED
|
@@ -385,6 +385,12 @@ interface RegistryOptions {
|
|
|
385
385
|
* delay a call, and by at most this much; later refreshes run in the
|
|
386
386
|
* background (stale-while-revalidate). */
|
|
387
387
|
timeoutMs?: number;
|
|
388
|
+
/** Route to addresses that only the fetched document supplies (a version
|
|
389
|
+
* released after this SDK). Default false: the document can list them, but
|
|
390
|
+
* resolve() only returns Router/Quoter addresses pinned in this package —
|
|
391
|
+
* the on-chain check of a remote entry reads the entry's own contracts, so
|
|
392
|
+
* it cannot tell a real deployment from a look-alike. */
|
|
393
|
+
remoteVersions?: boolean;
|
|
388
394
|
/** Called for every pin conflict or rejected document — never silently. */
|
|
389
395
|
onWarning?: (msg: string) => void;
|
|
390
396
|
}
|
|
@@ -394,6 +400,7 @@ declare class Registry {
|
|
|
394
400
|
private fetchedAt;
|
|
395
401
|
private lastError?;
|
|
396
402
|
private readonly mode;
|
|
403
|
+
private readonly remoteVersions;
|
|
397
404
|
private readonly url;
|
|
398
405
|
private readonly ttlMs;
|
|
399
406
|
private readonly fetchFn?;
|
|
@@ -422,6 +429,8 @@ declare class Registry {
|
|
|
422
429
|
/** Every deployed version on a chain, newest first. */
|
|
423
430
|
versionsOn(chainId: SupportedChainId): string[];
|
|
424
431
|
resolve(chainId: SupportedChainId, selector?: VersionSelector): ResolvedDeployment;
|
|
432
|
+
/** Router and Quoter both pinned in this package (not filled by a fetched document). */
|
|
433
|
+
private isPinned;
|
|
425
434
|
private latestKnownVersion;
|
|
426
435
|
/** chains × versions table (for dashboards, the MCP, debugging). */
|
|
427
436
|
table(): {
|
package/dist/index.d.ts
CHANGED
|
@@ -385,6 +385,12 @@ interface RegistryOptions {
|
|
|
385
385
|
* delay a call, and by at most this much; later refreshes run in the
|
|
386
386
|
* background (stale-while-revalidate). */
|
|
387
387
|
timeoutMs?: number;
|
|
388
|
+
/** Route to addresses that only the fetched document supplies (a version
|
|
389
|
+
* released after this SDK). Default false: the document can list them, but
|
|
390
|
+
* resolve() only returns Router/Quoter addresses pinned in this package —
|
|
391
|
+
* the on-chain check of a remote entry reads the entry's own contracts, so
|
|
392
|
+
* it cannot tell a real deployment from a look-alike. */
|
|
393
|
+
remoteVersions?: boolean;
|
|
388
394
|
/** Called for every pin conflict or rejected document — never silently. */
|
|
389
395
|
onWarning?: (msg: string) => void;
|
|
390
396
|
}
|
|
@@ -394,6 +400,7 @@ declare class Registry {
|
|
|
394
400
|
private fetchedAt;
|
|
395
401
|
private lastError?;
|
|
396
402
|
private readonly mode;
|
|
403
|
+
private readonly remoteVersions;
|
|
397
404
|
private readonly url;
|
|
398
405
|
private readonly ttlMs;
|
|
399
406
|
private readonly fetchFn?;
|
|
@@ -422,6 +429,8 @@ declare class Registry {
|
|
|
422
429
|
/** Every deployed version on a chain, newest first. */
|
|
423
430
|
versionsOn(chainId: SupportedChainId): string[];
|
|
424
431
|
resolve(chainId: SupportedChainId, selector?: VersionSelector): ResolvedDeployment;
|
|
432
|
+
/** Router and Quoter both pinned in this package (not filled by a fetched document). */
|
|
433
|
+
private isPinned;
|
|
425
434
|
private latestKnownVersion;
|
|
426
435
|
/** chains × versions table (for dashboards, the MCP, debugging). */
|
|
427
436
|
table(): {
|