Skip to content

Zharta/protocol-v1

Repository files navigation

Zharta Smart Contracts for Ethereum

This repository contains Zharta's smart contracts to run in Ethereum. It also contains the automatic tests that validate their quality. The smart contracts are written using Vyper and the tests use Brownie.

Running the tests

To run the tests locally, install Brownie (see here) and Ganache-CLI (see here). In the root of the project, run

$ brownie test

Interacting with the contracts locally

To interact and test the smart contracts manually in a local machine, start a Brownie console. It will automatically start ganache-cli for you:

$ brownie console

Using the console, the smart contracts can be deployed and tests manually. For example, deploying the Loans.vy smart contract and checking the owner can be done by:

>>> loans_contract = Loans.deploy({"from": accounts[0]})
>>> loans_contract.owner()

To see more about interacting with smart contracts using Brownie, check here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •