@blockrun/clawrouter 0.12.324 → 0.12.326
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 +2 -1
- package/dist/cli.js +5 -5
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -5
- package/dist/router/index.js +1 -1
- package/package.json +2 -2
- package/skills/clawrouter/SKILL.md +1 -1
- package/src/top-models.json +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -635,6 +635,10 @@ declare class BalanceMonitor {
|
|
|
635
635
|
private cachedBalance;
|
|
636
636
|
/** Timestamp when cache was last updated */
|
|
637
637
|
private cachedAt;
|
|
638
|
+
/** Shared in-flight RPC read so concurrent checks do not stampede the RPC. */
|
|
639
|
+
private inflightFetch;
|
|
640
|
+
/** Incremented on invalidate() so a superseded in-flight read cannot repopulate the cache. */
|
|
641
|
+
private cacheEpoch;
|
|
638
642
|
constructor(walletAddress: string, chain?: EvmBalanceChain, fetchImpl?: typeof fetch);
|
|
639
643
|
/** Which chain's USDC this monitor reads. */
|
|
640
644
|
getChain(): EvmBalanceChain;
|
|
@@ -735,6 +739,8 @@ declare class SolanaBalanceMonitor {
|
|
|
735
739
|
private readonly walletAddress;
|
|
736
740
|
private cachedBalance;
|
|
737
741
|
private cachedAt;
|
|
742
|
+
private inflightFetch;
|
|
743
|
+
private cacheEpoch;
|
|
738
744
|
constructor(walletAddress: string, rpcUrl?: string);
|
|
739
745
|
checkBalance(): Promise<SolanaBalanceInfo>;
|
|
740
746
|
deductEstimated(amountMicros: bigint): void;
|