@blockrun/clawrouter 0.12.45 → 0.12.47

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/index.d.ts CHANGED
@@ -1087,52 +1087,11 @@ declare function deriveEvmKey(mnemonic: string): {
1087
1087
  * 3. Final IL (32 bytes) = Ed25519 private key seed
1088
1088
  */
1089
1089
  declare function deriveSolanaKeyBytes(mnemonic: string): Uint8Array;
1090
- /**
1091
- * Legacy Solana key derivation using secp256k1 BIP-32 (incorrect for Solana).
1092
- * Kept for migration: sweeping funds from wallets derived with the old method.
1093
- */
1094
- declare function deriveSolanaKeyBytesLegacy(mnemonic: string): Uint8Array;
1095
1090
  /**
1096
1091
  * Derive both EVM and Solana keys from a single mnemonic.
1097
1092
  */
1098
1093
  declare function deriveAllKeys(mnemonic: string): DerivedKeys;
1099
1094
 
1100
- /**
1101
- * Solana Wallet Sweep — migrate USDC from legacy (secp256k1) to new (SLIP-10) wallet.
1102
- *
1103
- * Used when upgrading from the old BIP-32 secp256k1 derivation to correct
1104
- * SLIP-10 Ed25519 derivation. Transfers all USDC from the old address to the new one.
1105
- *
1106
- * Uses raw instruction encoding to avoid @solana-program/token dependency.
1107
- */
1108
- type SweepResult = {
1109
- transferred: string;
1110
- transferredMicros: bigint;
1111
- txSignature: string;
1112
- oldAddress: string;
1113
- newAddress: string;
1114
- };
1115
- type SweepError = {
1116
- error: string;
1117
- oldAddress: string;
1118
- newAddress?: string;
1119
- solBalance?: bigint;
1120
- usdcBalance?: bigint;
1121
- };
1122
- /**
1123
- * Sweep all USDC from old (legacy secp256k1) wallet to new (SLIP-10) wallet.
1124
- *
1125
- * The NEW wallet pays gas fees (not the old one). Users can't access the old
1126
- * wallet from Phantom/Solflare, so they can't send SOL to it. Instead they
1127
- * fund the new (Phantom-compatible) wallet with a tiny bit of SOL for gas.
1128
- *
1129
- * @param oldKeyBytes - 32-byte private key from legacy derivation
1130
- * @param newKeyBytes - 32-byte private key from SLIP-10 derivation (pays gas)
1131
- * @param rpcUrl - Optional RPC URL override
1132
- * @returns SweepResult on success, SweepError on failure
1133
- */
1134
- declare function sweepSolanaWallet(oldKeyBytes: Uint8Array, newKeyBytes: Uint8Array, rpcUrl?: string): Promise<SweepResult | SweepError>;
1135
-
1136
1095
  /**
1137
1096
  * Typed Error Classes for ClawRouter
1138
1097
  *
@@ -1384,4 +1343,4 @@ declare function buildPartnerTools(proxyBaseUrl: string): PartnerToolDefinition[
1384
1343
 
1385
1344
  declare const plugin: OpenClawPluginDefinition;
1386
1345
 
1387
- export { type AggregatedStats, BALANCE_THRESHOLDS, BLOCKRUN_MODELS, type BalanceInfo, BalanceMonitor, type CachedLLMResponse, type CachedResponse, type CheckResult, DEFAULT_RETRY_CONFIG, DEFAULT_ROUTING_CONFIG, DEFAULT_SESSION_CONFIG, type DailyStats, type DerivedKeys, EmptyWalletError, FileSpendControlStorage, InMemorySpendControlStorage, InsufficientFundsError, type InsufficientFundsInfo, type LowBalanceInfo, MODEL_ALIASES, OPENCLAW_MODELS, PARTNER_SERVICES, type PartnerServiceDefinition, type PartnerToolDefinition, type PaymentChain, type ProxyHandle, type ProxyOptions, RequestDeduplicator, ResponseCache, type ResponseCacheConfig, type RetryConfig, type RoutingConfig, type RoutingDecision, RpcError, type SessionConfig, type SessionEntry, SessionStore, type SolanaBalanceInfo, SolanaBalanceMonitor, SpendControl, type SpendControlOptions, type SpendControlStorage, type SpendLimits, type SpendRecord, type SpendWindow, type SpendingStatus, type SufficiencyResult, type SweepError, type SweepResult, type Tier, type UsageEntry, type WalletConfig, type WalletResolution, blockrunProvider, buildPartnerTools, buildProviderModels, calculateModelCost, clearStats, plugin as default, deriveAllKeys, deriveEvmKey, deriveSolanaKeyBytes, deriveSolanaKeyBytesLegacy, fetchWithRetry, formatDuration, formatStatsAscii, generateWalletMnemonic, getAgenticModels, getFallbackChain, getFallbackChainFiltered, getModelContextWindow, getPartnerService, getProxyPort, getSessionId, getStats, hashRequestContent, isAgenticModel, isBalanceError, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, isValidMnemonic, loadPaymentChain, logUsage, resolveModelAlias, resolvePaymentChain, route, savePaymentChain, setupSolana, startProxy, sweepSolanaWallet };
1346
+ export { type AggregatedStats, BALANCE_THRESHOLDS, BLOCKRUN_MODELS, type BalanceInfo, BalanceMonitor, type CachedLLMResponse, type CachedResponse, type CheckResult, DEFAULT_RETRY_CONFIG, DEFAULT_ROUTING_CONFIG, DEFAULT_SESSION_CONFIG, type DailyStats, type DerivedKeys, EmptyWalletError, FileSpendControlStorage, InMemorySpendControlStorage, InsufficientFundsError, type InsufficientFundsInfo, type LowBalanceInfo, MODEL_ALIASES, OPENCLAW_MODELS, PARTNER_SERVICES, type PartnerServiceDefinition, type PartnerToolDefinition, type PaymentChain, type ProxyHandle, type ProxyOptions, RequestDeduplicator, ResponseCache, type ResponseCacheConfig, type RetryConfig, type RoutingConfig, type RoutingDecision, RpcError, type SessionConfig, type SessionEntry, SessionStore, type SolanaBalanceInfo, SolanaBalanceMonitor, SpendControl, type SpendControlOptions, type SpendControlStorage, type SpendLimits, type SpendRecord, type SpendWindow, type SpendingStatus, type SufficiencyResult, type Tier, type UsageEntry, type WalletConfig, type WalletResolution, blockrunProvider, buildPartnerTools, buildProviderModels, calculateModelCost, clearStats, plugin as default, deriveAllKeys, deriveEvmKey, deriveSolanaKeyBytes, fetchWithRetry, formatDuration, formatStatsAscii, generateWalletMnemonic, getAgenticModels, getFallbackChain, getFallbackChainFiltered, getModelContextWindow, getPartnerService, getProxyPort, getSessionId, getStats, hashRequestContent, isAgenticModel, isBalanceError, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, isValidMnemonic, loadPaymentChain, logUsage, resolveModelAlias, resolvePaymentChain, route, savePaymentChain, setupSolana, startProxy };