Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added vrf challenge solution branch #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 11, 2024

  1. - Feat : changed the type for unlock_price from f64 to u64

    - Renamed escrow to escrow_state
    - Renamed all variables with _ix to _instruction
    - Renamed tx to transaction
    - Removed Magic Number (8) and replaced with ANCHOR_DISCRIMINATOR const
    - changed std::mem::size_of::<Escrow>() to Escrow::INIT_SPACE
    - Wrapped solPrice with BN
    - Updated assertions in tests to use .eq() method
    adpthegreat committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    ca5c16d View commit details
    Browse the repository at this point in the history
  2. - added init_vrf_client.rs , get_out_of_jail.rs, consume_randomness.r…

    …s for the dice game
    
    - Corrected solUsedSwitchBoardFeed to solUsdSwitchBoardFeed
    
    - Renamed VrfClientState to VrfClient
    
    - Replaced std::mem::size_of::<VrfClientState>() + 8
    with VrfClient::INIT_SPACE + ANCHOR_DISCRIMINATOR const, and added derive(initSpace) macro to VrfClient
    
    - Renamed all variables with ix to Instruction
    
    - Removed all unnecessary awaits
    
    - Renamed tx to transaction in the burry-escrow.ts
    
    - changed assert(failUnlockPrice.eq(newAccount.unlockPrice));
    
    to use eq instead of ==
    
    - Renamed e to error for clarity
    
    -Renamed VRF_STATE_SEED TO VRF_STATE
    
    - Updated assertions comparing numbers in tests to use .eq() method in place of ===
    
    - Wrapped solPrice with BN
    adpthegreat committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    f4301dd View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. added solution edit

    adpthegreat committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    ef357e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75a2cda View commit details
    Browse the repository at this point in the history