UNPKG

tensaikit

Version:

An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.

34 lines (33 loc) 1.45 kB
"use strict"; /** * Common error types used across the application */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorCode = void 0; var ErrorCode; (function (ErrorCode) { // Wallet related errors ErrorCode["WALLET_NOT_FOUND"] = "WALLET_NOT_FOUND"; ErrorCode["INVALID_WALLET"] = "INVALID_WALLET"; ErrorCode["WALLET_CONNECTION_FAILED"] = "WALLET_CONNECTION_FAILED"; // Network related errors ErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR"; ErrorCode["INVALID_NETWORK"] = "INVALID_NETWORK"; ErrorCode["RPC_ERROR"] = "RPC_ERROR"; // Transaction related errors ErrorCode["TRANSACTION_FAILED"] = "TRANSACTION_FAILED"; ErrorCode["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS"; ErrorCode["GAS_ESTIMATION_FAILED"] = "GAS_ESTIMATION_FAILED"; // Contract related errors ErrorCode["CONTRACT_ERROR"] = "CONTRACT_ERROR"; ErrorCode["INVALID_CONTRACT"] = "INVALID_CONTRACT"; // Validation errors ErrorCode["INVALID_INPUT"] = "INVALID_INPUT"; ErrorCode["MISSING_REQUIRED_FIELD"] = "MISSING_REQUIRED_FIELD"; // General errors ErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR"; ErrorCode["NOT_IMPLEMENTED"] = "NOT_IMPLEMENTED"; ErrorCode["CONFIGURATION_ERROR"] = "CONFIGURATION_ERROR"; ErrorCode["API_CALL_FAILED"] = "API_CALL_FAILED"; ErrorCode["TOKEN_METADATA_ERROR"] = "TOKEN_METADATA_ERROR"; })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));