pub fn encode_register_validator_config_script(
    validator_account: AccountAddress,
    consensus_pubkey: Vec<u8>,
    validator_network_identity_pubkey: Vec<u8>,
    validator_network_address: Vec<u8>,
    fullnodes_network_identity_pubkey: Vec<u8>,
    fullnodes_network_address: Vec<u8>,
) -> Script {
    Script::new(
        REGISTER_VALIDATOR_CONFIG_CODE.to_vec(),
        vec![],
        vec![
            TransactionArgument::Address(validator_account),
            TransactionArgument::U8Vector(consensus_pubkey),
            TransactionArgument::U8Vector(validator_network_identity_pubkey),
            TransactionArgument::U8Vector(validator_network_address),
            TransactionArgument::U8Vector(fullnodes_network_identity_pubkey),
            TransactionArgument::U8Vector(fullnodes_network_address),
        ],
    )
}
/// Set validator's config locally.
/// Does not emit NewEpochEvent, the config is NOT changed in the validator set.
Set validator's config locally.
Does not emit NewEpochEvent, the config is NOT changed in the validator set.
Set validator ' s config locally . Does not emit NewEpochEvent the config is NOT changed in the validator set .
pub fn encode_register_validator_config_script(
    validator_account: AccountAddress,
    consensus_pubkey: Vec<u8>,
    validator_network_identity_pubkey: Vec<u8>,
    validator_network_address: Vec<u8>,
    fullnodes_network_identity_pubkey: Vec<u8>,
    fullnodes_network_address: Vec<u8>,
) -> Script {
    Script::new(
        REGISTER_VALIDATOR_CONFIG_CODE.to_vec(),
        vec![],
        vec![
            TransactionArgument::Address(validator_account),
            TransactionArgument::U8Vector(consensus_pubkey),
            TransactionArgument::U8Vector(validator_network_identity_pubkey),
            TransactionArgument::U8Vector(validator_network_address),
            TransactionArgument::U8Vector(fullnodes_network_identity_pubkey),
            TransactionArgument::U8Vector(fullnodes_network_address),
        ],
    )
}
pub fn encode_register_validator_config_script ( validator_account : AccountAddress , consensus_pubkey : Vec < u8 > , validator_network_identity_pubkey : Vec < u8 > , validator_network_address : Vec < u8 > , fullnodes_network_identity_pubkey : Vec < u8 > , fullnodes_network_address : Vec < u8 > , ) -> Script { Script :: new ( REGISTER_VALIDATOR_CONFIG_CODE . to_vec ( ) , vec ! [ ] , vec ! [ TransactionArgument Address ( validator_account ) TransactionArgument U8Vector ( consensus_pubkey ) TransactionArgument U8Vector ( validator_network_identity_pubkey ) TransactionArgument U8Vector ( validator_network_address ) TransactionArgument U8Vector ( fullnodes_network_identity_pubkey ) TransactionArgument U8Vector ( fullnodes_network_address ) ] , ) }
Set validator's config locally.
Set validator ' s config locally .
validator_account
AccountAddress
consensus_pubkey
Vec<u8>
validator_network_identity_pubkey
Vec<u8>
validator_network_address
Vec<u8>
fullnodes_network_identity_pubkey
Vec<u8>
fullnodes_network_address
Vec<u8>
validator_account
AccountAddress
consensus_pubkey
Vec<u8>
validator_network_identity_pubkey
Vec<u8>
validator_network_address
Vec<u8>
fullnodes_network_identity_pubkey
Vec<u8>
fullnodes_network_address
Vec<u8>