Example of smart contract to manage hotel inventory and reservations.
The smart contract implements the behaviour defined by the following BDD board:
- solc-js to compile smart contracts.
- cucumber-js to test smart contracts.
- Hardhat to run ethereum node during execution of tests.
- ethers to interact with smart contracts during tests.
./src/
with the source of smart contracts.
./test/features
with the tests.
./dist/
with the compilation of the smart contract - abi and bytecode -.
- Install dependencies
yarn install
- Build smart contract
yarn build
- Test smart contract
yarn test