Function dflow_sdk::client::instructions::init_global_config_instruction
source · [−]pub fn init_global_config_instruction(
program: &Program,
dflow_admin: Pubkey
) -> Instruction
Expand description
This instruction creates the global config account and sets the DFlow admin.
The DFlow admin controls access to the protocol by granting roles to accounts that allow them to perform privileged actions such as auction management. This instruction must be the first instruction called after program deployment and can only be called once.
Arguments
dflow_admin
The public key of the DFlow admin. This account is a signer for the instruction. This account is expected to be mutable
Returns an instruction