UNPKG

@coinbase/cdp-sdk

Version:

SDK for interacting with the Coinbase Developer Platform Wallet API

476 lines 17.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SendSolTransactionRuleOperation = exports.SendSolTransactionRuleAction = exports.SignSolTransactionRuleOperation = exports.SignSolTransactionRuleAction = exports.MintAddressCriterionOperator = exports.MintAddressCriterionType = exports.SplValueCriterionOperator = exports.SplValueCriterionType = exports.SplAddressCriterionOperator = exports.SplAddressCriterionType = exports.SolValueCriterionOperator = exports.SolValueCriterionType = exports.SolAddressCriterionOperator = exports.SolAddressCriterionType = exports.SignEvmTypedDataRuleOperation = exports.SignEvmTypedDataRuleAction = exports.SignEvmTypedDataVerifyingContractCriterionOperator = exports.SignEvmTypedDataVerifyingContractCriterionType = exports.SignEvmTypedDataFieldCriterionType = exports.EvmTypedNumericalConditionOperator = exports.EvmTypedAddressConditionOperator = exports.SignEvmMessageRuleOperation = exports.SignEvmMessageRuleAction = exports.EvmMessageCriterionType = exports.SendEvmTransactionRuleOperation = exports.SendEvmTransactionRuleAction = exports.EvmNetworkCriterionOperator = exports.EvmNetworkCriterionNetworksItem = exports.EvmNetworkCriterionType = exports.SignEvmTransactionRuleOperation = exports.SignEvmTransactionRuleAction = exports.NetUSDChangeCriterionOperator = exports.NetUSDChangeCriterionType = exports.EvmDataCriterionType = exports.EvmDataParameterConditionListOperator = exports.EvmDataParameterConditionOperator = exports.AbiInputType = exports.AbiFunctionType = exports.AbiStateMutability = exports.KnownAbiType = exports.EvmAddressCriterionOperator = exports.EvmAddressCriterionType = exports.EthValueCriterionOperator = exports.EthValueCriterionType = exports.ListEvmTokenBalancesNetwork = exports.EvmSwapsNetwork = exports.SpendPermissionNetwork = exports.EvmUserOperationStatus = exports.EvmUserOperationNetwork = exports.ErrorType = void 0; exports.CreatePaymentTransferQuoteBodyTargetType = exports.CreatePaymentTransferQuoteBodySourceType = exports.RequestSolanaFaucetBodyToken = exports.SendSolanaTransactionBodyNetwork = exports.CreatePolicyBodyScope = exports.ListPoliciesScope = exports.RequestEvmFaucetBodyToken = exports.RequestEvmFaucetBodyNetwork = exports.SendEvmTransactionBodyNetwork = exports.OnrampPaymentLinkType = exports.OnrampOrderStatus = exports.OnrampOrderFeeType = exports.OnrampPaymentMethodTypeId = exports.TransferStatus = exports.TransferTargetType = exports.TransferSourceType = exports.FeeType = exports.PaymentMethodType = exports.PaymentRailAction = exports.OnchainDataResultSchemaColumnsItemType = exports.ListSolanaTokenBalancesNetwork = exports.PolicyScope = exports.SendUserOperationRuleOperation = exports.SendUserOperationRuleAction = exports.PrepareUserOperationRuleOperation = exports.PrepareUserOperationRuleAction = exports.SignEvmHashRuleOperation = exports.SignEvmHashRuleAction = void 0; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.ErrorType = { already_exists: "already_exists", bad_gateway: "bad_gateway", faucet_limit_exceeded: "faucet_limit_exceeded", forbidden: "forbidden", idempotency_error: "idempotency_error", internal_server_error: "internal_server_error", invalid_request: "invalid_request", invalid_sql_query: "invalid_sql_query", invalid_signature: "invalid_signature", malformed_transaction: "malformed_transaction", not_found: "not_found", payment_method_required: "payment_method_required", rate_limit_exceeded: "rate_limit_exceeded", request_canceled: "request_canceled", service_unavailable: "service_unavailable", timed_out: "timed_out", unauthorized: "unauthorized", policy_violation: "policy_violation", policy_in_use: "policy_in_use", account_limit_exceeded: "account_limit_exceeded", network_not_tradable: "network_not_tradable", guest_permission_denied: "guest_permission_denied", guest_region_forbidden: "guest_region_forbidden", guest_transaction_limit: "guest_transaction_limit", guest_transaction_count: "guest_transaction_count", phone_number_verification_expired: "phone_number_verification_expired", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmUserOperationNetwork = { "base-sepolia": "base-sepolia", base: "base", arbitrum: "arbitrum", optimism: "optimism", zora: "zora", polygon: "polygon", bnb: "bnb", avalanche: "avalanche", ethereum: "ethereum", "ethereum-sepolia": "ethereum-sepolia", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmUserOperationStatus = { pending: "pending", signed: "signed", broadcast: "broadcast", complete: "complete", dropped: "dropped", failed: "failed", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SpendPermissionNetwork = { base: "base", "base-sepolia": "base-sepolia", ethereum: "ethereum", "ethereum-sepolia": "ethereum-sepolia", optimism: "optimism", arbitrum: "arbitrum", avalanche: "avalanche", polygon: "polygon", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmSwapsNetwork = { base: "base", ethereum: "ethereum", arbitrum: "arbitrum", optimism: "optimism", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.ListEvmTokenBalancesNetwork = { base: "base", "base-sepolia": "base-sepolia", ethereum: "ethereum", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EthValueCriterionType = { ethValue: "ethValue", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EthValueCriterionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmAddressCriterionType = { evmAddress: "evmAddress", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmAddressCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.KnownAbiType = { erc20: "erc20", erc721: "erc721", erc1155: "erc1155", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.AbiStateMutability = { pure: "pure", view: "view", nonpayable: "nonpayable", payable: "payable", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.AbiFunctionType = { function: "function", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.AbiInputType = { constructor: "constructor", error: "error", event: "event", fallback: "fallback", receive: "receive", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmDataParameterConditionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmDataParameterConditionListOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmDataCriterionType = { evmData: "evmData", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.NetUSDChangeCriterionType = { netUSDChange: "netUSDChange", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.NetUSDChangeCriterionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTransactionRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTransactionRuleOperation = { signEvmTransaction: "signEvmTransaction", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmNetworkCriterionType = { evmNetwork: "evmNetwork", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmNetworkCriterionNetworksItem = { "base-sepolia": "base-sepolia", base: "base", ethereum: "ethereum", "ethereum-sepolia": "ethereum-sepolia", avalanche: "avalanche", polygon: "polygon", optimism: "optimism", arbitrum: "arbitrum", zora: "zora", bnb: "bnb", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmNetworkCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendEvmTransactionRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendEvmTransactionRuleOperation = { sendEvmTransaction: "sendEvmTransaction", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmMessageCriterionType = { evmMessage: "evmMessage", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmMessageRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmMessageRuleOperation = { signEvmMessage: "signEvmMessage", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmTypedAddressConditionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.EvmTypedNumericalConditionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTypedDataFieldCriterionType = { evmTypedDataField: "evmTypedDataField", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTypedDataVerifyingContractCriterionType = { evmTypedDataVerifyingContract: "evmTypedDataVerifyingContract", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTypedDataVerifyingContractCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTypedDataRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmTypedDataRuleOperation = { signEvmTypedData: "signEvmTypedData", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SolAddressCriterionType = { solAddress: "solAddress", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SolAddressCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SolValueCriterionType = { solValue: "solValue", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SolValueCriterionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SplAddressCriterionType = { splAddress: "splAddress", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SplAddressCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SplValueCriterionType = { splValue: "splValue", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SplValueCriterionOperator = { ">": ">", ">=": ">=", "<": "<", "<=": "<=", "==": "==", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.MintAddressCriterionType = { mintAddress: "mintAddress", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.MintAddressCriterionOperator = { in: "in", not_in: "not in", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignSolTransactionRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignSolTransactionRuleOperation = { signSolTransaction: "signSolTransaction", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendSolTransactionRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendSolTransactionRuleOperation = { sendSolTransaction: "sendSolTransaction", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmHashRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SignEvmHashRuleOperation = { signEvmHash: "signEvmHash", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.PrepareUserOperationRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.PrepareUserOperationRuleOperation = { prepareUserOperation: "prepareUserOperation", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendUserOperationRuleAction = { reject: "reject", accept: "accept", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendUserOperationRuleOperation = { sendUserOperation: "sendUserOperation", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.PolicyScope = { project: "project", account: "account", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.ListSolanaTokenBalancesNetwork = { solana: "solana", "solana-devnet": "solana-devnet", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.OnchainDataResultSchemaColumnsItemType = { String: "String", UInt8: "UInt8", UInt16: "UInt16", UInt32: "UInt32", UInt64: "UInt64", UInt128: "UInt128", UInt256: "UInt256", Int8: "Int8", Int16: "Int16", Int32: "Int32", Int64: "Int64", Int128: "Int128", Int256: "Int256", Float32: "Float32", Float64: "Float64", Bool: "Bool", Date: "Date", DateTime: "DateTime", DateTime64: "DateTime64", UUID: "UUID", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.PaymentRailAction = { source: "source", target: "target", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.PaymentMethodType = { card: "card", fiat_account: "fiat_account", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.FeeType = { exchange_fee: "exchange_fee", network_fee: "network_fee", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.TransferSourceType = { payment_method: "payment_method", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.TransferTargetType = { crypto_rail: "crypto_rail", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.TransferStatus = { created: "created", pending: "pending", started: "started", completed: "completed", failed: "failed", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.OnrampPaymentMethodTypeId = { GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.OnrampOrderFeeType = { FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK", FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.OnrampOrderStatus = { ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH", ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT", ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING", ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED", ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.OnrampPaymentLinkType = { PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendEvmTransactionBodyNetwork = { base: "base", "base-sepolia": "base-sepolia", ethereum: "ethereum", "ethereum-sepolia": "ethereum-sepolia", avalanche: "avalanche", polygon: "polygon", optimism: "optimism", arbitrum: "arbitrum", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.RequestEvmFaucetBodyNetwork = { "base-sepolia": "base-sepolia", "ethereum-sepolia": "ethereum-sepolia", "ethereum-hoodi": "ethereum-hoodi", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.RequestEvmFaucetBodyToken = { eth: "eth", usdc: "usdc", eurc: "eurc", cbbtc: "cbbtc", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.ListPoliciesScope = { project: "project", account: "account", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.CreatePolicyBodyScope = { project: "project", account: "account", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.SendSolanaTransactionBodyNetwork = { solana: "solana", "solana-devnet": "solana-devnet", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.RequestSolanaFaucetBodyToken = { sol: "sol", usdc: "usdc", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.CreatePaymentTransferQuoteBodySourceType = { payment_method: "payment_method", }; // eslint-disable-next-line @typescript-eslint/no-redeclare exports.CreatePaymentTransferQuoteBodyTargetType = { crypto_rail: "crypto_rail", }; //# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.js.map