Enum near_primitives_v01::errors::ActionsValidationError[][src]

pub enum ActionsValidationError {
    DeleteActionMustBeFinal,
    TotalPrepaidGasExceeded {
        total_prepaid_gas: Gas,
        limit: Gas,
    },
    TotalNumberOfActionsExceeded {
        total_number_of_actions: u64,
        limit: u64,
    },
    AddKeyMethodNamesNumberOfBytesExceeded {
        total_number_of_bytes: u64,
        limit: u64,
    },
    AddKeyMethodNameLengthExceeded {
        length: u64,
        limit: u64,
    },
    IntegerOverflow,
    InvalidAccountId {
        account_id: AccountId,
    },
    ContractSizeExceeded {
        size: u64,
        limit: u64,
    },
    FunctionCallMethodNameLengthExceeded {
        length: u64,
        limit: u64,
    },
    FunctionCallArgumentsLengthExceeded {
        length: u64,
        limit: u64,
    },
    UnsuitableStakingKey {
        public_key: PublicKey,
    },
    FunctionCallZeroAttachedGas,
}
Expand description

Describes the error for validating a list of actions.

Variants

DeleteActionMustBeFinal

The delete action must be a final aciton in transaction

TotalPrepaidGasExceeded

The total prepaid gas (for all given actions) exceeded the limit.

Fields of TotalPrepaidGasExceeded

total_prepaid_gas: Gaslimit: Gas
TotalNumberOfActionsExceeded

The number of actions exceeded the given limit.

Fields of TotalNumberOfActionsExceeded

total_number_of_actions: u64limit: u64
AddKeyMethodNamesNumberOfBytesExceeded

The total number of bytes of the method names exceeded the limit in a Add Key action.

Fields of AddKeyMethodNamesNumberOfBytesExceeded

total_number_of_bytes: u64limit: u64
AddKeyMethodNameLengthExceeded

The length of some method name exceeded the limit in a Add Key action.

Fields of AddKeyMethodNameLengthExceeded

length: u64limit: u64
IntegerOverflow

Integer overflow during a compute.

InvalidAccountId

Invalid account ID.

Fields of InvalidAccountId

account_id: AccountId
ContractSizeExceeded

The size of the contract code exceeded the limit in a DeployContract action.

Fields of ContractSizeExceeded

size: u64limit: u64
FunctionCallMethodNameLengthExceeded

The length of the method name exceeded the limit in a Function Call action.

Fields of FunctionCallMethodNameLengthExceeded

length: u64limit: u64
FunctionCallArgumentsLengthExceeded

The length of the arguments exceeded the limit in a Function Call action.

Fields of FunctionCallArgumentsLengthExceeded

length: u64limit: u64
UnsuitableStakingKey

An attempt to stake with a public key that is not convertible to ristretto.

Fields of UnsuitableStakingKey

public_key: PublicKey
FunctionCallZeroAttachedGas

The attached amount of gas in a FunctionCall action has to be a positive number.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

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.