-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathVotingEscrowDelegationProxy.json
187 lines (187 loc) · 13.2 KB
/
VotingEscrowDelegationProxy.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
{
"_format": "hh-sol-artifact-1",
"contractName": "VotingEscrowDelegationProxy",
"sourceName": "contracts/VotingEscrowDelegationProxy.sol",
"abi": [
{
"inputs": [
{
"internalType": "contract IVault",
"name": "vault",
"type": "address"
},
{
"internalType": "contract IERC20",
"name": "votingEscrow",
"type": "address"
},
{
"internalType": "contract IVeDelegation",
"name": "delegation",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "newImplementation",
"type": "address"
}
],
"name": "DelegationImplementationUpdated",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "adjustedBalanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "adjusted_balance_of",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"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": "getDelegationImplementation",
"outputs": [
{
"internalType": "contract IVeDelegation",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVault",
"outputs": [
{
"internalType": "contract IVault",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVotingEscrow",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "killDelegation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IVeDelegation",
"name": "delegation",
"type": "address"
}
],
"name": "setDelegation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60e060405234801561001057600080fd5b506040516109b93803806109b98339818101604052606081101561003357600080fd5b5080516020820151604090920151306080819052606083811b6001600160601b031990811660a0529085901b1660c052600080546001600160a01b0319166001600160a01b039384161781559093928216929190911690610902906100b79039806101d7528061021b52806105f85250806104285250806103bb52506109026000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063851c1bb311610076578063aaabadc51161005b578063aaabadc51461019a578063bbf7408a1461010e578063e6b3e704146101a2576100be565b8063851c1bb3146101535780638d928af814610192576100be565b806325798418116100a7578063257984181461010e57806363408a90146101415780636448a3ab14610149576100be565b806308b0308a146100c357806318160ddd146100f4575b600080fd5b6100cb6101d5565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100fc6101fa565b60408051918252519081900360200190f35b6100fc6004803603602081101561012457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661032c565b6100cb61033f565b61015161035b565b005b6100fc6004803603602081101561016957600080fd5b50357fffffffff00000000000000000000000000000000000000000000000000000000166103b5565b6100cb610426565b6100cb61044a565b610151600480360360208110156101b857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104ca565b7f00000000000000000000000000000000000000000000000000000000000000005b90565b6000805473ffffffffffffffffffffffffffffffffffffffff16806102b4577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561027f57600080fd5b505afa158015610293573d6000803e3d6000fd5b505050506040513d60208110156102a957600080fd5b505191506101f79050565b8073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156102fa57600080fd5b505afa15801561030e573d6000803e3d6000fd5b505050506040513d602081101561032457600080fd5b505191505090565b6000610337826105d7565b90505b919050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61036361074c565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556040517fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e74908290a2565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610454610426565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561049957600080fd5b505afa1580156104ad573d6000803e3d6000fd5b505050506040513d60208110156104c357600080fd5b5051905090565b6104d261074c565b604080517fbbf7408a000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff83169163bbf7408a916024808301926020929190829003018186803b15801561053e57600080fd5b505afa158015610552573d6000803e3d6000fd5b505050506040513d602081101561056857600080fd5b5050600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117825560405190917fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e7491a250565b6000805473ffffffffffffffffffffffffffffffffffffffff16806106b2577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561067d57600080fd5b505afa158015610691573d6000803e3d6000fd5b505050506040513d60208110156106a757600080fd5b5051915061033a9050565b8073ffffffffffffffffffffffffffffffffffffffff1663bbf7408a846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561071957600080fd5b505afa15801561072d573d6000803e3d6000fd5b505050506040513d602081101561074357600080fd5b50519392505050565b600061077b6000357fffffffff00000000000000000000000000000000000000000000000000000000166103b5565b905061079261078a8233610795565b61019161082b565b50565b600061079f61044a565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060206040518083038186803b15801561071957600080fd5b81610839576108398161083d565b5050565b7f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b604452610792917f42414c0000000000000000000000000000000000000000000000000000000000906242414c90606490fdfea26469706673582212202696e52709185624608e22c9a4f2233bc805a0e9f7d9aecefe8d72ca0c2b0ac164736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063851c1bb311610076578063aaabadc51161005b578063aaabadc51461019a578063bbf7408a1461010e578063e6b3e704146101a2576100be565b8063851c1bb3146101535780638d928af814610192576100be565b806325798418116100a7578063257984181461010e57806363408a90146101415780636448a3ab14610149576100be565b806308b0308a146100c357806318160ddd146100f4575b600080fd5b6100cb6101d5565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100fc6101fa565b60408051918252519081900360200190f35b6100fc6004803603602081101561012457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661032c565b6100cb61033f565b61015161035b565b005b6100fc6004803603602081101561016957600080fd5b50357fffffffff00000000000000000000000000000000000000000000000000000000166103b5565b6100cb610426565b6100cb61044a565b610151600480360360208110156101b857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104ca565b7f00000000000000000000000000000000000000000000000000000000000000005b90565b6000805473ffffffffffffffffffffffffffffffffffffffff16806102b4577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561027f57600080fd5b505afa158015610293573d6000803e3d6000fd5b505050506040513d60208110156102a957600080fd5b505191506101f79050565b8073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156102fa57600080fd5b505afa15801561030e573d6000803e3d6000fd5b505050506040513d602081101561032457600080fd5b505191505090565b6000610337826105d7565b90505b919050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61036361074c565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556040517fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e74908290a2565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000610454610426565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561049957600080fd5b505afa1580156104ad573d6000803e3d6000fd5b505050506040513d60208110156104c357600080fd5b5051905090565b6104d261074c565b604080517fbbf7408a000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff83169163bbf7408a916024808301926020929190829003018186803b15801561053e57600080fd5b505afa158015610552573d6000803e3d6000fd5b505050506040513d602081101561056857600080fd5b5050600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117825560405190917fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e7491a250565b6000805473ffffffffffffffffffffffffffffffffffffffff16806106b2577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561067d57600080fd5b505afa158015610691573d6000803e3d6000fd5b505050506040513d60208110156106a757600080fd5b5051915061033a9050565b8073ffffffffffffffffffffffffffffffffffffffff1663bbf7408a846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561071957600080fd5b505afa15801561072d573d6000803e3d6000fd5b505050506040513d602081101561074357600080fd5b50519392505050565b600061077b6000357fffffffff00000000000000000000000000000000000000000000000000000000166103b5565b905061079261078a8233610795565b61019161082b565b50565b600061079f61044a565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060206040518083038186803b15801561071957600080fd5b81610839576108398161083d565b5050565b7f08c379a000000000000000000000000000000000000000000000000000000000600090815260206004526007602452600a808304818106603090810160081b83860601918390049283060160101b016642414c230000300160c81b604452610792917f42414c0000000000000000000000000000000000000000000000000000000000906242414c90606490fdfea26469706673582212202696e52709185624608e22c9a4f2233bc805a0e9f7d9aecefe8d72ca0c2b0ac164736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}