Skip to Content
ReferenceError codes

Error codes

A failed transaction reports codespace/code (the explorer shows it under Status; the CLI in raw_log). Every Aeva module registers its codes in chain/x/<module>/types/errors.go; the codespace is the module name. Codes of the Cosmos SDK modules (sdk, bank, staking, …) are the SDK’s own.

asset

codeerrormessage
asset/2ErrAssetNotFoundasset not found — ErrAssetNotFound is returned when an asset id is unknown.
asset/3ErrInvalidPolicyasset policy is required — ErrInvalidPolicy is returned when the required asset policy is unset (grammar violations surface as x/policy ErrInvalidPolicy).
asset/4ErrNoKindsasset must define at least one right kind — ErrNoKinds is returned when CreateAsset carries zero right kinds.
asset/5ErrInvalidKindinvalid right kind — ErrInvalidKind is returned when a right kind spec is malformed.
asset/6ErrInvalidMetaHashmeta_hash must be empty or exactly 32 bytes — ErrInvalidMetaHash is returned when meta_hash is neither empty nor 32 bytes.
asset/7ErrInvalidRolesinvalid role address — ErrInvalidRoles is returned when a role address is set but invalid.
asset/8ErrInvalidSettlementDenominvalid settlement denom — ErrInvalidSettlementDenom is returned when settlement_denom is not a valid denom.
asset/9ErrAssetExistsasset already exists — ErrAssetExists is returned when an asset id collides with an existing one.
asset/10ErrKindNotFoundright kind not found — ErrKindNotFound is returned when a kind id does not exist on an asset.
asset/11ErrInvalidSupplyinvalid supply — ErrInvalidSupply is returned when a supply value is negative or above 2^128-1.
asset/12ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
asset/13ErrInvalidAssetIDinvalid asset id — ErrInvalidAssetID is returned when an asset id is not 64 lower-case hex chars.
asset/14ErrUnauthorizedsigner is not the asset issuer — ErrUnauthorized is returned when the signer is not the asset issuer.
asset/15ErrInvalidStatusinvalid asset status — ErrInvalidStatus is returned when a status is not settable (only ACTIVE / FROZEN are).
asset/16ErrInvalidTargetinvalid policy target — ErrInvalidTarget is returned when MsgSetPolicy has no valid target.
asset/17ErrInvalidDistributionDenomsinvalid distribution denoms — ErrInvalidDistributionDenoms is returned when the payout denom allowlist is empty, too long, has duplicates or an invalid denom.
asset/18ErrIssuanceLockedissuance is locked — ErrIssuanceLocked is returned by Issue on an asset whose issuance was locked.
asset/19ErrAlreadyLockedissuance already locked — ErrAlreadyLocked is returned by a second MsgLockIssuance.
asset/20ErrIssuanceLockAtCreateissuance cannot be locked at creation; lock explicitly after the first issue — ErrIssuanceLockAtCreate is returned when MsgCreateAsset sets issuance_locked.
asset/21ErrNotDivisibleeffective units are not divisible by the kind’s multiplier — ErrNotDivisible is returned when an effective units input is not a multiple of the kind’s SPLIT multiplier (M2).

bridge

codeerrormessage
bridge/2ErrInvalidRouteinvalid route — ErrInvalidRoute is returned for a malformed route (id, domain, contract, direction, denom, caps, display).
bridge/3ErrRouteNotFoundroute not found — ErrRouteNotFound is returned for an unknown route id or an unregistered warp token.
bridge/4ErrRoutePausedroute is paused — ErrRoutePaused is returned in both directions while a route is PAUSED.
bridge/5ErrCapExceededcap exceeded — ErrCapExceeded is returned when a transfer would take the rolling window over the limit (never queued).
bridge/6ErrUnauthorizedunauthorized — ErrUnauthorized is returned when the signer is not the authority.
bridge/7ErrNoMailboxbridge mailbox is not configured — ErrNoMailbox is returned when params.mailbox_id is unset.
bridge/8ErrDirectWarpUsewarp transfers must go through x/bridge — ErrDirectWarpUse is returned by the bank send restriction when the warp module account is used outside x/bridge.
bridge/9ErrInvalidParamsinvalid params — ErrInvalidParams is returned for malformed params or an invalid validator set / threshold.
bridge/10ErrNativeMintthe native denom is bridged as collateral only — ErrNativeMint is returned when a route would let the bridge mint the native denom.
bridge/11ErrNotBridgeablethe right kind is not bridgeable — ErrNotBridgeable is returned when a RIGHT_OUT route names a kind the issuer has not flagged bridgeable (RH-3 Q3).
bridge/12ErrPolicyNotOpenthe right kind’s effective policy is not OPEN — ErrPolicyNotOpen is returned when a RIGHT_OUT route names a kind whose effective policy is not OPEN (RH-3 Q3: a policy cannot be enforced remotely).
bridge/13ErrNoEscrowIncomeno income accrued to the escrow — ErrNoEscrowIncome is returned by SweepEscrowIncome when nothing is claimable.

