Enum near_primitives::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

Fields

total_prepaid_gas: Gas
limit: Gas

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

TotalNumberOfActionsExceeded

Fields

total_number_of_actions: u64
limit: u64

The number of actions exceeded the given limit.

AddKeyMethodNamesNumberOfBytesExceeded

Fields

total_number_of_bytes: u64
limit: u64

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

AddKeyMethodNameLengthExceeded

Fields

length: u64
limit: u64

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

IntegerOverflow

Integer overflow during a compute.

InvalidAccountId

Fields

account_id: AccountId

Invalid account ID.

ContractSizeExceeded

Fields

size: u64
limit: u64

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

FunctionCallMethodNameLengthExceeded

Fields

length: u64
limit: u64

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

FunctionCallArgumentsLengthExceeded

Fields

length: u64
limit: u64

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

UnsuitableStakingKey

Fields

public_key: PublicKey

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

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.