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
To install the necessary dependencies, run yarn.
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.
To start a local blockchain, run yarn nodo.
To run tests, run yarn test.
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.
To format code according to Foxtrot style, run yarn prettier.
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.
To all the source code that these projects are sharing publicly to the community and that have made this smart contract develop even faster
The Foxtrot Bundles smart contract is released under the Apache-2.0 license.
