Instructions

[Role] Instruction

[SuperAdmin, Admin] Init

Initialises the VRF account in Switchboard

Note, both roles are required to sign the instruction because Admin holds the account funds to pay for invoking Switchboard.

[Admin] RequestVRF

Calls Switchboard and registers a callback.

ConsumeVRF

Consumes the response from Switchboard. Note, the VRF address is hardcoded so it can only be read from the agreed account.

[Admin] RotateKey { key_type, value }

  • Change the authorized key of any of SuperAdmin, Admin.

  • This is updated as NezhaVRFProgramState.pubkeys.<key_type> = value

Last updated