Skip to content

Commit

Permalink
Merge pull request #125 from oceanprotocol/feature/balancer-unit-testing
Browse files Browse the repository at this point in the history
Feature/balancer-unit-testing
  • Loading branch information
Ahmed Ali committed Jul 19, 2020
2 parents b582e3e + 82c23ff commit 8f06bae
Show file tree
Hide file tree
Showing 26 changed files with 28,734 additions and 29,506 deletions.
555 changes: 0 additions & 555 deletions artifacts/development/BBronze.json

This file was deleted.

555 changes: 0 additions & 555 deletions artifacts/development/BColor.json

This file was deleted.

902 changes: 409 additions & 493 deletions artifacts/development/BConst.json

Large diffs are not rendered by default.

6,104 changes: 3,023 additions & 3,081 deletions artifacts/development/BMath.json

Large diffs are not rendered by default.

3,012 changes: 1,495 additions & 1,517 deletions artifacts/development/BNum.json

Large diffs are not rendered by default.

3,570 changes: 1,770 additions & 1,800 deletions artifacts/development/BToken.json

Large diffs are not rendered by default.

3,568 changes: 1,769 additions & 1,799 deletions artifacts/development/BTokenBase.json

Large diffs are not rendered by default.

276 changes: 138 additions & 138 deletions artifacts/development/Context.json

Large diffs are not rendered by default.

968 changes: 484 additions & 484 deletions artifacts/development/Converter.json

Large diffs are not rendered by default.

156 changes: 78 additions & 78 deletions artifacts/development/DTFactory.json

Large diffs are not rendered by default.

3,132 changes: 1,566 additions & 1,566 deletions artifacts/development/DataTokenTemplate.json

Large diffs are not rendered by default.

300 changes: 150 additions & 150 deletions artifacts/development/Deployer.json

Large diffs are not rendered by default.

4,092 changes: 2,046 additions & 2,046 deletions artifacts/development/ERC20.json

Large diffs are not rendered by default.

1,316 changes: 658 additions & 658 deletions artifacts/development/ERC20Pausable.json

Large diffs are not rendered by default.

680 changes: 340 additions & 340 deletions artifacts/development/IERC20.json

Large diffs are not rendered by default.

