forked from balancer/balancer-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GnosisRootGaugeFactory.json
96 lines (96 loc) · 16.8 KB
/
GnosisRootGaugeFactory.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
{
"_format": "hh-sol-artifact-1",
"contractName": "GnosisRootGaugeFactory",
"sourceName": "contracts/gauges/gnosis/GnosisRootGaugeFactory.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IBalancerMinter",
"name": "minter",
"type": "address"
},
{
"internalType": "contract IGnosisBridge",
"name": "gnosisBridge",
"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": [],
"name": "getGaugeImplementation",
"outputs": [
{
"internalType": "contract ILiquidityGauge",
"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": "0x608060405234801561001057600080fd5b506040516119e33803806119e38339818101604052604081101561003357600080fd5b5080516020909101516040518290829061004c906100a8565b6001600160a01b03928316815291166020820152604080519182900301906000f08015801561007f573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b0392909216919091179055506100b59050565b6115818061046283390190565b61039e806100c46000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80630ecaea731461004657806339312dee146100a8578063ce3cc8bd146100b0575b600080fd5b61007f6004803603604081101561005c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356100f7565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61007f610195565b6100e3600480360360208110156100c657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101b1565b604080519115158252519081900360200190f35b6000806101026101e0565b90508073ffffffffffffffffffffffffffffffffffffffff1663cd6dc68785856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561017557600080fd5b505af1158015610189573d6000803e3d6000fd5b50929695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff165b919050565b6000805481906102059073ffffffffffffffffffffffffffffffffffffffff16610286565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169092179091555192935090917faa98436d09d130af48de49867af8b723bbbebb0d737638b5fe8f1bf31bbb71c09190a2905090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166101db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015290519081900360640190fdfea2646970667358221220231818eb8ffaa79cc74f33b508e390b994f12719e0894efd0f4f15f7f821bd0864736f6c634300070100336101a06040523480156200001257600080fd5b506040516200158138038062001581833981810160405260408110156200003857600080fd5b508051602091820151600160009081556040805163e6dec36f60e01b815290519394929385936001600160a01b0385169263e6dec36f9260048083019392829003018186803b1580156200008b57600080fd5b505afa158015620000a0573d6000803e3d6000fd5b505050506040513d6020811015620000b757600080fd5b50516040805163c003969960e01b815290519192506000916001600160a01b0384169163c0039699916004808301926020929190829003018186803b1580156200010057600080fd5b505afa15801562000115573d6000803e3d6000fd5b505050506040513d60208110156200012c57600080fd5b505160408051632c6f4d6f60e11b815290519192506000916001600160a01b038616916358de9ade916004808301926020929190829003018186803b1580156200017557600080fd5b505afa1580156200018a573d6000803e3d6000fd5b505050506040513d6020811015620001a157600080fd5b50516001600160601b0319606084811b821660805285811b821660a05286811b821660c05282901b1660e052604080516303e1469160e61b815290519192506001600160a01b0383169163f851a44091600480820192602092909190829003018186803b1580156200021257600080fd5b505afa15801562000227573d6000803e3d6000fd5b505050506040513d60208110156200023e57600080fd5b505160601b6001600160601b0319166101005260408051635c3dab0b60e11b815290516001600160a01b0385169163b87b5616916004808301926020929190829003018186803b1580156200029257600080fd5b505afa158015620002a7573d6000803e3d6000fd5b505050506040513d6020811015620002be57600080fd5b505161012052604080516321609bbf60e01b815290516001600160a01b038516916321609bbf916004808301926020929190829003018186803b1580156200030557600080fd5b505afa1580156200031a573d6000803e3d6000fd5b505050506040513d60208110156200033157600080fd5b505161014052604080516303f7d6c760e51b815290516001600160a01b03851691637efad8e0916004808301926020929190829003018186803b1580156200037857600080fd5b505afa1580156200038d573d6000803e3d6000fd5b505050506040513d6020811015620003a457600080fd5b505161016052505060001960025550506001600160601b031960609190911b16610180525060805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205161014051610160516101805160601c61111162000470600039806105fa5280610c525280610d6b5250806108375250806108165250806107995280610883525080610383528061053f528061063e5280610a725250806104225280610727525080610979525080610e4a5280610f47525080610c165280610d3252506111116000f3fe6080604052600436106100d25760003560e01c80639c868ac01161007f578063ae35ebfb11610059578063ae35ebfb14610265578063c2c4c5c11461027a578063cd6dc68714610282578063d34fb267146102c8576100d2565b80639c868ac0146102265780639f8676711461023b578063ab8f094514610250576100d2565b80631b88094d116100b05780631b88094d1461017f5780634b820093146101bd57806383f5c39b14610211576100d2565b806309400707146100d757806310d3eb041461012957806314e956f514610155575b600080fd5b3480156100e357600080fd5b50610117600480360360208110156100fa57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166102dd565b60408051918252519081900360200190f35b34801561013557600080fd5b506101536004803603602081101561014c57600080fd5b503561036b565b005b34801561016157600080fd5b506101176004803603602081101561017857600080fd5b503561041b565b34801561018b57600080fd5b506101946104e9565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101c957600080fd5b506101fd600480360360208110156101e057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610506565b604080519115158252519081900360200190f35b34801561021d57600080fd5b5061011761050c565b34801561023257600080fd5b506101fd610512565b34801561024757600080fd5b5061011761051b565b34801561025c57600080fd5b50610153610527565b34801561027157600080fd5b506101946105f8565b6101fd61061c565b34801561028e57600080fd5b50610153600480360360408110156102a557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a09565b3480156102d457600080fd5b50610153610a5a565b600073ffffffffffffffffffffffffffffffffffffffff8216301461036357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f47617567652063616e206f6e6c79206d696e7420666f7220697473656c660000604482015290519081900360640190fd5b505060045490565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461040f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b61041881610b28565b50565b60006104e37f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d3078c9430856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b1580156104af57600080fd5b505afa1580156104c3573d6000803e3d6000fd5b505050506040513d60208110156104d957600080fd5b5051600654610bc4565b92915050565b60075473ffffffffffffffffffffffffffffffffffffffff165b90565b50600190565b60065490565b60055460ff1690565b670de0b6b3a764000081565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146105cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610626610bd0565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146106ca57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b60025460006106d7610be9565b9050808210156109fb57604080517f615e5237000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163615e523791602480830192600092919082900301818387803b15801561076e57600080fd5b505af1158015610782573d6000803e3d6000fd5b5050600180546003549590910194909250600091507f000000000000000000000000000000000000000000000000000000000000000001845b8560ff0181101561090e57848111156107d35761090e565b62093a8081026000806107e58361041b565b90508285101580156107fb57508262093a800185105b156108b457828503670de0b6b3a764000082890282020492507f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089028161085f57fe5b04975062093a80819003670de0b6b3a7640000838a02820260018b905560038990557f000000000000000000000000000000000000000000000000000000000000000090980197049390930192506108c99050565b670de0b6b3a764000062093a80828902020491505b60408051838152905184917f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced919081900360200190a2509390930192506001016107bb565b5060028490556004805483019055811580159061092e575060055460ff16155b156109f757604080517f6a627842000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b1580156109c157600080fd5b505af11580156109d5573d6000803e3d6000fd5b505050506040513d60208110156109eb57600080fd5b506109f7905082610c14565b5050505b600192505050610503610dd0565b610a1281610dd7565b50600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610afe57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b670de0b6b3a7640000811115610b89576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806110846034913960400191505060405180910390fd5b60068190556040805182815290517f13e45870490f54cea50d245930d12102c72b502641ef6850d0b15a8c92decfb29181900360200190a150565b80820390821102900390565b610be260026000541415610190610fe9565b6002600055565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62093a8042040190565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610cc557600080fd5b505af1158015610cd9573d6000803e3d6000fd5b505050506040513d6020811015610cef57600080fd5b5050600754604080517fad58bdd100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000008116600483015292831660248201526044810184905290517f00000000000000000000000000000000000000000000000000000000000000009092169163ad58bdd19160648082019260009290919082900301818387803b158015610db557600080fd5b505af1158015610dc9573d6000803e3d6000fd5b5050505050565b6001600055565b60025415610e4657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632c4e722e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610eae57600080fd5b505afa158015610ec2573d6000803e3d6000fd5b505050506040513d6020811015610ed857600080fd5b5051905080610f32576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806110b86024913960400191505060405180910390fd5b6001819055610f3f610be9565b6002819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a228bced6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610fad57600080fd5b505af1158015610fc1573d6000803e3d6000fd5b505050506040513d6020811015610fd757600080fd5b5051600355610fe582610b28565b5050565b81610fe5577f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b604452610fe5918391610418917f42414c0000000000000000000000000000000000000000000000000000000000906242414c90606490fdfe52656c61746976652077656967687420636170206578636565647320616c6c6f776564206162736f6c757465206d6178696d756d42616c616e636572546f6b656e41646d696e206e6f742079657420616374697661746564a26469706673582212207fd48c516478e0541d586fd93ad8c2252c504a829cddc6a4fc5f1fdb33aae09264736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80630ecaea731461004657806339312dee146100a8578063ce3cc8bd146100b0575b600080fd5b61007f6004803603604081101561005c57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356100f7565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61007f610195565b6100e3600480360360208110156100c657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101b1565b604080519115158252519081900360200190f35b6000806101026101e0565b90508073ffffffffffffffffffffffffffffffffffffffff1663cd6dc68785856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561017557600080fd5b505af1158015610189573d6000803e3d6000fd5b50929695505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff165b919050565b6000805481906102059073ffffffffffffffffffffffffffffffffffffffff16610286565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169092179091555192935090917faa98436d09d130af48de49867af8b723bbbebb0d737638b5fe8f1bf31bbb71c09190a2905090565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff81166101db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f455243313136373a20637265617465206661696c656400000000000000000000604482015290519081900360640190fdfea2646970667358221220231818eb8ffaa79cc74f33b508e390b994f12719e0894efd0f4f15f7f821bd0864736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}