Crate near_runtime_utils[][src]

Contains utility functions for runtime.

Constants

MAX_ACCOUNT_ID_LEN
MIN_ACCOUNT_ID_LEN

Functions

is_account_evm

Returns true if the account ID is suppose to be EVM machine.

is_account_id_64_len_hex

Returns true if the account ID length is 64 characters and it's a hex representation.

is_valid_account_id
is_valid_sub_account_id

Returns true if the signer_id can create a direct sub-account with the given account Id. It assumes the signer_id is a valid account_id

is_valid_top_level_account_id
system_account

const does not allow function call, so have to resort to this