-
Notifications
You must be signed in to change notification settings - Fork 0
/
contractABI.py
111 lines (109 loc) · 10.4 KB
/
contractABI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
CONSENSUS_ADDRESS = '0x3014ca10b91cb3D0AD85fEf7A3Cb95BCAc9c0f79'
RPC_ADDRESS = 'https://rpc.fuse.io'
CONSENSUS_ABI = [{"constant": True, "inputs": [], "name": "getLastSnapshotTakenAtBlock",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [{"name": "_p", "type": "uint256"}],
"name": "pendingValidatorsAtPosition",
"outputs": [{"name": "", "type": "address"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [{"name": "_snapshotId", "type": "uint256"}],
"name": "getSnapshotAddresses", "outputs": [{"name": "", "type": "address[]"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": False, "inputs": [{"name": "_newAddress", "type": "address"}],
"name": "setProxyStorage", "outputs": [], "payable": False, "stateMutability": "nonpayable",
"type": "function"}, {"constant": True, "inputs": [{"name": "_address", "type": "address"},
{"name": "_validator", "type": "address"}],
"name": "delegatedAmount", "outputs": [{"name": "", "type": "uint256"}],
"payable": False, "stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "SNAPSHOTS_PER_CYCLE",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [], "name": "pendingValidatorsLength",
"outputs": [{"name": "", "type": "uint256"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "newValidatorSetLength",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"},
{"constant": True, "inputs": [], "name": "DECIMALS", "outputs": [{"name": "", "type": "uint256"}],
"payable": False, "stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "isInitialized",
"outputs": [{"name": "", "type": "bool"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [], "name": "currentValidatorsLength",
"outputs": [{"name": "", "type": "uint256"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getMinStake",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "pure",
"type": "function"}, {"constant": True, "inputs": [{"name": "_p", "type": "uint256"}],
"name": "currentValidatorsAtPosition",
"outputs": [{"name": "", "type": "address"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "newValidatorSet",
"outputs": [{"name": "", "type": "address[]"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [], "name": "CYCLE_DURATION_BLOCKS",
"outputs": [{"name": "", "type": "uint256"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getSnapshotsPerCycle",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "pure",
"type": "function"}, {"constant": True, "inputs": [], "name": "requiredSignatures",
"outputs": [{"name": "", "type": "uint256"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "isFinalized", "outputs": [{"name": "", "type": "bool"}],
"payable": False, "stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getCurrentCycleStartBlock",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [], "name": "currentValidators",
"outputs": [{"name": "", "type": "address[]"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getCycleDurationBlocks",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "pure",
"type": "function"}, {"constant": True, "inputs": [], "name": "pendingValidators",
"outputs": [{"name": "", "type": "address[]"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getCurrentCycleEndBlock",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"},
{"constant": True, "inputs": [{"name": "_address", "type": "address"}], "name": "stakeAmount",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"},
{"constant": True, "inputs": [], "name": "MIN_STAKE", "outputs": [{"name": "", "type": "uint256"}],
"payable": False, "stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "getNextSnapshotId",
"outputs": [{"name": "", "type": "uint256"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [], "name": "getProxyStorage",
"outputs": [{"name": "", "type": "address"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": True, "inputs": [], "name": "shouldEmitInitiateChange",
"outputs": [{"name": "", "type": "bool"}], "payable": False, "stateMutability": "view",
"type": "function"},
{"constant": True, "inputs": [{"name": "_address", "type": "address"}], "name": "isValidator",
"outputs": [{"name": "", "type": "bool"}], "payable": False, "stateMutability": "view",
"type": "function"}, {"constant": True, "inputs": [{"name": "_address", "type": "address"}],
"name": "isPendingValidator", "outputs": [{"name": "", "type": "bool"}],
"payable": False, "stateMutability": "view", "type": "function"},
{"payable": True, "stateMutability": "payable", "type": "fallback"},
{"anonymous": False, "inputs": [{"indexed": False, "name": "newSet", "type": "address[]"}],
"name": "ChangeFinalized", "type": "event"},
{"anonymous": False, "inputs": [], "name": "ShouldEmitInitiateChange", "type": "event"},
{"anonymous": False, "inputs": [{"indexed": True, "name": "parentHash", "type": "bytes32"},
{"indexed": False, "name": "newSet", "type": "address[]"}],
"name": "InitiateChange", "type": "event"},
{"constant": False, "inputs": [{"name": "_initialValidator", "type": "address"}],
"name": "initialize", "outputs": [], "payable": False, "stateMutability": "nonpayable",
"type": "function"}, {"constant": True, "inputs": [], "name": "getValidators",
"outputs": [{"name": "", "type": "address[]"}], "payable": False,
"stateMutability": "view", "type": "function"},
{"constant": False, "inputs": [], "name": "finalizeChange", "outputs": [], "payable": False,
"stateMutability": "nonpayable", "type": "function"},
{"constant": False, "inputs": [], "name": "stake", "outputs": [], "payable": True,
"stateMutability": "payable", "type": "function"},
{"constant": False, "inputs": [{"name": "_validator", "type": "address"}], "name": "delegate",
"outputs": [], "payable": True, "stateMutability": "payable", "type": "function"},
{"constant": False, "inputs": [{"name": "_amount", "type": "uint256"}], "name": "withdraw",
"outputs": [], "payable": False, "stateMutability": "nonpayable", "type": "function"},
{"constant": False,
"inputs": [{"name": "_validator", "type": "address"}, {"name": "_amount", "type": "uint256"}],
"name": "withdraw", "outputs": [], "payable": False, "stateMutability": "nonpayable",
"type": "function"},
{"constant": False, "inputs": [], "name": "cycle", "outputs": [], "payable": False,
"stateMutability": "nonpayable", "type": "function"},
{"constant": False, "inputs": [], "name": "emitInitiateChange", "outputs": [], "payable": False,
"stateMutability": "nonpayable", "type": "function"}]