// GENERATED by scripts/gen-contract-errors.mjs — do not edit. // // Every custom error the protocol contracts declare, extracted from the compiled // Foundry artifacts — plus the perps plane, whose errors come from the indexer's // committed ABIs because the deployed perp contracts live on unmerged protocol // branches this repo's submodule pin cannot reach. The SDK decodes revert data // against this set so a failed call reports its Solidity error name (see // errors.ts → ContractRevertError). // // Regenerate after any contract change: pnpm errors:gen // Verified offline in CI by: pnpm errors:check // // Source tree: sha256:a0a71faa12a08d10d02bfe98d277155e // DEX pin: c4f4bc753f4a3b69a378f0da587a2800ae9de76d // Perp ABIs: indexer/abis/{PerpPool,MarginBank,PerpStopOrderRegistry}.json // (provenance: indexer/abis/PROVENANCE.json) // Errors: 502 /** Custom-error ABI entries for every protocol contract — the revert-decoding table. */ export const contractErrorsAbi = [ { type: "error", name: "AccessControlBadConfirmation", inputs: [] }, { type: "error", name: "AccessControlUnauthorizedAccount", inputs: [{ name: "account", type: "address" }, { name: "neededRole", type: "bytes32" }] }, { type: "error", name: "AccountNotFlat", inputs: [] }, { type: "error", name: "AdapterNotApproved", inputs: [] }, { type: "error", name: "AddressEmptyCode", inputs: [{ name: "target", type: "address" }] }, { type: "error", name: "AddressIsRegisteredBidder", inputs: [] }, { type: "error", name: "AdlBadBankruptcyPrice", inputs: [] }, { type: "error", name: "AdlCounterpartySameSide", inputs: [] }, { type: "error", name: "AdlFlipNotAllowed", inputs: [] }, { type: "error", name: "AdlGasFloorRequiresScanCap", inputs: [] }, { type: "error", name: "AdlRankerInvalidPrice", inputs: [] }, { type: "error", name: "AdlRankerNotSet", inputs: [] }, { type: "error", name: "AdlSelfSettle", inputs: [] }, { type: "error", name: "AdlSessionWindowNotSet", inputs: [] }, { type: "error", name: "AdlZeroNotional", inputs: [] }, { type: "error", name: "AllocatorAlreadyInitialised", inputs: [] }, { type: "error", name: "AllocatorNotAtZeroIndex", inputs: [] }, { type: "error", name: "AllocatorZeroFree", inputs: [] }, { type: "error", name: "AlreadyArmed", inputs: [] }, { type: "error", name: "AlreadyClaimed", inputs: [] }, { type: "error", name: "AlreadyFinalized", inputs: [] }, { type: "error", name: "AlreadyInitialised", inputs: [] }, { type: "error", name: "AlreadyLinked", inputs: [] }, { type: "error", name: "AlreadyRetired", inputs: [] }, { type: "error", name: "AlreadySubscribed", inputs: [] }, { type: "error", name: "AmendOldOrderGone", inputs: [{ name: "oldOrderId", type: "uint128" }] }, { type: "error", name: "AmendReplacementRejected", inputs: [{ name: "requestIndex", type: "uint256" }, { name: "reason", type: "uint8" }] }, { type: "error", name: "ArrayLengthMismatch", inputs: [] }, { type: "error", name: "BackingMismatch", inputs: [{ name: "expected", type: "uint256" }, { name: "received", type: "uint256" }] }, { type: "error", name: "BackingOverflow", inputs: [] }, { type: "error", name: "BaseTokenAlreadyHasPool", inputs: [{ name: "baseToken", type: "address" }] }, { type: "error", name: "BatchGasGapNotSet", inputs: [] }, { type: "error", name: "BatchLiquidationDisabled", inputs: [] }, { type: "error", name: "BatchTooLarge", inputs: [] }, { type: "error", name: "BidderAddressReserved", inputs: [] }, { type: "error", name: "BidderAlreadyRegistered", inputs: [] }, { type: "error", name: "BidderCannotBeIsolated", inputs: [] }, { type: "error", name: "BidderNotAContract", inputs: [] }, { type: "error", name: "BidderNotRegistered", inputs: [] }, { type: "error", name: "BidderQuoteInProgress", inputs: [] }, { type: "error", name: "BinaryClobFactoryNotSet", inputs: [] }, { type: "error", name: "BlockInPast", inputs: [] }, { type: "error", name: "BooksNotEmpty", inputs: [] }, { type: "error", name: "BothFeedsUnavailable", inputs: [] }, { type: "error", name: "BoundaryNotAligned", inputs: [] }, { type: "error", name: "BoundaryNotFuture", inputs: [] }, { type: "error", name: "BudgetExhausted", inputs: [] }, { type: "error", name: "BuilderAddressReserved", inputs: [] }, { type: "error", name: "BuilderCodesNotSupported", inputs: [] }, { type: "error", name: "BuilderFeeExceedsApproval", inputs: [] }, { type: "error", name: "BuilderFeeExceedsCap", inputs: [] }, { type: "error", name: "BuilderNotApproved", inputs: [] }, { type: "error", name: "CallerInManualVaultMode", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }] }, { type: "error", name: "CallerIsChild", inputs: [] }, { type: "error", name: "CallerIsMain", inputs: [] }, { type: "error", name: "CampaignInactive", inputs: [] }, { type: "error", name: "CannotLinkSelf", inputs: [] }, { type: "error", name: "CannotStoreZeroOrder", inputs: [] }, { type: "error", name: "CaptureStepsExhausted", inputs: [] }, { type: "error", name: "CaptureTooEarly", inputs: [] }, { type: "error", name: "ChainStillTriggerable", inputs: [] }, { type: "error", name: "ChargeableExceedsDeficit", inputs: [] }, { type: "error", name: "ChargeableExceedsLosses", inputs: [] }, { type: "error", name: "CircuitBandExceedsInitialMargin", inputs: [] }, { type: "error", name: "CircuitBreakerTriggered", inputs: [] }, { type: "error", name: "CloseAlreadyCaptured", inputs: [] }, { type: "error", name: "CloseNotCaptured", inputs: [] }, { type: "error", name: "CloseOutMarginExceedsBalance", inputs: [] }, { type: "error", name: "CollateralMismatch", inputs: [{ name: "pool", type: "address" }] }, { type: "error", name: "CollateralNotWNative", inputs: [] }, { type: "error", name: "CollateralTokenMismatch", inputs: [] }, { type: "error", name: "ContextTooLong", inputs: [] }, { type: "error", name: "CreditRecipientInDebt", inputs: [] }, { type: "error", name: "DeadlineExpired", inputs: [{ name: "deadline", type: "uint64" }, { name: "currentTs", type: "uint64" }] }, { type: "error", name: "DryRunDifference", inputs: [] }, { type: "error", name: "DuplicateTier", inputs: [] }, { type: "error", name: "EMANotInitialized", inputs: [] }, { type: "error", name: "EmptyBatch", inputs: [] }, { type: "error", name: "EmptyCallData", inputs: [] }, { type: "error", name: "EmptyFilter", inputs: [] }, { type: "error", name: "EmptyOrderBatch", inputs: [] }, { type: "error", name: "EmptySelectors", inputs: [] }, { type: "error", name: "ERC1967InvalidImplementation", inputs: [{ name: "implementation", type: "address" }] }, { type: "error", name: "ERC1967NonPayable", inputs: [] }, { type: "error", name: "ERC20InsufficientAllowance", inputs: [{ name: "spender", type: "address" }, { name: "allowance", type: "uint256" }, { name: "needed", type: "uint256" }] }, { type: "error", name: "ERC20InsufficientBalance", inputs: [{ name: "sender", type: "address" }, { name: "balance", type: "uint256" }, { name: "needed", type: "uint256" }] }, { type: "error", name: "ERC20InvalidApprover", inputs: [{ name: "approver", type: "address" }] }, { type: "error", name: "ERC20InvalidReceiver", inputs: [{ name: "receiver", type: "address" }] }, { type: "error", name: "ERC20InvalidSender", inputs: [{ name: "sender", type: "address" }] }, { type: "error", name: "ERC20InvalidSpender", inputs: [{ name: "spender", type: "address" }] }, { type: "error", name: "EthRefundFailed", inputs: [] }, { type: "error", name: "ExceedsBalance", inputs: [] }, { type: "error", name: "ExceedsWithdrawableBalance", inputs: [] }, { type: "error", name: "ExcessiveInput", inputs: [{ name: "spent", type: "uint256" }, { name: "maxAllowed", type: "uint256" }] }, { type: "error", name: "ExpiredOrderMustBeCancelled", inputs: [{ name: "orderId", type: "uint128" }] }, { type: "error", name: "FailedCall", inputs: [] }, { type: "error", name: "FailedDeployment", inputs: [] }, { type: "error", name: "FaucetCapExceeded", inputs: [] }, { type: "error", name: "FeedsDiverged", inputs: [{ name: "primaryPrice", type: "uint256" }, { name: "secondaryPrice", type: "uint256" }] }, { type: "error", name: "FeeParamsTooLong", inputs: [] }, { type: "error", name: "FeeRecipientNotSet", inputs: [] }, { type: "error", name: "FeeRecipientRequired", inputs: [] }, { type: "error", name: "FeeTooHigh", inputs: [] }, { type: "error", name: "FillOrKillNotFillable", inputs: [] }, { type: "error", name: "FillPriceOutsideBand", inputs: [] }, { type: "error", name: "FillPriceOverflow", inputs: [] }, { type: "error", name: "FinalTokenMismatch", inputs: [{ name: "expected", type: "address" }, { name: "actual", type: "address" }] }, { type: "error", name: "FirstRollAlreadyArmed", inputs: [] }, { type: "error", name: "FreshMarketRequired", inputs: [] }, { type: "error", name: "FundedPrincipalOverflow", inputs: [] }, { type: "error", name: "FundingCapExceedsMarginBand", inputs: [] }, { type: "error", name: "FundingRecipientInDebt", inputs: [] }, { type: "error", name: "GasLimitExceeded", inputs: [] }, { type: "error", name: "GasLimitZero", inputs: [] }, { type: "error", name: "HandlerZeroAddress", inputs: [] }, { type: "error", name: "ImmediateOrCancelNoFill", inputs: [] }, { type: "error", name: "InconsistentMinQuantityAndLotSize", inputs: [] }, { type: "error", name: "IncorrectDryRun", inputs: [] }, { type: "error", name: "IncorrectOrder", inputs: [] }, { type: "error", name: "IncorrectSender", inputs: [{ name: "sender", type: "address" }, { name: "expected", type: "address" }] }, { type: "error", name: "IndexOutOfBounds", inputs: [] }, { type: "error", name: "InputEqualsOutput", inputs: [] }, { type: "error", name: "InsufficientActivationBalance", inputs: [] }, { type: "error", name: "InsufficientBacking", inputs: [] }, { type: "error", name: "InsufficientBalance", inputs: [] }, { type: "error", name: "InsufficientBalance", inputs: [{ name: "balance", type: "uint256" }, { name: "needed", type: "uint256" }] }, { type: "error", name: "InsufficientCollateral", inputs: [] }, { type: "error", name: "InsufficientCreateValue", inputs: [] }, { type: "error", name: "InsufficientCredit", inputs: [] }, { type: "error", name: "InsufficientGasForBatch", inputs: [{ name: "gasAvailable", type: "uint256" }, { name: "gasRequired", type: "uint256" }] }, { type: "error", name: "InsufficientGasForPayout", inputs: [{ name: "gasLeft", type: "uint256" }] }, { type: "error", name: "InsufficientLegInput", inputs: [{ name: "legIndex", type: "uint256" }, { name: "available", type: "uint256" }, { name: "required", type: "uint256" }] }, { type: "error", name: "InsufficientMargin", inputs: [] }, { type: "error", name: "InsufficientMarginAfterWithdrawal", inputs: [] }, { type: "error", name: "InsufficientMarginAtCreation", inputs: [] }, { type: "error", name: "InsufficientMarginForOrder", inputs: [] }, { type: "error", name: "InsufficientOperatorDeposit", inputs: [{ name: "operatorId", type: "uint32" }, { name: "required", type: "uint256" }, { name: "available", type: "uint256" }] }, { type: "error", name: "InsufficientOutput", inputs: [{ name: "received", type: "uint256" }, { name: "minRequired", type: "uint256" }] }, { type: "error", name: "InsufficientPermission", inputs: [] }, { type: "error", name: "InsufficientSomiPayment", inputs: [] }, { type: "error", name: "InsufficientVaultBalance", inputs: [] }, { type: "error", name: "InsuranceFundCandidateHasDebt", inputs: [] }, { type: "error", name: "InsuranceFundCandidateHasPositions", inputs: [] }, { type: "error", name: "InsuranceFundCannotTrade", inputs: [] }, { type: "error", name: "InsuranceFundFeeRecipientConflict", inputs: [] }, { type: "error", name: "InsuranceFundNotSet", inputs: [] }, { type: "error", name: "InvalidAdapter", inputs: [] }, { type: "error", name: "InvalidAddress", inputs: [] }, { type: "error", name: "InvalidAdlRankerContract", inputs: [] }, { type: "error", name: "InvalidAdlRankerOrdering", inputs: [] }, { type: "error", name: "InvalidAmount", inputs: [] }, { type: "error", name: "InvalidAsset", inputs: [] }, { type: "error", name: "InvalidBaseToken", inputs: [] }, { type: "error", name: "InvalidBidderAddress", inputs: [] }, { type: "error", name: "InvalidBuilder", inputs: [] }, { type: "error", name: "InvalidCircuitBreakerParameters", inputs: [] }, { type: "error", name: "InvalidConfig", inputs: [] }, { type: "error", name: "InvalidCreator", inputs: [{ name: "creator", type: "address" }] }, { type: "error", name: "InvalidCreditCapBps", inputs: [] }, { type: "error", name: "InvalidCreditGranterContract", inputs: [] }, { type: "error", name: "InvalidDepositOrWithdrawal", inputs: [] }, { type: "error", name: "InvalidDeviationBps", inputs: [] }, { type: "error", name: "InvalidDynamicIMFParameters", inputs: [] }, { type: "error", name: "InvalidFeeRecipient", inputs: [] }, { type: "error", name: "InvalidFundingCapDivergenceMargin", inputs: [] }, { type: "error", name: "InvalidFundingParameters", inputs: [] }, { type: "error", name: "InvalidFundingPayer", inputs: [] }, { type: "error", name: "InvalidGasBufferBps", inputs: [] }, { type: "error", name: "InvalidGasParameters", inputs: [] }, { type: "error", name: "InvalidInitialization", inputs: [] }, { type: "error", name: "InvalidInsuranceFundContract", inputs: [] }, { type: "error", name: "InvalidIntervalSeconds", inputs: [] }, { type: "error", name: "InvalidLegQuantity", inputs: [{ name: "legIndex", type: "uint256" }] }, { type: "error", name: "InvalidLeverage", inputs: [] }, { type: "error", name: "InvalidLimitPrice", inputs: [] }, { type: "error", name: "InvalidLinkedWalletRegistry", inputs: [] }, { type: "error", name: "InvalidLinkedWalletRegistryContract", inputs: [] }, { type: "error", name: "InvalidLiquidationEngineContract", inputs: [] }, { type: "error", name: "InvalidLotSize", inputs: [] }, { type: "error", name: "InvalidMarginBank", inputs: [] }, { type: "error", name: "InvalidMarginParameters", inputs: [] }, { type: "error", name: "InvalidMarketExpiry", inputs: [] }, { type: "error", name: "InvalidMarketIndex", inputs: [] }, { type: "error", name: "InvalidMaxChildren", inputs: [] }, { type: "error", name: "InvalidMaxFeePerGas", inputs: [] }, { type: "error", name: "InvalidMaxLegs", inputs: [] }, { type: "error", name: "InvalidMidpointEmaParameters", inputs: [] }, { type: "error", name: "InvalidMinQuantity", inputs: [] }, { type: "error", name: "InvalidMinStopDistance", inputs: [] }, { type: "error", name: "InvalidMsgValue", inputs: [{ name: "expected", type: "uint256" }, { name: "actual", type: "uint256" }] }, { type: "error", name: "InvalidOperator", inputs: [] }, { type: "error", name: "InvalidOperatorPermissionsRegistry", inputs: [] }, { type: "error", name: "InvalidOrderOwner", inputs: [] }, { type: "error", name: "InvalidOrderPair", inputs: [] }, { type: "error", name: "InvalidOutcomeIndex", inputs: [] }, { type: "error", name: "InvalidOutcomeToken", inputs: [] }, { type: "error", name: "InvalidOwner", inputs: [] }, { type: "error", name: "InvalidParameter", inputs: [] }, { type: "error", name: "InvalidParameters", inputs: [] }, { type: "error", name: "InvalidPaymasterData", inputs: [] }, { type: "error", name: "InvalidPayoutVector", inputs: [] }, { type: "error", name: "InvalidPerpPool", inputs: [] }, { type: "error", name: "InvalidPerpPoolFactory", inputs: [] }, { type: "error", name: "InvalidPerpPoolFactoryContract", inputs: [] }, { type: "error", name: "InvalidPolicy", inputs: [] }, { type: "error", name: "InvalidPool", inputs: [] }, { type: "error", name: "InvalidPremiumImpactNotional", inputs: [] }, { type: "error", name: "InvalidPrice", inputs: [] }, { type: "error", name: "InvalidPrice", inputs: [{ name: "price", type: "uint256" }, { name: "tickSize", type: "uint256" }] }, { type: "error", name: "InvalidQuantity", inputs: [{ name: "quantity", type: "uint256" }, { name: "constraint", type: "uint256" }] }, { type: "error", name: "InvalidReceiver", inputs: [] }, { type: "error", name: "InvalidRegistry", inputs: [] }, { type: "error", name: "InvalidSeriesConfig", inputs: [] }, { type: "error", name: "InvalidSettlement", inputs: [] }, { type: "error", name: "InvalidSettlementWindow", inputs: [] }, { type: "error", name: "InvalidSlippage", inputs: [] }, { type: "error", name: "InvalidSlippageTolerance", inputs: [] }, { type: "error", name: "InvalidSomiPaymentPerOrder", inputs: [] }, { type: "error", name: "InvalidSpotPool", inputs: [] }, { type: "error", name: "InvalidSpotPoolRegistry", inputs: [] }, { type: "error", name: "InvalidTakerSide", inputs: [] }, { type: "error", name: "InvalidTickSize", inputs: [] }, { type: "error", name: "InvalidTier", inputs: [] }, { type: "error", name: "InvalidTokenAddress", inputs: [{ name: "token", type: "address" }] }, { type: "error", name: "InvalidTradingWindow", inputs: [] }, { type: "error", name: "InvalidTriggerPrice", inputs: [] }, { type: "error", name: "InvalidUnlinkGuard", inputs: [] }, { type: "error", name: "InvalidVenueFeeParams", inputs: [] }, { type: "error", name: "InvalidVenueSignature", inputs: [] }, { type: "error", name: "InvalidVenueVoidPolicy", inputs: [{ name: "policy", type: "uint256" }] }, { type: "error", name: "InvalidVoidPolicy", inputs: [] }, { type: "error", name: "IsolatedMarketBlocked", inputs: [] }, { type: "error", name: "IsolatedSpansMultipleMarkets", inputs: [] }, { type: "error", name: "KickoffOutOfRange", inputs: [{ name: "seriesId", type: "uint32" }] }, { type: "error", name: "LegFillFailed", inputs: [{ name: "legIndex", type: "uint256" }] }, { type: "error", name: "LegInputOverflow", inputs: [{ name: "legIndex", type: "uint256" }, { name: "runningInputAmount", type: "uint256" }] }, { type: "error", name: "LegPlacementRejected", inputs: [{ name: "legIndex", type: "uint256" }, { name: "reason", type: "bytes" }] }, { type: "error", name: "LegPlacementRevertedWithoutReason", inputs: [{ name: "legIndex", type: "uint256" }] }, { type: "error", name: "LengthMismatch", inputs: [] }, { type: "error", name: "LimitPriceIncompatibleWithTrigger", inputs: [] }, { type: "error", name: "LinkedListCorrupted", inputs: [] }, { type: "error", name: "LinkedListEmptyKey", inputs: [] }, { type: "error", name: "LinkedListNodeAlreadyExists", inputs: [] }, { type: "error", name: "LinkedWalletFundingDisabled", inputs: [] }, { type: "error", name: "LiquidationEngineNotSet", inputs: [] }, { type: "error", name: "MainFundedAccountCannotBeCredited", inputs: [] }, { type: "error", name: "MainnetDeploymentForbidden", inputs: [] }, { type: "error", name: "MarginBankMismatch", inputs: [] }, { type: "error", name: "MarginBankNotSet", inputs: [] }, { type: "error", name: "MarketAlreadyAdded", inputs: [] }, { type: "error", name: "MarketDeployFailed", inputs: [] }, { type: "error", name: "MarketExpiryInPast", inputs: [] }, { type: "error", name: "MarketNotFinalizedYet", inputs: [] }, { type: "error", name: "MarketNotSettled", inputs: [] }, { type: "error", name: "MarketNotSettled", inputs: [{ name: "marketId", type: "bytes32" }] }, { type: "error", name: "MarketRestricted", inputs: [] }, { type: "error", name: "MarketTypeMismatch", inputs: [{ name: "expected", type: "bytes4" }, { name: "actual", type: "bytes4" }] }, { type: "error", name: "MarketTypeReserved", inputs: [] }, { type: "error", name: "MarkPriceUnavailable", inputs: [] }, { type: "error", name: "MaxChildrenReached", inputs: [] }, { type: "error", name: "MaxPositionSizeExceeded", inputs: [] }, { type: "error", name: "MaxTiersAboveCeiling", inputs: [] }, { type: "error", name: "MaxTiersBelowActive", inputs: [] }, { type: "error", name: "MetadataAlreadySet", inputs: [] }, { type: "error", name: "MigrationSubsNotArmed", inputs: [] }, { type: "error", name: "ModuleTypeMismatch", inputs: [{ name: "expected", type: "bytes4" }, { name: "actual", type: "bytes4" }] }, { type: "error", name: "MustBeSentFromZeroAddress", inputs: [] }, { type: "error", name: "NativeAmountMismatch", inputs: [] }, { type: "error", name: "NativeInputNotSupportedInAutoPullMode", inputs: [] }, { type: "error", name: "NativeIntermediateUnsupported", inputs: [{ name: "legIndex", type: "uint256" }] }, { type: "error", name: "NativePayoutFailed", inputs: [] }, { type: "error", name: "NativeRefundExceedsInput", inputs: [{ name: "refund", type: "uint256" }, { name: "forwarded", type: "uint256" }] }, { type: "error", name: "NativeRefundFailed", inputs: [] }, { type: "error", name: "NativeTokenTransferFailed", inputs: [] }, { type: "error", name: "NativeTransferFailed", inputs: [] }, { type: "error", name: "NativeWithdrawFailed", inputs: [] }, { type: "error", name: "NoActiveSubscription", inputs: [] }, { type: "error", name: "NoBadDebt", inputs: [] }, { type: "error", name: "NoCreditToReclaim", inputs: [] }, { type: "error", name: "NoFundedPrincipal", inputs: [] }, { type: "error", name: "NoOpenPosition", inputs: [] }, { type: "error", name: "NoPositionToFlatten", inputs: [] }, { type: "error", name: "NoPrecompile", inputs: [] }, { type: "error", name: "NoProposalPending", inputs: [] }, { type: "error", name: "NoReducingPositionAtCreation", inputs: [] }, { type: "error", name: "NoSponsorSigner", inputs: [{ name: "operatorId", type: "uint32" }] }, { type: "error", name: "NoStateChange", inputs: [] }, { type: "error", name: "NotALinkedChild", inputs: [] }, { type: "error", name: "NotArmed", inputs: [] }, { type: "error", name: "NotASideHolder", inputs: [] }, { type: "error", name: "NotASpotPool", inputs: [{ name: "pool", type: "address" }] }, { type: "error", name: "NotAuthorizedAdapter", inputs: [] }, { type: "error", name: "NotEntryPoint", inputs: [] }, { type: "error", name: "NotExpired", inputs: [] }, { type: "error", name: "NotFinalized", inputs: [] }, { type: "error", name: "NothingOwed", inputs: [] }, { type: "error", name: "NothingToAdopt", inputs: [] }, { type: "error", name: "NothingToClaim", inputs: [] }, { type: "error", name: "NothingToReturn", inputs: [] }, { type: "error", name: "NotIdPool", inputs: [] }, { type: "error", name: "NotInitializing", inputs: [] }, { type: "error", name: "NotLinked", inputs: [] }, { type: "error", name: "NotLiquidatable", inputs: [] }, { type: "error", name: "NotModule", inputs: [] }, { type: "error", name: "NotOperatorOwner", inputs: [] }, { type: "error", name: "NotOperatorOwner", inputs: [{ name: "operatorId", type: "uint32" }, { name: "caller", type: "address" }] }, { type: "error", name: "NotOracle", inputs: [] }, { type: "error", name: "NotOwner", inputs: [] }, { type: "error", name: "NotQuiesced", inputs: [] }, { type: "error", name: "NotReactivity", inputs: [] }, { type: "error", name: "NotReceiver", inputs: [] }, { type: "error", name: "NotRegistrar", inputs: [] }, { type: "error", name: "NotSettlement", inputs: [] }, { type: "error", name: "OnlyAdmin", inputs: [] }, { type: "error", name: "OnlyAgentPlatform", inputs: [] }, { type: "error", name: "OnlyApprovedContracts", inputs: [] }, { type: "error", name: "OnlyCreditGranter", inputs: [] }, { type: "error", name: "OnlyFundingPayer", inputs: [] }, { type: "error", name: "OnlyLiquidationEngine", inputs: [] }, { type: "error", name: "OnlyMarginBank", inputs: [] }, { type: "error", name: "OnlyPerpPool", inputs: [] }, { type: "error", name: "OnlyPrecompile", inputs: [] }, { type: "error", name: "OnlyReactivityPrecompile", inputs: [] }, { type: "error", name: "OnlySelf", inputs: [] }, { type: "error", name: "OpeningOrderRequiresQuantity", inputs: [] }, { type: "error", name: "OpenInterestCapExceeded", inputs: [] }, { type: "error", name: "OperatorDisabled", inputs: [] }, { type: "error", name: "OperatorIdReserved", inputs: [] }, { type: "error", name: "OperatorNotActive", inputs: [{ name: "operatorId", type: "uint32" }] }, { type: "error", name: "OracleNotAnswered", inputs: [] }, { type: "error", name: "OracleNotInitialized", inputs: [] }, { type: "error", name: "OraclePriceStale", inputs: [] }, { type: "error", name: "OrderAlreadyExpired", inputs: [] }, { type: "error", name: "OrderAlreadyLinked", inputs: [] }, { type: "error", name: "OrderDoesNotExist", inputs: [] }, { type: "error", name: "OrderExpiryBeyondMarket", inputs: [] }, { type: "error", name: "OrderIdMismatch", inputs: [] }, { type: "error", name: "OrderInfoIdMismatch", inputs: [] }, { type: "error", name: "OutcomeCountMismatch", inputs: [] }, { type: "error", name: "OutcomeTokenNotSet", inputs: [] }, { type: "error", name: "OutcomeTransferFailed", inputs: [] }, { type: "error", name: "OwnableInvalidOwner", inputs: [{ name: "owner", type: "address" }] }, { type: "error", name: "OwnableUnauthorizedAccount", inputs: [{ name: "account", type: "address" }] }, { type: "error", name: "OwnerMismatch", inputs: [] }, { type: "error", name: "PendingOwnerOnly", inputs: [] }, { type: "error", name: "PermitTokenMismatch", inputs: [] }, { type: "error", name: "PerpPoolAlreadyRegistered", inputs: [] }, { type: "error", name: "PerpPoolHasActivePositions", inputs: [] }, { type: "error", name: "PerpPoolNotFromFactory", inputs: [] }, { type: "error", name: "PerpPoolNotRegistered", inputs: [] }, { type: "error", name: "PerpPoolWrongMarginBank", inputs: [] }, { type: "error", name: "PerUserOrderIndexInconsistency", inputs: [] }, { type: "error", name: "PlacementRevertedWithoutReason", inputs: [{ name: "isBid", type: "bool" }, { name: "quoteIndex", type: "uint256" }] }, { type: "error", name: "PlacementRevertedWithoutReason", inputs: [{ name: "isBid", type: "bool" }, { name: "userData", type: "uint64" }] }, { type: "error", name: "PokeTooSoon", inputs: [] }, { type: "error", name: "PoolAlreadyReleased", inputs: [] }, { type: "error", name: "PoolBooksNotEmpty", inputs: [] }, { type: "error", name: "PoolCreatorUnknown", inputs: [{ name: "pool", type: "address" }] }, { type: "error", name: "PoolIndexOutOfBounds", inputs: [] }, { type: "error", name: "PoolNotApproved", inputs: [] }, { type: "error", name: "PoolNotRegistered", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }] }, { type: "error", name: "PoolStateUnchanged", inputs: [] }, { type: "error", name: "PositionBelowMinQuantity", inputs: [] }, { type: "error", name: "PostOnlyWouldCross", inputs: [] }, { type: "error", name: "PredecessorAlreadyAdopted", inputs: [{ name: "prior", type: "address" }] }, { type: "error", name: "PriceNotAlignedToTickSize", inputs: [] }, { type: "error", name: "PriceOutOfBounds", inputs: [] }, { type: "error", name: "PriceOverflow", inputs: [] }, { type: "error", name: "PriceTooLarge", inputs: [] }, { type: "error", name: "PrimaryEqualsSecondary", inputs: [] }, { type: "error", name: "PriorFundingPayerOutstanding", inputs: [{ name: "outstandingPayer", type: "address" }] }, { type: "error", name: "QuantityBelowMinimum", inputs: [] }, { type: "error", name: "QuantityBelowMinimum", inputs: [{ name: "quantity", type: "uint256" }, { name: "minimum", type: "uint256" }] }, { type: "error", name: "QuantityNotAlignedToLotSize", inputs: [] }, { type: "error", name: "QuestionNotFinal", inputs: [] }, { type: "error", name: "QueueEmpty", inputs: [] }, { type: "error", name: "RankerNotLinkAware", inputs: [] }, { type: "error", name: "RecoveryAmountInvalid", inputs: [{ name: "amount", type: "uint256" }, { name: "balance", type: "uint256" }] }, { type: "error", name: "RecoveryDestinationZero", inputs: [] }, { type: "error", name: "RecoveryRateLimited", inputs: [] }, { type: "error", name: "RecoveryTokenIsNative", inputs: [] }, { type: "error", name: "RedeemAuthExpired", inputs: [] }, { type: "error", name: "RedeemNonceUsed", inputs: [] }, { type: "error", name: "RedeemSignatureInvalid", inputs: [] }, { type: "error", name: "ReduceOnlyBudgetExceeded", inputs: [] }, { type: "error", name: "ReentrancyGuardReentrantCall", inputs: [] }, { type: "error", name: "RefundFailed", inputs: [] }, { type: "error", name: "RegistryNotApprovedByOwner", inputs: [] }, { type: "error", name: "RegistryRequiredForGroupMode", inputs: [] }, { type: "error", name: "RenounceDisabled", inputs: [] }, { type: "error", name: "ReviveTooSoon", inputs: [] }, { type: "error", name: "RouteEmpty", inputs: [] }, { type: "error", name: "RouterBuilderCodesNotSupportedOnPool", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }] }, { type: "error", name: "RouterBuilderFeeExceedsPoolCap", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }, { name: "builderFeeBpsTimes1k", type: "uint96" }, { name: "maxBuilderFeeBpsTimes1k", type: "uint256" }] }, { type: "error", name: "RouterBuilderFeeWithoutBuilder", inputs: [{ name: "builderFeeBpsTimes1k", type: "uint96" }] }, { type: "error", name: "RouterBuilderIsPool", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }] }, { type: "error", name: "RouterBuilderIsRouter", inputs: [] }, { type: "error", name: "RouterBuilderNotApproved", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }, { name: "builderFeeBpsTimes1k", type: "uint96" }, { name: "approved", type: "uint256" }] }, { type: "error", name: "RouterInvalidLegPrice", inputs: [{ name: "legIndex", type: "uint256" }, { name: "priceLimit", type: "uint256" }, { name: "tickSize", type: "uint256" }] }, { type: "error", name: "RouterMarketQuoteInvalidPriceLimit", inputs: [{ name: "legIndex", type: "uint256" }, { name: "providedPriceLimit", type: "uint256" }] }, { type: "error", name: "RouterNotApprovedAsOperator", inputs: [{ name: "legIndex", type: "uint256" }, { name: "pool", type: "address" }] }, { type: "error", name: "RouterQuantityBelowMinimum", inputs: [{ name: "legIndex", type: "uint256" }, { name: "quantity", type: "uint256" }, { name: "minQuantity", type: "uint256" }] }, { type: "error", name: "RouterQuantityNotLotAligned", inputs: [{ name: "legIndex", type: "uint256" }, { name: "quantity", type: "uint256" }, { name: "lotSize", type: "uint256" }] }, { type: "error", name: "RouterQuoteInputZero", inputs: [] }, { type: "error", name: "RouterQuoteOutputZero", inputs: [] }, { type: "error", name: "RouteTokenMismatch", inputs: [{ name: "legIndex", type: "uint256" }, { name: "expected", type: "address" }, { name: "actualBase", type: "address" }, { name: "actualQuote", type: "address" }] }, { type: "error", name: "RouteTooLong", inputs: [{ name: "maxLegs", type: "uint256" }] }, { type: "error", name: "SafeCastOverflowedIntDowncast", inputs: [{ name: "bits", type: "uint8" }, { name: "value", type: "int256" }] }, { type: "error", name: "SafeCastOverflowedUintDowncast", inputs: [{ name: "bits", type: "uint8" }, { name: "value", type: "uint256" }] }, { type: "error", name: "SafeERC20FailedOperation", inputs: [{ name: "token", type: "address" }] }, { type: "error", name: "SelfMatchCancelTaker", inputs: [] }, { type: "error", name: "SeriesAlreadyLive", inputs: [] }, { type: "error", name: "SeriesIdOutOfRange", inputs: [{ name: "seriesId", type: "uint32" }] }, { type: "error", name: "SeriesNotStalled", inputs: [] }, { type: "error", name: "SettlementAlreadySet", inputs: [] }, { type: "error", name: "SettlementNotSet", inputs: [] }, { type: "error", name: "SettlementWindowOpen", inputs: [] }, { type: "error", name: "SideHolderIndexOutOfBounds", inputs: [] }, { type: "error", name: "SimulatedFeedRevert", inputs: [] }, { type: "error", name: "StaleMarketId", inputs: [{ name: "marketId", type: "bytes32" }] }, { type: "error", name: "StalePrice", inputs: [] }, { type: "error", name: "SubscriptionAlreadyActive", inputs: [] }, { type: "error", name: "SubscriptionStillActive", inputs: [] }, { type: "error", name: "SymbolIndexOutOfRange", inputs: [{ name: "symbolIndex", type: "uint256" }] }, { type: "error", name: "SymbolLengthUnsupported", inputs: [{ name: "length", type: "uint256" }] }, { type: "error", name: "SymbolMismatch", inputs: [{ name: "expected", type: "string" }, { name: "actual", type: "string" }] }, { type: "error", name: "SymbolNotInitialized", inputs: [{ name: "symbolIndex", type: "uint256" }] }, { type: "error", name: "SymbolStalePrice", inputs: [{ name: "symbolIndex", type: "uint256" }] }, { type: "error", name: "TakeoverPriceOutOfRange", inputs: [] }, { type: "error", name: "TakeoverPriceOverflow", inputs: [] }, { type: "error", name: "TakerFillWouldMintBadDebt", inputs: [] }, { type: "error", name: "TierBalanceInsufficient", inputs: [] }, { type: "error", name: "TimestampInPast", inputs: [] }, { type: "error", name: "TokenZero", inputs: [] }, { type: "error", name: "TooManyMarkets", inputs: [] }, { type: "error", name: "TooManyMarketsForQuestion", inputs: [] }, { type: "error", name: "TooManyRestingOrders", inputs: [] }, { type: "error", name: "TradingNotActive", inputs: [] }, { type: "error", name: "TransferRecipientReserved", inputs: [] }, { type: "error", name: "TransferSourceAndDestinationSame", inputs: [] }, { type: "error", name: "TriggerTooCloseToEma", inputs: [] }, { type: "error", name: "Unauthorized", inputs: [] }, { type: "error", name: "UnderpaidScheduleFee", inputs: [] }, { type: "error", name: "UnderpaidSchedulingCost", inputs: [] }, { type: "error", name: "UnexpectedFillPair", inputs: [{ name: "takerKind", type: "uint8" }, { name: "makerKind", type: "uint8" }] }, { type: "error", name: "UnexpectedNativeDeposit", inputs: [] }, { type: "error", name: "UnknownFire", inputs: [] }, { type: "error", name: "UnknownMarket", inputs: [] }, { type: "error", name: "UnknownMarketType", inputs: [{ name: "marketType", type: "bytes4" }] }, { type: "error", name: "UnknownOperator", inputs: [] }, { type: "error", name: "UnknownOracleQuestion", inputs: [] }, { type: "error", name: "UnknownReader", inputs: [{ name: "reader", type: "address" }] }, { type: "error", name: "UnknownSeries", inputs: [] }, { type: "error", name: "UnknownSeriesSelector", inputs: [{ name: "selector", type: "bytes4" }] }, { type: "error", name: "UnknownSymbol", inputs: [{ name: "symbol", type: "string" }] }, { type: "error", name: "UnknownVenue", inputs: [] }, { type: "error", name: "UnlinkBlockedByGuard", inputs: [] }, { type: "error", name: "UnsponsoredSelector", inputs: [{ name: "selector", type: "bytes4" }] }, { type: "error", name: "UnsubscribeFailed", inputs: [] }, { type: "error", name: "UnsupportedFeeParamsVersion", inputs: [{ name: "version", type: "uint8" }] }, { type: "error", name: "UseBinaryPlacement", inputs: [] }, { type: "error", name: "UseDepositNative", inputs: [] }, { type: "error", name: "UseFundNative", inputs: [] }, { type: "error", name: "UUPSUnauthorizedCallContext", inputs: [] }, { type: "error", name: "UUPSUnsupportedProxiableUUID", inputs: [{ name: "slot", type: "bytes32" }] }, { type: "error", name: "VenueAuthExpired", inputs: [] }, { type: "error", name: "VenueCreationDisabled", inputs: [] }, { type: "error", name: "VenueFeeAboveHardCap", inputs: [] }, { type: "error", name: "VenueIdRequired", inputs: [] }, { type: "error", name: "VenueMismatch", inputs: [] }, { type: "error", name: "VenueNonceUsed", inputs: [] }, { type: "error", name: "VenuePolicyDenied", inputs: [] }, { type: "error", name: "VenueSignerUnset", inputs: [] }, { type: "error", name: "VoucherAccountCannotBeMainFunded", inputs: [] }, { type: "error", name: "VoucherAccountLeverageLocked", inputs: [] }, { type: "error", name: "VoucherLeverageCapNotSet", inputs: [] }, { type: "error", name: "VoucherMarketNotAllowed", inputs: [] }, { type: "error", name: "VwapOverflow", inputs: [] }, { type: "error", name: "WithdrawalBelowCreditFloor", inputs: [] }, { type: "error", name: "WithdrawalBelowFundedPrincipal", inputs: [] }, { type: "error", name: "WithdrawalExceedsDeposit", inputs: [{ name: "operatorId", type: "uint32" }, { name: "requested", type: "uint256" }, { name: "available", type: "uint256" }] }, { type: "error", name: "WithdrawalFailed", inputs: [] }, { type: "error", name: "WithdrawFailed", inputs: [] }, { type: "error", name: "WrongEmitter", inputs: [] }, { type: "error", name: "WrongEvent", inputs: [] }, { type: "error", name: "WrongReserveAttached", inputs: [] }, { type: "error", name: "WrongStatus", inputs: [{ name: "expected", type: "uint8" }, { name: "actual", type: "uint8" }] }, { type: "error", name: "ZeroAddress", inputs: [] }, { type: "error", name: "ZeroAgentOracle", inputs: [] }, { type: "error", name: "ZeroAmount", inputs: [] }, { type: "error", name: "ZeroCollateralFillsAllowed", inputs: [] }, { type: "error", name: "ZeroDeposit", inputs: [] }, { type: "error", name: "ZeroEntryPoint", inputs: [] }, { type: "error", name: "ZeroImpl", inputs: [] }, { type: "error", name: "ZeroModule", inputs: [] }, { type: "error", name: "ZeroOrder", inputs: [] }, { type: "error", name: "ZeroOrderIndex", inputs: [] }, { type: "error", name: "ZeroOwner", inputs: [] }, { type: "error", name: "ZeroPrimary", inputs: [] }, { type: "error", name: "ZeroPriority", inputs: [] }, { type: "error", name: "ZeroQuoteFillsAllowed", inputs: [] }, { type: "error", name: "ZeroReader", inputs: [] }, ] as const;