State Accounts

Accounts that hold state in the Draw Contract

Notation: Foo(x, y) means an account whose PDA is derived using x and y. There will be different accounts for different values of x and y.

NezhaVrfProgramState

Used to lock the:

  • SuperAdmin pubkey

  • Admin pubkey

  • Switchboard programme Id.

NezhaVrfRequest(epoch_index)

  • Holds the status of the request submitted to Switchboard.

  • Hold the winning combination for a draw

  • Holds a nonce to ensure requests to Switchboard match responses from Switchboard

Last updated