-
Notifications
You must be signed in to change notification settings - Fork 0
/
VotingEscrowDelegationProxy.json
174 lines (174 loc) · 11.5 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
{
"_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"
}
],
"bytecode": "0x60e060405234801561001057600080fd5b5060405161083c38038061083c8339818101604052606081101561003357600080fd5b5080516020820151604090920151306080819052606083811b6001600160601b031990811660a0529085901b1660c052600080546001600160a01b0319166001600160a01b03938416178155909392821692919091169061078a906100b29039806101b452806104a25250806102d2525080610265525061078a6000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c8063851c1bb311610076578063aaabadc51161005b578063aaabadc514610177578063bbf7408a146100d9578063e6b3e7041461017f576100a3565b8063851c1bb3146101305780638d928af81461016f576100a3565b806308b0308a146100a857806325798418146100d957806363408a901461011e5780636448a3ab14610126575b600080fd5b6100b06101b2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61010c600480360360208110156100ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101d6565b60408051918252519081900360200190f35b6100b06101e9565b61012e610205565b005b61010c6004803603602081101561014657600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661025f565b6100b06102d0565b6100b06102f4565b61012e6004803603602081101561019557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610374565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006101e182610481565b90505b919050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61020d6105f6565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556040517fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e74908290a2565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006102fe6102d0565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561034357600080fd5b505afa158015610357573d6000803e3d6000fd5b505050506040513d602081101561036d57600080fd5b5051905090565b61037c6105f6565b604080517fbbf7408a000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff83169163bbf7408a916024808301926020929190829003018186803b1580156103e857600080fd5b505afa1580156103fc573d6000803e3d6000fd5b505050506040513d602081101561041257600080fd5b5050600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117825560405190917fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e7491a250565b6000805473ffffffffffffffffffffffffffffffffffffffff168061055c577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561052757600080fd5b505afa15801561053b573d6000803e3d6000fd5b505050506040513d602081101561055157600080fd5b505191506101e49050565b8073ffffffffffffffffffffffffffffffffffffffff1663bbf7408a846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105c357600080fd5b505afa1580156105d7573d6000803e3d6000fd5b505050506040513d60208110156105ed57600080fd5b50519392505050565b60006106256000357fffffffff000000000000000000000000000000000000000000000000000000001661025f565b905061063c610634823361063f565b6101916106d5565b50565b60006106496102f4565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060206040518083038186803b1580156105c357600080fd5b816106e3576106e3816106e7565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fdfea26469706673582212209154314af17040c72cbb41915ce040bf89b156f7b590efe015ffed1a4d2f2f9264736f6c63430007010033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c8063851c1bb311610076578063aaabadc51161005b578063aaabadc514610177578063bbf7408a146100d9578063e6b3e7041461017f576100a3565b8063851c1bb3146101305780638d928af81461016f576100a3565b806308b0308a146100a857806325798418146100d957806363408a901461011e5780636448a3ab14610126575b600080fd5b6100b06101b2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61010c600480360360208110156100ef57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101d6565b60408051918252519081900360200190f35b6100b06101e9565b61012e610205565b005b61010c6004803603602081101561014657600080fd5b50357fffffffff000000000000000000000000000000000000000000000000000000001661025f565b6100b06102d0565b6100b06102f4565b61012e6004803603602081101561019557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610374565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006101e182610481565b90505b919050565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61020d6105f6565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001681556040517fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e74908290a2565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffff000000000000000000000000000000000000000000000000000000008416828401528251602481840301815260449092019092528051910120919050565b7f000000000000000000000000000000000000000000000000000000000000000090565b60006102fe6102d0565b73ffffffffffffffffffffffffffffffffffffffff1663aaabadc56040518163ffffffff1660e01b815260040160206040518083038186803b15801561034357600080fd5b505afa158015610357573d6000803e3d6000fd5b505050506040513d602081101561036d57600080fd5b5051905090565b61037c6105f6565b604080517fbbf7408a000000000000000000000000000000000000000000000000000000008152336004820152905173ffffffffffffffffffffffffffffffffffffffff83169163bbf7408a916024808301926020929190829003018186803b1580156103e857600080fd5b505afa1580156103fc573d6000803e3d6000fd5b505050506040513d602081101561041257600080fd5b5050600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8316908117825560405190917fb2f6d9cc189e4fc02519ab5ba6d9455bedc32091e375e8a6383ed45f40653e7491a250565b6000805473ffffffffffffffffffffffffffffffffffffffff168061055c577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561052757600080fd5b505afa15801561053b573d6000803e3d6000fd5b505050506040513d602081101561055157600080fd5b505191506101e49050565b8073ffffffffffffffffffffffffffffffffffffffff1663bbf7408a846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105c357600080fd5b505afa1580156105d7573d6000803e3d6000fd5b505050506040513d60208110156105ed57600080fd5b50519392505050565b60006106256000357fffffffff000000000000000000000000000000000000000000000000000000001661025f565b905061063c610634823361063f565b6101916106d5565b50565b60006106496102f4565b73ffffffffffffffffffffffffffffffffffffffff16639be2a8848484306040518463ffffffff1660e01b8152600401808481526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001935050505060206040518083038186803b1580156105c357600080fd5b816106e3576106e3816106e7565b5050565b7f08c379a0000000000000000000000000000000000000000000000000000000006000908152602060045260076024526642414c23000030600a808404818106603090810160081b95839006959095019082900491820690940160101b939093010160c81b604452606490fdfea26469706673582212209154314af17040c72cbb41915ce040bf89b156f7b590efe015ffed1a4d2f2f9264736f6c63430007010033",
"linkReferences": {},
"deployedLinkReferences": {}
}