Skip to content

API ReferenceErrorsVariable

ValidationErrorCode

const ValidationErrorCode: object;

Semantic error codes for SDK validation failures.

PascalCase values match the existing enum value style to minimize churn in message maps (getStaticLOCErrorHumanReadableMessage etc.).

This replaces the per-operation merged enum pattern: const CreateStaticLOCErrorType = { ...AddressErrorType, ...BeneficiaryErrorType, ... }

Type Declaration

AddressEmpty

readonly AddressEmpty: "AddressEmpty" = 'AddressEmpty';

AddressInvalid

readonly AddressInvalid: "AddressInvalid" = 'AddressInvalid';

AddressUnauthorizedForLOC

readonly AddressUnauthorizedForLOC: "AddressUnauthorizedForLOC" = 'AddressUnauthorizedForLOC';

AllowanceInsufficient

readonly AllowanceInsufficient: "AllowanceInsufficient" = 'AllowanceInsufficient';

AllowanceSignatureInvalid

readonly AllowanceSignatureInvalid: "AllowanceSignatureInvalid" = 'AllowanceSignatureInvalid';

AmountAboveMaximum

readonly AmountAboveMaximum: "AmountAboveMaximum" = 'AmountAboveMaximum';

AmountBelowMinimum

readonly AmountBelowMinimum: "AmountBelowMinimum" = 'AmountBelowMinimum';

AmountExceedsCollateralBacking

readonly AmountExceedsCollateralBacking: "AmountExceedsCollateralBacking" = 'AmountExceedsCollateralBacking';

AmountExceedsGlobalCap

readonly AmountExceedsGlobalCap: "AmountExceedsGlobalCap" = 'AmountExceedsGlobalCap';

AmountExceedsRedeemable

readonly AmountExceedsRedeemable: "AmountExceedsRedeemable" = 'AmountExceedsRedeemable';

AmountInvalid

readonly AmountInvalid: "AmountInvalid" = 'AmountInvalid';

AmountNegative

readonly AmountNegative: "AmountNegative" = 'AmountNegative';

AmountZero

readonly AmountZero: "AmountZero" = 'AmountZero';

AssetPairMismatch

readonly AssetPairMismatch: "AssetPairMismatch" = 'AssetPairMismatch';

AssetPairUnauthorized

readonly AssetPairUnauthorized: "AssetPairUnauthorized" = 'AssetPairUnauthorized';

AuthorizationInvalidationLimit

readonly AuthorizationInvalidationLimit: "AuthorizationInvalidationLimit" = 'AuthorizationInvalidationLimit';

AuthorizationNonceStale

readonly AuthorizationNonceStale: "AuthorizationNonceStale" = 'AuthorizationNonceStale';

BatchCancellationFailed

readonly BatchCancellationFailed: "BatchCancellationFailed" = 'BatchCancellationFailed';

BeneficiaryAuthorizationInvalid

readonly BeneficiaryAuthorizationInvalid: "BeneficiaryAuthorizationInvalid" = 'BeneficiaryAuthorizationInvalid';

BeneficiaryMustUseConfigured

readonly BeneficiaryMustUseConfigured: "BeneficiaryMustUseConfigured" = 'BeneficiaryMustUseConfigured';

BeneficiaryNotInAllowlist

readonly BeneficiaryNotInAllowlist: "BeneficiaryNotInAllowlist" = 'BeneficiaryNotInAllowlist';

BeneficiaryUnauthorized

readonly BeneficiaryUnauthorized: "BeneficiaryUnauthorized" = 'BeneficiaryUnauthorized';

CollateralInsufficient

readonly CollateralInsufficient: "CollateralInsufficient" = 'CollateralInsufficient';

CollateralTokenAddressInvalid

readonly CollateralTokenAddressInvalid: "CollateralTokenAddressInvalid" = 'CollateralTokenAddressInvalid';

CollateralTokenDisabled

readonly CollateralTokenDisabled: "CollateralTokenDisabled" = 'CollateralTokenDisabled';

CollateralTokenNotInAllowlist

