Skip to content

Latest commit

 

History

History
140 lines (63 loc) · 4.66 KB

transaction_validator.md

File metadata and controls

140 lines (63 loc) · 4.66 KB

Module 0x3::transaction_validator

Constants

const MAX_U64: u128 = 18446744073709551615;

Transaction exceeded its allocated max gas

const ErrorOutOfGas: u64 = 1;

const ErrorValidateBadChainId: u64 = 1006;

const ErrorValidateCantPayGasDeposit: u64 = 1004;

The authenticator's auth validator id is not installed to the sender's account

Validate errors. These are separated out from the other errors in this module since they are mapped separately to major VM statuses, and are important to the semantics of the system.

Function validate

This function is for Rooch to validate the transaction sender's authenticator. If the authenticator is invaid, abort this function.

public fun validate(ctx: &context::Context, chain_id: u64, auth_validator_id: u64, authenticator_payload: vector<u8>): auth_validator::TxValidateResult