zcash-grant-system/contract
Daniel Ternyak 6c8325e683 [WIP] Fix naive refund (#95)
* fix amountToRefund computation bug

* Add new test to ensure refund works. Update old test to be more strict on refund.

* Move test back into main file.
2018-09-24 18:51:38 -04:00
..
bin initial commit 2018-09-10 11:55:26 -05:00
contracts [WIP] Fix naive refund (#95) 2018-09-24 18:51:38 -04:00
migrations initial commit 2018-09-10 11:55:26 -05:00
test [WIP] Fix naive refund (#95) 2018-09-24 18:51:38 -04:00
.envexample initial commit 2018-09-10 11:55:26 -05:00
.gitignore initial commit 2018-09-10 11:55:26 -05:00
README.md initial commit 2018-09-10 11:55:26 -05:00
main.js initial commit 2018-09-10 11:55:26 -05:00
package.json initial commit 2018-09-10 11:55:26 -05:00
truffle-config.js initial commit 2018-09-10 11:55:26 -05:00
yarn.lock initial commit 2018-09-10 11:55:26 -05:00

README.md

Grant.io Smart Contracts

This is a collection of the smart contracts and associated testing and build process used for the Grant.io dApp.

API

This repo provides Truffle build artifacts, ABI json, and type definitions for all contracts. You can import them like so:

import {
  EscrowContract, // Truffle build artifacts
  EscrowABI,      // Contract ABI
  Escrow,         // Contract type defintion
} from 'grant-contracts';

Commands

To run any commands, you must install node dependencies, and have truffle installed globally.

Testing

yarn run test

Runs the truffle test suite

Building

yarn run build

Builds the contract artifact JSON files, ABI JSON files, and type definitions

Publishing

TBD