Add very initial version of smart contracts with tests

This commit is contained in:
arnaucube
2020-05-09 19:01:41 +02:00
parent 7f7ba4f7cb
commit e0dfc2ab6c
16 changed files with 537 additions and 27 deletions

View File

@@ -6,7 +6,9 @@
"scripts": {
"clean": "rm -fR dist",
"build": "npm run clean && ./node_modules/.bin/tsc --strictNullChecks",
"test": "./node_modules/.bin/mocha -r ts-node/register test/**/*.ts"
"test-circuits": "./node_modules/.bin/mocha -r ts-node/register test/circuits/*.ts",
"test-sc": "truffle test test/contracts/*.ts",
"truffle": "truffle"
},
"license": "GPL-3.0",
"dependencies": {
@@ -17,6 +19,7 @@
"circom": "0.5.10",
"eslint-plugin-mocha": "^6.1.0",
"snarkjs": "^0.1.31",
"ffjavascript": "0.1.3",
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"chai": "^4.2.0",
@@ -24,6 +27,8 @@
"mocha-steps": "^1.3.0",
"ts-node": "^7.0.1",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
"typescript": "^3.5.3",
"truffle": "^5.0.0-beta.0",
"web3": "^1.0.0-beta.30"
}
}