Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Foxtrot Crates Smart Contract

This contract allows for the creation and opening of custom Foxtrot Crates with random rewards based on the probability that we us integrate on the contract, also the contract uses Chainlink (VRF) to compare the input probability with the random number generated. We use the following tools to ensure that our code is secure and decentralized:

  • Hardhat: A smart contract development environment for Ethereum.
  • Waffle: A smart contract testing framework for Ethereum.
  • Chai: An assertion library for JavaScript tests.
  • Ethers.js: A user interface library for Ethereum.
  • Typescript

Installation

To install the necessary dependencies, run yarn.

Compilation

To compile all smart contracts in the contracts directory, run yarn compile. ABI files will be automatically exported in the artifacts/contracts/~ directory.

Documentation Documentation is auto-generated after each build in the docs directory. The generated output is a static website containing smart contract documentation.

Local Chain

To start a local blockchain, run yarn nodo.

Testing

To run tests, run yarn test.

Code Coverage

To view a code coverage report, run yarn coverage. The report will be printed in the console and a static website containing the full report will be generated in the coverage directory.

Code Style

To format code according to Foxtrot style, run yarn prettier.

Verify & Publish Contract Source Code

To verify and publish the contract source code on your preferred network, run npx hardhat verify --network $NETWORK_NAME $CONTRACT_ADDRESS $CONSTRUCTOR_ARGUMENTS. You can also use the autodeploy script with npx hardhat scripts/deployBundles.ts.

Special thanks

To all the source code that these projects are sharing publicly to the community and that have made this smart contract develop even faster

License

The Foxtrot Bundles smart contract is released under the Apache-2.0 license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages