forked from balancer/balancer-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProtocolIdRegistry.json
179 lines (179 loc) · 17.1 KB
/
ProtocolIdRegistry.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
{
"_format": "hh-sol-artifact-1",
"contractName": "ProtocolIdRegistry",
"sourceName": "contracts/ProtocolIdRegistry.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IVault",
"name": "vault",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "ProtocolIdRegistered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "ProtocolIdRenamed",
"type": "event"
},
{
"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": [
{
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
}
],
"name": "getProtocolName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
}
],
"name": "isValidProtocolId",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
},
{
"internalType": "string",
"name": "name",
"type": "string"
}
],
"name": "registerProtocolId",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "protocolId",
"type": "uint256"
},
{
"internalType": "string",
"name": "newName",
"type": "string"
}
],
"name": "renameProtocolId",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x60c06040523480156200001157600080fd5b506040516200109e3803806200109e833981016040819052620000349162000565565b306080526001600160601b0319606082901b1660a0526040805180820190915260078152664161766520763160c81b60208201526200007690600090620003e7565b620000a860016040518060400160405280600781526020016620b0bb32903b1960c91b815250620003e760201b60201c565b620000da6002604051806040016040528060078152602001664161766520763360c81b815250620003e760201b60201c565b6200010f60036040518060400160405280600a815260200169082dae0d8caccdee4e8d60b31b815250620003e760201b60201c565b6200013f600460405180604001604052806005815260200164426565667960d81b815250620003e760201b60201c565b6040805180820190915260058082526422bab632b960d91b60208301526200016791620003e7565b6200019960066040518060400160405280600781526020016608ecac2e4c4def60cb1b815250620003e760201b60201c565b620001c860076040518060400160405280600481526020016349646c6560e01b815250620003e760201b60201c565b620001f96008604051806040016040528060068152602001654d6f7270686f60d01b815250620003e760201b60201c565b6200022b6009604051806040016040528060078152602001661498591a585b9d60ca1b815250620003e760201b60201c565b6200025c600a604051806040016040528060068152602001652932b0b832b960d11b815250620003e760201b60201c565b6200028b600b6040518060400160405280600481526020016353696c6f60e01b815250620003e760201b60201c565b620002be600c60405180604001604052806008815260200167537461726761746560c01b815250620003e760201b60201c565b620002ef600d6040518060400160405280600681526020016553747572647960d01b815250620003e760201b60201c565b62000321600e604051806040016040528060078152602001665465737365726160c81b815250620003e760201b60201c565b62000350600f604051806040016040528060048152602001635465747560e01b815250620003e760201b60201c565b620003806010604051806040016040528060058152602001642cb2b0b93760d91b815250620003e760201b60201c565b620003b06011604051806040016040528060058152602001644d6964617360d81b815250620003e760201b60201c565b620003e0601260405180604001604052806005815260200164416761766560d81b815250620003e760201b60201c565b5062000622565b620003f282620004b1565b156200041b5760405162461bcd60e51b81526004016200041290620005eb565b60405180910390fd5b60408051808201825282815260016020808301919091526000858152808252929092208151805192939192620004559284920190620004c9565b50602091909101516001909101805460ff191691151591909117905560405182907f55a433acac236e2d53f9f11a1f18341ef96abb545a8e67b6c72e705c5464d7e290620004a590849062000595565b60405180910390a25050565b60009081526020819052604090206001015460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200050c57805160ff19168380011785556200053c565b828001600101855582156200053c579182015b828111156200053c5782518255916020019190600101906200051f565b506200054a9291506200054e565b5090565b5b808211156200054a57600081556001016200054f565b60006020828403121562000577578081fd5b81516001600160a01b03811681146200058e578182fd5b9392505050565b6000602080835283518082850152825b81811015620005c357858101830151858201604001528201620005a5565b81811115620005d55783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f50726f746f636f6c20494420616c726561647920726567697374657265640000604082015260600190565b60805160a05160601c610a5562000649600039806101c45250806101745250610a556000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063851c1bb31161005b578063851c1bb3146100d35780638d928af8146100f3578063a2de104114610108578063aaabadc5146101285761007d565b80633585c4da146100825780633cae580a146100975780637f5d9817146100c0575b600080fd5b6100956100903660046107b5565b610130565b005b6100aa6100a536600461079d565b610146565b6040516100b791906108a8565b60405180910390f35b6100956100ce3660046107b5565b61015e565b6100e66100e1366004610729565b610170565b6040516100b791906108b3565b6100fb6101c2565b6040516100b791906108e8565b61011b61011636600461079d565b6101e6565b6040516100b79190610909565b6100fb6102ed565b610138610379565b61014282826103c2565b5050565b60009081526020819052604090206001015460ff1690565b610166610379565b610142828261045b565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016101a5929190610878565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6060816101f281610146565b610231576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610228906109e8565b60405180910390fd5b6000838152602081815260409182902080548351601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600186161502019093169290920491820184900484028101840190945280845290918301828280156102e05780601f106102b5576101008083540402835291602001916102e0565b820191906000526020600020905b8154815290600101906020018083116102c357829003601f168201915b5050505050915050919050565b60006102f76101c2565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561033c57600080fd5b505afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103749190610769565b905090565b60006103a86000357fffffffff0000000000000000000000000000000000000000000000000000000016610170565b90506103bf6103b7823361053f565b6101916105dc565b50565b6103cb82610146565b610401576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610228906109b1565b600082815260208181526040909120825161041e92840190610676565b50817f16e48aff252ad873213968111088e9dc04ca70fb770c5b5f6fdb74dfe40992158260405161044f9190610909565b60405180910390a25050565b61046482610146565b1561049b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102289061097a565b604080518082018252828152600160208083019190915260008581528082529290922081518051929391926104d39284920190610676565b5060209190910151600190910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560405182907f55a433acac236e2d53f9f11a1f18341ef96abb545a8e67b6c72e705c5464d7e29061044f908490610909565b60006105496102ed565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401610585939291906108bc565b60206040518083038186803b15801561059d57600080fd5b505afa1580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190610709565b9392505050565b81610142577f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b6044526101429183916103bf917f42414c0000000000000000000000000000000000000000000000000000000000906242414c90606490fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106106b757805160ff19168380011785556106e4565b828001600101855582156106e4579182015b828111156106e45782518255916020019190600101906106c9565b506106f09291506106f4565b5090565b5b808211156106f057600081556001016106f5565b60006020828403121561071a578081fd5b815180151581146105d5578182fd5b60006020828403121561073a578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146105d5578182fd5b60006020828403121561077a578081fd5b815173ffffffffffffffffffffffffffffffffffffffff811681146105d5578182fd5b6000602082840312156107ae578081fd5b5035919050565b600080604083850312156107c7578081fd5b8235915060208084013567ffffffffffffffff808211156107e6578384fd5b818601915086601f8301126107f9578384fd5b813581811115610807578485fd5b604051847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610844578687fd5b604052818152838201850189101561085a578586fd5b81858501868301378585838301015280955050505050509250929050565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff918216602084015216604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b6000602080835283518082850152825b8181101561093557858101830151858201604001528201610919565b818111156109465783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6020808252601e908201527f50726f746f636f6c20494420616c726561647920726567697374657265640000604082015260600190565b6020808252601a908201527f50726f746f636f6c204944206e6f742072656769737465726564000000000000604082015260600190565b60208082526018908201527f4e6f6e2d6578697374656e742070726f746f636f6c204944000000000000000060408201526060019056fea2646970667358221220b6a6a4542b1812cff32f5c38fcfe438ef2b4025dadf9a88a36fff10b1fc78bd364736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063851c1bb31161005b578063851c1bb3146100d35780638d928af8146100f3578063a2de104114610108578063aaabadc5146101285761007d565b80633585c4da146100825780633cae580a146100975780637f5d9817146100c0575b600080fd5b6100956100903660046107b5565b610130565b005b6100aa6100a536600461079d565b610146565b6040516100b791906108a8565b60405180910390f35b6100956100ce3660046107b5565b61015e565b6100e66100e1366004610729565b610170565b6040516100b791906108b3565b6100fb6101c2565b6040516100b791906108e8565b61011b61011636600461079d565b6101e6565b6040516100b79190610909565b6100fb6102ed565b610138610379565b61014282826103c2565b5050565b60009081526020819052604090206001015460ff1690565b610166610379565b610142828261045b565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016101a5929190610878565b604051602081830303815290604052805190602001209050919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6060816101f281610146565b610231576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610228906109e8565b60405180910390fd5b6000838152602081815260409182902080548351601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610100600186161502019093169290920491820184900484028101840190945280845290918301828280156102e05780601f106102b5576101008083540402835291602001916102e0565b820191906000526020600020905b8154815290600101906020018083116102c357829003601f168201915b5050505050915050919050565b60006102f76101c2565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561033c57600080fd5b505afa158015610350573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103749190610769565b905090565b60006103a86000357fffffffff0000000000000000000000000000000000000000000000000000000016610170565b90506103bf6103b7823361053f565b6101916105dc565b50565b6103cb82610146565b610401576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610228906109b1565b600082815260208181526040909120825161041e92840190610676565b50817f16e48aff252ad873213968111088e9dc04ca70fb770c5b5f6fdb74dfe40992158260405161044f9190610909565b60405180910390a25050565b61046482610146565b1561049b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102289061097a565b604080518082018252828152600160208083019190915260008581528082529290922081518051929391926104d39284920190610676565b5060209190910151600190910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560405182907f55a433acac236e2d53f9f11a1f18341ef96abb545a8e67b6c72e705c5464d7e29061044f908490610909565b60006105496102ed565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401610585939291906108bc565b60206040518083038186803b15801561059d57600080fd5b505afa1580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190610709565b9392505050565b81610142577f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b6044526101429183916103bf917f42414c0000000000000000000000000000000000000000000000000000000000906242414c90606490fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106106b757805160ff19168380011785556106e4565b828001600101855582156106e4579182015b828111156106e45782518255916020019190600101906106c9565b506106f09291506106f4565b5090565b5b808211156106f057600081556001016106f5565b60006020828403121561071a578081fd5b815180151581146105d5578182fd5b60006020828403121561073a578081fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146105d5578182fd5b60006020828403121561077a578081fd5b815173ffffffffffffffffffffffffffffffffffffffff811681146105d5578182fd5b6000602082840312156107ae578081fd5b5035919050565b600080604083850312156107c7578081fd5b8235915060208084013567ffffffffffffffff808211156107e6578384fd5b818601915086601f8301126107f9578384fd5b813581811115610807578485fd5b604051847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401168201018181108482111715610844578687fd5b604052818152838201850189101561085a578586fd5b81858501868301378585838301015280955050505050509250929050565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff918216602084015216604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b6000602080835283518082850152825b8181101561093557858101830151858201604001528201610919565b818111156109465783604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b6020808252601e908201527f50726f746f636f6c20494420616c726561647920726567697374657265640000604082015260600190565b6020808252601a908201527f50726f746f636f6c204944206e6f742072656769737465726564000000000000604082015260600190565b60208082526018908201527f4e6f6e2d6578697374656e742070726f746f636f6c204944000000000000000060408201526060019056fea2646970667358221220b6a6a4542b1812cff32f5c38fcfe438ef2b4025dadf9a88a36fff10b1fc78bd364736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}