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
The delete action must be a final aciton in transaction
The total prepaid gas (for all given actions) exceeded the limit.
The number of actions exceeded the given limit.
The total number of bytes of the method names exceeded the limit in a Add Key action.
The length of some method name exceeded the limit in a Add Key action.
Integer overflow during a compute.
Invalid account ID.
Fields of InvalidAccountId
account_id: AccountId
The size of the contract code exceeded the limit in a DeployContract action.
The length of the method name exceeded the limit in a Function Call action.
The length of the arguments exceeded the limit in a Function Call action.
An attempt to stake with a public key that is not convertible to ristretto.
Fields of UnsuitableStakingKey
public_key: PublicKey
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