#[repr(u32)]
pub enum OpStatusCode {
Show 36 variants Unknown, InvalidHexLength, HexParsingFailed, InvalidNoteLength, InvalidNotePrefix, InvalidNoteVersion, InvalidNoteId, InvalidNoteBlockNumber, InvalidNoteSecrets, MerkleTreeNotFound, SerializationFailed, DeserializationFailed, InvalidArrayLength, InvalidCurve, InvalidHasFunction, InvalidBackend, InvalidDenomination, SecretGenFailed, InvalidSourceChain, InvalidTargetChain, InvalidTokenSymbol, InvalidExponentiation, InvalidWidth, InvalidAmount, InvalidProofParameters, InvalidProvingKey, InvalidRecipient, InvalidRelayer, InvalidLeafIndex, InvalidFee, InvalidRefund, InvalidLeaves, FailedToGenerateTheLeaf, ProofBuilderNoteNotSet, CommitmentNotSet, RootsNotSet,
}

Variants

Unknown

InvalidHexLength

Invalid hex string length when decoding

HexParsingFailed

Failed to parse hex string

InvalidNoteLength

Invalid number of note parts when decoding

InvalidNotePrefix

Invalid note prefix

InvalidNoteVersion

Invalid note version

InvalidNoteId

Invalid note id when parsing

InvalidNoteBlockNumber

Invalid note block number when parsing

InvalidNoteSecrets

Invalid note secrets

MerkleTreeNotFound

Unable to find merkle tree

SerializationFailed

Failed serialization of passed params Error for failing to parse rust type into JsValue

DeserializationFailed

Failed deserialization of JsValue into rust type

InvalidArrayLength

Invalid Array of 32 bytes.

InvalidCurve

Invalid curve when parsing

InvalidHasFunction

Invalid hashFunction id when parsing

InvalidBackend

Invalid backend id when parsing

InvalidDenomination

Invalid denomination id when parsing

SecretGenFailed

Failed to generate secrets

InvalidSourceChain

Invalid Source chain

InvalidTargetChain

Invalid target chain

InvalidTokenSymbol

Invalid Token Symbol

InvalidExponentiation

Invalid Exponentiation

InvalidWidth

Invalid Width

InvalidAmount

Invalid Amount

InvalidProofParameters

Invalid proof parameters

InvalidProvingKey

Invalid Proving key

InvalidRecipient

Invalid Recipient

InvalidRelayer

Invalid Relayer

InvalidLeafIndex

Invalid LeafIndex

InvalidFee

Invalid Fee

InvalidRefund

Invalid Refund

InvalidLeaves

Invalid InvalidLeaves

FailedToGenerateTheLeaf

Failed to Generating Leaf

ProofBuilderNoteNotSet

Note not set

CommitmentNotSet

Commitment not set

RootsNotSet

Neighbour Roots aren’t set

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more