Skip to content

Commit

Permalink
Removed source and compiled asm from build files
Browse files Browse the repository at this point in the history
  • Loading branch information
0x31 committed Aug 5, 2019
1 parent a0c4fa7 commit 7c15802
Show file tree
Hide file tree
Showing 34 changed files with 72 additions and 334,959 deletions.
39 changes: 39 additions & 0 deletions build/clean.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Only keeps "contractName", "abi", "sourcePath", "compiler", "networks",
* "schemaVersion" and "updatedAt".
*/

var glob = require("glob");
var fs = require("fs");

const networks = ["testnet", "devnet", "localnet"];

for (const network of networks) {
glob(`./build/${network}/*.json`, function (err, files) { // read the folder or folders if you want: example json/**/*.json
if (err) {
console.log("cannot read the folder, something goes wrong with glob", err);
}
files.forEach(function (file) {
fs.readFile(file, 'utf8', function (err, data) { // Read each file
if (err) {
console.log("cannot read the file, something goes wrong with the file", err);
}
var obj = JSON.parse(data);
const newObj = {
contractName: obj.contractName,
abi: obj.abi,
sourcePath: obj.sourcePath,
compiler: obj.compiler,
networks: obj.networks,
schemaVersion: obj.schemaVersion,
updatedAt: obj.updatedAt,
}

fs.writeFile(file, JSON.stringify(newObj, null, " "), function (err) {
if (err) return console.log(err);
console.log(` Updated \x1b[33m${file}\x1b[0m.`);
});
});
});
});
}
11,005 changes: 1 addition & 11,004 deletions build/devnet/BTCShifter.json

Large diffs are not rendered by default.

24,513 changes: 1 addition & 24,512 deletions build/devnet/DarknodePayment.json

Large diffs are not rendered by default.

8,611 changes: 1 addition & 8,610 deletions build/devnet/DarknodePaymentStore.json

Large diffs are not rendered by default.

28,938 changes: 1 addition & 28,937 deletions build/devnet/DarknodeRegistry.json

Large diffs are not rendered by default.

7,320 changes: 1 addition & 7,319 deletions build/devnet/DarknodeRegistryStore.json

Large diffs are not rendered by default.

948 changes: 1 addition & 947 deletions build/devnet/DarknodeSlasher.json

Large diffs are not rendered by default.

2,326 changes: 1 addition & 2,325 deletions build/devnet/RenToken.json

Large diffs are not rendered by default.

12,810 changes: 1 addition & 12,809 deletions build/devnet/ShifterRegistry.json

Large diffs are not rendered by default.

11,004 changes: 1 addition & 11,003 deletions build/devnet/ZECShifter.json

Large diffs are not rendered by default.

1,817 changes: 1 addition & 1,816 deletions build/devnet/zBTC.json

Large diffs are not rendered by default.

1,816 changes: 1 addition & 1,815 deletions build/devnet/zZEC.json

Large diffs are not rendered by default.

11,005 changes: 1 addition & 11,004 deletions build/localnet/BTCShifter.json

Large diffs are not rendered by default.

24,513 changes: 1 addition & 24,512 deletions build/localnet/DarknodePayment.json

Large diffs are not rendered by default.

8,611 changes: 1 addition & 8,610 deletions build/localnet/DarknodePaymentStore.json

Large diffs are not rendered by default.

28,938 changes: 1 addition & 28,937 deletions build/localnet/DarknodeRegistry.json

Large diffs are not rendered by default.

7,320 changes: 1 addition & 7,319 deletions build/localnet/DarknodeRegistryStore.json

Large diffs are not rendered by default.

948 changes: 1 addition & 947 deletions build/localnet/DarknodeSlasher.json

Large diffs are not rendered by default.

2,326 changes: 1 addition & 2,325 deletions build/localnet/RenToken.json

Large diffs are not rendered by default.

12,810 changes: 1 addition & 12,809 deletions build/localnet/ShifterRegistry.json

Large diffs are not rendered by default.

11,004 changes: 1 addition & 11,003 deletions build/localnet/ZECShifter.json

Large diffs are not rendered by default.

1,817 changes: 1 addition & 1,816 deletions build/localnet/zBTC.json

Large diffs are not rendered by default.

1,816 changes: 1 addition & 1,815 deletions build/localnet/zZEC.json

Large diffs are not rendered by default.

11,839 changes: 1 addition & 11,838 deletions build/testnet/BTCShifter.json

Large diffs are not rendered by default.

24,513 changes: 1 addition & 24,512 deletions build/testnet/DarknodePayment.json

Large diffs are not rendered by default.

8,611 changes: 1 addition & 8,610 deletions build/testnet/DarknodePaymentStore.json

Large diffs are not rendered by default.

28,938 changes: 1 addition & 28,937 deletions build/testnet/DarknodeRegistry.json

Large diffs are not rendered by default.

7,320 changes: 1 addition & 7,319 deletions build/testnet/DarknodeRegistryStore.json

Large diffs are not rendered by default.

948 changes: 1 addition & 947 deletions build/testnet/DarknodeSlasher.json

Large diffs are not rendered by default.

2,326 changes: 1 addition & 2,325 deletions build/testnet/RenToken.json

Large diffs are not rendered by default.

12,810 changes: 1 addition & 12,809 deletions build/testnet/ShifterRegistry.json

Large diffs are not rendered by default.

11,838 changes: 1 addition & 11,837 deletions build/testnet/ZECShifter.json

Large diffs are not rendered by default.

1,817 changes: 1 addition & 1,816 deletions build/testnet/zBTC.json

Large diffs are not rendered by default.

1,816 changes: 1 addition & 1,815 deletions build/testnet/zZEC.json

Large diffs are not rendered by default.

0 comments on commit 7c15802

Please sign in to comment.