Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
NishantChandla committed Apr 19, 2020
0 parents commit 8fff266
Show file tree
Hide file tree
Showing 14 changed files with 14,406 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.next/
*.log
Binary file added Art/ether.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions Compile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const path = require('path');
const solc = require('solc');
const fs = require('fs-extra');

const buildpath = path.resolve(__dirname, 'build');
fs.removeSync(buildpath);
const donatePath = path.resolve(__dirname, 'Contract', 'contract.sol');
const source = fs.readFileSync(donatePath, 'utf8');
const output = solc.compile(source, 1).contracts;

fs.ensureDirSync(buildpath);
console.log(output);
for (let contract in output) {
fs.outputJsonSync(path.resolve(buildpath, contract.replace(':', '') + '.json'), output[contract]);

}

Loading

0 comments on commit 8fff266

Please sign in to comment.