Skip to content
Snippets Groups Projects
Commit a73305dc authored by Otto Zaiser's avatar Otto Zaiser
Browse files

Minify js

parent 6f13c71c
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
This diff is collapsed.
// $ solc --abi src/Ballot.sol | head -4 | tail -1 | jq
var abiBallot = [
{
"constant": false,
"inputs": [
{
"name": "proposal",
"type": "uint256"
}
],
"name": "vote",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotPercentOfRegisteredVotersReqToBeValid",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "proposalListLength",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"name": "voterMap",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "voter",
"type": "address"
}
],
"name": "getVoterIdx",
"outputs": [
{
"name": "",
"type": "int256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "uncreate",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "voterList",
"outputs": [
{
"name": "voter",
"type": "address"
},
{
"name": "votesLeft",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotCountNonvotesAsBlanks",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotVoteBefore",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "voters",
"type": "address[]"
}
],
"name": "giveRightToVote",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotVoteStarts",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotMaxVotesPerProposal",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotMaxVotesPerVoter",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getTotalVoltes",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotTitle",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "proposalList",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotPercentOfVotesCastToWin",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "ballotChairman",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "votedProposalList",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "title",
"type": "string"
},
{
"name": "voteStarts",
"type": "uint256"
},
{
"name": "voteBefore",
"type": "uint256"
},
{
"name": "percentOfRegisteredVotersReqToBeValid",
"type": "uint256"
},
{
"name": "percentOfVotesCastToWin",
"type": "uint256"
},
{
"name": "countNonvotesAsBlanks",
"type": "bool"
},
{
"name": "maxVotesPerVoter",
"type": "uint256"
},
{
"name": "maxVotesPerProposal",
"type": "uint256"
},
{
"name": "proposalNames",
"type": "bytes32[]"
},
{
"name": "voters",
"type": "address[]"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
}
];
// $ solc --abi src/Ballot.sol | tail -1 | jq
var abiNew = [
{
"constant": false,
"inputs": [
{
"name": "title",
"type": "string"
},
{
"name": "voteStarts",
"type": "uint256"
},
{
"name": "voteBefore",
"type": "uint256"
},
{
"name": "percentOfRegisteredVotersReqToBeValid",
"type": "uint256"
},
{
"name": "percentOfVotesCastToWin",
"type": "uint256"
},
{
"name": "countNonvotesAsBlanks",
"type": "bool"
},
{
"name": "maxVotesPerVoter",
"type": "uint256"
},
{
"name": "maxVotesPerProposal",
"type": "uint256"
},
{
"name": "proposalNames",
"type": "bytes32[]"
},
{
"name": "voters",
"type": "address[]"
}
],
"name": "newBallot",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "contrato",
"type": "address"
}
],
"name": "contratocreado",
"type": "event"
}
];
var abiBallot=[{name:"vote",type:"function",payable:!1,constant:!1,stateMutability:"nonpayable",inputs:[{name:"proposal",type:"uint256"}],outputs:[]},{name:"ballotPercentOfRegisteredVotersReqToBeValid",type:"function",payable:!1,constant:!0,inputs:[],stateMutability:"view",outputs:[{name:"",type:"uint256"}]},{name:"voterMap",type:"function",payable:!1,constant:!0,stateMutability:"view",inputs:[{name:"",type:"address"}],outputs:[{name:"",type:"uint256"}]},{name:"getVoterIdx",type:"function",payable:!1,constant:!0,stateMutability:"view",inputs:[{name:"voter",type:"address"}],outputs:[{name:"",type:"int256"}]},{name:"uncreate",type:"function",payable:!1,constant:!1,stateMutability:"nonpayable",inputs:[],outputs:[]},{name:"voterList",type:"function",payable:!1,constant:!0,stateMutability:"view",inputs:[{name:"",type:"uint256"}],outputs:[{name:"voter",type:"address"},{name:"votesLeft",type:"uint256"}]},{name:"ballotCountNonvotesAsBlanks",type:"function",payable:!1,constant:!0,stateMutability:"view",inputs:[],outputs:[{name:"",type:"bool"}]},{name:"ballotVoteBefore",type:"function",payable:!1,constant:!0,stateMutability:"view",inputs:[],outputs:[{name:"",type:"uint256"}]},{constant:!1,inputs:[{name:"voters",type:"address[]"}],name:"giveRightToVote",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"ballotVoteStarts",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ballotMaxVotesPerProposal",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ballotMaxVotesPerVoter",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ballotTitle",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"uint256"}],name:"proposalList",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ballotPercentOfVotesCastToWin",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"ballotChairman",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[{name:"title",type:"string"},{name:"voteStarts",type:"uint256"},{name:"voteBefore",type:"uint256"},{name:"percentOfRegisteredVotersReqToBeValid",type:"uint256"},{name:"percentOfVotesCastToWin",type:"uint256"},{name:"countNonvotesAsBlanks",type:"bool"},{name:"maxVotesPerVoter",type:"uint256"},{name:"maxVotesPerProposal",type:"uint256"},{name:"proposalNames",type:"bytes32[]"}],payable:!1,stateMutability:"nonpayable",type:"constructor"}],abiNew=[{constant:!1,inputs:[{name:"title",type:"string"},{name:"voteStarts",type:"uint256"},{name:"voteBefore",type:"uint256"},{name:"percentOfRegisteredVotersReqToBeValid",type:"uint256"},{name:"percentOfVotesCastToWin",type:"uint256"},{name:"countNonvotesAsBlanks",type:"bool"},{name:"maxVotesPerVoter",type:"uint256"},{name:"maxVotesPerProposal",type:"uint256"},{name:"proposalNames",type:"bytes32[]"}],name:"newBallot",outputs:[{name:"newaddr",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}];
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -110,7 +110,7 @@ gulp.task('vendor-scripts-deploy', function() {
//this is the filename of the compressed version of our JS
//.pipe(concat('vendor.js'))
//compress :D
//.pipe(uglify())
.pipe(uglify())
//where we will store our finalized, compressed script
.pipe(gulp.dest(_themeroot+'/js/vendor'));
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment