Socket
Book a DemoInstallSign in
Socket

cross-pile-mod

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-pile-mod

A heads or tails (cross and pile) on Solana. It's meant to serve as an example of how to use solrand, a randomness Oracle: https://github.com/evanmarshall/solrand

0.0.3
latest
npmnpm
Version published
Maintainers
1
Created
Source

cross-pile-mod (Coin flip)

A heads or tails (cross and pile) on Solana. It's meant to serve as an example of how to use solrand, a randomness Oracle: https://github.com/evanmarshall/solrand

Installation & Usage

  • Clone this repository
  • Ensure that Anchor and all of its dependencies are installed: https://project-serum.github.io/anchor/getting-started/introduction.html
  • yarn install
  • Rename the Anchor.example.toml to Anchor.toml and update the wallet = to your solana key.
  • Start the solana-test-validator in a different tab
  • In a separate folder (In order to run a mock Oracle):
  • Run anchor build && anchor deploy
  • Use the Program Id found from the deploy. Replace 6urrPCjcrQ1xaxbAJGMTtvZfA9wbMqQbEArKnVUHhYTs and 6t7fjmgyNdoMJMftaZin9w2n6YGSB8tHbFvu22bqh1EY with your new Program Id.
  • Run the tests: anchor test --skip-local-validator

Troubleshooting

Problems with Anchor

  • The most common problem with anchor is using the right version of node. I recommend install Node through NVM and using Node v16.11.1.

License

We use the GNU Affero General Public License v3.0 or later license to ensure the community will always have access to all original and derivations of this program. Full text here: https://spdx.org/licenses/AGPL-3.0-or-later.html

FAQs

Package last updated on 15 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.