-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathOptimismRootGauge.json
181 lines (181 loc) · 22 KB
/
OptimismRootGauge.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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"_format": "hh-sol-artifact-1",
"contractName": "OptimismRootGauge",
"sourceName": "contracts/gauges/optimism/OptimismRootGauge.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IBalancerMinter",
"name": "minter",
"type": "address"
},
{
"internalType": "contract IL1StandardBridge",
"name": "optimismL1StandardBridge",
"type": "address"
},
{
"internalType": "address",
"name": "optimismBal",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "periodTime",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "periodEmissions",
"type": "uint256"
}
],
"name": "Checkpoint",
"type": "event"
},
{
"inputs": [],
"name": "checkpoint",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "getOptimismBal",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOptimismBridge",
"outputs": [
{
"internalType": "contract IL1StandardBridge",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRecipient",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "integrate_fraction",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "is_killed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "killGauge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "unkillGauge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "user_checkpoint",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
}
],
"bytecode": "0x6101e06040523480156200001257600080fd5b50604051620014a8380380620014a8833981810160405260608110156200003857600080fd5b50805160208083015160409384015160016000908155855163e6dec36f60e01b81529551949592949193869391926001600160a01b0385169263e6dec36f926004808301939192829003018186803b1580156200009457600080fd5b505afa158015620000a9573d6000803e3d6000fd5b505050506040513d6020811015620000c057600080fd5b50516040805163c003969960e01b815290519192506000916001600160a01b0384169163c0039699916004808301926020929190829003018186803b1580156200010957600080fd5b505afa1580156200011e573d6000803e3d6000fd5b505050506040513d60208110156200013557600080fd5b505160408051632c6f4d6f60e11b815290519192506000916001600160a01b038616916358de9ade916004808301926020929190829003018186803b1580156200017e57600080fd5b505afa15801562000193573d6000803e3d6000fd5b505050506040513d6020811015620001aa57600080fd5b50516001600160601b0319606084811b821660805285811b821660a05286811b821660c05282901b1660e052604080516303e1469160e61b815290519192506001600160a01b0383169163f851a44091600480820192602092909190829003018186803b1580156200021b57600080fd5b505afa15801562000230573d6000803e3d6000fd5b505050506040513d60208110156200024757600080fd5b505160601b6001600160601b0319166101005260408051635c3dab0b60e11b815290516001600160a01b0385169163b87b5616916004808301926020929190829003018186803b1580156200029b57600080fd5b505afa158015620002b0573d6000803e3d6000fd5b505050506040513d6020811015620002c757600080fd5b505161012052604080516321609bbf60e01b815290516001600160a01b038516916321609bbf916004808301926020929190829003018186803b1580156200030e57600080fd5b505afa15801562000323573d6000803e3d6000fd5b505050506040513d60208110156200033a57600080fd5b505161014052604080516303f7d6c760e51b815290516001600160a01b03851691637efad8e0916004808301926020929190829003018186803b1580156200038157600080fd5b505afa15801562000396573d6000803e3d6000fd5b505050506040513d6020811015620003ad57600080fd5b505161016052505060001960025550506001600160601b0319606092831b81166101805290821b166101a05233901b6101c0525060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205161014051610160516101805160601c6101a05160601c6101c05160601c611006620004a260003980610bca5250806103295280610b9d5250806102ff5280610a6f5280610b515250806106f95250806106d85250806105a2528061074552508061036c52806104475280610937525080610530528061063452508061083b525080610d985280610e95525080610a335280610b7b52506110066000f3fe6080604052600436106100b15760003560e01c80639c868ac011610069578063c2c4c5c11161004e578063c2c4c5c1146101f0578063c4d66de8146101f8578063d34fb26714610238576100b1565b80639c868ac0146101c4578063ab8f0945146101d9576100b1565b80632d8411af1161009a5780632d8411af146101465780634b8200931461015b57806360b630c4146101af576100b1565b806309400707146100b65780631b88094d14610108575b600080fd5b3480156100c257600080fd5b506100f6600480360360208110156100d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661024d565b60408051918252519081900360200190f35b34801561011457600080fd5b5061011d6102db565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561015257600080fd5b5061011d6102fd565b34801561016757600080fd5b5061019b6004803603602081101561017e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610321565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b5061011d610327565b3480156101d057600080fd5b5061019b61034b565b3480156101e557600080fd5b506101ee610354565b005b61019b610425565b34801561020457600080fd5b506101ee6004803603602081101561021b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108cb565b34801561024457600080fd5b506101ee61091f565b600073ffffffffffffffffffffffffffffffffffffffff821630146102d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f47617567652063616e206f6e6c79206d696e7420666f7220697473656c660000604482015290519081900360640190fd5b505060045490565b600554610100900473ffffffffffffffffffffffffffffffffffffffff165b90565b7f000000000000000000000000000000000000000000000000000000000000000090565b50600190565b7f000000000000000000000000000000000000000000000000000000000000000090565b60055460ff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103f857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600061042f6109ed565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b60025460006104e0610a06565b9050808210156108bd57604080517f615e5237000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163615e523791602480830192600092919082900301818387803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b5050600180546003549590910194909250600091507f000000000000000000000000000000000000000000000000000000000000000001845b8560ff018110156107d057848111156105dc576107d0565b604080517fd3078c9400000000000000000000000000000000000000000000000000000000815230600482015262093a808302602482018190529151600091829173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163d3078c9491604480830192602092919082900301818787803b15801561067b57600080fd5b505af115801561068f573d6000803e3d6000fd5b505050506040513d60208110156106a557600080fd5b505190508285108015906106bd57508262093a800185105b1561077657828503670de0b6b3a764000082890282020492507f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089028161072157fe5b04975062093a80819003670de0b6b3a7640000838a02820260018b905560038990557f0000000000000000000000000000000000000000000000000000000000000000909801970493909301925061078b9050565b670de0b6b3a764000062093a80828902020491505b60408051838152905184917f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced919081900360200190a2509390930192506001016105c4565b506002849055600480548301905581158015906107f0575060055460ff16155b156108b957604080517f6a627842000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b506108b9905082610a31565b5050505b6001925050506102fa610d1e565b6108d3610d25565b6005805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146109c357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6109ff60026000541415610190610f2d565b6002600055565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62093a8042040190565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ae257600080fd5b505af1158015610af6573d6000803e3d6000fd5b505050506040513d6020811015610b0c57600080fd5b5050600554604080517fa0566e72000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169363838b2520937f0000000000000000000000000000000000000000000000000000000000000000937f00000000000000000000000000000000000000000000000000000000000000009361010090930483169288927f00000000000000000000000000000000000000000000000000000000000000009091169163a0566e7291600480820192602092909190829003018186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d6020811015610c3d57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e089901b16815273ffffffffffffffffffffffffffffffffffffffff96871660048201529486166024860152929094166044840152606483015263ffffffff909216608482015260c060a4820152600260c48201527f307800000000000000000000000000000000000000000000000000000000000060e4820152905161010480830192600092919082900301818387803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b5050505050565b6001600055565b60025415610d9457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632c4e722e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfc57600080fd5b505afa158015610e10573d6000803e3d6000fd5b505050506040513d6020811015610e2657600080fd5b5051905080610e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610fad6024913960400191505060405180910390fd5b6001819055610e8d610a06565b6002819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a228bced6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610efb57600080fd5b505af1158015610f0f573d6000803e3d6000fd5b505050506040513d6020811015610f2557600080fd5b505160035550565b81610f3b57610f3b81610f3f565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fdfe42616c616e636572546f6b656e41646d696e206e6f742079657420616374697661746564a264697066735822122026c4dfe21ccd5b1ccc393f2e6c38f090bc6c0f102a9446c04b48acfa8b1c794664736f6c63430007010033",
"deployedBytecode": "0x6080604052600436106100b15760003560e01c80639c868ac011610069578063c2c4c5c11161004e578063c2c4c5c1146101f0578063c4d66de8146101f8578063d34fb26714610238576100b1565b80639c868ac0146101c4578063ab8f0945146101d9576100b1565b80632d8411af1161009a5780632d8411af146101465780634b8200931461015b57806360b630c4146101af576100b1565b806309400707146100b65780631b88094d14610108575b600080fd5b3480156100c257600080fd5b506100f6600480360360208110156100d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661024d565b60408051918252519081900360200190f35b34801561011457600080fd5b5061011d6102db565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561015257600080fd5b5061011d6102fd565b34801561016757600080fd5b5061019b6004803603602081101561017e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610321565b604080519115158252519081900360200190f35b3480156101bb57600080fd5b5061011d610327565b3480156101d057600080fd5b5061019b61034b565b3480156101e557600080fd5b506101ee610354565b005b61019b610425565b34801561020457600080fd5b506101ee6004803603602081101561021b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166108cb565b34801561024457600080fd5b506101ee61091f565b600073ffffffffffffffffffffffffffffffffffffffff821630146102d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f47617567652063616e206f6e6c79206d696e7420666f7220697473656c660000604482015290519081900360640190fd5b505060045490565b600554610100900473ffffffffffffffffffffffffffffffffffffffff165b90565b7f000000000000000000000000000000000000000000000000000000000000000090565b50600190565b7f000000000000000000000000000000000000000000000000000000000000000090565b60055460ff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103f857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600061042f6109ed565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146104d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b60025460006104e0610a06565b9050808210156108bd57604080517f615e5237000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163615e523791602480830192600092919082900301818387803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b5050600180546003549590910194909250600091507f000000000000000000000000000000000000000000000000000000000000000001845b8560ff018110156107d057848111156105dc576107d0565b604080517fd3078c9400000000000000000000000000000000000000000000000000000000815230600482015262093a808302602482018190529151600091829173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163d3078c9491604480830192602092919082900301818787803b15801561067b57600080fd5b505af115801561068f573d6000803e3d6000fd5b505050506040513d60208110156106a557600080fd5b505190508285108015906106bd57508262093a800185105b1561077657828503670de0b6b3a764000082890282020492507f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089028161072157fe5b04975062093a80819003670de0b6b3a7640000838a02820260018b905560038990557f0000000000000000000000000000000000000000000000000000000000000000909801970493909301925061078b9050565b670de0b6b3a764000062093a80828902020491505b60408051838152905184917f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced919081900360200190a2509390930192506001016105c4565b506002849055600480548301905581158015906107f0575060055460ff16155b156108b957604080517f6a627842000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b506108b9905082610a31565b5050505b6001925050506102fa610d1e565b6108d3610d25565b6005805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146109c357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6109ff60026000541415610190610f2d565b6002600055565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62093a8042040190565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ae257600080fd5b505af1158015610af6573d6000803e3d6000fd5b505050506040513d6020811015610b0c57600080fd5b5050600554604080517fa0566e72000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169363838b2520937f0000000000000000000000000000000000000000000000000000000000000000937f00000000000000000000000000000000000000000000000000000000000000009361010090930483169288927f00000000000000000000000000000000000000000000000000000000000000009091169163a0566e7291600480820192602092909190829003018186803b158015610c1357600080fd5b505afa158015610c27573d6000803e3d6000fd5b505050506040513d6020811015610c3d57600080fd5b5051604080517fffffffff0000000000000000000000000000000000000000000000000000000060e089901b16815273ffffffffffffffffffffffffffffffffffffffff96871660048201529486166024860152929094166044840152606483015263ffffffff909216608482015260c060a4820152600260c48201527f307800000000000000000000000000000000000000000000000000000000000060e4820152905161010480830192600092919082900301818387803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b5050505050565b6001600055565b60025415610d9457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632c4e722e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610dfc57600080fd5b505afa158015610e10573d6000803e3d6000fd5b505050506040513d6020811015610e2657600080fd5b5051905080610e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610fad6024913960400191505060405180910390fd5b6001819055610e8d610a06565b6002819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a228bced6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610efb57600080fd5b505af1158015610f0f573d6000803e3d6000fd5b505050506040513d6020811015610f2557600080fd5b505160035550565b81610f3b57610f3b81610f3f565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fdfe42616c616e636572546f6b656e41646d696e206e6f742079657420616374697661746564a264697066735822122026c4dfe21ccd5b1ccc393f2e6c38f090bc6c0f102a9446c04b48acfa8b1c794664736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}