-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeepRandomBeaconOperatorStatistics.json
149 lines (149 loc) · 15.7 KB
/
KeepRandomBeaconOperatorStatistics.json
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"contractName": "KeepRandomBeaconOperatorStatistics",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_operatorContract",
"type": "address"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "uint256",
"name": "groupIndex",
"type": "uint256"
}
],
"name": "awaitingRewards",
"outputs": [
{
"internalType": "uint256",
"name": "rewards",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes",
"name": "groupPubKey",
"type": "bytes"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "countGroupMembership",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "bytes",
"name": "groupPubKey",
"type": "bytes"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "getGroupMemberIndices",
"outputs": [
{
"internalType": "uint256[]",
"name": "indices",
"type": "uint256[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "operatorContract",
"outputs": [
{
"internalType": "contract KeepRandomBeaconOperator",
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "uint256",
"name": "groupIndex",
"type": "uint256"
}
],
"name": "withdrawableRewards",
"outputs": [
{
"internalType": "uint256",
"name": "rewards",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50604051610cab380380610cab8339818101604052602081101561003357600080fd5b5051600080546001600160a01b039092166001600160a01b0319909216919091179055610c46806100656000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80630fdb54d21461005c57806376e09d1d1461009a5780637c531a77146100c6578063cb62c50d14610175578063e8e0bb5414610274575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610298565b60408051918252519081900360200190f35b610088600480360360408110156100b057600080fd5b506001600160a01b0381351690602001356104cd565b610088600480360360408110156100dc57600080fd5b810190602081018135600160201b8111156100f657600080fd5b82018360208201111561010857600080fd5b803590602001918460018302840111600160201b8311171561012957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b031691506107979050565b6102246004803603604081101561018b57600080fd5b810190602081018135600160201b8111156101a557600080fd5b8201836020820111156101b757600080fd5b803590602001918460018302840111600160201b831117156101d857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b0316915061095f9050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610260578181015183820152602001610248565b505050509050019250505060405180910390f35b61027c610b81565b604080516001600160a01b039092168252519081900360200190f35b6000805460408051633bdf23e760e21b81526004810185905290516060926001600160a01b03169163ef7c8f9c9160248083019287929190829003018186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561032157600080fd5b8101908080516040519392919084600160201b82111561034057600080fd5b90830190602082018581111561035557600080fd5b8251600160201b81118282018810171561036e57600080fd5b82525081516020918201929091019080838360005b8381101561039b578181015183820152602001610383565b50505050905090810190601f1680156103c85780820380516001836020036101000a031916815260200191505b50604081905260008054632d6f8f3160e01b83526020600484018181528851602486015288519899506001600160a01b0390921697632d6f8f31975089965091945084936044019290860191908190849084905b8381101561043457818101518382015260200161041c565b50505050905090810190601f1680156104615780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b5051156104c1576104b984846104cd565b9150506104c7565b60009150505b92915050565b600080546040805163376f7a1160e01b81526001600160a01b038681166004830152602482018690529151919092169163376f7a11916044808301926020929190829003018186803b15801561052257600080fd5b505afa158015610536573d6000803e3d6000fd5b505050506040513d602081101561054c57600080fd5b50511561055b575060006104c7565b6000805460408051633bdf23e760e21b81526004810186905290516060936001600160a01b039093169263ef7c8f9c9260248082019391829003018186803b1580156105a657600080fd5b505afa1580156105ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156105e357600080fd5b8101908080516040519392919084600160201b82111561060257600080fd5b90830190602082018581111561061757600080fd5b8251600160201b81118282018810171561063057600080fd5b82525081516020918201929091019080838360005b8381101561065d578181015183820152602001610645565b50505050905090810190601f16801561068a5780820380516001836020036101000a031916815260200191505b5060408190526000805463276afb9160e21b835260206004840181815288516024860152885198995092976001600160a01b039092169650639dabee44955088945091928392604490910191908501908083838b5b838110156106f75781810151838201526020016106df565b50505050905090810190601f1680156107245780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561074157600080fd5b505afa158015610755573d6000803e3d6000fd5b505050506040513d602081101561076b57600080fd5b50519050600061077b8387610797565b905061078d828263ffffffff610b9016565b9695505050505050565b6000805460405163d12f5e6960e01b81526020600482018181528651602484015286516060946001600160a01b03169363d12f5e69938993928392604401918501908083838c5b838110156107f65781810151838201526020016107de565b50505050905090810190601f1680156108235780820380516001836020036101000a031916815260200191505b509250505060006040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561087d57600080fd5b8101908080516040519392919084600160201b82111561089c57600080fd5b9083019060208201858111156108b157600080fd5b82518660208202830111600160201b821117156108cd57600080fd5b82525081516020918201928201910280838360005b838110156108fa5781810151838201526020016108e2565b505050509050016040525050509050600080600090505b825181101561095657846001600160a01b031683828151811061093057fe5b60200260200101516001600160a01b0316141561094e576001909101905b600101610911565b50949350505050565b6060600061096d8484610797565b6000805460405163d12f5e6960e01b81526020600482018181528951602484015289519596506060956001600160a01b039094169463d12f5e69948b94929384936044019290860191908190849084905b838110156109d65781810151838201526020016109be565b50505050905090810190601f168015610a035780820380516001836020036101000a031916815260200191505b509250505060006040518083038186803b158015610a2057600080fd5b505afa158015610a34573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610a5d57600080fd5b8101908080516040519392919084600160201b821115610a7c57600080fd5b908301906020820185811115610a9157600080fd5b82518660208202830111600160201b82111715610aad57600080fd5b82525081516020918201928201910280838360005b83811015610ada578181015183820152602001610ac2565b50505050905001604052505050905081604051908082528060200260200182016040528015610b13578160200160208202803883390190505b5092506000805b8251811015610b7757856001600160a01b0316838281518110610b3957fe5b60200260200101516001600160a01b03161415610b6f5780858381518110610b5d57fe5b60209081029190910101526001909101905b600101610b1a565b5050505092915050565b6000546001600160a01b031681565b600082610b9f575060006104c7565b82820282848281610bac57fe5b0414610be95760405162461bcd60e51b8152600401808060200182810382526021815260200180610bf16021913960400191505060405180910390fd5b939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158204f7ce23ecbefa1ba4ed31b7fc9dafa7070304a34b0712e469aeadae0bc3935fe64736f6c63430005110032",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80630fdb54d21461005c57806376e09d1d1461009a5780637c531a77146100c6578063cb62c50d14610175578063e8e0bb5414610274575b600080fd5b6100886004803603604081101561007257600080fd5b506001600160a01b038135169060200135610298565b60408051918252519081900360200190f35b610088600480360360408110156100b057600080fd5b506001600160a01b0381351690602001356104cd565b610088600480360360408110156100dc57600080fd5b810190602081018135600160201b8111156100f657600080fd5b82018360208201111561010857600080fd5b803590602001918460018302840111600160201b8311171561012957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b031691506107979050565b6102246004803603604081101561018b57600080fd5b810190602081018135600160201b8111156101a557600080fd5b8201836020820111156101b757600080fd5b803590602001918460018302840111600160201b831117156101d857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b0316915061095f9050565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610260578181015183820152602001610248565b505050509050019250505060405180910390f35b61027c610b81565b604080516001600160a01b039092168252519081900360200190f35b6000805460408051633bdf23e760e21b81526004810185905290516060926001600160a01b03169163ef7c8f9c9160248083019287929190829003018186803b1580156102e457600080fd5b505afa1580156102f8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561032157600080fd5b8101908080516040519392919084600160201b82111561034057600080fd5b90830190602082018581111561035557600080fd5b8251600160201b81118282018810171561036e57600080fd5b82525081516020918201929091019080838360005b8381101561039b578181015183820152602001610383565b50505050905090810190601f1680156103c85780820380516001836020036101000a031916815260200191505b50604081905260008054632d6f8f3160e01b83526020600484018181528851602486015288519899506001600160a01b0390921697632d6f8f31975089965091945084936044019290860191908190849084905b8381101561043457818101518382015260200161041c565b50505050905090810190601f1680156104615780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561047e57600080fd5b505afa158015610492573d6000803e3d6000fd5b505050506040513d60208110156104a857600080fd5b5051156104c1576104b984846104cd565b9150506104c7565b60009150505b92915050565b600080546040805163376f7a1160e01b81526001600160a01b038681166004830152602482018690529151919092169163376f7a11916044808301926020929190829003018186803b15801561052257600080fd5b505afa158015610536573d6000803e3d6000fd5b505050506040513d602081101561054c57600080fd5b50511561055b575060006104c7565b6000805460408051633bdf23e760e21b81526004810186905290516060936001600160a01b039093169263ef7c8f9c9260248082019391829003018186803b1580156105a657600080fd5b505afa1580156105ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156105e357600080fd5b8101908080516040519392919084600160201b82111561060257600080fd5b90830190602082018581111561061757600080fd5b8251600160201b81118282018810171561063057600080fd5b82525081516020918201929091019080838360005b8381101561065d578181015183820152602001610645565b50505050905090810190601f16801561068a5780820380516001836020036101000a031916815260200191505b5060408190526000805463276afb9160e21b835260206004840181815288516024860152885198995092976001600160a01b039092169650639dabee44955088945091928392604490910191908501908083838b5b838110156106f75781810151838201526020016106df565b50505050905090810190601f1680156107245780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561074157600080fd5b505afa158015610755573d6000803e3d6000fd5b505050506040513d602081101561076b57600080fd5b50519050600061077b8387610797565b905061078d828263ffffffff610b9016565b9695505050505050565b6000805460405163d12f5e6960e01b81526020600482018181528651602484015286516060946001600160a01b03169363d12f5e69938993928392604401918501908083838c5b838110156107f65781810151838201526020016107de565b50505050905090810190601f1680156108235780820380516001836020036101000a031916815260200191505b509250505060006040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561087d57600080fd5b8101908080516040519392919084600160201b82111561089c57600080fd5b9083019060208201858111156108b157600080fd5b82518660208202830111600160201b821117156108cd57600080fd5b82525081516020918201928201910280838360005b838110156108fa5781810151838201526020016108e2565b505050509050016040525050509050600080600090505b825181101561095657846001600160a01b031683828151811061093057fe5b60200260200101516001600160a01b0316141561094e576001909101905b600101610911565b50949350505050565b6060600061096d8484610797565b6000805460405163d12f5e6960e01b81526020600482018181528951602484015289519596506060956001600160a01b039094169463d12f5e69948b94929384936044019290860191908190849084905b838110156109d65781810151838201526020016109be565b50505050905090810190601f168015610a035780820380516001836020036101000a031916815260200191505b509250505060006040518083038186803b158015610a2057600080fd5b505afa158015610a34573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610a5d57600080fd5b8101908080516040519392919084600160201b821115610a7c57600080fd5b908301906020820185811115610a9157600080fd5b82518660208202830111600160201b82111715610aad57600080fd5b82525081516020918201928201910280838360005b83811015610ada578181015183820152602001610ac2565b50505050905001604052505050905081604051908082528060200260200182016040528015610b13578160200160208202803883390190505b5092506000805b8251811015610b7757856001600160a01b0316838281518110610b3957fe5b60200260200101516001600160a01b03161415610b6f5780858381518110610b5d57fe5b60209081029190910101526001909101905b600101610b1a565b5050505092915050565b6000546001600160a01b031681565b600082610b9f575060006104c7565b82820282848281610bac57fe5b0414610be95760405162461bcd60e51b8152600401808060200182810382526021815260200180610bf16021913960400191505060405180910390fd5b939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a723158204f7ce23ecbefa1ba4ed31b7fc9dafa7070304a34b0712e469aeadae0bc3935fe64736f6c63430005110032",
"networks": {
"1": {
"events": {},
"links": {},
"address": "0x3975CE253fF9d586cF08C3898f95064b7a5718E7",
"transactionHash": "0xf30f60e7de9c391f514a8922bda7bc50d48fd78f709b5e9aa188a75df48fac78"
}
},
"schemaVersion": "3.1.0",
"updatedAt": "2020-09-10T12:53:25.190Z",
"networkType": "ethereum"
}