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
  • [SuperAdmin] Init
  • [Admin] FranciumInit
  1. Architecture
  2. Game Contract

Initialisation Instructions

[Role] Instruction

[SuperAdmin] Init

Create the Token accounts for:

  • Deposit Account

  • PendingDeposit Account

  • Treasury Account

  • Insurance Account

  • Tier1/Tier2/Tier3 Prize Account

  • Create LatestEpoch account.

    • LatestEpoch.index = 0

    • LatestEpoch.state = ENDED

// These will be later used to authorize super admin, admin and investor for their allowed instructions.

  • LatestEpoch.pubkeys = { super_admin, admin, investor, nezha_vrf_progam_id }

Note, once the nezha_vrf_progam_id is injected into the Game Contract it cannot be changed. It will always reference the Draw Contract.

[Admin] FranciumInit

Initialize the accounts needed by the Francium protocol.

PreviousState AccountsNextState Transition Instructions

Last updated 1 year ago