Skip to main content

OpStatusCode

Enum OpStatusCode 

Source
#[repr(u32)]
pub enum OpStatusCode {
Show 57 variants Unknown = 0, InvalidHexLength = 1, HexParsingFailed = 2, InvalidNoteLength = 3, InvalidNoteProtocol = 4, InvalidNoteVersion = 5, InvalidNoteId = 6, InvalidNoteBlockNumber = 7, InvalidNoteSecrets = 8, MerkleTreeNotFound = 9, SerializationFailed = 10, DeserializationFailed = 11, InvalidArrayLength = 12, InvalidCurve = 13, InvalidHasFunction = 14, InvalidBackend = 15, InvalidDenomination = 16, SecretGenFailed = 17, InvalidSourceChain = 18, InvalidTargetChain = 19, InvalidTokenSymbol = 20, InvalidExponentiation = 21, InvalidWidth = 22, InvalidAmount = 23, InvalidProofParameters = 24, InvalidProvingKey = 25, InvalidRecipient = 26, InvalidRelayer = 27, InvalidLeafIndex = 28, InvalidFee = 29, InvalidRefund = 30, InvalidLeaves = 31, FailedToGenerateTheLeaf = 32, ProofBuilderNoteNotSet = 33, CommitmentNotSet = 34, RootsNotSet = 35, InvalidNoteMiscData = 36, InvalidSourceIdentifyingData = 37, InvalidTargetIdentifyingData = 38, UnsupportedParameterCombination = 39, InvalidProof = 40, InvalidUTXOIndex = 41, UnsupportedBackend = 42, PublicAmountNotSet = 43, VAnchorProofChainId = 44, VAnchorNotesNotSet = 45, VAnchorProofIndices = 46, VAnchorProofLeavesMap = 47, ProofInputFieldInstantiationError = 48, ProofInputFieldInstantiationProtocolInvalid = 49, InvalidNullifer = 50, InvalidRoots = 51, InvalidChainId = 52, InvalidIndices = 53, InvalidPublicAmount = 54, InvalidOutputUtxoConfig = 55, InvalidExtDataHash = 56,
}

Variants§

§

Unknown = 0

§

InvalidHexLength = 1

Invalid hex string length when decoding

§

HexParsingFailed = 2

Failed to parse hex string

§

InvalidNoteLength = 3

Invalid number of note parts when decoding

§

InvalidNoteProtocol = 4

Invalid note protocol

§

InvalidNoteVersion = 5

Invalid note version

§

InvalidNoteId = 6

Invalid note id when parsing

§

InvalidNoteBlockNumber = 7

Invalid note block number when parsing

§

InvalidNoteSecrets = 8

Invalid note secrets

§

MerkleTreeNotFound = 9

Unable to find merkle tree

§

SerializationFailed = 10

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

§

DeserializationFailed = 11

Failed deserialization of JsValue into rust type

§

InvalidArrayLength = 12

Invalid Array of 32 bytes.

§

InvalidCurve = 13

Invalid curve when parsing

§

InvalidHasFunction = 14

Invalid hashFunction id when parsing

§

InvalidBackend = 15

Invalid backend id when parsing

§

InvalidDenomination = 16

Invalid denomination id when parsing

§

SecretGenFailed = 17

Failed to generate secrets

§

InvalidSourceChain = 18

Invalid Source chain

§

InvalidTargetChain = 19

Invalid target chain

§

InvalidTokenSymbol = 20

Invalid Token Symbol

§

InvalidExponentiation = 21

Invalid Exponentiation

§

InvalidWidth = 22

Invalid Width

§

InvalidAmount = 23

Invalid Amount

§

InvalidProofParameters = 24

Invalid proof parameters

§

InvalidProvingKey = 25

Invalid Proving key

§

InvalidRecipient = 26

Invalid Recipient

§

InvalidRelayer = 27

Invalid Relayer

§

InvalidLeafIndex = 28

Invalid LeafIndex

§

InvalidFee = 29

Invalid Fee

§

InvalidRefund = 30

Invalid Refund

§

InvalidLeaves = 31

Invalid InvalidLeaves

§

FailedToGenerateTheLeaf = 32

Failed to Generating Leaf

§

ProofBuilderNoteNotSet = 33

Note not set

§

CommitmentNotSet = 34

Commitment not set

§

RootsNotSet = 35

Neighbour Roots aren’t set

§

InvalidNoteMiscData = 36

Invalid note misc data

§

InvalidSourceIdentifyingData = 37

Invalid Source IdentifyingData

§

InvalidTargetIdentifyingData = 38

Invalid target IdentifyingData

§

UnsupportedParameterCombination = 39

Unsupported combination of parameters

§

InvalidProof = 40

Invalid proof on verification

§

InvalidUTXOIndex = 41

Invalid index

§

UnsupportedBackend = 42

Unsupported Backend

§

PublicAmountNotSet = 43

Public amount not set

§

VAnchorProofChainId = 44

VAnchor Proof Chain Id not set

§

VAnchorNotesNotSet = 45

VAnchor proof not set

§

VAnchorProofIndices = 46

VAnchor proof indices

§

VAnchorProofLeavesMap = 47

VAnchor proof leaves map not defined

§

ProofInputFieldInstantiationError = 48

Generic error while trying to instantiate proof input field

§

ProofInputFieldInstantiationProtocolInvalid = 49

Invalid filed for the proof input protocol

§

InvalidNullifer = 50

§

InvalidRoots = 51

§

InvalidChainId = 52

§

InvalidIndices = 53

§

InvalidPublicAmount = 54

§

InvalidOutputUtxoConfig = 55

§

InvalidExtDataHash = 56

Trait Implementations§

Source§

impl Clone for OpStatusCode

Source§

fn clone(&self) -> OpStatusCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OpStatusCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for OpStatusCode

Source§

impl From<OpStatusCode> for String

Source§

fn from(e: OpStatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<OpStatusCode> for OperationError

Source§

fn from(e: OpStatusCode) -> Self

Converts to this type from the input type.
Source§

impl From<OpStatusCode> for JsValue

Source§

fn from(e: OpStatusCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for OpStatusCode

Source§

fn eq(&self, other: &OpStatusCode) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OpStatusCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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