readonly CollateralTokenNotInAllowlist: "CollateralTokenNotInAllowlist" = 'CollateralTokenNotInAllowlist';

CreditedTokenDisabled

readonly CreditedTokenDisabled: "CreditedTokenDisabled" = 'CreditedTokenDisabled';

CreditedTokenNotInAllowlist

readonly CreditedTokenNotInAllowlist: "CreditedTokenNotInAllowlist" = 'CreditedTokenNotInAllowlist';

ERC20ApprovalInsufficient

readonly ERC20ApprovalInsufficient: "ERC20ApprovalInsufficient" = 'ERC20ApprovalInsufficient';

ExpirationExtensionBlocked

readonly ExpirationExtensionBlocked: "ExpirationExtensionBlocked" = 'ExpirationExtensionBlocked';

ExpirationExtensionInvalid

readonly ExpirationExtensionInvalid: "ExpirationExtensionInvalid" = 'ExpirationExtensionInvalid';

ExpirationMustUseConfigured

readonly ExpirationMustUseConfigured: "ExpirationMustUseConfigured" = 'ExpirationMustUseConfigured';

ExpirationTooFar

readonly ExpirationTooFar: "ExpirationTooFar" = 'ExpirationTooFar';

ExpirationTooSoon

readonly ExpirationTooSoon: "ExpirationTooSoon" = 'ExpirationTooSoon';

FieldInvalid

readonly FieldInvalid: "FieldInvalid" = 'FieldInvalid';

FieldRequired

readonly FieldRequired: "FieldRequired" = 'FieldRequired';

LiquidatorFundsMismatch

readonly LiquidatorFundsMismatch: "LiquidatorFundsMismatch" = 'LiquidatorFundsMismatch';

LOCAlreadyCancelled

readonly LOCAlreadyCancelled: "LOCAlreadyCancelled" = 'LOCAlreadyCancelled';

LOCAlreadyConverted

readonly LOCAlreadyConverted: "LOCAlreadyConverted" = 'LOCAlreadyConverted';

LOCExpired

readonly LOCExpired: "LOCExpired" = 'LOCExpired';

LOCHealthy

readonly LOCHealthy: "LOCHealthy" = 'LOCHealthy';

LOCNotActionable

readonly LOCNotActionable: "LOCNotActionable" = 'LOCNotActionable';

LOCNotCancelable

readonly LOCNotCancelable: "LOCNotCancelable" = 'LOCNotCancelable';

LOCNotFound

readonly LOCNotFound: "LOCNotFound" = 'LOCNotFound';

LOCNotModifiable

readonly LOCNotModifiable: "LOCNotModifiable" = 'LOCNotModifiable';

LOCNotRedeemable

readonly LOCNotRedeemable: "LOCNotRedeemable" = 'LOCNotRedeemable';

LOCUnauthorized

readonly LOCUnauthorized: "LOCUnauthorized" = 'LOCUnauthorized';

OracleFeeInsufficient

readonly OracleFeeInsufficient: "OracleFeeInsufficient" = 'OracleFeeInsufficient';

OraclePriceInvalid

readonly OraclePriceInvalid: "OraclePriceInvalid" = 'OraclePriceInvalid';

OraclePriceMissing

readonly OraclePriceMissing: "OraclePriceMissing" = 'OraclePriceMissing';

OraclePriceStale

readonly OraclePriceStale: "OraclePriceStale" = 'OraclePriceStale';

SignatureFormatInvalid

readonly SignatureFormatInvalid: "SignatureFormatInvalid" = 'SignatureFormatInvalid';

SignatureSignerMismatch

readonly SignatureSignerMismatch: "SignatureSignerMismatch" = 'SignatureSignerMismatch';

SignerNotBeneficiary

readonly SignerNotBeneficiary: "SignerNotBeneficiary" = 'SignerNotBeneficiary';

TagTooLong

readonly TagTooLong: "TagTooLong" = 'TagTooLong';

WalletBalanceInsufficient

readonly WalletBalanceInsufficient: "WalletBalanceInsufficient" = 'WalletBalanceInsufficient';