forked from balancer/balancer-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SingleRecipientGaugeFactory.json
130 lines (130 loc) · 18 KB
/
SingleRecipientGaugeFactory.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
{
"_format": "hh-sol-artifact-1",
"contractName": "SingleRecipientGaugeFactory",
"sourceName": "contracts/gauges/ethereum/SingleRecipientGaugeFactory.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IBalancerMinter",
"name": "minter",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "gauge",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "SingleRecipientGaugeCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "create",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getGaugeImplementation",
"outputs": [
{
"internalType": "contract ISingleRecipientGauge",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "gauge",
"type": "address"
}
],
"name": "getGaugeRecipient",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "getRecipientGauge",
"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": "0x608060405234801561001057600080fd5b5060405161191238038061191283398101604081905261002f91610096565b8060405161003c90610089565b61004691906100c4565b604051809103906000f080158015610062573d6000803e3d6000fd5b50600080546001600160a01b0319166001600160a01b0392909216919091179055506100d8565b6112a48061066e83390190565b6000602082840312156100a7578081fd5b81516001600160a01b03811681146100bd578182fd5b9392505050565b6001600160a01b0391909116815260200190565b610587806100e76000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80639ed93318116100505780639ed933181461009d578063ce3cc8bd146100b0578063fa72ce95146100d057610067565b806339312dee1461006c5780637d5d0d101461008a575b600080fd5b6100746100e3565b6040516100819190610492565b60405180910390f35b610074610098366004610453565b6100ff565b6100746100ab366004610453565b61012d565b6100c36100be366004610453565b6102f5565b60405161008191906104b3565b6100746100de366004610453565b610320565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260026020526040902054165b919050565b73ffffffffffffffffffffffffffffffffffffffff81811660009081526002602052604081205490911615610197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906104be565b60405180910390fd5b600080546101ba9073ffffffffffffffffffffffffffffffffffffffff166103a6565b6040517fc4d66de800000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063c4d66de89061020f908690600401610492565b600060405180830381600087803b15801561022957600080fd5b505af115801561023d573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff818116600081815260016020818152604080842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909317909255938716808352600290945280822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055517f8cef09b96018886e359c85f62ed52d97cf7b7263e23efde6031acea9661163b79190a392915050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b60008173ffffffffffffffffffffffffffffffffffffffff16631b88094d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561036857600080fd5b505afa15801561037c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a09190610476565b92915050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906104f5565b600060208284031215610464578081fd5b813561046f8161052c565b9392505050565b600060208284031215610487578081fd5b815161046f8161052c565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b60208082526014908201527f476175676520616c726561647920657869737473000000000000000000000000604082015260600190565b60208082526016908201527f455243313136373a20637265617465206661696c656400000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff8116811461054e57600080fd5b5056fea2646970667358221220e254c24ca506bb18bb1746af9cf90f46c091a664e261f418599bf38e5470007a64736f6c634300070100336101806040523480156200001257600080fd5b50604051620012a4380380620012a4833981810160405260208110156200003857600080fd5b5051600160009081556040805163e6dec36f60e01b815290518392916001600160a01b0384169163e6dec36f91600480820192602092909190829003018186803b1580156200008657600080fd5b505afa1580156200009b573d6000803e3d6000fd5b505050506040513d6020811015620000b257600080fd5b50516040805163c003969960e01b815290519192506000916001600160a01b0384169163c0039699916004808301926020929190829003018186803b158015620000fb57600080fd5b505afa15801562000110573d6000803e3d6000fd5b505050506040513d60208110156200012757600080fd5b505160408051632c6f4d6f60e11b815290519192506000916001600160a01b038616916358de9ade916004808301926020929190829003018186803b1580156200017057600080fd5b505afa15801562000185573d6000803e3d6000fd5b505050506040513d60208110156200019c57600080fd5b50516001600160601b0319606084811b821660805285811b821660a05286811b821660c05282901b1660e052604080516303e1469160e61b815290519192506001600160a01b0383169163f851a44091600480820192602092909190829003018186803b1580156200020d57600080fd5b505afa15801562000222573d6000803e3d6000fd5b505050506040513d60208110156200023957600080fd5b505160601b6001600160601b0319166101005260408051635c3dab0b60e11b815290516001600160a01b0385169163b87b5616916004808301926020929190829003018186803b1580156200028d57600080fd5b505afa158015620002a2573d6000803e3d6000fd5b505050506040513d6020811015620002b957600080fd5b505161012052604080516321609bbf60e01b815290516001600160a01b038516916321609bbf916004808301926020929190829003018186803b1580156200030057600080fd5b505afa15801562000315573d6000803e3d6000fd5b505050506040513d60208110156200032c57600080fd5b505161014052604080516303f7d6c760e51b815290516001600160a01b03851691637efad8e0916004808301926020929190829003018186803b1580156200037357600080fd5b505afa15801562000388573d6000803e3d6000fd5b505050506040513d60208110156200039f57600080fd5b505161016052505060001960025550505060805160601c60a05160601c60c05160601c60e05160601c6101005160601c610120516101405161016051610e6e62000436600039806106515250806106305250806104fa528061069d5250806102c4528061039f528061088f525080610488528061058c525080610793525080610a525280610b4f5250806109a75250610e6e6000f3fe60806040526004361061007b5760003560e01c8063ab8f09451161004e578063ab8f094514610179578063c2c4c5c114610190578063c4d66de814610198578063d34fb267146101d85761007b565b806309400707146100805780631b88094d146100d25780634b820093146101105780639c868ac014610164575b600080fd5b34801561008c57600080fd5b506100c0600480360360208110156100a357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101ed565b60408051918252519081900360200190f35b3480156100de57600080fd5b506100e761027b565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561011c57600080fd5b506101506004803603602081101561013357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661029d565b604080519115158252519081900360200190f35b34801561017057600080fd5b506101506102a3565b34801561018557600080fd5b5061018e6102ac565b005b61015061037d565b3480156101a457600080fd5b5061018e600480360360208110156101bb57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610823565b3480156101e457600080fd5b5061018e610877565b600073ffffffffffffffffffffffffffffffffffffffff8216301461027357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f47617567652063616e206f6e6c79206d696e7420666f7220697473656c660000604482015290519081900360640190fd5b505060045490565b600554610100900473ffffffffffffffffffffffffffffffffffffffff165b90565b50600190565b60055460ff1690565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461035057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000610387610945565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461042b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600254600061043861095e565b90508082101561081557604080517f615e5237000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163615e523791602480830192600092919082900301818387803b1580156104cf57600080fd5b505af11580156104e3573d6000803e3d6000fd5b5050600180546003549590910194909250600091507f000000000000000000000000000000000000000000000000000000000000000001845b8560ff01811015610728578481111561053457610728565b604080517fd3078c9400000000000000000000000000000000000000000000000000000000815230600482015262093a808302602482018190529151600091829173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169163d3078c9491604480830192602092919082900301818787803b1580156105d357600080fd5b505af11580156105e7573d6000803e3d6000fd5b505050506040513d60208110156105fd57600080fd5b5051905082851080159061061557508262093a800185105b156106ce57828503670de0b6b3a764000082890282020492507f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000089028161067957fe5b04975062093a80819003670de0b6b3a7640000838a02820260018b905560038990557f000000000000000000000000000000000000000000000000000000000000000090980197049390930192506106e39050565b670de0b6b3a764000062093a80828902020491505b60408051838152905184917f21d81d5d656869e8ce3ba8d65526a2f0dbbcd3d36f5f9999eb7c84360e45eced919081900360200190a25093909301925060010161051c565b50600284905560048054830190558115801590610748575060055460ff16155b1561081157604080517f6a627842000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001691636a6278429160248083019260209291908290030181600087803b1580156107db57600080fd5b505af11580156107ef573d6000803e3d6000fd5b505050506040513d602081101561080557600080fd5b50610811905082610989565b5050505b60019250505061029a6109d8565b61082b6109df565b6005805473ffffffffffffffffffffffffffffffffffffffff909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461091b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f53454e4445525f4e4f545f414c4c4f5745440000000000000000000000000000604482015290519081900360640190fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b61095760026000541415610190610be7565b6002600055565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff62093a8042040190565b6005546109d59073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000081169161010090041683610bf9565b50565b6001600055565b60025415610a4e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015290519081900360640190fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632c4e722e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ab657600080fd5b505afa158015610aca573d6000803e3d6000fd5b505050506040513d6020811015610ae057600080fd5b5051905080610b3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610e156024913960400191505060405180910390fd5b6001819055610b4761095e565b6002819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a228bced6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610bb557600080fd5b505af1158015610bc9573d6000803e3d6000fd5b505050506040513d6020811015610bdf57600080fd5b505160035550565b81610bf557610bf581610c8b565b5050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610c86908490610cf8565b505050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fd5b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b60208310610d6157805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610d24565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610dc3576040519150601f19603f3d011682016040523d82523d6000602084013e610dc8565b606091505b50915091506000821415610de0573d6000803e3d6000fd5b610e0e815160001480610e065750818060200190516020811015610e0357600080fd5b50515b6101a2610be7565b5050505056fe42616c616e636572546f6b656e41646d696e206e6f742079657420616374697661746564a2646970667358221220744f7d4940e0873869cb324c9f636ac553db2d69bea2009ab2420ae67d7538de64736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100675760003560e01c80639ed93318116100505780639ed933181461009d578063ce3cc8bd146100b0578063fa72ce95146100d057610067565b806339312dee1461006c5780637d5d0d101461008a575b600080fd5b6100746100e3565b6040516100819190610492565b60405180910390f35b610074610098366004610453565b6100ff565b6100746100ab366004610453565b61012d565b6100c36100be366004610453565b6102f5565b60405161008191906104b3565b6100746100de366004610453565b610320565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260026020526040902054165b919050565b73ffffffffffffffffffffffffffffffffffffffff81811660009081526002602052604081205490911615610197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906104be565b60405180910390fd5b600080546101ba9073ffffffffffffffffffffffffffffffffffffffff166103a6565b6040517fc4d66de800000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063c4d66de89061020f908690600401610492565b600060405180830381600087803b15801561022957600080fd5b505af115801561023d573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff818116600081815260016020818152604080842080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016909317909255938716808352600290945280822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055517f8cef09b96018886e359c85f62ed52d97cf7b7263e23efde6031acea9661163b79190a392915050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205460ff1690565b60008173ffffffffffffffffffffffffffffffffffffffff16631b88094d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561036857600080fd5b505afa15801561037c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a09190610476565b92915050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f091505073ffffffffffffffffffffffffffffffffffffffff8116610128576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161018e906104f5565b600060208284031215610464578081fd5b813561046f8161052c565b9392505050565b600060208284031215610487578081fd5b815161046f8161052c565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b60208082526014908201527f476175676520616c726561647920657869737473000000000000000000000000604082015260600190565b60208082526016908201527f455243313136373a20637265617465206661696c656400000000000000000000604082015260600190565b73ffffffffffffffffffffffffffffffffffffffff8116811461054e57600080fd5b5056fea2646970667358221220e254c24ca506bb18bb1746af9cf90f46c091a664e261f418599bf38e5470007a64736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}