The Tryvium Smart Contracts repository, based on Waffle, Typescript and Hardhat used to create decentralized projects from a solid base.
You can find all contracts implemented by Tryvium Travels LTD. Here what we currently developed:
| Directory | Link | Description |
|---|---|---|
contracts folder |
contracts | The code of the Tryvium Travels LTD contracts |
test folder |
test | The code of the Tryvium Travels LTD contracts' tests |
scripts folder |
scripts | The code of the Tryvium Travels LTD deploy scripts |
First of all you need to install the dependencies
yarn installThen you can add your solidity smart contracts to the contracts directory and the contract tests to the test directory.
Finally, you can build your contracts using
yarn buildand you can test them using hardhat.
yarn hardhat testFinally, you can create a flatten version of all the contracts using the command
yarn flattenYou can also run mythril security tests using the command:
yarn run mythril-security-checks
# or simply
yarn mythril-security-checksThis project is powered by waffle, Typescript and hardhat.
Please, see the details of the scripts in package.json file.
The content comes from this page.
You can run your tests from Visual Studio Code by using one of its Mocha integration extensions. We recommend using Mocha Test Explorer.
Running tests written in TypeScript from Visual Studio Code requires you to set the vscode option "mochaExplorer.files" to "test/**/*.{j,t}s".
Or simply use the vscode/settings.json file from this repository.