credential

codeerrormessage
credential/2ErrInvalidTypeinvalid attestation type — ErrInvalidType is returned when type does not match ^[a-z0-9]+(.[a-z0-9]+)*$ or exceeds 64 chars.
credential/3ErrInvalidExpiryinvalid expiry — ErrInvalidExpiry is returned when expiry is unset or not after the block time.
credential/4ErrInvalidEvidenceHashevidence_hash must be empty or exactly 32 bytes — ErrInvalidEvidenceHash is returned when evidence_hash is neither empty nor 32 bytes.
credential/5ErrAttestationNotFoundattestation not found — ErrAttestationNotFound is returned when (subject, type, attester) does not exist.
credential/6ErrAlreadyRevokedattestation already revoked — ErrAlreadyRevoked is returned when revoking an attestation that is already revoked.
credential/7ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a bech32 address does not parse.
credential/8ErrNoAttestersat least one attester is required — ErrNoAttesters is returned when a Valid query names no attesters.
credential/9ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.

delegation

codeerrormessage
delegation/2ErrInvalidDelegationinvalid delegation — ErrInvalidDelegation is returned for bad purposes, a past or too-long until, zero units or holder == delegate.
delegation/3ErrNotFounddelegation not found — ErrNotFound is returned for an unknown id.
delegation/4ErrNotActivedelegation is not active — ErrNotActive is returned when the delegation already ended.
delegation/5ErrNotRevocabledelegation is not revocable — ErrNotRevocable is returned by MsgRevokeDelegation on a delegation created with revocable = false.
delegation/6ErrUnauthorizedunauthorized — ErrUnauthorized is returned when the signer is neither the holder (revoke) nor the delegate (return).

encumbrance

codeerrormessage
encumbrance/2ErrInvalidUnitsinvalid units — ErrInvalidUnits is returned when units are unset, zero or above 2^128-1.
encumbrance/3ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a bech32 address does not parse.
encumbrance/4ErrBeneficiaryRequiredbeneficiary is required — ErrBeneficiaryRequired is returned when a PLEDGE or LIEN has no beneficiary.
encumbrance/5ErrInvalidEvidenceHashevidence_hash must be empty or 32 bytes — ErrInvalidEvidenceHash is returned when evidence_hash is neither empty nor 32 bytes.
encumbrance/6ErrEvidenceHashRequireda lien requires a 32-byte evidence_hash — ErrEvidenceHashRequired is returned when a LIEN carries no evidence hash.
encumbrance/7ErrInvalidExpiryexpiry must be after block time — ErrInvalidExpiry is returned when expiry is set but not after block time.
encumbrance/8ErrInvalidReleaseAfterholder_release_after must be after block time — ErrInvalidReleaseAfter is returned when holder_release_after is set but not after block time.
encumbrance/9ErrEncumbranceNotFoundencumbrance not found — ErrEncumbranceNotFound is returned when no encumbrance has the id.
encumbrance/10ErrNotActiveencumbrance is not active — ErrNotActive is returned when the encumbrance is in a terminal status.
encumbrance/11ErrEncumbranceExpiredencumbrance has expired — ErrEncumbranceExpired is returned when touching an ACTIVE encumbrance at or after its expiry.
encumbrance/12ErrNotAuthorizedsigner may not release this encumbrance — ErrNotAuthorized is returned when the release signer has no release authority.
encumbrance/13ErrHolderCannotReleasethe holder may not release this encumbrance — ErrHolderCannotRelease is returned when the holder tries to release without a holder_release_after.
encumbrance/14ErrHolderReleaseTooEarlyholder_release_after has not passed — ErrHolderReleaseTooEarly is returned when the holder releases before holder_release_after.
encumbrance/15ErrNotExercisableencumbrance is not exercisable — ErrNotExercisable is returned when exercising a non-exercisable or LOCKUP encumbrance.
encumbrance/16ErrNotBeneficiarysigner is not the beneficiary — ErrNotBeneficiary is returned when the exercise signer is not the beneficiary.
encumbrance/17ErrInsufficientEncumberedunits exceed the encumbered remainder — ErrInsufficientEncumbered is returned when exercising more than the remaining units.
encumbrance/18ErrLiensNotAllowedthe asset does not allow liens — ErrLiensNotAllowed is returned when the asset does not allow liens.
encumbrance/19ErrNotOperatorsigner is not the asset operator — ErrNotOperator is returned when the lien signer is not the asset’s operator.
encumbrance/20ErrInvalidKindinvalid encumbrance kind — ErrInvalidKind is returned for an unspecified encumbrance kind.
encumbrance/21ErrInvalidStatusinvalid encumbrance status — ErrInvalidStatus is returned for an unspecified status.
encumbrance/22ErrInvalidAuthorityinvalid authority — ErrInvalidAuthority is returned when MsgUpdateParams is not signed by the module authority.
encumbrance/23ErrInvalidParamsinvalid params — ErrInvalidParams is returned when params fail validation.
encumbrance/24ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
encumbrance/25ErrLockupUnavailablelockups are not available — ErrLockupUnavailable is returned when MsgIssue.lockup_until is set but no lockup creator is wired.
encumbrance/26ErrSelfBeneficiarybeneficiary must differ from the holder — ErrSelfBeneficiary is returned when the beneficiary is the holder (an exercise would be a self-transfer).
encumbrance/27ErrIncomeRoutingUnavailableincome routing unavailable — ErrIncomeRoutingUnavailable is returned when income_to_beneficiary is set but no income router is wired (M3).

