@veridex/sdk 1.0.0-beta.17 → 1.0.0-beta.20
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 +416 -117
- package/dist/auth/prepareAuth.d.mts +25 -0
- package/dist/auth/prepareAuth.d.ts +25 -0
- package/dist/auth/prepareAuth.js +1553 -0
- package/dist/auth/prepareAuth.js.map +1 -0
- package/dist/auth/prepareAuth.mjs +1530 -0
- package/dist/auth/prepareAuth.mjs.map +1 -0
- package/dist/chains/aptos/index.d.mts +1 -1
- package/dist/chains/aptos/index.d.ts +1 -1
- package/dist/chains/evm/index.d.mts +2 -2
- package/dist/chains/evm/index.d.ts +2 -2
- package/dist/chains/solana/index.d.mts +1 -1
- package/dist/chains/solana/index.d.ts +1 -1
- package/dist/chains/stacks/index.d.mts +1 -1
- package/dist/chains/stacks/index.d.ts +1 -1
- package/dist/chains/starknet/index.d.mts +1 -1
- package/dist/chains/starknet/index.d.ts +1 -1
- package/dist/chains/sui/index.d.mts +1 -1
- package/dist/chains/sui/index.d.ts +1 -1
- package/dist/{index-CYOyIE3b.d.mts → index-Dy29mvBf.d.mts} +1 -1
- package/dist/{index-BXcR_ypI.d.ts → index-eXXqodd0.d.ts} +1 -1
- package/dist/index.d.mts +103 -25
- package/dist/index.d.ts +103 -25
- package/dist/index.js +198 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +185 -17
- package/dist/index.mjs.map +1 -1
- package/dist/queries/index.js +36 -1
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/index.mjs +36 -1
- package/dist/queries/index.mjs.map +1 -1
- package/dist/{types-DE2ICQik.d.mts → types-DakHNZIP.d.mts} +2 -0
- package/dist/{types-DE2ICQik.d.ts → types-DakHNZIP.d.ts} +2 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WalletManagerConfig, P as PasskeyCredential, U as UnifiedIdentity, C as ChainAddress, B as BridgeParams, a as ChainConfig, V as VAA, b as VeridexPayload, c as PreparedTransfer, d as PreparedBridge, e as VeridexConfig, f as ChainClient, T as TransferParams, E as ExecuteParams, D as DispatchResult, g as BridgeResult, h as TransferResult, R as ReceiveAddress, i as VaultInfo, j as VaultCreationResult, I as IdentityState, A as AuthorizedKey, k as AddBackupKeyResult, l as RemoveKeyResult } from './types-
|
|
2
|
-
export { r as ActionPayload, o as BridgeAction, q as ConfigAction, m as ConfigParams, v as CrossChainFees, p as ExecuteAction, t as TestResult, u as TransactionHistoryEntry, n as TransferAction, s as VAASignature } from './types-
|
|
3
|
-
import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-
|
|
4
|
-
export { E as EVMClient, e as EVMClientConfig, c as EVMHubClientAdapter, H as HubClient, b as PasskeyManagerConfig, S as SessionManager, V as VERIDEX_RP_ID, d as detectRpId, s as supportsRelatedOrigins } from './index-
|
|
1
|
+
import { W as WalletManagerConfig, P as PasskeyCredential, U as UnifiedIdentity, C as ChainAddress, B as BridgeParams, a as ChainConfig, V as VAA, b as VeridexPayload, c as PreparedTransfer, d as PreparedBridge, e as VeridexConfig, f as ChainClient, T as TransferParams, E as ExecuteParams, D as DispatchResult, g as BridgeResult, h as TransferResult, R as ReceiveAddress, i as VaultInfo, j as VaultCreationResult, I as IdentityState, A as AuthorizedKey, k as AddBackupKeyResult, l as RemoveKeyResult } from './types-DakHNZIP.mjs';
|
|
2
|
+
export { r as ActionPayload, o as BridgeAction, q as ConfigAction, m as ConfigParams, v as CrossChainFees, p as ExecuteAction, t as TestResult, u as TransactionHistoryEntry, n as TransferAction, s as VAASignature } from './types-DakHNZIP.mjs';
|
|
3
|
+
import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-Dy29mvBf.mjs';
|
|
4
|
+
export { E as EVMClient, e as EVMClientConfig, c as EVMHubClientAdapter, H as HubClient, b as PasskeyManagerConfig, S as SessionManager, V as VERIDEX_RP_ID, d as detectRpId, s as supportsRelatedOrigins } from './index-Dy29mvBf.mjs';
|
|
5
5
|
import { ethers } from 'ethers';
|
|
6
6
|
import { BridgeParams as BridgeParams$1, ChainConfig as ChainConfig$1 } from './types.mjs';
|
|
7
7
|
export { AddGuardianResult, ApproveRecoveryResult, CancelRecoveryResult, ExecuteRecoveryResult, ExecutionPath, GuardianConfig, InitiateRecoveryResult, QueryProof, QuerySubmissionResult, RecoveryStatus, RegisterSessionParams, RemoveGuardianResult, RevokeSessionParams, SessionKey, SessionValidationResult, SetupGuardiansResult } from './types.mjs';
|
|
@@ -15,13 +15,11 @@ export { A as ActionParams, b as SessionConfig, i as SessionError, h as SessionE
|
|
|
15
15
|
export { ACTION_BRIDGE, ACTION_CONFIG, ACTION_EXECUTE, ACTION_TRANSFER, ACTION_TYPES, HUB_ABI, MAINNET_CHAINS, PROTOCOL_VERSION, TESTNET_CHAINS, VAULT_ABI, VAULT_FACTORY_ABI, WORMHOLE_API, WORMHOLE_CHAIN_IDS, WORMHOLE_CHAIN_IDS_FLAT } from './constants.mjs';
|
|
16
16
|
export { base64URLDecode, base64URLEncode, computeKeyHash, encodeSignatureForSolidity, getAddressExplorerUrl, getChainByEvmId, getChainByWormholeId, getTxExplorerUrl, isEvmChain, isValidBytes32, isValidEvmAddress, isValidWormholeChainId, parseDERSignature, retryWithBackoff } from './utils.mjs';
|
|
17
17
|
export { buildChallenge, buildGaslessChallenge, createGaslessMessageHash, createMessageHash, decodeActionPayload, decodeBridgeAction, decodeExecuteAction, decodeTransferAction, encodeAptosTransferAction, encodeBridgeAction, encodeConfigAction, encodeExecuteAction, encodeSolanaTransferAction, encodeSuiTransferAction, encodeTransferAction, encodeVeridexPayload, formatAmount, generateNonce, padTo32Bytes, parseAmount, solanaAddressToBytes32, trimTo20Bytes } from './payload.mjs';
|
|
18
|
-
export { HubStateQuery, HubStateResult, PortfolioChainErrorCode, PortfolioChainResult, PortfolioQuery, PortfolioResult, QueryConfig, QueryHubStateError, QueryHubStateErrorCode, QueryHubStateNetwork, QueryHubStateOptions, QueryNetwork, QueryOperation, QueryOperationType, QueryPortfolioError, QueryPortfolioErrorCode, QueryPortfolioNetwork, QueryPortfolioOptions, QueryRequest, QueryResponse, WORMHOLE_QUERY_CHAIN_IDS, WORMHOLE_QUERY_PROXY_URLS, WORMHOLE_QUERY_RATE_LIMIT_PER_SECOND, queryHubState, queryPortfolio } from './queries/index.mjs';
|
|
19
18
|
export { CONSISTENCY_LEVELS, FetchVAAOptions, GUARDIAN_CONFIG, WaitForSignaturesOptions, emitterToEvmAddress, encodeVAAForSolana, encodeVAAToBytes, evmAddressToBytes32, fetchVAA, fetchVAAByTxHash, fetchVAAByTxHashFallback, getSequenceFromTxReceipt, getWormholeCoreBridge, getWormholeRelayer, getWormholeTokenBridge, hasQuorum, normalizeEmitterAddress, parseVAA, parseVAABytes, parseVeridexPayload, supportsRelayer, validateEmitter, waitForGuardianSignatures } from './wormhole.mjs';
|
|
20
19
|
import '@solana/web3.js';
|
|
21
20
|
import '@aptos-labs/ts-sdk';
|
|
22
21
|
import '@mysten/sui/client';
|
|
23
22
|
import 'starknet';
|
|
24
|
-
import '@wormhole-foundation/wormhole-query-sdk';
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* Veridex Protocol SDK - Wallet Manager
|
|
@@ -184,6 +182,7 @@ declare const BASE_SEPOLIA_TOKENS: ChainTokenList;
|
|
|
184
182
|
declare const OPTIMISM_SEPOLIA_TOKENS: ChainTokenList;
|
|
185
183
|
declare const ARBITRUM_SEPOLIA_TOKENS: ChainTokenList;
|
|
186
184
|
declare const ETHEREUM_SEPOLIA_TOKENS: ChainTokenList;
|
|
185
|
+
declare const MONAD_TESTNET_TOKENS: ChainTokenList;
|
|
187
186
|
/**
|
|
188
187
|
* All token lists indexed by Wormhole chain ID
|
|
189
188
|
*/
|
|
@@ -2116,6 +2115,7 @@ declare const CHAIN_NAMES: {
|
|
|
2116
2115
|
readonly FANTOM: "fantom";
|
|
2117
2116
|
readonly CELO: "celo";
|
|
2118
2117
|
readonly MOONBEAM: "moonbeam";
|
|
2118
|
+
readonly MONAD: "monad";
|
|
2119
2119
|
readonly SOLANA: "solana";
|
|
2120
2120
|
readonly APTOS: "aptos";
|
|
2121
2121
|
readonly SUI: "sui";
|
|
@@ -3339,26 +3339,104 @@ declare function isRetryableError(code: number): boolean;
|
|
|
3339
3339
|
*/
|
|
3340
3340
|
declare function getSuggestedAction(code: number): string;
|
|
3341
3341
|
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3342
|
+
/**
|
|
3343
|
+
* @packageDocumentation
|
|
3344
|
+
* @module erc8004/contracts
|
|
3345
|
+
* @description
|
|
3346
|
+
* Low-level ERC-8004 contract utilities shared across SDK layers.
|
|
3347
|
+
*
|
|
3348
|
+
* Provides:
|
|
3349
|
+
* - Contract instance creation for Identity, Reputation, and Validation registries
|
|
3350
|
+
* - Address resolution by chain and network
|
|
3351
|
+
* - ABI references
|
|
3352
|
+
*
|
|
3353
|
+
* This module lives in the core SDK (`@veridex/sdk`) so that both the agent-sdk
|
|
3354
|
+
* and relayer can share the same contract interaction utilities.
|
|
3355
|
+
*
|
|
3356
|
+
* References:
|
|
3357
|
+
* - ADR-0029 §SDK Module Structure
|
|
3358
|
+
* - ERC8004_IMPLEMENTATION_PLAN.md Phase 1
|
|
3359
|
+
*/
|
|
3360
|
+
/** Identity Registry — same address on ALL EVM mainnets */
|
|
3361
|
+
declare const ERC8004_MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
3362
|
+
/** Reputation Registry — same address on ALL EVM mainnets */
|
|
3363
|
+
declare const ERC8004_MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
|
|
3364
|
+
/** Identity Registry — same address on ALL EVM testnets */
|
|
3365
|
+
declare const ERC8004_TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
3366
|
+
/** Reputation Registry — same address on ALL EVM testnets */
|
|
3367
|
+
declare const ERC8004_TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
3368
|
+
/**
|
|
3369
|
+
* Resolve canonical ERC-8004 registry addresses for a given network.
|
|
3370
|
+
*/
|
|
3371
|
+
declare function getERC8004Addresses(testnet: boolean): {
|
|
3372
|
+
identityRegistry: string;
|
|
3373
|
+
reputationRegistry: string;
|
|
3354
3374
|
};
|
|
3355
3375
|
/**
|
|
3356
|
-
*
|
|
3357
|
-
* - user signs locally (FaceID/TouchID)
|
|
3358
|
-
* - client queries Wormhole Query Proxy for Guardian-attested nonce/state
|
|
3359
|
-
* - client returns a ready-to-submit relayer payload (JSON bytes)
|
|
3360
|
-
* - falls back to RPC nonce if Queries fails
|
|
3376
|
+
* Check if a chain has ERC-8004 singletons deployed.
|
|
3361
3377
|
*/
|
|
3362
|
-
declare function
|
|
3378
|
+
declare function isERC8004Chain(chainName: string): boolean;
|
|
3379
|
+
/** Chains where ERC-8004 singletons are deployed */
|
|
3380
|
+
declare const ERC8004_CHAINS: {
|
|
3381
|
+
readonly mainnet: readonly ["ethereum", "base", "polygon", "arbitrum", "optimism", "linea", "megaeth", "monad"];
|
|
3382
|
+
readonly testnet: readonly ["ethereum-sepolia", "base-sepolia", "polygon-amoy", "arbitrum-sepolia", "optimism-sepolia", "monad-testnet"];
|
|
3383
|
+
};
|
|
3384
|
+
/** Minimal Identity Registry ABI for read operations */
|
|
3385
|
+
declare const IDENTITY_REGISTRY_READ_ABI: readonly ["function ownerOf(uint256 tokenId) view returns (address)", "function balanceOf(address owner) view returns (uint256)", "function totalSupply() view returns (uint256)", "function agentURI(uint256 agentId) view returns (string)", "function agentWallet(uint256 agentId) view returns (address)", "function getMetadata(uint256 agentId, string key) view returns (string)"];
|
|
3386
|
+
/** Minimal Reputation Registry ABI for read operations */
|
|
3387
|
+
declare const REPUTATION_REGISTRY_READ_ABI: readonly ["function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)", "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)", "function getClients(uint256 agentId) view returns (address[])", "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)"];
|
|
3388
|
+
/** Full Identity Registry ABI (read + write) */
|
|
3389
|
+
declare const IDENTITY_REGISTRY_ABI: readonly ["function register(string agentURI) returns (uint256)", "function register(string agentURI, tuple(string key, string value)[] metadata) returns (uint256)", "function ownerOf(uint256 tokenId) view returns (address)", "function balanceOf(address owner) view returns (uint256)", "function totalSupply() view returns (uint256)", "function agentURI(uint256 agentId) view returns (string)", "function agentWallet(uint256 agentId) view returns (address)", "function getMetadata(uint256 agentId, string key) view returns (string)", "function setAgentURI(uint256 agentId, string newURI)", "function setAgentWallet(uint256 agentId, address wallet, uint256 deadline, bytes signature)", "function unsetAgentWallet(uint256 agentId)", "function setMetadata(uint256 agentId, string key, string value)", "event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)", "event AgentURIUpdated(uint256 indexed agentId, string newURI)", "event AgentWalletSet(uint256 indexed agentId, address wallet)", "event AgentWalletUnset(uint256 indexed agentId)", "event MetadataUpdated(uint256 indexed agentId, string key, string value)"];
|
|
3390
|
+
/** Full Reputation Registry ABI (read + write) */
|
|
3391
|
+
declare const REPUTATION_REGISTRY_ABI: readonly ["function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2)", "function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2, string endpointURI, string feedbackURI, bytes32 feedbackHash)", "function revokeFeedback(uint256 agentId, uint256 feedbackIndex)", "function appendResponse(uint256 agentId, address clientAddress, uint256 feedbackIndex, string responseURI, bytes32 responseHash)", "function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)", "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)", "function getClients(uint256 agentId) view returns (address[])", "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)", "event FeedbackGiven(uint256 indexed agentId, address indexed client, int128 value, uint8 valueDecimals)", "event FeedbackRevoked(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)", "event ResponseAppended(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)"];
|
|
3392
|
+
/** Validation Registry ABI (Phase 3 — spec still under active update) */
|
|
3393
|
+
declare const VALIDATION_REGISTRY_ABI: readonly ["function validationRequest(address validatorAddress, uint256 agentId, string requestURI, bytes32 requestHash) returns (bytes32)", "function getValidationStatus(bytes32 requestHash) view returns (address validatorAddress, uint256 agentId, uint8 response, bytes32 responseHash, string tag, uint256 lastUpdate)", "function getSummary(uint256 agentId, address[] validatorAddresses, string tag) view returns (uint256 count, uint256 averageResponse)", "function getAgentValidations(uint256 agentId) view returns (bytes32[])"];
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* @packageDocumentation
|
|
3397
|
+
* @module erc8004/types
|
|
3398
|
+
* @description
|
|
3399
|
+
* On-chain types for ERC-8004 registries.
|
|
3400
|
+
* These are the low-level types that map directly to contract return values.
|
|
3401
|
+
*
|
|
3402
|
+
* Higher-level SDK config types live in `@veridex/agent-sdk/identity/types`.
|
|
3403
|
+
*/
|
|
3404
|
+
/** Agent registration as stored on-chain in the ERC-8004 Identity Registry */
|
|
3405
|
+
interface ERC8004AgentRegistration {
|
|
3406
|
+
agentId: bigint;
|
|
3407
|
+
owner: string;
|
|
3408
|
+
agentURI: string;
|
|
3409
|
+
agentWallet: string;
|
|
3410
|
+
}
|
|
3411
|
+
/** Key-value metadata entry */
|
|
3412
|
+
interface ERC8004MetadataEntry {
|
|
3413
|
+
key: string;
|
|
3414
|
+
value: string;
|
|
3415
|
+
}
|
|
3416
|
+
/** Individual feedback entry from the Reputation Registry */
|
|
3417
|
+
interface ERC8004FeedbackEntry {
|
|
3418
|
+
value: bigint;
|
|
3419
|
+
valueDecimals: number;
|
|
3420
|
+
tag1: string;
|
|
3421
|
+
tag2: string;
|
|
3422
|
+
isRevoked: boolean;
|
|
3423
|
+
}
|
|
3424
|
+
/** Aggregated feedback summary from the Reputation Registry */
|
|
3425
|
+
interface ERC8004FeedbackSummary {
|
|
3426
|
+
count: bigint;
|
|
3427
|
+
summaryValue: bigint;
|
|
3428
|
+
summaryValueDecimals: number;
|
|
3429
|
+
}
|
|
3430
|
+
/** Validation status from the Validation Registry */
|
|
3431
|
+
interface ERC8004ValidationStatus {
|
|
3432
|
+
validatorAddress: string;
|
|
3433
|
+
agentId: bigint;
|
|
3434
|
+
response: number;
|
|
3435
|
+
responseHash: string;
|
|
3436
|
+
tag: string;
|
|
3437
|
+
lastUpdate: bigint;
|
|
3438
|
+
}
|
|
3439
|
+
/** CAIP-2 universal agent identifier format */
|
|
3440
|
+
type UniversalAgentIdentifier = string;
|
|
3363
3441
|
|
|
3364
|
-
export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage,
|
|
3442
|
+
export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, AuthorizedKey, BASE_SEPOLIA_TOKENS, BalanceManager, type BalanceManagerConfig, type BridgeDetails, BridgeParams, BridgeResult, CHAIN_DISPLAY_INFO, CHAIN_NAMES, CHAIN_PRESETS, CONFIG_TYPE, ChainAddress, type ChainAddressConfig, ChainClient, ChainConfig, type ChainDeploymentConfig, ChainDetector, type ChainDetectorConfig, type ChainDisplay, type ChainName, type ChainTokenList, type ConfigDetails, type CrossChainConfig, CrossChainManager, type CrossChainProgress, type CrossChainProgressCallback, type CrossChainResult, type CrossChainStatus, CrossOriginAuth, type CrossOriginAuthConfig, type CrossOriginSession, DEFAULT_AUTH_PORTAL_URL, DEFAULT_REFRESH_BUFFER, DEFAULT_RELAYER_URL, DEFAULT_SESSION_DURATION, type DailySpendingSummary, DispatchResult, type DurationDisplay, type ERC8004AgentRegistration, type ERC8004FeedbackEntry, type ERC8004FeedbackSummary, type ERC8004MetadataEntry, type ERC8004ValidationStatus, ERC8004_CHAINS, ERC8004_MAINNET_IDENTITY, ERC8004_MAINNET_REPUTATION, ERC8004_TESTNET_IDENTITY, ERC8004_TESTNET_REPUTATION, ERROR_MESSAGES, ERROR_RANGES, ETHEREUM_SEPOLIA_TOKENS, EVM_ZERO_ADDRESS, type ExecuteDetails, ExecuteParams, type FormattedSpendingLimits, GasSponsor, type GasSponsorConfig, IDENTITY_REGISTRY_ABI, IDENTITY_REGISTRY_READ_ABI, IdentityState, IndexedDBSessionStorage, type KeyPair, LIMIT_PRESETS, type LimitCheckResult, type LimitPreset, type LimitViolationSuggestion, type LimitViolationType, LocalStorageSessionStorage, MAX_SESSION_DURATION, MIN_SESSION_DURATION, MONAD_TESTNET_TOKENS, type MultiChainVaultResult, NATIVE_TOKEN_ADDRESS, type NativeBalanceCapable, type NetworkType, OPTIMISM_SEPOLIA_TOKENS, PasskeyCredential$1 as PasskeyCredential, PasskeyManager, type PortfolioBalance, PreparedBridge, PreparedTransfer, REPUTATION_REGISTRY_ABI, REPUTATION_REGISTRY_READ_ABI, ReceiveAddress, type RecipientDisplay, type RelayFeeQuote, type RelayRequest, type RelayRoute, type RelayStatus, RelayerClient, type RelayerClientConfig, type RelayerInfo, RemoveKeyResult, type RiskLevel, type RiskWarning, type RiskWarningType, type ServerSessionToken, SessionStorage, type SetDailyLimitParams, type SetTransactionLimitParams, type SimpleSDKConfig, type SessionConfig as SimpleSessionConfig, type SpendingLimitChangedEvent, type SpendingLimitConfig, type SpendingLimitEventCallback, type SpendingLimits, SpendingLimitsManager, type SpendingLimitsManagerConfig, type SpendingTransaction, type SponsoredVaultResult, type SponsorshipSource, type SubmitActionResult, type SubmitQueryRequest, type SubmitQueryResult, type SubmitSignedActionRequest, TOKEN_REGISTRY, type TokenBalance, type TokenDisplay, type TokenInfo$1 as TokenInfo, type TrackerConfig, type TransactionAuditEntry, type TransactionCallback, TransactionParser, type TransactionParserConfig, type TransactionState, type TransactionStatus, type TransactionSummary, TransactionTracker, type TransferDetails, TransferParams, TransferResult, UnifiedIdentity, type UniversalAgentIdentifier, VAA, VALIDATION_REGISTRY_ABI, VERIDEX_ERRORS, VaultCreationResult, VaultInfo, VeridexConfig, type VeridexErrorCode, VeridexPayload, VeridexSDK, WalletManager, WalletManagerConfig, WebAuthnSignature, calculatePercentage, computeSessionKeyHash, createAuditEntry, createChainDetector, createCrossOriginAuth, createGasSponsor, createHubSDK, createMainnetSDK, createRelayerClient, createSDK, createSessionSDK, createSessionStorage, createSpendingLimitsManager, createTestnetSDK, createTransactionParser, crossChainManager, decrypt, VeridexSDK as default, deriveEncryptionKey, encrypt, formatDuration, formatLargeAmount, formatTransactionState, generateSecp256k1KeyPair, getAllTokens, getChainConfig, getChainDisplay, getChainName, getChainPreset, getConfigTypeName, getDefaultHub, getERC8004Addresses, getErrorCategory, getErrorMessage, getExplorerUrl, getHubChains, getSuggestedAction, getSupportedChainIds, getSupportedChains, getTokenByAddress, getTokenBySymbol, getTokenList, hashAction, isAbiError, isChainSupported, isCoreError, isERC8004Chain, isNativeToken, isQueryError, isQueryExecutionError, isQueryParsingError, isRetryableError, logTransactionSummary, parseVeridexError, sendAuthError, sendAuthResponse, signWithSessionKey, validateSessionConfig, verifySessionSignature };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { W as WalletManagerConfig, P as PasskeyCredential, U as UnifiedIdentity, C as ChainAddress, B as BridgeParams, a as ChainConfig, V as VAA, b as VeridexPayload, c as PreparedTransfer, d as PreparedBridge, e as VeridexConfig, f as ChainClient, T as TransferParams, E as ExecuteParams, D as DispatchResult, g as BridgeResult, h as TransferResult, R as ReceiveAddress, i as VaultInfo, j as VaultCreationResult, I as IdentityState, A as AuthorizedKey, k as AddBackupKeyResult, l as RemoveKeyResult } from './types-
|
|
2
|
-
export { r as ActionPayload, o as BridgeAction, q as ConfigAction, m as ConfigParams, v as CrossChainFees, p as ExecuteAction, t as TestResult, u as TransactionHistoryEntry, n as TransferAction, s as VAASignature } from './types-
|
|
3
|
-
import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-
|
|
4
|
-
export { E as EVMClient, e as EVMClientConfig, c as EVMHubClientAdapter, H as HubClient, b as PasskeyManagerConfig, S as SessionManager, V as VERIDEX_RP_ID, d as detectRpId, s as supportsRelatedOrigins } from './index-
|
|
1
|
+
import { W as WalletManagerConfig, P as PasskeyCredential, U as UnifiedIdentity, C as ChainAddress, B as BridgeParams, a as ChainConfig, V as VAA, b as VeridexPayload, c as PreparedTransfer, d as PreparedBridge, e as VeridexConfig, f as ChainClient, T as TransferParams, E as ExecuteParams, D as DispatchResult, g as BridgeResult, h as TransferResult, R as ReceiveAddress, i as VaultInfo, j as VaultCreationResult, I as IdentityState, A as AuthorizedKey, k as AddBackupKeyResult, l as RemoveKeyResult } from './types-DakHNZIP.js';
|
|
2
|
+
export { r as ActionPayload, o as BridgeAction, q as ConfigAction, m as ConfigParams, v as CrossChainFees, p as ExecuteAction, t as TestResult, u as TransactionHistoryEntry, n as TransferAction, s as VAASignature } from './types-DakHNZIP.js';
|
|
3
|
+
import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-eXXqodd0.js';
|
|
4
|
+
export { E as EVMClient, e as EVMClientConfig, c as EVMHubClientAdapter, H as HubClient, b as PasskeyManagerConfig, S as SessionManager, V as VERIDEX_RP_ID, d as detectRpId, s as supportsRelatedOrigins } from './index-eXXqodd0.js';
|
|
5
5
|
import { ethers } from 'ethers';
|
|
6
6
|
import { BridgeParams as BridgeParams$1, ChainConfig as ChainConfig$1 } from './types.js';
|
|
7
7
|
export { AddGuardianResult, ApproveRecoveryResult, CancelRecoveryResult, ExecuteRecoveryResult, ExecutionPath, GuardianConfig, InitiateRecoveryResult, QueryProof, QuerySubmissionResult, RecoveryStatus, RegisterSessionParams, RemoveGuardianResult, RevokeSessionParams, SessionKey, SessionValidationResult, SetupGuardiansResult } from './types.js';
|
|
@@ -15,13 +15,11 @@ export { A as ActionParams, b as SessionConfig, i as SessionError, h as SessionE
|
|
|
15
15
|
export { ACTION_BRIDGE, ACTION_CONFIG, ACTION_EXECUTE, ACTION_TRANSFER, ACTION_TYPES, HUB_ABI, MAINNET_CHAINS, PROTOCOL_VERSION, TESTNET_CHAINS, VAULT_ABI, VAULT_FACTORY_ABI, WORMHOLE_API, WORMHOLE_CHAIN_IDS, WORMHOLE_CHAIN_IDS_FLAT } from './constants.js';
|
|
16
16
|
export { base64URLDecode, base64URLEncode, computeKeyHash, encodeSignatureForSolidity, getAddressExplorerUrl, getChainByEvmId, getChainByWormholeId, getTxExplorerUrl, isEvmChain, isValidBytes32, isValidEvmAddress, isValidWormholeChainId, parseDERSignature, retryWithBackoff } from './utils.js';
|
|
17
17
|
export { buildChallenge, buildGaslessChallenge, createGaslessMessageHash, createMessageHash, decodeActionPayload, decodeBridgeAction, decodeExecuteAction, decodeTransferAction, encodeAptosTransferAction, encodeBridgeAction, encodeConfigAction, encodeExecuteAction, encodeSolanaTransferAction, encodeSuiTransferAction, encodeTransferAction, encodeVeridexPayload, formatAmount, generateNonce, padTo32Bytes, parseAmount, solanaAddressToBytes32, trimTo20Bytes } from './payload.js';
|
|
18
|
-
export { HubStateQuery, HubStateResult, PortfolioChainErrorCode, PortfolioChainResult, PortfolioQuery, PortfolioResult, QueryConfig, QueryHubStateError, QueryHubStateErrorCode, QueryHubStateNetwork, QueryHubStateOptions, QueryNetwork, QueryOperation, QueryOperationType, QueryPortfolioError, QueryPortfolioErrorCode, QueryPortfolioNetwork, QueryPortfolioOptions, QueryRequest, QueryResponse, WORMHOLE_QUERY_CHAIN_IDS, WORMHOLE_QUERY_PROXY_URLS, WORMHOLE_QUERY_RATE_LIMIT_PER_SECOND, queryHubState, queryPortfolio } from './queries/index.js';
|
|
19
18
|
export { CONSISTENCY_LEVELS, FetchVAAOptions, GUARDIAN_CONFIG, WaitForSignaturesOptions, emitterToEvmAddress, encodeVAAForSolana, encodeVAAToBytes, evmAddressToBytes32, fetchVAA, fetchVAAByTxHash, fetchVAAByTxHashFallback, getSequenceFromTxReceipt, getWormholeCoreBridge, getWormholeRelayer, getWormholeTokenBridge, hasQuorum, normalizeEmitterAddress, parseVAA, parseVAABytes, parseVeridexPayload, supportsRelayer, validateEmitter, waitForGuardianSignatures } from './wormhole.js';
|
|
20
19
|
import '@solana/web3.js';
|
|
21
20
|
import '@aptos-labs/ts-sdk';
|
|
22
21
|
import '@mysten/sui/client';
|
|
23
22
|
import 'starknet';
|
|
24
|
-
import '@wormhole-foundation/wormhole-query-sdk';
|
|
25
23
|
|
|
26
24
|
/**
|
|
27
25
|
* Veridex Protocol SDK - Wallet Manager
|
|
@@ -184,6 +182,7 @@ declare const BASE_SEPOLIA_TOKENS: ChainTokenList;
|
|
|
184
182
|
declare const OPTIMISM_SEPOLIA_TOKENS: ChainTokenList;
|
|
185
183
|
declare const ARBITRUM_SEPOLIA_TOKENS: ChainTokenList;
|
|
186
184
|
declare const ETHEREUM_SEPOLIA_TOKENS: ChainTokenList;
|
|
185
|
+
declare const MONAD_TESTNET_TOKENS: ChainTokenList;
|
|
187
186
|
/**
|
|
188
187
|
* All token lists indexed by Wormhole chain ID
|
|
189
188
|
*/
|
|
@@ -2116,6 +2115,7 @@ declare const CHAIN_NAMES: {
|
|
|
2116
2115
|
readonly FANTOM: "fantom";
|
|
2117
2116
|
readonly CELO: "celo";
|
|
2118
2117
|
readonly MOONBEAM: "moonbeam";
|
|
2118
|
+
readonly MONAD: "monad";
|
|
2119
2119
|
readonly SOLANA: "solana";
|
|
2120
2120
|
readonly APTOS: "aptos";
|
|
2121
2121
|
readonly SUI: "sui";
|
|
@@ -3339,26 +3339,104 @@ declare function isRetryableError(code: number): boolean;
|
|
|
3339
3339
|
*/
|
|
3340
3340
|
declare function getSuggestedAction(code: number): string;
|
|
3341
3341
|
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3342
|
+
/**
|
|
3343
|
+
* @packageDocumentation
|
|
3344
|
+
* @module erc8004/contracts
|
|
3345
|
+
* @description
|
|
3346
|
+
* Low-level ERC-8004 contract utilities shared across SDK layers.
|
|
3347
|
+
*
|
|
3348
|
+
* Provides:
|
|
3349
|
+
* - Contract instance creation for Identity, Reputation, and Validation registries
|
|
3350
|
+
* - Address resolution by chain and network
|
|
3351
|
+
* - ABI references
|
|
3352
|
+
*
|
|
3353
|
+
* This module lives in the core SDK (`@veridex/sdk`) so that both the agent-sdk
|
|
3354
|
+
* and relayer can share the same contract interaction utilities.
|
|
3355
|
+
*
|
|
3356
|
+
* References:
|
|
3357
|
+
* - ADR-0029 §SDK Module Structure
|
|
3358
|
+
* - ERC8004_IMPLEMENTATION_PLAN.md Phase 1
|
|
3359
|
+
*/
|
|
3360
|
+
/** Identity Registry — same address on ALL EVM mainnets */
|
|
3361
|
+
declare const ERC8004_MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
3362
|
+
/** Reputation Registry — same address on ALL EVM mainnets */
|
|
3363
|
+
declare const ERC8004_MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
|
|
3364
|
+
/** Identity Registry — same address on ALL EVM testnets */
|
|
3365
|
+
declare const ERC8004_TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
|
|
3366
|
+
/** Reputation Registry — same address on ALL EVM testnets */
|
|
3367
|
+
declare const ERC8004_TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
|
|
3368
|
+
/**
|
|
3369
|
+
* Resolve canonical ERC-8004 registry addresses for a given network.
|
|
3370
|
+
*/
|
|
3371
|
+
declare function getERC8004Addresses(testnet: boolean): {
|
|
3372
|
+
identityRegistry: string;
|
|
3373
|
+
reputationRegistry: string;
|
|
3354
3374
|
};
|
|
3355
3375
|
/**
|
|
3356
|
-
*
|
|
3357
|
-
* - user signs locally (FaceID/TouchID)
|
|
3358
|
-
* - client queries Wormhole Query Proxy for Guardian-attested nonce/state
|
|
3359
|
-
* - client returns a ready-to-submit relayer payload (JSON bytes)
|
|
3360
|
-
* - falls back to RPC nonce if Queries fails
|
|
3376
|
+
* Check if a chain has ERC-8004 singletons deployed.
|
|
3361
3377
|
*/
|
|
3362
|
-
declare function
|
|
3378
|
+
declare function isERC8004Chain(chainName: string): boolean;
|
|
3379
|
+
/** Chains where ERC-8004 singletons are deployed */
|
|
3380
|
+
declare const ERC8004_CHAINS: {
|
|
3381
|
+
readonly mainnet: readonly ["ethereum", "base", "polygon", "arbitrum", "optimism", "linea", "megaeth", "monad"];
|
|
3382
|
+
readonly testnet: readonly ["ethereum-sepolia", "base-sepolia", "polygon-amoy", "arbitrum-sepolia", "optimism-sepolia", "monad-testnet"];
|
|
3383
|
+
};
|
|
3384
|
+
/** Minimal Identity Registry ABI for read operations */
|
|
3385
|
+
declare const IDENTITY_REGISTRY_READ_ABI: readonly ["function ownerOf(uint256 tokenId) view returns (address)", "function balanceOf(address owner) view returns (uint256)", "function totalSupply() view returns (uint256)", "function agentURI(uint256 agentId) view returns (string)", "function agentWallet(uint256 agentId) view returns (address)", "function getMetadata(uint256 agentId, string key) view returns (string)"];
|
|
3386
|
+
/** Minimal Reputation Registry ABI for read operations */
|
|
3387
|
+
declare const REPUTATION_REGISTRY_READ_ABI: readonly ["function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)", "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)", "function getClients(uint256 agentId) view returns (address[])", "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)"];
|
|
3388
|
+
/** Full Identity Registry ABI (read + write) */
|
|
3389
|
+
declare const IDENTITY_REGISTRY_ABI: readonly ["function register(string agentURI) returns (uint256)", "function register(string agentURI, tuple(string key, string value)[] metadata) returns (uint256)", "function ownerOf(uint256 tokenId) view returns (address)", "function balanceOf(address owner) view returns (uint256)", "function totalSupply() view returns (uint256)", "function agentURI(uint256 agentId) view returns (string)", "function agentWallet(uint256 agentId) view returns (address)", "function getMetadata(uint256 agentId, string key) view returns (string)", "function setAgentURI(uint256 agentId, string newURI)", "function setAgentWallet(uint256 agentId, address wallet, uint256 deadline, bytes signature)", "function unsetAgentWallet(uint256 agentId)", "function setMetadata(uint256 agentId, string key, string value)", "event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)", "event AgentURIUpdated(uint256 indexed agentId, string newURI)", "event AgentWalletSet(uint256 indexed agentId, address wallet)", "event AgentWalletUnset(uint256 indexed agentId)", "event MetadataUpdated(uint256 indexed agentId, string key, string value)"];
|
|
3390
|
+
/** Full Reputation Registry ABI (read + write) */
|
|
3391
|
+
declare const REPUTATION_REGISTRY_ABI: readonly ["function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2)", "function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2, string endpointURI, string feedbackURI, bytes32 feedbackHash)", "function revokeFeedback(uint256 agentId, uint256 feedbackIndex)", "function appendResponse(uint256 agentId, address clientAddress, uint256 feedbackIndex, string responseURI, bytes32 responseHash)", "function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)", "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)", "function getClients(uint256 agentId) view returns (address[])", "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)", "event FeedbackGiven(uint256 indexed agentId, address indexed client, int128 value, uint8 valueDecimals)", "event FeedbackRevoked(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)", "event ResponseAppended(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)"];
|
|
3392
|
+
/** Validation Registry ABI (Phase 3 — spec still under active update) */
|
|
3393
|
+
declare const VALIDATION_REGISTRY_ABI: readonly ["function validationRequest(address validatorAddress, uint256 agentId, string requestURI, bytes32 requestHash) returns (bytes32)", "function getValidationStatus(bytes32 requestHash) view returns (address validatorAddress, uint256 agentId, uint8 response, bytes32 responseHash, string tag, uint256 lastUpdate)", "function getSummary(uint256 agentId, address[] validatorAddresses, string tag) view returns (uint256 count, uint256 averageResponse)", "function getAgentValidations(uint256 agentId) view returns (bytes32[])"];
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* @packageDocumentation
|
|
3397
|
+
* @module erc8004/types
|
|
3398
|
+
* @description
|
|
3399
|
+
* On-chain types for ERC-8004 registries.
|
|
3400
|
+
* These are the low-level types that map directly to contract return values.
|
|
3401
|
+
*
|
|
3402
|
+
* Higher-level SDK config types live in `@veridex/agent-sdk/identity/types`.
|
|
3403
|
+
*/
|
|
3404
|
+
/** Agent registration as stored on-chain in the ERC-8004 Identity Registry */
|
|
3405
|
+
interface ERC8004AgentRegistration {
|
|
3406
|
+
agentId: bigint;
|
|
3407
|
+
owner: string;
|
|
3408
|
+
agentURI: string;
|
|
3409
|
+
agentWallet: string;
|
|
3410
|
+
}
|
|
3411
|
+
/** Key-value metadata entry */
|
|
3412
|
+
interface ERC8004MetadataEntry {
|
|
3413
|
+
key: string;
|
|
3414
|
+
value: string;
|
|
3415
|
+
}
|
|
3416
|
+
/** Individual feedback entry from the Reputation Registry */
|
|
3417
|
+
interface ERC8004FeedbackEntry {
|
|
3418
|
+
value: bigint;
|
|
3419
|
+
valueDecimals: number;
|
|
3420
|
+
tag1: string;
|
|
3421
|
+
tag2: string;
|
|
3422
|
+
isRevoked: boolean;
|
|
3423
|
+
}
|
|
3424
|
+
/** Aggregated feedback summary from the Reputation Registry */
|
|
3425
|
+
interface ERC8004FeedbackSummary {
|
|
3426
|
+
count: bigint;
|
|
3427
|
+
summaryValue: bigint;
|
|
3428
|
+
summaryValueDecimals: number;
|
|
3429
|
+
}
|
|
3430
|
+
/** Validation status from the Validation Registry */
|
|
3431
|
+
interface ERC8004ValidationStatus {
|
|
3432
|
+
validatorAddress: string;
|
|
3433
|
+
agentId: bigint;
|
|
3434
|
+
response: number;
|
|
3435
|
+
responseHash: string;
|
|
3436
|
+
tag: string;
|
|
3437
|
+
lastUpdate: bigint;
|
|
3438
|
+
}
|
|
3439
|
+
/** CAIP-2 universal agent identifier format */
|
|
3440
|
+
type UniversalAgentIdentifier = string;
|
|
3363
3441
|
|
|
3364
|
-
export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage,
|
|
3442
|
+
export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, AuthorizedKey, BASE_SEPOLIA_TOKENS, BalanceManager, type BalanceManagerConfig, type BridgeDetails, BridgeParams, BridgeResult, CHAIN_DISPLAY_INFO, CHAIN_NAMES, CHAIN_PRESETS, CONFIG_TYPE, ChainAddress, type ChainAddressConfig, ChainClient, ChainConfig, type ChainDeploymentConfig, ChainDetector, type ChainDetectorConfig, type ChainDisplay, type ChainName, type ChainTokenList, type ConfigDetails, type CrossChainConfig, CrossChainManager, type CrossChainProgress, type CrossChainProgressCallback, type CrossChainResult, type CrossChainStatus, CrossOriginAuth, type CrossOriginAuthConfig, type CrossOriginSession, DEFAULT_AUTH_PORTAL_URL, DEFAULT_REFRESH_BUFFER, DEFAULT_RELAYER_URL, DEFAULT_SESSION_DURATION, type DailySpendingSummary, DispatchResult, type DurationDisplay, type ERC8004AgentRegistration, type ERC8004FeedbackEntry, type ERC8004FeedbackSummary, type ERC8004MetadataEntry, type ERC8004ValidationStatus, ERC8004_CHAINS, ERC8004_MAINNET_IDENTITY, ERC8004_MAINNET_REPUTATION, ERC8004_TESTNET_IDENTITY, ERC8004_TESTNET_REPUTATION, ERROR_MESSAGES, ERROR_RANGES, ETHEREUM_SEPOLIA_TOKENS, EVM_ZERO_ADDRESS, type ExecuteDetails, ExecuteParams, type FormattedSpendingLimits, GasSponsor, type GasSponsorConfig, IDENTITY_REGISTRY_ABI, IDENTITY_REGISTRY_READ_ABI, IdentityState, IndexedDBSessionStorage, type KeyPair, LIMIT_PRESETS, type LimitCheckResult, type LimitPreset, type LimitViolationSuggestion, type LimitViolationType, LocalStorageSessionStorage, MAX_SESSION_DURATION, MIN_SESSION_DURATION, MONAD_TESTNET_TOKENS, type MultiChainVaultResult, NATIVE_TOKEN_ADDRESS, type NativeBalanceCapable, type NetworkType, OPTIMISM_SEPOLIA_TOKENS, PasskeyCredential$1 as PasskeyCredential, PasskeyManager, type PortfolioBalance, PreparedBridge, PreparedTransfer, REPUTATION_REGISTRY_ABI, REPUTATION_REGISTRY_READ_ABI, ReceiveAddress, type RecipientDisplay, type RelayFeeQuote, type RelayRequest, type RelayRoute, type RelayStatus, RelayerClient, type RelayerClientConfig, type RelayerInfo, RemoveKeyResult, type RiskLevel, type RiskWarning, type RiskWarningType, type ServerSessionToken, SessionStorage, type SetDailyLimitParams, type SetTransactionLimitParams, type SimpleSDKConfig, type SessionConfig as SimpleSessionConfig, type SpendingLimitChangedEvent, type SpendingLimitConfig, type SpendingLimitEventCallback, type SpendingLimits, SpendingLimitsManager, type SpendingLimitsManagerConfig, type SpendingTransaction, type SponsoredVaultResult, type SponsorshipSource, type SubmitActionResult, type SubmitQueryRequest, type SubmitQueryResult, type SubmitSignedActionRequest, TOKEN_REGISTRY, type TokenBalance, type TokenDisplay, type TokenInfo$1 as TokenInfo, type TrackerConfig, type TransactionAuditEntry, type TransactionCallback, TransactionParser, type TransactionParserConfig, type TransactionState, type TransactionStatus, type TransactionSummary, TransactionTracker, type TransferDetails, TransferParams, TransferResult, UnifiedIdentity, type UniversalAgentIdentifier, VAA, VALIDATION_REGISTRY_ABI, VERIDEX_ERRORS, VaultCreationResult, VaultInfo, VeridexConfig, type VeridexErrorCode, VeridexPayload, VeridexSDK, WalletManager, WalletManagerConfig, WebAuthnSignature, calculatePercentage, computeSessionKeyHash, createAuditEntry, createChainDetector, createCrossOriginAuth, createGasSponsor, createHubSDK, createMainnetSDK, createRelayerClient, createSDK, createSessionSDK, createSessionStorage, createSpendingLimitsManager, createTestnetSDK, createTransactionParser, crossChainManager, decrypt, VeridexSDK as default, deriveEncryptionKey, encrypt, formatDuration, formatLargeAmount, formatTransactionState, generateSecp256k1KeyPair, getAllTokens, getChainConfig, getChainDisplay, getChainName, getChainPreset, getConfigTypeName, getDefaultHub, getERC8004Addresses, getErrorCategory, getErrorMessage, getExplorerUrl, getHubChains, getSuggestedAction, getSupportedChainIds, getSupportedChains, getTokenByAddress, getTokenBySymbol, getTokenList, hashAction, isAbiError, isChainSupported, isCoreError, isERC8004Chain, isNativeToken, isQueryError, isQueryExecutionError, isQueryParsingError, isRetryableError, logTransactionSummary, parseVeridexError, sendAuthError, sendAuthResponse, signWithSessionKey, validateSessionConfig, verifySessionSignature };
|