Skip to content

Latest commit

 

History

History
127 lines (56 loc) · 3.75 KB

auth_validator_registry.md

File metadata and controls

127 lines (56 loc) · 3.75 KB

Module 0x3::auth_validator_registry

Resource AuthValidatorWithType

struct AuthValidatorWithType<ValidatorType: store> has store, key

Resource ValidatorRegistry

struct ValidatorRegistry has key

Constants

Function genesis_init

Init function called by genesis.

public(friend) fun genesis_init(sender: &signer)

Function register

#[private_generics(#[ValidatorType])]
public fun register<ValidatorType: store>(): u64

Function register_internal

public(friend) fun register_internal<ValidatorType: store>(): u64

Function borrow_validator

Function borrow_validator_by_type

public fun borrow_validator_by_type<ValidatorType: store>(): &auth_validator::AuthValidator