erc20rights

codeerrormessage
erc20rights/2ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
erc20rights/3ErrTokenNotFoundtoken not found — ErrTokenNotFound is returned when an address is not a registered right or bundle token.
erc20rights/4ErrAlreadyRegisteredtokens already registered — ErrAlreadyRegistered is returned when an asset’s tokens are registered twice.
erc20rights/5ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a 0x address does not parse.

fee

codeerrormessage
fee/2ErrFeeDenomNotAcceptedfee denom not accepted: AEVA (aaeva) is the gas token (ADR-016 §2) — ErrFeeDenomNotAccepted is returned by the ante handler for a fee coin whose denom is not accepted.
fee/3ErrUnauthorizedunauthorized — ErrUnauthorized is returned when the signer is not the authority.

payout

codeerrormessage
payout/2ErrInvalidAmountinvalid amount — ErrInvalidAmount is returned when a distribution amount is unset, zero or above 2^128-1.
payout/3ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a bech32 address does not parse.
payout/4ErrInvalidDenominvalid denom — ErrInvalidDenom is returned when a denom is not a valid bank denom.
payout/5ErrDenomNotAlloweddenom is not in the asset’s distribution denoms — ErrDenomNotAllowed is returned when the denom is not in the asset’s distribution_denoms.
payout/6ErrNoSupplykind supply is zero — ErrNoSupply is returned when the kind has no units to accrue to.
payout/7ErrIncrementZerodistribution too small: the index increment would be zero — ErrIncrementZero is returned when amount·SCALE + carry < supply (nothing would accrue).
payout/8ErrIndexOverflowaccrual index would overflow 2^192 — ErrIndexOverflow is returned when the new index would reach 2^192.
payout/9ErrAmountOverflowdistributed total would overflow 2^128 — ErrAmountOverflow is returned when a total would reach 2^128.
payout/10ErrInsufficientFundspayer has insufficient funds — ErrInsufficientFunds is returned when the payer cannot fund the distribution.
payout/11ErrNothingToClaimnothing to claim — ErrNothingToClaim is returned when a claim would pay zero.
payout/12ErrAccrualNotFoundaccrual not found — ErrAccrualNotFound is returned when no accrual exists for (asset, kind, denom).
payout/13ErrInvalidAuthorityinvalid authority — ErrInvalidAuthority is returned when MsgUpdateParams is not signed by the module authority.
payout/14ErrInvalidParamsinvalid params — ErrInvalidParams is returned when params fail validation.
payout/15ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
payout/16ErrInvalidKindinvalid kind — ErrInvalidKind is returned when a kind id does not exist on the asset.
payout/17ErrRouteInvalidinvalid income route — ErrRouteInvalid is returned for a route that duplicates a ref, exceeds the lock, or has no units (M3).

