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 branch #3

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

Conversation

adpthegreat
Copy link

  • added init_vrf_client.rs , get_out_of_jail.rs, consume_randomness.rs for the dice game
  • Renamed VrfClientState to VrfClient
  • grammar checks and Spelling corrections
  • Ran tests
Screenshot 2024-09-12 at 05 30 12

- 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
…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 adpthegreat changed the title Branch for vrf Added vrf branch Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant