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
The total prepaid gas (for all given actions) exceeded the limit.
TotalNumberOfActionsExceeded
The number of actions exceeded the given limit.
AddKeyMethodNamesNumberOfBytesExceeded
The total number of bytes of the method names exceeded the limit in a Add Key action.
AddKeyMethodNameLengthExceeded
The length of some method name exceeded the limit in a Add Key action.
IntegerOverflow
Integer overflow during a compute.
InvalidAccountId
Fields
account_id: AccountIdInvalid account ID.
ContractSizeExceeded
The size of the contract code exceeded the limit in a DeployContract action.
FunctionCallMethodNameLengthExceeded
The length of the method name exceeded the limit in a Function Call action.
FunctionCallArgumentsLengthExceeded
The length of the arguments exceeded the limit in a Function Call action.
UnsuitableStakingKey
Fields
public_key: PublicKeyAn 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
impl BorshDeserialize for ActionsValidationError where
Gas: BorshDeserialize,
Gas: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
AccountId: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
PublicKey: BorshDeserialize,
impl BorshDeserialize for ActionsValidationError where
Gas: BorshDeserialize,
Gas: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
AccountId: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
PublicKey: BorshDeserialize,
impl BorshSerialize for ActionsValidationError where
Gas: BorshSerialize,
Gas: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
AccountId: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
PublicKey: BorshSerialize,
impl BorshSerialize for ActionsValidationError where
Gas: BorshSerialize,
Gas: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
AccountId: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
PublicKey: BorshSerialize,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ActionsValidationError
impl Send for ActionsValidationError
impl Sync for ActionsValidationError
impl Unpin for ActionsValidationError
impl UnwindSafe for ActionsValidationError
Blanket Implementations
Mutably borrows from an owned value. Read more