rights

codeerrormessage
rights/2ErrAssetNotFoundasset not found — ErrAssetNotFound is returned when the referenced asset does not exist.
rights/3ErrKindNotFoundright kind not found — ErrKindNotFound is returned when the referenced kind_id does not exist on the asset.
rights/4ErrUnauthorizedsigner is not the asset issuer — ErrUnauthorized is returned when the signer of MsgIssue is not the asset issuer.
rights/5ErrInvalidUnitsinvalid units — ErrInvalidUnits is returned when a unit amount is not > 0 or exceeds 2^128-1.
rights/6ErrInsufficientUnitsinsufficient transferable units — ErrInsufficientUnits is returned when a leg or redemption exceeds transferable units.
rights/7ErrKindNotTransferableright kind is not transferable — ErrKindNotTransferable is returned when transferring a kind with transferable=false.
rights/8ErrSelfTransfercannot transfer to self — ErrSelfTransfer is returned when from == to.
rights/9ErrDuplicateLegduplicate kind_id in transfer legs — ErrDuplicateLeg is returned when a kind_id appears twice in the legs.
rights/10ErrNoLegstransfer must have at least one leg — ErrNoLegs is returned when MsgTransfer has no legs.
rights/11ErrSupplyOverflowsupply would exceed 2^128-1 — ErrSupplyOverflow is returned when an issuance would push supply above 2^128-1.
rights/12ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a bech32 address does not parse.
rights/13ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
rights/14ErrTooManyLegstoo many transfer legs — ErrTooManyLegs is returned when MsgTransfer exceeds MaxLegs.
rights/15ErrInvalidAssetIDinvalid asset id — ErrInvalidAssetID is returned when an asset id is not 64 lower-case hex chars.
rights/16ErrAssetFrozenasset is frozen — ErrAssetFrozen is returned when the asset status is not ACTIVE.
rights/17ErrInvalidAuthorityinvalid authority — ErrInvalidAuthority is returned when MsgUpdateParams is not signed by the module authority.
rights/18ErrInvalidLockRefinvalid lock ref — ErrInvalidLockRef is returned when a lock ref is not ”/” of at most 64 chars.
rights/19ErrLockNotFoundlock not found — ErrLockNotFound is returned when no lock exists for (asset, kind, holder, ref).
rights/20ErrInsufficientLockedinsufficient locked units — ErrInsufficientLocked is returned when an unlock or locked transfer exceeds the lock.
rights/21ErrLockupUnavailablelockups are not available — ErrLockupUnavailable is returned when MsgIssue.lockup_until is set but no lockup creator is wired.
rights/22ErrAssetLiquidatingasset is liquidating — ErrAssetLiquidating is returned by operations blocked while an asset is LIQUIDATING (M2): Transfer, Issue, Redeem, Propose, Pledge, Lien, Distribute.
rights/23ErrAssetLiquidatedasset is liquidated — ErrAssetLiquidated is returned by every units-moving operation on a LIQUIDATED asset (terminal), Exercise included.

settlement

