Skip to content

The Tryvium Smart Contracts repository, based on Waffle, Typescript and Hardhat used to create decentralized projects from a solid base.

License

Notifications You must be signed in to change notification settings

tryvium-travels/smart-contracts

Repository files navigation

smart-contracts logo

GitHub Twitter Follow

Tryvium Smart Contracts Repository

The Tryvium Smart Contracts repository, based on Waffle, Typescript and Hardhat used to create decentralized projects from a solid base.

So, what can you find here?

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

Usage

First of all you need to install the dependencies

yarn install

Then 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 build

and you can test them using hardhat.

yarn hardhat test

Finally, you can create a flatten version of all the contracts using the command

yarn flatten

You can also run mythril security tests using the command:

yarn run mythril-security-checks
# or simply
yarn mythril-security-checks

This project is powered by waffle, Typescript and hardhat.

Please, see the details of the scripts in package.json file.

Running tests in VSCode UI

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.

Making TypeScript tests work

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.

About

The Tryvium Smart Contracts repository, based on Waffle, Typescript and Hardhat used to create decentralized projects from a solid base.

Topics

Resources

License

Stars

Watchers

Forks