@veridex/sdk 1.0.0-beta.17 → 1.0.0-beta.18

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.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-DE2ICQik.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-DE2ICQik.mjs';
3
- import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-CYOyIE3b.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-CYOyIE3b.mjs';
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';
@@ -184,6 +184,7 @@ declare const BASE_SEPOLIA_TOKENS: ChainTokenList;
184
184
  declare const OPTIMISM_SEPOLIA_TOKENS: ChainTokenList;
185
185
  declare const ARBITRUM_SEPOLIA_TOKENS: ChainTokenList;
186
186
  declare const ETHEREUM_SEPOLIA_TOKENS: ChainTokenList;
187
+ declare const MONAD_TESTNET_TOKENS: ChainTokenList;
187
188
  /**
188
189
  * All token lists indexed by Wormhole chain ID
189
190
  */
@@ -2116,6 +2117,7 @@ declare const CHAIN_NAMES: {
2116
2117
  readonly FANTOM: "fantom";
2117
2118
  readonly CELO: "celo";
2118
2119
  readonly MOONBEAM: "moonbeam";
2120
+ readonly MONAD: "monad";
2119
2121
  readonly SOLANA: "solana";
2120
2122
  readonly APTOS: "aptos";
2121
2123
  readonly SUI: "sui";
@@ -3361,4 +3363,104 @@ type AuthenticateAndPrepareResult = {
3361
3363
  */
3362
3364
  declare function authenticateAndPrepare(userParams: AuthenticateAndPrepareParams, apiKey: string): Promise<AuthenticateAndPrepareResult>;
3363
3365
 
3364
- export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, type AuthenticateAndPrepareParams, type AuthenticateAndPrepareResult, 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, ERROR_MESSAGES, ERROR_RANGES, ETHEREUM_SEPOLIA_TOKENS, EVM_ZERO_ADDRESS, type ExecuteDetails, ExecuteParams, type FormattedSpendingLimits, GasSponsor, type GasSponsorConfig, IdentityState, IndexedDBSessionStorage, type KeyPair, LIMIT_PRESETS, type LimitCheckResult, type LimitPreset, type LimitViolationSuggestion, type LimitViolationType, LocalStorageSessionStorage, MAX_SESSION_DURATION, MIN_SESSION_DURATION, type MultiChainVaultResult, NATIVE_TOKEN_ADDRESS, type NativeBalanceCapable, type NetworkType, OPTIMISM_SEPOLIA_TOKENS, PasskeyCredential$1 as PasskeyCredential, PasskeyManager, type PortfolioBalance, PreparedBridge, PreparedTransfer, 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, VAA, VERIDEX_ERRORS, VaultCreationResult, VaultInfo, VeridexConfig, type VeridexErrorCode, VeridexPayload, VeridexSDK, WalletManager, WalletManagerConfig, WebAuthnSignature, authenticateAndPrepare, 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, getErrorCategory, getErrorMessage, getExplorerUrl, getHubChains, getSuggestedAction, getSupportedChainIds, getSupportedChains, getTokenByAddress, getTokenBySymbol, getTokenList, hashAction, isAbiError, isChainSupported, isCoreError, isNativeToken, isQueryError, isQueryExecutionError, isQueryParsingError, isRetryableError, logTransactionSummary, parseVeridexError, sendAuthError, sendAuthResponse, signWithSessionKey, validateSessionConfig, verifySessionSignature };
3366
+ /**
3367
+ * @packageDocumentation
3368
+ * @module erc8004/contracts
3369
+ * @description
3370
+ * Low-level ERC-8004 contract utilities shared across SDK layers.
3371
+ *
3372
+ * Provides:
3373
+ * - Contract instance creation for Identity, Reputation, and Validation registries
3374
+ * - Address resolution by chain and network
3375
+ * - ABI references
3376
+ *
3377
+ * This module lives in the core SDK (`@veridex/sdk`) so that both the agent-sdk
3378
+ * and relayer can share the same contract interaction utilities.
3379
+ *
3380
+ * References:
3381
+ * - ADR-0029 §SDK Module Structure
3382
+ * - ERC8004_IMPLEMENTATION_PLAN.md Phase 1
3383
+ */
3384
+ /** Identity Registry — same address on ALL EVM mainnets */
3385
+ declare const ERC8004_MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
3386
+ /** Reputation Registry — same address on ALL EVM mainnets */
3387
+ declare const ERC8004_MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
3388
+ /** Identity Registry — same address on ALL EVM testnets */
3389
+ declare const ERC8004_TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
3390
+ /** Reputation Registry — same address on ALL EVM testnets */
3391
+ declare const ERC8004_TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
3392
+ /**
3393
+ * Resolve canonical ERC-8004 registry addresses for a given network.
3394
+ */
3395
+ declare function getERC8004Addresses(testnet: boolean): {
3396
+ identityRegistry: string;
3397
+ reputationRegistry: string;
3398
+ };
3399
+ /**
3400
+ * Check if a chain has ERC-8004 singletons deployed.
3401
+ */
3402
+ declare function isERC8004Chain(chainName: string): boolean;
3403
+ /** Chains where ERC-8004 singletons are deployed */
3404
+ declare const ERC8004_CHAINS: {
3405
+ readonly mainnet: readonly ["ethereum", "base", "polygon", "arbitrum", "optimism", "linea", "megaeth", "monad"];
3406
+ readonly testnet: readonly ["ethereum-sepolia", "base-sepolia", "polygon-amoy", "arbitrum-sepolia", "optimism-sepolia", "monad-testnet"];
3407
+ };
3408
+ /** Minimal Identity Registry ABI for read operations */
3409
+ 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)"];
3410
+ /** Minimal Reputation Registry ABI for read operations */
3411
+ 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)"];
3412
+ /** Full Identity Registry ABI (read + write) */
3413
+ 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)"];
3414
+ /** Full Reputation Registry ABI (read + write) */
3415
+ 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)"];
3416
+ /** Validation Registry ABI (Phase 3 — spec still under active update) */
3417
+ 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[])"];
3418
+
3419
+ /**
3420
+ * @packageDocumentation
3421
+ * @module erc8004/types
3422
+ * @description
3423
+ * On-chain types for ERC-8004 registries.
3424
+ * These are the low-level types that map directly to contract return values.
3425
+ *
3426
+ * Higher-level SDK config types live in `@veridex/agent-sdk/identity/types`.
3427
+ */
3428
+ /** Agent registration as stored on-chain in the ERC-8004 Identity Registry */
3429
+ interface ERC8004AgentRegistration {
3430
+ agentId: bigint;
3431
+ owner: string;
3432
+ agentURI: string;
3433
+ agentWallet: string;
3434
+ }
3435
+ /** Key-value metadata entry */
3436
+ interface ERC8004MetadataEntry {
3437
+ key: string;
3438
+ value: string;
3439
+ }
3440
+ /** Individual feedback entry from the Reputation Registry */
3441
+ interface ERC8004FeedbackEntry {
3442
+ value: bigint;
3443
+ valueDecimals: number;
3444
+ tag1: string;
3445
+ tag2: string;
3446
+ isRevoked: boolean;
3447
+ }
3448
+ /** Aggregated feedback summary from the Reputation Registry */
3449
+ interface ERC8004FeedbackSummary {
3450
+ count: bigint;
3451
+ summaryValue: bigint;
3452
+ summaryValueDecimals: number;
3453
+ }
3454
+ /** Validation status from the Validation Registry */
3455
+ interface ERC8004ValidationStatus {
3456
+ validatorAddress: string;
3457
+ agentId: bigint;
3458
+ response: number;
3459
+ responseHash: string;
3460
+ tag: string;
3461
+ lastUpdate: bigint;
3462
+ }
3463
+ /** CAIP-2 universal agent identifier format */
3464
+ type UniversalAgentIdentifier = string;
3465
+
3466
+ export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, type AuthenticateAndPrepareParams, type AuthenticateAndPrepareResult, 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, authenticateAndPrepare, 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-DE2ICQik.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-DE2ICQik.js';
3
- import { P as PasskeyManager, a as PasskeyCredential$1, W as WebAuthnSignature } from './index-BXcR_ypI.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-BXcR_ypI.js';
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';
@@ -184,6 +184,7 @@ declare const BASE_SEPOLIA_TOKENS: ChainTokenList;
184
184
  declare const OPTIMISM_SEPOLIA_TOKENS: ChainTokenList;
