Nezha
  • 🏠Introduction to Nezha
  • How nezha works
    • Stake to Win
    • Nezha Epochs
    • Yield Farmer
  • Tickets
    • Stake per Ticket
    • Tickets
    • Bonus Tickets
    • Ticket Generation
  • The Draw
    • The Draw
    • Winning Sequence
    • No Draw Scenario
  • Prizes
    • Prize Tiers
    • Prizes
  • Fees
    • Staking
    • Unstaking
    • Claiming Prizes
  • Risks & Mitigations
    • Smart Contracts
    • Low Yield Returns
    • Negative Yield Returns
    • Tickets Outside Solana
    • Insurance Costs
  • Architecture
    • Overview
    • Game Contract
      • Epoch States
      • Token Accounts
      • State Accounts
      • Initialisation Instructions
      • State Transition Instructions
      • Other Instructions
      • Roles & Capabilities
      • Derived Account Roles
    • Draw Contract
      • State Accounts
      • Instructions
      • Roles & Capabilities
      • Derived Accounts
Powered by GitBook
On this page
  • NezhaVrfProgramState
  • NezhaVrfRequest(epoch_index)
  1. Architecture
  2. Draw Contract

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

PreviousDraw ContractNextInstructions

Last updated 1 year ago