forked from balancer/balancer-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SNXRecoveryCoordinator.json
218 lines (218 loc) · 19.9 KB
/
SNXRecoveryCoordinator.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{
"_format": "hh-sol-artifact-1",
"contractName": "SNXRecoveryCoordinator",
"sourceName": "contracts/20220606-snx-recovery/SNXRecoveryCoordinator.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IAuthorizerAdaptor",
"name": "authorizerAdaptor",
"type": "address"
},
{
"internalType": "contract IProtocolFeesWithdrawer",
"name": "_protocolFeesWithdrawer",
"type": "address"
},
{
"internalType": "contract IERC20[]",
"name": "_tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_refundAmounts",
"type": "uint256[]"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
}
],
"name": "getActionId",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAuthorizer",
"outputs": [
{
"internalType": "contract IAuthorizer",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getAuthorizerAdaptor",
"outputs": [
{
"internalType": "contract IAuthorizerAdaptor",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentStage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "stage",
"type": "uint256"
}
],
"name": "getStageActivationTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStagesLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isComplete",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "performNextStage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "protocolFeesWithdrawer",
"outputs": [
{
"internalType": "contract IProtocolFeesWithdrawer",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "refundAmounts",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "registerStages",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "tokens",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x6101006040523480156200001257600080fd5b50604051620011e5380380620011e5833981810160405260808110156200003857600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200006457600080fd5b9083019060208201858111156200007a57600080fd5b82518660208202830111640100000000821117156200009857600080fd5b82525081516020918201928201910280838360005b83811015620000c7578181015183820152602001620000ad565b5050505090500160405260200180516040519392919084640100000000821115620000f157600080fd5b9083019060208201858111156200010757600080fd5b82518660208202830111640100000000821117156200012557600080fd5b82525081516020918201928201910280838360005b83811015620001545781810151838201526020016200013a565b5050505090500160405250505083806001600160a01b0316638d928af86040518163ffffffff1660e01b815260040160206040518083038186803b1580156200019c57600080fd5b505afa158015620001b1573d6000803e3d6000fd5b505050506040513d6020811015620001c857600080fd5b505130608052606090811b6001600160601b031990811660a052600160005591901b1660c052815181516200020b9082906200034d602090811b6200057617901c565b60005b818110156200030357846001600160a01b031663cdf0e9348583815181106200023357fe5b60200260200101516040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156200027957600080fd5b505afa1580156200028e573d6000803e3d6000fd5b505050506040513d6020811015620002a557600080fd5b505115620002fa576040805162461bcd60e51b815260206004820152601d60248201527f546f6b656e20697320616c726561647920776974686472617761626c65000000604482015290519081900360640190fd5b6001016200020e565b506001600160601b0319606085901b1660e05282516200032b906003906020860190620003b8565b5081516200034190600490602085019062000422565b505050505050620004a6565b6200035c828214606762000360565b5050565b816200035c5762461bcd60e51b600090815260206004526007602452600a808304818104828106603090810160101b848706949093060160081b92909201016642414c230000300160c81b6044526200035c91606490fd5b82805482825590600052602060002090810192821562000410579160200282015b828111156200041057825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190620003d9565b506200041e9291506200046e565b5090565b82805482825590600052602060002090810192821562000460579160200282015b828111156200046057825182559160200191906001019062000443565b506200041e9291506200048f565b5b808211156200041e5780546001600160a01b03191681556001016200046f565b5b808211156200041e576000815560010162000490565b60805160a05160601c60c05160601c60e05160601c610cec620004f960003980610215528061061a52806106fa52806109b15280610a8f52508061054e5250806104155250806103a85250610cec6000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80638d928af81161008c578063d6076a6c11610066578063d6076a6c146101f3578063da28cef7146101fb578063e758d36b14610203578063eedbe31d1461020b576100df565b80638d928af8146101c7578063aaabadc5146101cf578063b2fa1c9e146101d7576100df565b80634f64b2be116100bd5780634f64b2be1461014e57806381f443c81461016b578063851c1bb314610188576100df565b80631ac1069f146100e45780631f24cfc7146101155780632b1161721461011f575b600080fd5b6100ec610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61011d610237565b005b61013c6004803603602081101561013557600080fd5b503561032f565b60408051918252519081900360200190f35b6100ec6004803603602081101561016457600080fd5b5035610350565b61013c6004803603602081101561018157600080fd5b5035610384565b61013c6004803603602081101561019e57600080fd5b50357fffffffff00000000000000000000000000000000000000000000000000000000166103a2565b6100ec610413565b6100ec610437565b6101df6104b7565b604080519115158252519081900360200190f35b61011d6104d0565b61013c610546565b6100ec61054c565b61013c610570565b7f000000000000000000000000000000000000000000000000000000000000000081565b61023f610587565b610247610546565b610253576102536105a0565b61025b6104b7565b156102c757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f416c6c2073746167657320636f6d706c65746564000000000000000000000000604482015290519081900360640190fd5b60006102d1610570565b905061031c600182815481106102e357fe5b90600052602060002090600491828204019190066008029054906101000a90048015610c8f021767ffffffffffffffff1663ffffffff16565b6103246105ab565b5061032d6105f6565b565b60006002828154811061033e57fe5b90600052602060002001549050919050565b6003818154811061035d57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6004818154811061039157fe5b600091825260209091200154905081565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610441610413565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d60208110156104b057600080fd5b5051905090565b60006104c1610546565b6104c9610570565b1015905090565b6104d8610587565b6104e0610546565b15610536576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610c926025913960400191505060405180910390fd5b61053e6105a0565b61032d6105f6565b60015490565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b61058381831460676105fd565b5050565b610599600260005414156101906105fd565b6002600055565b61032d61060b6108d8565b60028054600181018255600091909152427f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace909101556105e96104b7565b1561032d5761032d61093b565b6001600055565b816105835761058381610c22565b60005b6003548110156106f7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663de0b27c96003838154811061066157fe5b6000918252602082200154604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9092166004830152516024808301939282900301818387803b1580156106d357600080fd5b505af11580156106e7573d6000803e3d6000fd5b50506001909201915061060e9050565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636daefab66003600461074061054c565b73ffffffffffffffffffffffffffffffffffffffff16638d928af86040518163ffffffff1660e01b815260040160206040518083038186803b15801561078557600080fd5b505afa158015610799573d6000803e3d6000fd5b505050506040513d60208110156107af57600080fd5b50516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff82166044820152606060048201908152845460648301819052909182916024820191608401908790801561085c57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610831575b5050838103825285818154815260200191508054801561089b57602002820191906000526020600020905b815481526020019060010190808311610887575b505095505050505050600060405180830381600087803b1580156108be57600080fd5b505af11580156108d2573d6000803e3d6000fd5b50505050565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf66004820401805460039092166008026101000a67ffffffffffffffff818102199093169390921691909102919091179055565b6000610945610437565b604080517f851c1bb30000000000000000000000000000000000000000000000000000000081527f6daefab6000000000000000000000000000000000000000000000000000000006004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163851c1bb3916024808301926020929190829003018186803b1580156109f757600080fd5b505afa158015610a0b573d6000803e3d6000fd5b505050506040513d6020811015610a2157600080fd5b5051604080517f851c1bb30000000000000000000000000000000000000000000000000000000081527fde0b27c9000000000000000000000000000000000000000000000000000000006004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163851c1bb3916024808301926020929190829003018186803b158015610ad557600080fd5b505afa158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b5051604080517f36568abe00000000000000000000000000000000000000000000000000000000815260048101859052306024820152905191925073ffffffffffffffffffffffffffffffffffffffff8516916336568abe9160448082019260009290919082900301818387803b158015610b7957600080fd5b505af1158015610b8d573d6000803e3d6000fd5b5050604080517f36568abe00000000000000000000000000000000000000000000000000000000815260048101859052306024820152905173ffffffffffffffffffffffffffffffffffffffff871693506336568abe9250604480830192600092919082900301818387803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b50505050505050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5bfefe436f6f7264696e61746f722073746167657320616c72656164792072656769737465726564a264697066735822122069bc83369dd9141239e81f48954ad7eae05ad22f6bc1759167050c1b1497fa0b64736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100df5760003560e01c80638d928af81161008c578063d6076a6c11610066578063d6076a6c146101f3578063da28cef7146101fb578063e758d36b14610203578063eedbe31d1461020b576100df565b80638d928af8146101c7578063aaabadc5146101cf578063b2fa1c9e146101d7576100df565b80634f64b2be116100bd5780634f64b2be1461014e57806381f443c81461016b578063851c1bb314610188576100df565b80631ac1069f146100e45780631f24cfc7146101155780632b1161721461011f575b600080fd5b6100ec610213565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61011d610237565b005b61013c6004803603602081101561013557600080fd5b503561032f565b60408051918252519081900360200190f35b6100ec6004803603602081101561016457600080fd5b5035610350565b61013c6004803603602081101561018157600080fd5b5035610384565b61013c6004803603602081101561019e57600080fd5b50357fffffffff00000000000000000000000000000000000000000000000000000000166103a2565b6100ec610413565b6100ec610437565b6101df6104b7565b604080519115158252519081900360200190f35b61011d6104d0565b61013c610546565b6100ec61054c565b61013c610570565b7f000000000000000000000000000000000000000000000000000000000000000081565b61023f610587565b610247610546565b610253576102536105a0565b61025b6104b7565b156102c757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f416c6c2073746167657320636f6d706c65746564000000000000000000000000604482015290519081900360640190fd5b60006102d1610570565b905061031c600182815481106102e357fe5b90600052602060002090600491828204019190066008029054906101000a90048015610c8f021767ffffffffffffffff1663ffffffff16565b6103246105ab565b5061032d6105f6565b565b60006002828154811061033e57fe5b90600052602060002001549050919050565b6003818154811061035d57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b6004818154811061039157fe5b600091825260209091200154905081565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610441610413565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561048657600080fd5b505afa15801561049a573d6000803e3d6000fd5b505050506040513d60208110156104b057600080fd5b5051905090565b60006104c1610546565b6104c9610570565b1015905090565b6104d8610587565b6104e0610546565b15610536576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180610c926025913960400191505060405180910390fd5b61053e6105a0565b61032d6105f6565b60015490565b7f000000000000000000000000000000000000000000000000000000000000000090565b60025490565b61058381831460676105fd565b5050565b610599600260005414156101906105fd565b6002600055565b61032d61060b6108d8565b60028054600181018255600091909152427f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace909101556105e96104b7565b1561032d5761032d61093b565b6001600055565b816105835761058381610c22565b60005b6003548110156106f7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663de0b27c96003838154811061066157fe5b6000918252602082200154604080517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff9092166004830152516024808301939282900301818387803b1580156106d357600080fd5b505af11580156106e7573d6000803e3d6000fd5b50506001909201915061060e9050565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636daefab66003600461074061054c565b73ffffffffffffffffffffffffffffffffffffffff16638d928af86040518163ffffffff1660e01b815260040160206040518083038186803b15801561078557600080fd5b505afa158015610799573d6000803e3d6000fd5b505050506040513d60208110156107af57600080fd5b50516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815273ffffffffffffffffffffffffffffffffffffffff82166044820152606060048201908152845460648301819052909182916024820191608401908790801561085c57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610831575b5050838103825285818154815260200191508054801561089b57602002820191906000526020600020905b815481526020019060010190808311610887575b505095505050505050600060405180830381600087803b1580156108be57600080fd5b505af11580156108d2573d6000803e3d6000fd5b50505050565b6001805480820182556000919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf66004820401805460039092166008026101000a67ffffffffffffffff818102199093169390921691909102919091179055565b6000610945610437565b604080517f851c1bb30000000000000000000000000000000000000000000000000000000081527f6daefab6000000000000000000000000000000000000000000000000000000006004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163851c1bb3916024808301926020929190829003018186803b1580156109f757600080fd5b505afa158015610a0b573d6000803e3d6000fd5b505050506040513d6020811015610a2157600080fd5b5051604080517f851c1bb30000000000000000000000000000000000000000000000000000000081527fde0b27c9000000000000000000000000000000000000000000000000000000006004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163851c1bb3916024808301926020929190829003018186803b158015610ad557600080fd5b505afa158015610ae9573d6000803e3d6000fd5b505050506040513d6020811015610aff57600080fd5b5051604080517f36568abe00000000000000000000000000000000000000000000000000000000815260048101859052306024820152905191925073ffffffffffffffffffffffffffffffffffffffff8516916336568abe9160448082019260009290919082900301818387803b158015610b7957600080fd5b505af1158015610b8d573d6000803e3d6000fd5b5050604080517f36568abe00000000000000000000000000000000000000000000000000000000815260048101859052306024820152905173ffffffffffffffffffffffffffffffffffffffff871693506336568abe9250604480830192600092919082900301818387803b158015610c0557600080fd5b505af1158015610c19573d6000803e3d6000fd5b50505050505050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5bfefe436f6f7264696e61746f722073746167657320616c72656164792072656769737465726564a264697066735822122069bc83369dd9141239e81f48954ad7eae05ad22f6bc1759167050c1b1497fa0b64736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}