codeerrormessage
settlement/2ErrNoLegssettlement must have at least one leg — ErrNoLegs is returned when a proposal has no legs.
settlement/3ErrTooManyLegstoo many legs — ErrTooManyLegs is returned when a proposal exceeds params.max_legs.
settlement/4ErrDuplicateLegduplicate leg — ErrDuplicateLeg is returned when (direction, asset, kind) or (direction, denom) repeats.
settlement/5ErrSelfSettlementcounterparty must differ from proposer — ErrSelfSettlement is returned when counterparty == proposer.
settlement/6ErrExpiryInPastexpiry must be after block time — ErrExpiryInPast is returned when expiry is unset or <= block time.
settlement/7ErrExpiryTooFarexpiry exceeds max_ttl — ErrExpiryTooFar is returned when expiry > block time + params.max_ttl.
settlement/8ErrInvalidMemoHashmemo_hash must be empty or 32 bytes — ErrInvalidMemoHash is returned when memo_hash is neither empty nor 32 bytes.
settlement/9ErrSettlementNotFoundsettlement not found — ErrSettlementNotFound is returned when no settlement has the id.
settlement/10ErrNotCounterpartysigner is not the counterparty — ErrNotCounterparty is returned when the accept signer is not the counterparty.
settlement/11ErrNotPartysigner is not a party to the settlement — ErrNotParty is returned when a cancel signer is neither party (before expiry).
settlement/12ErrSettlementNotPendingsettlement is not pending — ErrSettlementNotPending is returned when the settlement is in a terminal status.
settlement/13ErrSettlementExpiredsettlement expired — ErrSettlementExpired is returned when accepting at or after expiry.
settlement/14ErrInsufficientEscrowinsufficient escrow — ErrInsufficientEscrow is returned when the escrow to release or deliver is missing.
settlement/15ErrInvalidLeginvalid leg — ErrInvalidLeg is returned when a leg has no direction or no kind, or a malformed denom.
settlement/16ErrInvalidUnitsinvalid units — ErrInvalidUnits is returned when a leg amount is not > 0 or exceeds 2^128-1.
settlement/17ErrInvalidAssetIDinvalid asset id — ErrInvalidAssetID is returned when a right leg’s asset id is not 64 lower-case hex chars.
settlement/18ErrInvalidAddressinvalid address — ErrInvalidAddress is returned when a bech32 address does not parse.
settlement/19ErrInvalidAuthorityinvalid authority — ErrInvalidAuthority is returned when MsgUpdateParams is not signed by the module authority.
settlement/20ErrInvalidParamsinvalid params — ErrInvalidParams is returned when params are out of range.
settlement/21ErrInvalidGenesisinvalid genesis state — ErrInvalidGenesis is returned when genesis state is malformed.
settlement/22ErrInvalidStatusinvalid status — ErrInvalidStatus is returned when a status value is not a known lifecycle status.

waterfall

codeerrormessage
waterfall/2ErrInvalidWaterfallinvalid waterfall — ErrInvalidWaterfall is returned for an empty tier list, more than MaxTiers, a FIXED tier with 0 amount, an unknown kind or a bad address / denom.
waterfall/3ErrWaterfallImmutablewaterfall is immutable once liquidating — ErrWaterfallImmutable is returned by SetWaterfall once the asset is LIQUIDATING or LIQUIDATED.
waterfall/4ErrUnauthorizedunauthorized — ErrUnauthorized is returned when the signer is not the issuer (or operator where allowed).
waterfall/5ErrNotLiquidatingasset is not liquidating — ErrNotLiquidating is returned by DepositProceeds on an ACTIVE / FROZEN asset.
waterfall/6ErrAlreadyLiquidatingasset is already liquidating or liquidated — ErrAlreadyLiquidating is returned by a second Liquidate.
waterfall/7ErrNotLiquidatedasset is not liquidated yet — ErrNotLiquidated is returned by RunWaterfall while the exercise window is still open.
waterfall/8ErrNothingToRunnothing to run: the liquidation pool is empty — ErrNothingToRun is returned by RunWaterfall with an empty pool.
waterfall/9ErrNoWaterfallasset has no waterfall — ErrNoWaterfall is returned by RunWaterfall when the asset has no tiers.
waterfall/10ErrInvalidWindowinvalid exercise window — ErrInvalidWindow is returned for a non-positive exercise window.
waterfall/11ErrPoolNotFoundredemption pool not found — ErrPoolNotFound is returned when no redemption pool exists for (asset, kind, denom).
waterfall/12ErrPoolInsufficientredemption pool cannot cover the redemption — ErrPoolInsufficient is returned when units × price exceeds the pool’s remainder.
waterfall/13ErrPoolClosedredemption pool is closed — ErrPoolClosed is returned by RedeemForPool after until.
waterfall/14ErrPoolOpenredemption pool is still open — ErrPoolOpen is returned by WithdrawRedemption before until.
waterfall/15ErrPriceMismatchredemption pool price or until mismatch — ErrPriceMismatch is returned when a top-up repeats a different price or until.
waterfall/16ErrInvalidPriceinvalid price or amount — ErrInvalidPrice is returned for a non-positive price or amount.
waterfall/17ErrInvalidSplitinvalid split — ErrInvalidSplit is returned for a factor < 2, an unknown kind or a multiplier above MaxMultiplier.
waterfall/19ErrInsufficientFundsinsufficient funds — ErrInsufficientFunds wraps a bank failure.
Last updated