185
185
  declare const ARBITRUM_SEPOLIA_TOKENS: ChainTokenList;
186
186
  declare const ETHEREUM_SEPOLIA_TOKENS: ChainTokenList;
187
+ declare const MONAD_TESTNET_TOKENS: ChainTokenList;
187
188
  /**
188
189
  * All token lists indexed by Wormhole chain ID
189
190
  */
@@ -2116,6 +2117,7 @@ declare const CHAIN_NAMES: {
2116
2117
  readonly FANTOM: "fantom";
2117
2118
  readonly CELO: "celo";
2118
2119
  readonly MOONBEAM: "moonbeam";
2120
+ readonly MONAD: "monad";
2119
2121
  readonly SOLANA: "solana";
2120
2122
  readonly APTOS: "aptos";
2121
2123
  readonly SUI: "sui";
@@ -3361,4 +3363,104 @@ type AuthenticateAndPrepareResult = {
3361
3363
  */
3362
3364
  declare function authenticateAndPrepare(userParams: AuthenticateAndPrepareParams, apiKey: string): Promise<AuthenticateAndPrepareResult>;
3363
3365
 
3364
- export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, type AuthenticateAndPrepareParams, type AuthenticateAndPrepareResult, 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, ERROR_MESSAGES, ERROR_RANGES, ETHEREUM_SEPOLIA_TOKENS, EVM_ZERO_ADDRESS, type ExecuteDetails, ExecuteParams, type FormattedSpendingLimits, GasSponsor, type GasSponsorConfig, IdentityState, IndexedDBSessionStorage, type KeyPair, LIMIT_PRESETS, type LimitCheckResult, type LimitPreset, type LimitViolationSuggestion, type LimitViolationType, LocalStorageSessionStorage, MAX_SESSION_DURATION, MIN_SESSION_DURATION, type MultiChainVaultResult, NATIVE_TOKEN_ADDRESS, type NativeBalanceCapable, type NetworkType, OPTIMISM_SEPOLIA_TOKENS, PasskeyCredential$1 as PasskeyCredential, PasskeyManager, type PortfolioBalance, PreparedBridge, PreparedTransfer, 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, VAA, VERIDEX_ERRORS, VaultCreationResult, VaultInfo, VeridexConfig, type VeridexErrorCode, VeridexPayload, VeridexSDK, WalletManager, WalletManagerConfig, WebAuthnSignature, authenticateAndPrepare, 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, getErrorCategory, getErrorMessage, getExplorerUrl, getHubChains, getSuggestedAction, getSupportedChainIds, getSupportedChains, getTokenByAddress, getTokenBySymbol, getTokenList, hashAction, isAbiError, isChainSupported, isCoreError, isNativeToken, isQueryError, isQueryExecutionError, isQueryParsingError, isRetryableError, logTransactionSummary, parseVeridexError, sendAuthError, sendAuthResponse, signWithSessionKey, validateSessionConfig, verifySessionSignature };
3366
+ /**
3367
+ * @packageDocumentation
3368
+ * @module erc8004/contracts
3369
+ * @description
3370
+ * Low-level ERC-8004 contract utilities shared across SDK layers.
3371
+ *
3372
+ * Provides:
3373
+ * - Contract instance creation for Identity, Reputation, and Validation registries
3374
+ * - Address resolution by chain and network
3375
+ * - ABI references
3376
+ *
3377
+ * This module lives in the core SDK (`@veridex/sdk`) so that both the agent-sdk
3378
+ * and relayer can share the same contract interaction utilities.
3379
+ *
3380
+ * References:
3381
+ * - ADR-0029 §SDK Module Structure
3382
+ * - ERC8004_IMPLEMENTATION_PLAN.md Phase 1
3383
+ */
3384
+ /** Identity Registry — same address on ALL EVM mainnets */
3385
+ declare const ERC8004_MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
3386
+ /** Reputation Registry — same address on ALL EVM mainnets */
3387
+ declare const ERC8004_MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
3388
+ /** Identity Registry — same address on ALL EVM testnets */
3389
+ declare const ERC8004_TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
3390
+ /** Reputation Registry — same address on ALL EVM testnets */
3391
+ declare const ERC8004_TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
3392
+ /**
3393
+ * Resolve canonical ERC-8004 registry addresses for a given network.
3394
+ */
3395
+ declare function getERC8004Addresses(testnet: boolean): {
3396
+ identityRegistry: string;
3397
+ reputationRegistry: string;
3398
+ };
3399
+ /**
3400
+ * Check if a chain has ERC-8004 singletons deployed.
3401
+ */
3402
+ declare function isERC8004Chain(chainName: string): boolean;
3403
+ /** Chains where ERC-8004 singletons are deployed */
3404
+ declare const ERC8004_CHAINS: {
3405
+ readonly mainnet: readonly ["ethereum", "base", "polygon", "arbitrum", "optimism", "linea", "megaeth", "monad"];
3406
+ readonly testnet: readonly ["ethereum-sepolia", "base-sepolia", "polygon-amoy", "arbitrum-sepolia", "optimism-sepolia", "monad-testnet"];
3407
+ };
3408
+ /** Minimal Identity Registry ABI for read operations */
3409
+ 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)"];
3410
+ /** Minimal Reputation Registry ABI for read operations */
3411
+ 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)"];
3412
+ /** Full Identity Registry ABI (read + write) */
3413
+ 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)"];
3414
+ /** Full Reputation Registry ABI (read + write) */
3415
+ 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)"];
3416
+ /** Validation Registry ABI (Phase 3 — spec still under active update) */
3417
+ 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[])"];
3418
+
3419
+ /**
3420
+ * @packageDocumentation
3421
+ * @module erc8004/types
3422
+ * @description
3423
+ * On-chain types for ERC-8004 registries.
3424
+ * These are the low-level types that map directly to contract return values.
3425
+ *
3426
+ * Higher-level SDK config types live in `@veridex/agent-sdk/identity/types`.
3427
+ */
3428
+ /** Agent registration as stored on-chain in the ERC-8004 Identity Registry */
3429
+ interface ERC8004AgentRegistration {
3430
+ agentId: bigint;
3431
+ owner: string;
3432
+ agentURI: string;
3433
+ agentWallet: string;
3434
+ }
3435
+ /** Key-value metadata entry */
3436
+ interface ERC8004MetadataEntry {
3437
+ key: string;
3438
+ value: string;
3439
+ }
3440
+ /** Individual feedback entry from the Reputation Registry */
3441
+ interface ERC8004FeedbackEntry {
3442
+ value: bigint;
3443
+ valueDecimals: number;
3444
+ tag1: string;
3445
+ tag2: string;
3446
+ isRevoked: boolean;
3447
+ }
3448
+ /** Aggregated feedback summary from the Reputation Registry */
3449
+ interface ERC8004FeedbackSummary {
3450
+ count: bigint;
3451
+ summaryValue: bigint;
3452
+ summaryValueDecimals: number;
3453
+ }
3454
+ /** Validation status from the Validation Registry */
3455
+ interface ERC8004ValidationStatus {
3456
+ validatorAddress: string;
3457
+ agentId: bigint;
3458
+ response: number;
3459
+ responseHash: string;
3460
+ tag: string;
3461
+ lastUpdate: bigint;
3462
+ }
3463
+ /** CAIP-2 universal agent identifier format */
3464
+ type UniversalAgentIdentifier = string;
3465
+
3466
+ export { ARBITRUM_SEPOLIA_TOKENS, AUTH_MESSAGE_TYPES, type ActionDetails, type ActionDisplayType, AddBackupKeyResult, type AuthPortalMessage, type AuthenticateAndPrepareParams, type AuthenticateAndPrepareResult, 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, authenticateAndPrepare, 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.js CHANGED
@@ -52,6 +52,11 @@ __export(src_exports, {
52
52
  DEFAULT_REFRESH_BUFFER: () => DEFAULT_REFRESH_BUFFER,
53
53
  DEFAULT_RELAYER_URL: () => DEFAULT_RELAYER_URL,
54
54
  DEFAULT_SESSION_DURATION: () => DEFAULT_SESSION_DURATION,
55
+ ERC8004_CHAINS: () => ERC8004_CHAINS,
56
+ ERC8004_MAINNET_IDENTITY: () => ERC8004_MAINNET_IDENTITY,
57
+ ERC8004_MAINNET_REPUTATION: () => ERC8004_MAINNET_REPUTATION,
58
+ ERC8004_TESTNET_IDENTITY: () => ERC8004_TESTNET_IDENTITY,
59
+ ERC8004_TESTNET_REPUTATION: () => ERC8004_TESTNET_REPUTATION,
55
60
  ERROR_MESSAGES: () => ERROR_MESSAGES,
56
61
  ERROR_RANGES: () => ERROR_RANGES,
57
62
  ETHEREUM_SEPOLIA_TOKENS: () => ETHEREUM_SEPOLIA_TOKENS,
@@ -61,18 +66,23 @@ __export(src_exports, {
61
66
  GUARDIAN_CONFIG: () => GUARDIAN_CONFIG,
62
67
  GasSponsor: () => GasSponsor,
63
68
  HUB_ABI: () => HUB_ABI,
69
+ IDENTITY_REGISTRY_ABI: () => IDENTITY_REGISTRY_ABI,
70
+ IDENTITY_REGISTRY_READ_ABI: () => IDENTITY_REGISTRY_READ_ABI,
64
71
  IndexedDBSessionStorage: () => IndexedDBSessionStorage,
65
72
  LIMIT_PRESETS: () => LIMIT_PRESETS,
66
73
  LocalStorageSessionStorage: () => LocalStorageSessionStorage,
67
74
  MAINNET_CHAINS: () => MAINNET_CHAINS,
68
75
  MAX_SESSION_DURATION: () => MAX_SESSION_DURATION,
69
76
  MIN_SESSION_DURATION: () => MIN_SESSION_DURATION,
77
+ MONAD_TESTNET_TOKENS: () => MONAD_TESTNET_TOKENS,
70
78
  NATIVE_TOKEN_ADDRESS: () => NATIVE_TOKEN_ADDRESS,
71
79
  OPTIMISM_SEPOLIA_TOKENS: () => OPTIMISM_SEPOLIA_TOKENS,
72
80
  PROTOCOL_VERSION: () => PROTOCOL_VERSION,
73
81
  PasskeyManager: () => PasskeyManager,
74
82
  QueryHubStateError: () => QueryHubStateError,
75
83
  QueryPortfolioError: () => QueryPortfolioError,
84
+ REPUTATION_REGISTRY_ABI: () => REPUTATION_REGISTRY_ABI,
85
+ REPUTATION_REGISTRY_READ_ABI: () => REPUTATION_REGISTRY_READ_ABI,
76
86
  RelayerClient: () => RelayerClient,
77
87
  STACKS_ACTION_TYPES: () => STACKS_ACTION_TYPES,
78
88
  SessionError: () => SessionError,
@@ -86,6 +96,7 @@ __export(src_exports, {
86
96
  TOKEN_REGISTRY: () => TOKEN_REGISTRY,
87
97
  TransactionParser: () => TransactionParser,
88
98
  TransactionTracker: () => TransactionTracker,
99
+ VALIDATION_REGISTRY_ABI: () => VALIDATION_REGISTRY_ABI,
89
100
  VAULT_ABI: () => VAULT_ABI,
90
101
  VAULT_FACTORY_ABI: () => VAULT_FACTORY_ABI,
91
102
  VERIDEX_ERRORS: () => VERIDEX_ERRORS,
@@ -167,6 +178,7 @@ __export(src_exports, {
167
178
  getChainPreset: () => getChainPreset,
168
179
  getConfigTypeName: () => getConfigTypeName,
169
180
  getDefaultHub: () => getDefaultHub,
181
+ getERC8004Addresses: () => getERC8004Addresses,
170
182
  getErrorCategory: () => getErrorCategory,
171
183
  getErrorMessage: () => getErrorMessage,
172
184
  getExplorerUrl: () => getExplorerUrl,
@@ -191,6 +203,7 @@ __export(src_exports, {
191
203
  isAbiError: () => isAbiError,
192
204
  isChainSupported: () => isChainSupported,
193
205
  isCoreError: () => isCoreError,
206
+ isERC8004Chain: () => isERC8004Chain,
194
207
  isEvmChain: () => isEvmChain,
195
208
  isNativeToken: () => isNativeToken,
196
209
  isQueryError: () => isQueryError,
@@ -1926,11 +1939,46 @@ var ETHEREUM_SEPOLIA_TOKENS = {
1926
1939
  }
1927
1940
  ]
1928
1941
  };
1942
+ var MONAD_TESTNET_TOKENS = {
1943
+ wormholeChainId: 10048,
1944
+ chainName: "Monad Testnet",
1945
+ nativeToken: {
1946
+ symbol: "MON",
1947
+ name: "Monad",
1948
+ decimals: 18,
1949
+ address: NATIVE_TOKEN_ADDRESS,
1950
+ isNative: true
1951
+ },
1952
+ tokens: [
1953
+ {
1954
+ symbol: "USDC",
1955
+ name: "USD Coin",
1956
+ decimals: 6,
1957
+ address: "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
1958
+ isNative: false
1959
+ },
1960
+ {
1961
+ symbol: "AUSD",
1962
+ name: "Agora Dollar",
1963
+ decimals: 18,
1964
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
1965
+ isNative: false
1966
+ },
1967
+ {
1968
+ symbol: "WMON",
1969
+ name: "Wrapped MON",
1970
+ decimals: 18,
1971
+ address: "0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",
1972
+ isNative: false
1973
+ }
1974
+ ]
1975
+ };
1929
1976
  var TOKEN_REGISTRY = {
1930
1977
  10004: BASE_SEPOLIA_TOKENS,
1931
1978
  10005: OPTIMISM_SEPOLIA_TOKENS,
1932
1979
  10003: ARBITRUM_SEPOLIA_TOKENS,
1933
- 10002: ETHEREUM_SEPOLIA_TOKENS
1980
+ 10002: ETHEREUM_SEPOLIA_TOKENS,
1981
+ 10048: MONAD_TESTNET_TOKENS
1934
1982
  };
1935
1983
  function getTokenList(wormholeChainId) {
1936
1984
  return TOKEN_REGISTRY[wormholeChainId] ?? null;
@@ -12277,6 +12325,8 @@ var CHAIN_NAMES = {
12277
12325
  FANTOM: "fantom",
12278
12326
  CELO: "celo",
12279
12327
  MOONBEAM: "moonbeam",
12328
+ // EVM L1s (High Performance)
12329
+ MONAD: "monad",
12280
12330
  // Non-EVM
12281
12331
  SOLANA: "solana",
12282
12332
  APTOS: "aptos",
@@ -12714,6 +12764,45 @@ var CHAIN_PRESETS = {
12714
12764
  }
12715
12765
  },
12716
12766
  // ────────────────────────────────────────────────────────────────────────
12767
+ // MONAD - High-Performance L1 with EIP-7951 P256 + Agent Gateway
12768
+ // ────────────────────────────────────────────────────────────────────────
12769
+ monad: {
12770
+ displayName: "Monad",
12771
+ type: "evm",
12772
+ canBeHub: true,
12773
+ // Has native P-256 precompile (EIP-7951)
12774
+ testnet: {
12775
+ name: "Monad Testnet",
12776
+ chainId: 10143,
12777
+ wormholeChainId: 10048,
12778
+ rpcUrl: "https://testnet-rpc.monad.xyz",
12779
+ explorerUrl: "https://testnet.monadvision.com",
12780
+ isEvm: true,
12781
+ contracts: {
12782
+ vaultFactory: "0x07F608AFf6d63b68029488b726d895c4Bb593038",
12783
+ vaultImplementation: "0xD66153fccFB6731fB6c4944FbD607ba86A76a1f6",
12784
+ wormholeCoreBridge: "0xBB73cB66C26740F31d1FabDC6b7A46a038A300dd",
12785
+ // Agent Gateway contracts
12786
+ serviceDirectory: "0x0D2B4193e78107678a5aC29d795e0EcD361aE3A7"
12787
+ },
12788
+ hubChainId: 10004
12789
+ // Base Sepolia
12790
+ },
12791
+ mainnet: {
12792
+ name: "Monad",
12793
+ chainId: 143,
12794
+ wormholeChainId: 0,
12795
+ // TBD
12796
+ rpcUrl: "https://rpc.monad.xyz",
12797
+ explorerUrl: "https://monadscan.com",
12798
+ isEvm: true,
12799
+ contracts: {
12800
+ wormholeCoreBridge: "0x194B123c5E96B9b2E49763619985790Dc241CAC0",
12801
+ tokenBridge: "0x0B2719cdA2F10595369e6673ceA3Ee2EDFa13BA7"
12802
+ }
12803
+ }
12804
+ },
12805
+ // ────────────────────────────────────────────────────────────────────────
12717
12806
  // SEI
12718
12807
  // ────────────────────────────────────────────────────────────────────────
12719
12808
  sei: {
@@ -14746,6 +14835,101 @@ function getSuggestedAction(code) {
14746
14835
  return "An error occurred. Please try again or contact support.";
14747
14836
  }
14748
14837
  }
14838
+
14839
+ // src/erc8004/contracts.ts
14840
+ var ERC8004_MAINNET_IDENTITY = "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
14841
+ var ERC8004_MAINNET_REPUTATION = "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
14842
+ var ERC8004_TESTNET_IDENTITY = "0x8004A818BFB912233c491871b3d84c89A494BD9e";
14843
+ var ERC8004_TESTNET_REPUTATION = "0x8004B663056A597Dffe9eCcC1965A193B7388713";
14844
+ function getERC8004Addresses(testnet) {
14845
+ return {
14846
+ identityRegistry: testnet ? ERC8004_TESTNET_IDENTITY : ERC8004_MAINNET_IDENTITY,
14847
+ reputationRegistry: testnet ? ERC8004_TESTNET_REPUTATION : ERC8004_MAINNET_REPUTATION
14848
+ };
14849
+ }
14850
+ function isERC8004Chain(chainName) {
14851
+ return ERC8004_CHAINS.mainnet.includes(chainName) || ERC8004_CHAINS.testnet.includes(chainName);
14852
+ }
14853
+ var ERC8004_CHAINS = {
14854
+ mainnet: [
14855
+ "ethereum",
14856
+ "base",
14857
+ "polygon",
14858
+ "arbitrum",
14859
+ "optimism",
14860
+ "linea",
14861
+ "megaeth",
14862
+ "monad"
14863
+ ],
14864
+ testnet: [
14865
+ "ethereum-sepolia",
14866
+ "base-sepolia",
14867
+ "polygon-amoy",
14868
+ "arbitrum-sepolia",
14869
+ "optimism-sepolia",
14870
+ "monad-testnet"
14871
+ ]
14872
+ };
14873
+ var IDENTITY_REGISTRY_READ_ABI = [
14874
+ "function ownerOf(uint256 tokenId) view returns (address)",
14875
+ "function balanceOf(address owner) view returns (uint256)",
14876
+ "function totalSupply() view returns (uint256)",
14877
+ "function agentURI(uint256 agentId) view returns (string)",
14878
+ "function agentWallet(uint256 agentId) view returns (address)",
14879
+ "function getMetadata(uint256 agentId, string key) view returns (string)"
14880
+ ];
14881
+ var REPUTATION_REGISTRY_READ_ABI = [
14882
+ "function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)",
14883
+ "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)",
14884
+ "function getClients(uint256 agentId) view returns (address[])",
14885
+ "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)"
14886
+ ];
14887
+ var IDENTITY_REGISTRY_ABI = [
14888
+ // Registration
14889
+ "function register(string agentURI) returns (uint256)",
14890
+ "function register(string agentURI, tuple(string key, string value)[] metadata) returns (uint256)",
14891
+ // Read — ERC-721 standard
14892
+ "function ownerOf(uint256 tokenId) view returns (address)",
14893
+ "function balanceOf(address owner) view returns (uint256)",
14894
+ "function totalSupply() view returns (uint256)",
14895
+ // Read — ERC-8004 specific
14896
+ "function agentURI(uint256 agentId) view returns (string)",
14897
+ "function agentWallet(uint256 agentId) view returns (address)",
14898
+ "function getMetadata(uint256 agentId, string key) view returns (string)",
14899
+ // Write — URI and wallet management
14900
+ "function setAgentURI(uint256 agentId, string newURI)",
14901
+ "function setAgentWallet(uint256 agentId, address wallet, uint256 deadline, bytes signature)",
14902
+ "function unsetAgentWallet(uint256 agentId)",
14903
+ "function setMetadata(uint256 agentId, string key, string value)",
14904
+ // Events
14905
+ "event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)",
14906
+ "event AgentURIUpdated(uint256 indexed agentId, string newURI)",
14907
+ "event AgentWalletSet(uint256 indexed agentId, address wallet)",
14908
+ "event AgentWalletUnset(uint256 indexed agentId)",
14909
+ "event MetadataUpdated(uint256 indexed agentId, string key, string value)"
14910
+ ];
14911
+ var REPUTATION_REGISTRY_ABI = [
14912
+ // Write
14913
+ "function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2)",
14914
+ "function giveFeedback(uint256 agentId, int128 value, uint8 valueDecimals, string tag1, string tag2, string endpointURI, string feedbackURI, bytes32 feedbackHash)",
14915
+ "function revokeFeedback(uint256 agentId, uint256 feedbackIndex)",
14916
+ "function appendResponse(uint256 agentId, address clientAddress, uint256 feedbackIndex, string responseURI, bytes32 responseHash)",
14917
+ // Read
14918
+ "function getSummary(uint256 agentId, address[] clientAddresses, string tag1, string tag2) view returns (uint256 count, int128 summaryValue, uint8 summaryValueDecimals)",
14919
+ "function readFeedback(uint256 agentId, address clientAddress, uint256 feedbackIndex) view returns (int128 value, uint8 valueDecimals, string tag1, string tag2, bool isRevoked)",
14920
+ "function getClients(uint256 agentId) view returns (address[])",
14921
+ "function getLastIndex(uint256 agentId, address clientAddress) view returns (uint256)",
14922
+ // Events
14923
+ "event FeedbackGiven(uint256 indexed agentId, address indexed client, int128 value, uint8 valueDecimals)",
14924
+ "event FeedbackRevoked(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)",
14925
+ "event ResponseAppended(uint256 indexed agentId, address indexed client, uint256 feedbackIndex)"
14926
+ ];
14927
+ var VALIDATION_REGISTRY_ABI = [
14928
+ "function validationRequest(address validatorAddress, uint256 agentId, string requestURI, bytes32 requestHash) returns (bytes32)",
14929
+ "function getValidationStatus(bytes32 requestHash) view returns (address validatorAddress, uint256 agentId, uint8 response, bytes32 responseHash, string tag, uint256 lastUpdate)",
14930
+ "function getSummary(uint256 agentId, address[] validatorAddresses, string tag) view returns (uint256 count, uint256 averageResponse)",
14931
+ "function getAgentValidations(uint256 agentId) view returns (bytes32[])"
14932
+ ];
14749
14933
  // Annotate the CommonJS export names for ESM import in node:
14750
14934
  0 && (module.exports = {
14751
14935
  ACTION_BRIDGE,
@@ -14770,6 +14954,11 @@ function getSuggestedAction(code) {
14770
14954
  DEFAULT_REFRESH_BUFFER,
14771
14955
  DEFAULT_RELAYER_URL,
14772
14956
  DEFAULT_SESSION_DURATION,
14957
+ ERC8004_CHAINS,
14958
+ ERC8004_MAINNET_IDENTITY,
14959
+ ERC8004_MAINNET_REPUTATION,
14960
+ ERC8004_TESTNET_IDENTITY,
14961
+ ERC8004_TESTNET_REPUTATION,
14773
14962
  ERROR_MESSAGES,
14774
14963
  ERROR_RANGES,
14775
14964
  ETHEREUM_SEPOLIA_TOKENS,
@@ -14779,18 +14968,23 @@ function getSuggestedAction(code) {
14779
14968
  GUARDIAN_CONFIG,
14780
14969
  GasSponsor,
14781
14970
  HUB_ABI,
14971
+ IDENTITY_REGISTRY_ABI,
14972
+ IDENTITY_REGISTRY_READ_ABI,
14782
14973
  IndexedDBSessionStorage,
14783
14974
  LIMIT_PRESETS,
14784
14975
  LocalStorageSessionStorage,
14785
14976
  MAINNET_CHAINS,
14786
14977
  MAX_SESSION_DURATION,
14787
14978
  MIN_SESSION_DURATION,
14979
+ MONAD_TESTNET_TOKENS,
14788
14980
  NATIVE_TOKEN_ADDRESS,
14789
14981
  OPTIMISM_SEPOLIA_TOKENS,
14790
14982
  PROTOCOL_VERSION,
14791
14983
  PasskeyManager,
14792
14984
  QueryHubStateError,
14793
14985
  QueryPortfolioError,
14986
+ REPUTATION_REGISTRY_ABI,
14987
+ REPUTATION_REGISTRY_READ_ABI,
14794
14988
  RelayerClient,
14795
14989
  STACKS_ACTION_TYPES,
14796
14990
  SessionError,
@@ -14804,6 +14998,7 @@ function getSuggestedAction(code) {
14804
14998
  TOKEN_REGISTRY,
14805
14999
  TransactionParser,
14806
15000
  TransactionTracker,
15001
+ VALIDATION_REGISTRY_ABI,
14807
15002
  VAULT_ABI,
14808
15003
  VAULT_FACTORY_ABI,
14809
15004
  VERIDEX_ERRORS,
@@ -14884,6 +15079,7 @@ function getSuggestedAction(code) {
14884
15079
  getChainPreset,
14885
15080
  getConfigTypeName,
14886
15081
  getDefaultHub,
15082
+ getERC8004Addresses,
14887
15083
  getErrorCategory,
14888
15084
  getErrorMessage,
14889
15085
  getExplorerUrl,
@@ -14908,6 +15104,7 @@ function getSuggestedAction(code) {
14908
15104
  isAbiError,
14909
15105
  isChainSupported,
14910
15106
  isCoreError,
15107
+ isERC8004Chain,
14911
15108
  isEvmChain,
14912
15109
  isNativeToken,
14913
15110
  isQueryError,