-
Notifications
You must be signed in to change notification settings - Fork 39
/
BaseRootGaugeFactory.json
151 lines (151 loc) · 22.3 KB
/
BaseRootGaugeFactory.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
{
"_format": "hh-sol-artifact-1",
"contractName": "BaseRootGaugeFactory",
"sourceName": "contracts/gauges/base/BaseRootGaugeFactory.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IVault",
"name": "vault",
"type": "address"
},
{
"internalType": "contract IMainnetBalancerMinter",
"name": "minter",
"type": "address"
},
{
"internalType": "contract IL1StandardBridge",
"name": "baseL1StandardBridge",
"type": "address"
},
{
"internalType": "address",
"name": "baseBal",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "gauge",
"type": "address"
}
],
"name": "GaugeCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "relativeWeightCap",
"type": "uint256"
}
],
"name": "create",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"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": "getGaugeImplementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "gauge",
"type": "address"
}
],
"name": "isGaugeFromFactory",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60c060405234801561001057600080fd5b5060405161205738038061205783398101604081905261002f916100bf565b83306001600160a01b031660001b84848460405161004c906100b2565b6100589392919061011d565b604051809103906000f080158015610074573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b039290921691909117905560805260601b6001600160601b03191660a0525061015892505050565b6118d88061077f83390190565b600080600080608085870312156100d4578384fd5b84516100df81610140565b60208601519094506100f081610140565b604086015190935061010181610140565b606086015190925061011281610140565b939692955090935050565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6001600160a01b038116811461015557600080fd5b50565b60805160a05160601c61060161017e600039806102055250806101b452506106016000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638d928af8116100505780638d928af8146100c8578063aaabadc5146100d0578063ce3cc8bd146100d857610072565b80630ecaea731461007757806339312dee146100a0578063851c1bb3146100a8575b600080fd5b61008a61008536600461045d565b6100f8565b6040516100979190610514565b60405180910390f35b61008a610194565b6100bb6100b6366004610488565b6101b0565b6040516100979190610566565b61008a610203565b61008a610227565b6100eb6100e636600461043a565b6102b3565b604051610097919061055b565b6000806101036102de565b6040517fcd6dc68700000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063cd6dc6879061015a9087908790600401610535565b600060405180830381600087803b15801561017457600080fd5b505af1158015610188573d6000803e3d6000fd5b50929695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016101e59291906104e4565b6040516020818303038152906040528051906020012090505b919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610231610203565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561027657600080fd5b505afa15801561028a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ae91906104c8565b905090565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b6000805481906103039073ffffffffffffffffffffffffffffffffffffffff16610384565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169092179091555192935090917faa98436d09d130af48de49867af8b723bbbebb0d737638b5fe8f1bf31bbb71c09190a2905090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166101fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104319061056f565b60405180910390fd5b60006020828403121561044b578081fd5b8135610456816105a6565b9392505050565b6000806040838503121561046f578081fd5b823561047a816105a6565b946020939093013593505050565b600060208284031215610499578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610456578182fd5b6000602082840312156104d9578081fd5b8151610456816105a6565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b901515815260200190565b90815260200190565b60208082526016908201527f455243313136373a20637265617465206661696c656400000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff811681146105c857600080fd5b5056fea26469706673582212207522df29ff90608b283659dbb7ea1070d62546dfced00d477766e001643f17c364736f6c634300070100336101c06040523480156200001257600080fd5b50604051620018d8380380620018d8833981810160405260608110156200003857600080fd5b50805160208083015160409384015160016000908155855163e6dec36f60e01b81529551949592949193869391926001600160a01b0385169263e6dec36f926004808301939192829003018186803b1580156200009457600080fd5b505afa158015620000a9573d6000803e3d6000fd5b505050506040513d6020811015620000c057600080fd5b50516040805163c003969960e01b815290519192506000916001600160a01b0384169163c0039699916004808301926020929190829003018186803b1580156200010957600080fd5b505afa1580156200011e573d6000803e3d6000fd5b505050506040513d60208110156200013557600080fd5b505160408051632c6f4d6f60e11b815290519192506000916001600160a01b038616916358de9ade916004808301926020929190829003018186803b1580156200017e57600080fd5b505afa15801562000193573d6000803e3d6000fd5b505050506040513d6020811015620001aa57600080fd5b50516001600160601b0319606084811b821660805285811b821660a05286811b821660c05282901b1660e052604080516303e1469160e61b815290519192506001600160a01b0383169163f851a44091600480820192602092909190829003018186803b1580156200021b57600080fd5b505afa15801562000230573d6000803e3d6000fd5b505050506040513d60208110156200024757600080fd5b505160601b6001600160601b0319166101005260408051635c3dab0b60e11b815290516001600160a01b0385169163b87b5616916004808301926020929190829003018186803b1580156200029b57600080fd5b505afa158015620002b0573d6000803e3d6000fd5b505050506040513d6020811015620002c757600080fd5b505161012052604080516321609bbf60e01b815290516001600160a01b038516916321609bbf916004808301926020929190829003018186803b1580156200030e57600080fd5b505afa15801562000323573d6000803e3d6000fd5b505050506040513d60208110156200033a57600080fd5b505161014052604080516303f7d6c760e51b815290516001600160a01b03851691637efad8e0916004808301926020929190829003018186803b1580156200038157600080fd5b505afa15801562000396573d6000803e3d6000fd5b505050506040513d6020811015620003ad57600080fd5b505161016052505060001960025550506001600160601b0319606092831b811661018052911b166101a0525060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205161014051610160516101805160601c6101a05160601c61144662000492600039806106635280610d475250806105695280610cb95280610d975250806108a052508061087f52508061080252806108ec5250806103c352806105a352806106a75280610adb52508061046252806107905250806109e2525080610e745280610f71525080610c975280610d1f52506114466000f3fe6080604052600436106100e85760003560e01c80639f8676711161008a578063b4921aa311610059578063b4921aa3146102a5578063c2c4c5c1146102ba578063cd6dc687146102c2578063d34fb26714610308576100e8565b80639f86767114610251578063a267b63114610266578063ab8f09451461027b578063b024522514610290576100e8565b80631b88094d116100c65780631b88094d146101955780634b820093146101d357806383f5c39b146102275780639c868ac01461023c576100e8565b806309400707146100ed57806310d3eb041461013f57806314e956f51461016b575b600080fd5b3480156100f957600080fd5b5061012d6004803603602081101561011057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661031d565b60408051918252519081900360200190f35b34801561014b57600080fd5b506101696004803603602081101561016257600080fd5b50356103ab565b005b34801561017757600080fd5b5061012d6004803603602081101561018e57600080fd5b503561045b565b3480156101a157600080fd5b506101aa610529565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101df57600080fd5b50610213600480360360208110156101f657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610546565b604080519115158252519081900360200190f35b34801561023357600080fd5b5061012d61054c565b34801561024857600080fd5b50610213610552565b34801561025d57600080fd5b5061012d61055b565b34801561027257600080fd5b506101aa610567565b34801561028757600080fd5b5061016961058b565b34801561029c57600080fd5b5061012d61065c565b3480156102b157600080fd5b506101aa610661565b610213610685565b3480156102ce57600080fd5b50610169600480360360408110156102e557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a72565b34801561031457600080fd5b50610169610ac3565b600073ffffffffffffffffffffffffffffffffffffffff821630146103a357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f47617567652063616e206f6e6c79206d696e7420666f7220697473656c660000604482015290519081900360640190fd5b505060045490565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461044f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b61045881610b91565b50565b60006105237f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d3078c9430856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b1580156104ef57600080fd5b505afa158015610503573d6000803e3d6000fd5b505050506040513d602081101561051957600080fd5b5051600654610c2d565b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff165b90565b50600190565b60065490565b60055460ff1690565b670de0b6b3a764000081565b7f000000000000000000000000000000000000000000000000000000000000000090565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461062f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b600090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600061068f610c39565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461073357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b6002546000610740610c52565b905080821015610a6457604080517f615e5237000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163615e523791602480830192600092919082900301818387803b1580156107d757600080fd5b505af11580156107eb573d6000803e3d6000fd5b5050600180546003549590910194909250600091507f000000000000000000000000000000000000000000000000000000000000000001845b8560ff01811015610977578481111561083c57610977565b62093a80810260008061084e8361045b565b905082851015801561086457508262093a800185105b1561091d57828503670de0b6b3a764000082890282020492507f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000008902816108c857fe5b04975062093a80819003670de0b6b3a7640000838a02820260018b905560038990557f000000000000000000000000000000000000000000000000000000000000000090980197049390930192506109329050565b670de0b6b3a764000062093a80828902020491505b60408051838152905184917f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced919081900360200190a250939093019250600101610824565b50600284905560048054830190558115801590610997575060055460ff16155b15610a6057604080517f6a627842000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b158015610a2a57600080fd5b505af1158015610a3e573d6000803e3d6000fd5b505050506040513d6020811015610a5457600080fd5b50610a60905082610c7d565b5050505b600192505050610543610dfa565b610a7b81610e01565b50600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610b6757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b670de0b6b3a7640000811115610bf2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806113b96034913960400191505060405180910390fd5b60068190556040805182815290517f13e45870490f54cea50d245930d12102c72b502641ef6850d0b15a8c92decfb29181900360200190a150565b80820390821102900390565b610c4b60026000541415610190611013565b6002600055565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62093a8042040190565b610cde73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611021565b600754604080517f838b252000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301527f00000000000000000000000000000000000000000000000000000000000000008116602483015292831660448201526064810184905260006084820181905260c060a483015260c4820181905291517f00000000000000000000000000000000000000000000000000000000000000009093169263838b2520926101048084019391929182900301818387803b158015610ddf57600080fd5b505af1158015610df3573d6000803e3d6000fd5b5050505050565b6001600055565b60025415610e7057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632c4e722e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ed857600080fd5b505afa158015610eec573d6000803e3d6000fd5b505050506040513d6020811015610f0257600080fd5b5051905080610f5c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806113ed6024913960400191505060405180910390fd5b6001819055610f69610c52565b6002819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a228bced6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610fd757600080fd5b505af1158015610feb573d6000803e3d6000fd5b505050506040513d602081101561100157600080fd5b505160035561100f82610b91565b5050565b8161100f5761100f816111f7565b80158015906110d05750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156110a157600080fd5b505afa1580156110b5573d6000803e3d6000fd5b505050506040513d60208110156110cb57600080fd5b505115155b15611165576040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260006044808301919091528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b300000000000000000000000000000000000000000000000000000000179052611165908490611221565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001790526111f2908490611221565b505050565b610458817f42414c000000000000000000000000000000000000000000000000000000000061133d565b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b6020831061128a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161124d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146112ec576040519150601f19603f3d011682016040523d82523d6000602084013e6112f1565b606091505b50915091506000821415611309573d6000803e3d6000fd5b61133781516000148061132f575081806020019051602081101561132c57600080fd5b50515b6101a2611013565b50505050565b7f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808404818106603090810160081b958390069590950190829004918206850160101b01602363ffffff0060e086901c160160181b0190930160c81b60445260e882901c90606490fdfe52656c61746976652077656967687420636170206578636565647320616c6c6f776564206162736f6c757465206d6178696d756d42616c616e636572546f6b656e41646d696e206e6f742079657420616374697661746564a264697066735822122009bd824a5488881b18bb43d9f8eaaec1009a177d10b9c51722c401f507c42d0b64736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c80638d928af8116100505780638d928af8146100c8578063aaabadc5146100d0578063ce3cc8bd146100d857610072565b80630ecaea731461007757806339312dee146100a0578063851c1bb3146100a8575b600080fd5b61008a61008536600461045d565b6100f8565b6040516100979190610514565b60405180910390f35b61008a610194565b6100bb6100b6366004610488565b6101b0565b6040516100979190610566565b61008a610203565b61008a610227565b6100eb6100e636600461043a565b6102b3565b604051610097919061055b565b6000806101036102de565b6040517fcd6dc68700000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063cd6dc6879061015a9087908790600401610535565b600060405180830381600087803b15801561017457600080fd5b505af1158015610188573d6000803e3d6000fd5b50929695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60007f0000000000000000000000000000000000000000000000000000000000000000826040516020016101e59291906104e4565b6040516020818303038152906040528051906020012090505b919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610231610203565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561027657600080fd5b505afa15801561028a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ae91906104c8565b905090565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b6000805481906103039073ffffffffffffffffffffffffffffffffffffffff16610384565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169092179091555192935090917faa98436d09d130af48de49867af8b723bbbebb0d737638b5fe8f1bf31bbb71c09190a2905090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166101fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104319061056f565b60405180910390fd5b60006020828403121561044b578081fd5b8135610456816105a6565b9392505050565b6000806040838503121561046f578081fd5b823561047a816105a6565b946020939093013593505050565b600060208284031215610499578081fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610456578182fd5b6000602082840312156104d9578081fd5b8151610456816105a6565b9182527fffffffff0000000000000000000000000000000000000000000000000000000016602082015260240190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b901515815260200190565b90815260200190565b60208082526016908201527f455243313136373a20637265617465206661696c656400000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff811681146105c857600080fd5b5056fea26469706673582212207522df29ff90608b283659dbb7ea1070d62546dfced00d477766e001643f17c364736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}