arc_dx
Version:
A platform for building DAOs
874 lines • 46.6 kB
JSON
{
"contractName": "ARCVotingMachineCallbacksMock",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "_stakingToken",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "balanceOfStakingToken",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "reputationOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "getTotalReputationSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_stakingToken",
"type": "address"
},
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "stakingTokenTransfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "mintReputation",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_amount",
"type": "uint256"
},
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_proposalId",
"type": "bytes32"
}
],
"name": "burnReputation",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proposalId",
"type": "bytes32"
},
{
"name": "_avatar",
"type": "address"
},
{
"name": "_votingMachine",
"type": "address"
}
],
"name": "propose",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610ae6806100206000396000f3006080604052600436106100695763ffffffff60e060020a6000350416636b8eb403811461006e5780639588378e146100a4578063b551c373146100c8578063b8752ba3146100e0578063bea75f281461010c578063d29b5d2f1461014d578063f81f8bf614610174575b600080fd5b34801561007a57600080fd5b50610092600160a060020a036004351660243561019b565b60408051918252519081900360200190f35b3480156100b057600080fd5b50610092600160a060020a0360043516602435610247565b3480156100d457600080fd5b50610092600435610380565b3480156100ec57600080fd5b5061010a600435600160a060020a03602435811690604435166104e5565b005b34801561011857600080fd5b50610139600160a060020a036004358116906024351660443560643561055c565b604080519115158252519081900360200190f35b34801561015957600080fd5b50610139600435600160a060020a0360243516604435610734565b34801561018057600080fd5b50610139600435600160a060020a0360243516604435610903565b6000818152602081815260408083206001015481517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a039182166004820181905292519293918716926370a082319260248084019391929182900301818887803b15801561021157600080fd5b505af1158015610225573d6000803e3d6000fd5b505050506040513d602081101561023b57600080fd5b505191505b5092915050565b6000610251610a9a565b50600082815260208181526040918290208251606081018452815481526001820154600160a060020a039081169382018490526002909201549091169281019290925215156102a35760009150610240565b8060200151600160a060020a03166389ae1c906040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156102e557600080fd5b505af11580156102f9573d6000803e3d6000fd5b505050506040513d602081101561030f57600080fd5b50518151604080517f4ee2cd7e000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152602482019390935290519190921691634ee2cd7e9160448083019260209291908290030181600087803b15801561021157600080fd5b600061038a610a9a565b50600082815260208181526040918290208251606081018452815481526001820154600160a060020a039081169382018490526002909201549091169281019290925215156103dc57600091506104df565b8060200151600160a060020a03166389ae1c906040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561041e57600080fd5b505af1158015610432573d6000803e3d6000fd5b505050506040513d602081101561044857600080fd5b50518151604080517f981b24d0000000000000000000000000000000000000000000000000000000008152600481019290925251600160a060020a039092169163981b24d0916024808201926020929091908290030181600087803b1580156104b057600080fd5b505af11580156104c4573d6000803e3d6000fd5b505050506040513d60208110156104da57600080fd5b505191505b50919050565b60408051606081018252438152600160a060020a03938416602080830191825293851682840190815260009687529386905291909420935184555160018401805491841673ffffffffffffffffffffffffffffffffffffffff19928316179055905160029093018054939092169216919091179055565b60008181526020819052604081206002015481908390600160a060020a031633146105e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a03169150811515610615576000925061072a565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561065357600080fd5b505af1158015610667573d6000803e3d6000fd5b505050506040513d602081101561067d57600080fd5b5051604080517fb9a04cdd000000000000000000000000000000000000000000000000000000008152600160a060020a038a8116600483015289811660248301526044820189905285811660648301529151919092169163b9a04cdd9160848083019260209291908290030181600087803b1580156106fb57600080fd5b505af115801561070f573d6000803e3d6000fd5b505050506040513d602081101561072557600080fd5b505192505b5050949350505050565b60008181526020819052604081206002015481908390600160a060020a031633146107c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a031691508115156107ed57600092506108fa565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b505050506040513d602081101561085557600080fd5b5051604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101899052600160a060020a03888116602483015285811660448301529151919092169163eaf994b29160648083019260209291908290030181600087803b1580156108cb57600080fd5b505af11580156108df573d6000803e3d6000fd5b505050506040513d60208110156108f557600080fd5b505192505b50509392505050565b60008181526020819052604081206002015481908390600160a060020a0316331461098f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a031691508115156109bc57600092506108fa565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b5051604080517f6e94d27800000000000000000000000000000000000000000000000000000000815260048101899052600160a060020a038881166024830152858116604483015291519190921691636e94d2789160648083019260209291908290030181600087803b1580156108cb57600080fd5b6040805160608101825260008082526020820181905291810191909152905600a165627a7a723058201f8377cd495a06cd7803d36ad93d58d1eb0435f398617b80b955ee6e26e2155e0029",
"deployedBytecode": "0x6080604052600436106100695763ffffffff60e060020a6000350416636b8eb403811461006e5780639588378e146100a4578063b551c373146100c8578063b8752ba3146100e0578063bea75f281461010c578063d29b5d2f1461014d578063f81f8bf614610174575b600080fd5b34801561007a57600080fd5b50610092600160a060020a036004351660243561019b565b60408051918252519081900360200190f35b3480156100b057600080fd5b50610092600160a060020a0360043516602435610247565b3480156100d457600080fd5b50610092600435610380565b3480156100ec57600080fd5b5061010a600435600160a060020a03602435811690604435166104e5565b005b34801561011857600080fd5b50610139600160a060020a036004358116906024351660443560643561055c565b604080519115158252519081900360200190f35b34801561015957600080fd5b50610139600435600160a060020a0360243516604435610734565b34801561018057600080fd5b50610139600435600160a060020a0360243516604435610903565b6000818152602081815260408083206001015481517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a039182166004820181905292519293918716926370a082319260248084019391929182900301818887803b15801561021157600080fd5b505af1158015610225573d6000803e3d6000fd5b505050506040513d602081101561023b57600080fd5b505191505b5092915050565b6000610251610a9a565b50600082815260208181526040918290208251606081018452815481526001820154600160a060020a039081169382018490526002909201549091169281019290925215156102a35760009150610240565b8060200151600160a060020a03166389ae1c906040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156102e557600080fd5b505af11580156102f9573d6000803e3d6000fd5b505050506040513d602081101561030f57600080fd5b50518151604080517f4ee2cd7e000000000000000000000000000000000000000000000000000000008152600160a060020a038881166004830152602482019390935290519190921691634ee2cd7e9160448083019260209291908290030181600087803b15801561021157600080fd5b600061038a610a9a565b50600082815260208181526040918290208251606081018452815481526001820154600160a060020a039081169382018490526002909201549091169281019290925215156103dc57600091506104df565b8060200151600160a060020a03166389ae1c906040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561041e57600080fd5b505af1158015610432573d6000803e3d6000fd5b505050506040513d602081101561044857600080fd5b50518151604080517f981b24d0000000000000000000000000000000000000000000000000000000008152600481019290925251600160a060020a039092169163981b24d0916024808201926020929091908290030181600087803b1580156104b057600080fd5b505af11580156104c4573d6000803e3d6000fd5b505050506040513d60208110156104da57600080fd5b505191505b50919050565b60408051606081018252438152600160a060020a03938416602080830191825293851682840190815260009687529386905291909420935184555160018401805491841673ffffffffffffffffffffffffffffffffffffffff19928316179055905160029093018054939092169216919091179055565b60008181526020819052604081206002015481908390600160a060020a031633146105e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a03169150811515610615576000925061072a565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561065357600080fd5b505af1158015610667573d6000803e3d6000fd5b505050506040513d602081101561067d57600080fd5b5051604080517fb9a04cdd000000000000000000000000000000000000000000000000000000008152600160a060020a038a8116600483015289811660248301526044820189905285811660648301529151919092169163b9a04cdd9160848083019260209291908290030181600087803b1580156106fb57600080fd5b505af115801561070f573d6000803e3d6000fd5b505050506040513d602081101561072557600080fd5b505192505b5050949350505050565b60008181526020819052604081206002015481908390600160a060020a031633146107c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a031691508115156107ed57600092506108fa565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561082b57600080fd5b505af115801561083f573d6000803e3d6000fd5b505050506040513d602081101561085557600080fd5b5051604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101899052600160a060020a03888116602483015285811660448301529151919092169163eaf994b29160648083019260209291908290030181600087803b1580156108cb57600080fd5b505af11580156108df573d6000803e3d6000fd5b505050506040513d60208110156108f557600080fd5b505192505b50509392505050565b60008181526020819052604081206002015481908390600160a060020a0316331461098f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f6f6e6c7920566f74696e674d616368696e650000000000000000000000000000604482015290519081900360640190fd5b600084815260208190526040902060010154600160a060020a031691508115156109bc57600092506108fa565b81600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109fa57600080fd5b505af1158015610a0e573d6000803e3d6000fd5b505050506040513d6020811015610a2457600080fd5b5051604080517f6e94d27800000000000000000000000000000000000000000000000000000000815260048101899052600160a060020a038881166024830152858116604483015291519190921691636e94d2789160648083019260209291908290030181600087803b1580156108cb57600080fd5b6040805160608101825260008082526020820181905291810191909152905600a165627a7a723058201f8377cd495a06cd7803d36ad93d58d1eb0435f398617b80b955ee6e26e2155e0029",
"sourceMap": "83:326:17:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83:326:17;;;;;;;",
"deployedSourceMap": "83:326:17:-;;;;;;;;;-1:-1:-1;;;83:326:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2581:231:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2581:231:39;-1:-1:-1;;;;;2581:231:39;;;;;;;;;;;;;;;;;;;;;;;1759:328;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1759:328:39;-1:-1:-1;;;;;1759:328:39;;;;;;;668:323;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;668:323:39;;;;;155:252:17;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;155:252:17;;;-1:-1:-1;;;;;155:252:17;;;;;;;;;;;;2093:482:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2093:482:39;-1:-1:-1;;;;;2093:482:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;997:375;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;997:375:39;;;-1:-1:-1;;;;;997:375:39;;;;;;;1378;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1378:375:39;;;-1:-1:-1;;;;;1378:375:39;;;;;;;2581:231;2683:4;2715:26;;;;;;;;;;;:33;;;2765:40;;;;;-1:-1:-1;;;;;2715:33:39;;;2765:40;;;;;;;;2715:33;;2765:23;;;;;;:40;;;;;2715:26;;2765:40;;;;;;2683:4;2765:23;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;2765:40:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2765:40:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2765:40:39;;-1:-1:-1;2581:231:39;;;;;;:::o;1759:328::-;1839:4;1855:28;;:::i;:::-;-1:-1:-1;1886:13:39;:26;;;;;;;;;;;;1855:57;;;;;;;;;;;;;;;-1:-1:-1;;;;;1855:57:39;;;;;;;;;;;;;;;;;;;;;;;;1926:28;1922:67;;;1977:1;1970:8;;;;1922:67;2005:8;:15;;;-1:-1:-1;;;;;2005:32:39;;:34;;;;;-1:-1:-1;;;2005:34:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2005:34:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2005:34:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2005:34:39;2059:20;;2005:75;;;;;;-1:-1:-1;;;;;2005:75:39;;;;;;;;;;;;;;;;:46;;;;;;;:75;;;;;:34;;:75;;;;;;;2059:20;2005:46;:75;;;5:2:-1;;;;30:1;27;20:12;668:323:39;745:7;764:28;;:::i;:::-;-1:-1:-1;795:13:39;:26;;;;;;;;;;;;764:57;;;;;;;;;;;;;;;-1:-1:-1;;;;;764:57:39;;;;;;;;;;;;;;;;;;;;;;;;835:28;831:67;;;886:1;879:8;;;;831:67;914:8;:15;;;-1:-1:-1;;;;;914:32:39;;:34;;;;;-1:-1:-1;;;914:34:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;914:34:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;914:34:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;914:34:39;963:20;;914:70;;;;;;;;;;;;;;-1:-1:-1;;;;;914:48:39;;;;;;:70;;;;;:34;;:70;;;;;;;;963:20;914:48;:70;;;5:2:-1;;;;30:1;27;20:12;5:2;914:70:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;914:70:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;914:70:39;;-1:-1:-1;668:323:39;;;;;:::o;155:252:17:-;277:123;;;;;;;;316:12;277:123;;-1:-1:-1;;;;;277:123:17;;;;;;;;;;;;;;;;;;;-1:-1:-1;248:26:17;;;;;;;;;;;:152;;;;;;;;;;;;;-1:-1:-1;;248:152:17;;;;;;;;;;;;;;;;;;;;;;;;;;155:252::o;2093:482:39:-;2302:4;472:26;;;;;;;;;;:40;;;2302:4;;472:26;;-1:-1:-1;;;;;472:40:39;458:10;:54;450:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2338:13;:26;;;;;;;;;;:33;;;-1:-1:-1;;;;;2338:33:39;;-1:-1:-1;2385:19:39;;2381:62;;;2427:5;2420:12;;;;2381:62;2479:6;-1:-1:-1;;;;;2479:12:39;;:14;;;;;-1:-1:-1;;;2479:14:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2479:14:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2479:14:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2479:14:39;2459:109;;;;;;-1:-1:-1;;;;;2459:109:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:57;;;;;;;:109;;;;;2479:14;;2459:109;;;;;;;-1:-1:-1;2459:57:39;:109;;;5:2:-1;;;;30:1;27;20:12;5:2;2459:109:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2459:109:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2459:109:39;;-1:-1:-1;544:1:39;2093:482;;;;;;;;:::o;997:375::-;1124:4;472:26;;;;;;;;;;:40;;;1124:4;;472:26;;-1:-1:-1;;;;;472:40:39;458:10;:54;450:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1156:13;:26;;;;;;;;;;:33;;;-1:-1:-1;;;;;1156:33:39;;-1:-1:-1;1203:19:39;;1199:62;;;1245:5;1238:12;;;;1199:62;1297:6;-1:-1:-1;;;;;1297:12:39;;:14;;;;;-1:-1:-1;;;1297:14:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1297:14:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1297:14:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1297:14:39;1277:88;;;;;;;;;;;;-1:-1:-1;;;;;1277:88:39;;;;;;;;;;;;;;;;:50;;;;;;;:88;;;;;1297:14;;1277:88;;;;;;;-1:-1:-1;1277:50:39;:88;;;5:2:-1;;;;30:1;27;20:12;5:2;1277:88:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1277:88:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1277:88:39;;-1:-1:-1;544:1:39;997:375;;;;;;;:::o;1378:::-;1505:4;472:26;;;;;;;;;;:40;;;1505:4;;472:26;;-1:-1:-1;;;;;472:40:39;458:10;:54;450:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1537:13;:26;;;;;;;;;;:33;;;-1:-1:-1;;;;;1537:33:39;;-1:-1:-1;1584:19:39;;1580:62;;;1626:5;1619:12;;;;1580:62;1678:6;-1:-1:-1;;;;;1678:12:39;;:14;;;;;-1:-1:-1;;;1678:14:39;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1678:14:39;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1678:14:39;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1678:14:39;1658:88;;;;;;;;;;;;-1:-1:-1;;;;;1658:88:39;;;;;;;;;;;;;;;;:50;;;;;;;:88;;;;;1678:14;;1658:88;;;;;;;-1:-1:-1;1658:50:39;:88;;;5:2:-1;;;;30:1;27;20:12;83:326:17;;;;;;;;;-1:-1:-1;83:326:17;;;;;;;;;;;;;;;;;:::o",
"source": "pragma solidity ^0.4.25;\n\nimport \"../votingMachines/VotingMachineCallbacks.sol\";\n\n\ncontract ARCVotingMachineCallbacksMock is VotingMachineCallbacks {\n\n function propose(bytes32 _proposalId,Avatar _avatar,address _votingMachine) public {\n proposalsInfo[_proposalId] = ProposalInfo(\n {blockNumber:block.number,\n avatar:_avatar,\n votingMachine:_votingMachine});\n }\n}\n",
"sourcePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCGenesisProtocolCallbacksMock.sol",
"ast": {
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCGenesisProtocolCallbacksMock.sol",
"exportedSymbols": {
"ARCVotingMachineCallbacksMock": [
6473
]
},
"id": 6474,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6448,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:17"
},
{
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/votingMachines/VotingMachineCallbacks.sol",
"file": "../votingMachines/VotingMachineCallbacks.sol",
"id": 6449,
"nodeType": "ImportDirective",
"scope": 6474,
"sourceUnit": 12960,
"src": "26:54:17",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6450,
"name": "VotingMachineCallbacks",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 12959,
"src": "125:22:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_VotingMachineCallbacks_$12959",
"typeString": "contract VotingMachineCallbacks"
}
},
"id": 6451,
"nodeType": "InheritanceSpecifier",
"src": "125:22:17"
}
],
"contractDependencies": [
12959,
20588
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6473,
"linearizedBaseContracts": [
6473,
12959,
20588
],
"name": "ARCVotingMachineCallbacksMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 6471,
"nodeType": "Block",
"src": "238:169:17",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6469,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6460,
"name": "proposalsInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12730,
"src": "248:13:17",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_ProposalInfo_$12709_storage_$",
"typeString": "mapping(bytes32 => struct VotingMachineCallbacks.ProposalInfo storage ref)"
}
},
"id": 6462,
"indexExpression": {
"argumentTypes": null,
"id": 6461,
"name": "_proposalId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6453,
"src": "262:11:17",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "248:26:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_storage",
"typeString": "struct VotingMachineCallbacks.ProposalInfo storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6464,
"name": "block",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21539,
"src": "316:5:17",
"typeDescriptions": {
"typeIdentifier": "t_magic_block",
"typeString": "block"
}
},
"id": 6465,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "number",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "316:12:17",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6466,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6455,
"src": "349:7:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
}
},
{
"argumentTypes": null,
"id": 6467,
"name": "_votingMachine",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6457,
"src": "384:14:17",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": null,
"id": 6463,
"name": "ProposalInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12709,
"src": "277:12:17",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_ProposalInfo_$12709_storage_ptr_$",
"typeString": "type(struct VotingMachineCallbacks.ProposalInfo storage pointer)"
}
},
"id": 6468,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [
"blockNumber",
"avatar",
"votingMachine"
],
"nodeType": "FunctionCall",
"src": "277:123:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_memory",
"typeString": "struct VotingMachineCallbacks.ProposalInfo memory"
}
},
"src": "248:152:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_storage",
"typeString": "struct VotingMachineCallbacks.ProposalInfo storage ref"
}
},
"id": 6470,
"nodeType": "ExpressionStatement",
"src": "248:152:17"
}
]
},
"documentation": null,
"id": 6472,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "propose",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6458,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6453,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "172:19:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6452,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "172:7:17",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6455,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "192:14:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
},
"typeName": {
"contractScope": null,
"id": 6454,
"name": "Avatar",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 333,
"src": "192:6:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6457,
"name": "_votingMachine",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "207:22:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6456,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "207:7:17",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "171:59:17"
},
"payable": false,
"returnParameters": {
"id": 6459,
"nodeType": "ParameterList",
"parameters": [],
"src": "238:0:17"
},
"scope": 6473,
"src": "155:252:17",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 6474,
"src": "83:326:17"
}
],
"src": "0:410:17"
},
"legacyAST": {
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/test/ARCGenesisProtocolCallbacksMock.sol",
"exportedSymbols": {
"ARCVotingMachineCallbacksMock": [
6473
]
},
"id": 6474,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 6448,
"literals": [
"solidity",
"^",
"0.4",
".25"
],
"nodeType": "PragmaDirective",
"src": "0:24:17"
},
{
"absolutePath": "/Users/oren/daostack/daostack2/daostack/contracts/votingMachines/VotingMachineCallbacks.sol",
"file": "../votingMachines/VotingMachineCallbacks.sol",
"id": 6449,
"nodeType": "ImportDirective",
"scope": 6474,
"sourceUnit": 12960,
"src": "26:54:17",
"symbolAliases": [],
"unitAlias": ""
},
{
"baseContracts": [
{
"arguments": null,
"baseName": {
"contractScope": null,
"id": 6450,
"name": "VotingMachineCallbacks",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 12959,
"src": "125:22:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_VotingMachineCallbacks_$12959",
"typeString": "contract VotingMachineCallbacks"
}
},
"id": 6451,
"nodeType": "InheritanceSpecifier",
"src": "125:22:17"
}
],
"contractDependencies": [
12959,
20588
],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": true,
"id": 6473,
"linearizedBaseContracts": [
6473,
12959,
20588
],
"name": "ARCVotingMachineCallbacksMock",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": {
"id": 6471,
"nodeType": "Block",
"src": "238:169:17",
"statements": [
{
"expression": {
"argumentTypes": null,
"id": 6469,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"argumentTypes": null,
"baseExpression": {
"argumentTypes": null,
"id": 6460,
"name": "proposalsInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12730,
"src": "248:13:17",
"typeDescriptions": {
"typeIdentifier": "t_mapping$_t_bytes32_$_t_struct$_ProposalInfo_$12709_storage_$",
"typeString": "mapping(bytes32 => struct VotingMachineCallbacks.ProposalInfo storage ref)"
}
},
"id": 6462,
"indexExpression": {
"argumentTypes": null,
"id": 6461,
"name": "_proposalId",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6453,
"src": "262:11:17",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"isConstant": false,
"isLValue": true,
"isPure": false,
"lValueRequested": true,
"nodeType": "IndexAccess",
"src": "248:26:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_storage",
"typeString": "struct VotingMachineCallbacks.ProposalInfo storage ref"
}
},
"nodeType": "Assignment",
"operator": "=",
"rightHandSide": {
"argumentTypes": null,
"arguments": [
{
"argumentTypes": null,
"expression": {
"argumentTypes": null,
"id": 6464,
"name": "block",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 21539,
"src": "316:5:17",
"typeDescriptions": {
"typeIdentifier": "t_magic_block",
"typeString": "block"
}
},
"id": 6465,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"memberName": "number",
"nodeType": "MemberAccess",
"referencedDeclaration": null,
"src": "316:12:17",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
{
"argumentTypes": null,
"id": 6466,
"name": "_avatar",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6455,
"src": "349:7:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
}
},
{
"argumentTypes": null,
"id": 6467,
"name": "_votingMachine",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 6457,
"src": "384:14:17",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
}
],
"expression": {
"argumentTypes": null,
"id": 6463,
"name": "ProposalInfo",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 12709,
"src": "277:12:17",
"typeDescriptions": {
"typeIdentifier": "t_type$_t_struct$_ProposalInfo_$12709_storage_ptr_$",
"typeString": "type(struct VotingMachineCallbacks.ProposalInfo storage pointer)"
}
},
"id": 6468,
"isConstant": false,
"isLValue": false,
"isPure": false,
"kind": "structConstructorCall",
"lValueRequested": false,
"names": [
"blockNumber",
"avatar",
"votingMachine"
],
"nodeType": "FunctionCall",
"src": "277:123:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_memory",
"typeString": "struct VotingMachineCallbacks.ProposalInfo memory"
}
},
"src": "248:152:17",
"typeDescriptions": {
"typeIdentifier": "t_struct$_ProposalInfo_$12709_storage",
"typeString": "struct VotingMachineCallbacks.ProposalInfo storage ref"
}
},
"id": 6470,
"nodeType": "ExpressionStatement",
"src": "248:152:17"
}
]
},
"documentation": null,
"id": 6472,
"implemented": true,
"isConstructor": false,
"isDeclaredConst": false,
"modifiers": [],
"name": "propose",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 6458,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6453,
"name": "_proposalId",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "172:19:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 6452,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "172:7:17",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6455,
"name": "_avatar",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "192:14:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
},
"typeName": {
"contractScope": null,
"id": 6454,
"name": "Avatar",
"nodeType": "UserDefinedTypeName",
"referencedDeclaration": 333,
"src": "192:6:17",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Avatar_$333",
"typeString": "contract Avatar"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 6457,
"name": "_votingMachine",
"nodeType": "VariableDeclaration",
"scope": 6472,
"src": "207:22:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 6456,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "207:7:17",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "171:59:17"
},
"payable": false,
"returnParameters": {
"id": 6459,
"nodeType": "ParameterList",
"parameters": [],
"src": "238:0:17"
},
"scope": 6473,
"src": "155:252:17",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "public"
}
],
"scope": 6474,
"src": "83:326:17"
}
],
"src": "0:410:17"
},
"compiler": {
"name": "solc",
"version": "0.4.25+commit.59dbf8f1.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.0.0-beta.1",
"updatedAt": "2018-10-16T14:16:07.357Z"
}