716 changes: 358 additions & 358 deletions artifacts/development/IERC20Template.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions artifacts/development/Migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/ahmedali/Desktop/work/Ocean/ocean-contracts/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/ahmedali/Desktop/work/Ocean/ocean-contracts/contracts/Migrations.sol\":{\"keccak256\":\"0x7c53ff5172c2899c6ac1d858354fa7422822decfd8637c784ab6826f462f01aa\",\"urls\":[\"bzzr://9fd0496ac18ac67c0f2ebdc9b73cadfff96fb0a36beef0b60d1fdd6848b8e8df\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506101b0806100606000396000f3fe608060405234801561001057600080fd5b506004361061005e576000357c010000000000000000000000000000000000000000000000000000000090048063445df0ac146100635780638da5cb5b14610081578063fdacd576146100cb575b600080fd5b61006b6100f9565b6040518082815260200191505060405180910390f35b6100896100ff565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f7600480360360208110156100e157600080fd5b8101908080359060200190929190505050610124565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018157806001819055505b5056fea165627a7a723058207ea743520adb32d929182ef27c361565911681532fc43727675fdd42dc6f1c970029",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061005e576000357c010000000000000000000000000000000000000000000000000000000090048063445df0ac146100635780638da5cb5b14610081578063fdacd576146100cb575b600080fd5b61006b6100f9565b6040518082815260200191505060405180910390f35b6100896100ff565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f7600480360360208110156100e157600080fd5b8101908080359060200190929190505050610124565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561018157806001819055505b5056fea165627a7a723058207ea743520adb32d929182ef27c361565911681532fc43727675fdd42dc6f1c970029",
"sourceMap": "34:351:1:-;;;134:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;134:56:1;173:10;165:5;;:18;;;;;;;;;;;;;;;;;;34:351;;;;;;",
"deployedSourceMap": "34:351:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34:351:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;63:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;274:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;274:109:1;;;;;;;;;;;;;;;;;:::i;:::-;;89:36;;;;:::o;63:20::-;;;;;;;;;;;;;:::o;274:109::-;249:5;;;;;;;;;;;235:19;;:10;:19;;;231:26;;;367:9;340:24;:36;;;;231:26;274:109;:::o",
"metadata": "{\"compiler\":{\"version\":\"0.5.7+commit.6da8b019\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/ahmedali/Desktop/work/Ocean/ocean-contracts/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/ahmedali/Desktop/work/Ocean/ocean-contracts/contracts/Migrations.sol\":{\"keccak256\":\"0x7c53ff5172c2899c6ac1d858354fa7422822decfd8637c784ab6826f462f01aa\",\"urls\":[\"bzzr://9fd0496ac18ac67c0f2ebdc9b73cadfff96fb0a36beef0b60d1fdd6848b8e8df\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a03191633179055610143806100326000396000f3fe608060405234801561001057600080fd5b506004361061005d577c01000000000000000000000000000000000000000000000000000000006000350463445df0ac81146100625780638da5cb5b1461007c578063fdacd576146100ad575b600080fd5b61006a6100cc565b60408051918252519081900360200190f35b6100846100d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100ca600480360360208110156100c357600080fd5b50356100ee565b005b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff163314156101145760018190555b5056fea165627a7a723058202c0a58bf1baf04d87a228ddc59492508f3fa89b5d0e8ebd0b51f20e5988a8a540029",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061005d577c01000000000000000000000000000000000000000000000000000000006000350463445df0ac81146100625780638da5cb5b1461007c578063fdacd576146100ad575b600080fd5b61006a6100cc565b60408051918252519081900360200190f35b6100846100d2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100ca600480360360208110156100c357600080fd5b50356100ee565b005b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff163314156101145760018190555b5056fea165627a7a723058202c0a58bf1baf04d87a228ddc59492508f3fa89b5d0e8ebd0b51f20e5988a8a540029",
"sourceMap": "34:351:1:-;;;134:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;165:5:1;:18;;-1:-1:-1;;;;;;165:18:1;173:10;165:18;;;34:351;;;;;;",
"deployedSourceMap": "34:351:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34:351:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89:36;;;:::i;:::-;;;;;;;;;;;;;;;;63:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;274:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;274:109:1;;:::i;:::-;;89:36;;;;:::o;63:20::-;;;;;;:::o;274:109::-;249:5;;;;235:10;:19;231:26;;;340:24;:36;;;231:26;274:109;:::o",
"source": "pragma solidity >=0.4.21 <0.7.0;\n\ncontract Migrations {\n \n address public owner;\n uint public last_completed_migration;\n \n constructor() public {\n owner = msg.sender;\n }\n \n modifier restricted() { \n if (msg.sender == owner) _;\n }\n \n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n}\n",
"sourcePath": "/Users/ahmedali/Desktop/work/Ocean/ocean-contracts/contracts/Migrations.sol",
"ast": {
Expand Down Expand Up @@ -184,7 +184,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5635,
"referencedDeclaration": 5607,
"src": "173:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
Expand Down Expand Up @@ -268,7 +268,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5635,
"referencedDeclaration": 5607,
"src": "235:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
Expand Down Expand Up @@ -595,7 +595,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5635,
"referencedDeclaration": 5607,
"src": "173:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
Expand Down Expand Up @@ -679,7 +679,7 @@
"name": "msg",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 5635,
"referencedDeclaration": 5607,
"src": "235:3:1",
"typeDescriptions": {
"typeIdentifier": "t_magic_message",
Expand Down Expand Up @@ -885,7 +885,7 @@
},
"networks": {},
"schemaVersion": "3.2.0",
"updatedAt": "2020-07-15T14:42:53.103Z",
"updatedAt": "2020-07-17T08:17:03.180Z",
"devdoc": {
"methods": {}
},
Expand Down
1,482 changes: 730 additions & 752 deletions artifacts/development/SFactory.json

Large diffs are not rendered by default.

24,216 changes: 12,079 additions & 12,137 deletions artifacts/development/SPool.json

Large diffs are not rendered by default.

0 comments on commit 8f06bae

Please sign in to comment.