-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDSProxy.json
340 lines (340 loc) · 32.3 KB
/
DSProxy.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
{
"address": "0x980A4Ca9Ec443a52860204B07479f142fbbd3644",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_cacheAddr",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": true,
"inputs": [
{
"indexed": true,
"internalType": "bytes4",
"name": "sig",
"type": "bytes4"
},
{
"indexed": true,
"internalType": "address",
"name": "guy",
"type": "address"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "foo",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "bar",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "fax",
"type": "bytes"
}
],
"name": "LogNote",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "authority",
"type": "address"
}
],
"name": "LogSetAuthority",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "LogSetOwner",
"type": "event"
},
{
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [],
"name": "authority",
"outputs": [
{
"internalType": "contract DSAuthority",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "cache",
"outputs": [
{
"internalType": "contract DSProxyCache",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_target",
"type": "address"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "execute",
"outputs": [
{
"internalType": "bytes",
"name": "response",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "_code",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
},
{
"internalType": "bool",
"name": "bools",
"type": "bool"
}
],
"name": "execute",
"outputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes",
"name": "response",
"type": "bytes"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract DSAuthority",
"name": "authority_",
"type": "address"
}
],
"name": "setAuthority",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_cacheAddr",
"type": "address"
}
],
"name": "setCache",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner_",
"type": "address"
}
],
"name": "setOwner",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"transactionHash": "0xafc740b3d84c43fac572454a7fd1efdca2980d67de1232888ac8880c4264cf72",
"receipt": {
"to": null,
"from": "0x595b85b4A418e3B8df897D02F5BD49167D00862F",
"contractAddress": "0x980A4Ca9Ec443a52860204B07479f142fbbd3644",
"transactionIndex": 1,
"gasUsed": "757378",
"logsBloom": "0x00000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000100000000000000000000000000000000080010000000000000000000000000020000000000000000000800000000000000000000000000000000000080000000000000200000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x80168a166cf44e883e00b254d322a1c3d10031fa28ed123aea8dfda3a202ac06",
"transactionHash": "0xafc740b3d84c43fac572454a7fd1efdca2980d67de1232888ac8880c4264cf72",
"logs": [
{
"transactionIndex": 1,
"blockNumber": 8091195,
"transactionHash": "0xafc740b3d84c43fac572454a7fd1efdca2980d67de1232888ac8880c4264cf72",
"address": "0x980A4Ca9Ec443a52860204B07479f142fbbd3644",
"topics": [
"0xce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed94",
"0x000000000000000000000000595b85b4a418e3b8df897d02f5bd49167d00862f"
],
"data": "0x",
"logIndex": 1,
"blockHash": "0x80168a166cf44e883e00b254d322a1c3d10031fa28ed123aea8dfda3a202ac06"
},
{
"transactionIndex": 1,
"blockNumber": 8091195,
"transactionHash": "0xafc740b3d84c43fac572454a7fd1efdca2980d67de1232888ac8880c4264cf72",
"address": "0x980A4Ca9Ec443a52860204B07479f142fbbd3644",
"topics": [
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000595b85b4a418e3b8df897d02f5bd49167d00862f",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000000000000000000000000000000000000000000000"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000",
"logIndex": 2,
"blockHash": "0x80168a166cf44e883e00b254d322a1c3d10031fa28ed123aea8dfda3a202ac06"
}
],
"blockNumber": 8091195,
"cumulativeGasUsed": "791768",
"status": 1,
"byzantium": true
},
"args": [
"0x364b83179950c74087afd3cAb46Bb6B0457CCC7D"
],
"numDeployments": 1,
"solcInputHash": "a86e93456cfbb956ab843adb2133c9fc",
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_cacheAddr\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":true,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes4\",\"name\":\"sig\",\"type\":\"bytes4\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"guy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"foo\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"bar\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"wad\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"fax\",\"type\":\"bytes\"}],\"name\":\"LogNote\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"authority\",\"type\":\"address\"}],\"name\":\"LogSetAuthority\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"LogSetOwner\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"authority\",\"outputs\":[{\"internalType\":\"contract DSAuthority\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"cache\",\"outputs\":[{\"internalType\":\"contract DSProxyCache\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"response\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_code\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"bools\",\"type\":\"bool\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"response\",\"type\":\"bytes\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract DSAuthority\",\"name\":\"authority_\",\"type\":\"address\"}],\"name\":\"setAuthority\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_cacheAddr\",\"type\":\"address\"}],\"name\":\"setCache\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"}],\"name\":\"setOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/deploy/DSProxyContract.sol\":\"DSProxy\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":20},\"remappings\":[]},\"sources\":{\"contracts/deploy/DSProxyContract.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\npragma solidity 0.6.12;\\n\\ninterface DSAuthority {\\n function canCall(\\n address src,\\n address dst,\\n bytes4 sig\\n ) external view returns (bool);\\n}\\n\\ncontract DSAuthEvents {\\n event LogSetAuthority(address indexed authority);\\n event LogSetOwner(address indexed owner);\\n}\\n\\ncontract DSAuth is DSAuthEvents {\\n DSAuthority public authority;\\n address public owner;\\n\\n constructor() public {\\n owner = msg.sender;\\n emit LogSetOwner(msg.sender);\\n }\\n\\n function setOwner(address owner_) public auth {\\n owner = owner_;\\n emit LogSetOwner(owner);\\n }\\n\\n function setAuthority(DSAuthority authority_) public auth {\\n authority = authority_;\\n emit LogSetAuthority(address(authority));\\n }\\n\\n modifier auth() {\\n require(isAuthorized(msg.sender, msg.sig), \\\"ds-auth-unauthorized\\\");\\n _;\\n }\\n\\n function isAuthorized(address src, bytes4 sig) internal view returns (bool) {\\n if (src == address(this)) {\\n return true;\\n } else if (src == owner) {\\n return true;\\n } else if (authority == DSAuthority(0)) {\\n return false;\\n } else {\\n return authority.canCall(src, address(this), sig);\\n }\\n }\\n}\\n\\ncontract DSNote {\\n event LogNote(bytes4 indexed sig, address indexed guy, bytes32 indexed foo, bytes32 indexed bar, uint wad, bytes fax) anonymous;\\n\\n modifier note() {\\n bytes32 foo;\\n bytes32 bar;\\n uint wad;\\n\\n assembly {\\n foo := calldataload(4)\\n bar := calldataload(36)\\n wad := callvalue()\\n }\\n\\n _;\\n\\n emit LogNote(msg.sig, msg.sender, foo, bar, wad, msg.data);\\n }\\n}\\n\\n// DSProxy\\n// Allows code execution using a persistant identity This can be very\\n// useful to execute a sequence of atomic actions. Since the owner of\\n// the proxy can be changed, this allows for dynamic ownership models\\n// i.e. a multisig\\ncontract DSProxy is DSAuth, DSNote {\\n DSProxyCache public cache; // global cache for contracts\\n\\n constructor(address _cacheAddr) public {\\n setCache(_cacheAddr);\\n }\\n\\n fallback() external payable {}\\n\\n // use the proxy to execute calldata _data on contract _code\\n function execute(\\n bytes memory _code,\\n bytes memory _data,\\n bool bools\\n ) public payable returns (address target, bytes memory response) {\\n target = cache.read(_code);\\n if (target == address(0)) {\\n // deploy contract & store its address in cache\\n target = cache.write(_code);\\n }\\n\\n response = execute(target, _data);\\n }\\n\\n function execute(address _target, bytes memory _data) public payable auth note returns (bytes memory response) {\\n require(_target != address(0), \\\"ds-proxy-target-address-required\\\");\\n\\n // call contract in current context\\n assembly {\\n let succeeded := delegatecall(sub(gas(), 5000), _target, add(_data, 0x20), mload(_data), 0, 0)\\n let size := returndatasize()\\n\\n response := mload(0x40)\\n mstore(0x40, add(response, and(add(add(size, 0x20), 0x1f), not(0x1f))))\\n mstore(response, size)\\n returndatacopy(add(response, 0x20), 0, size)\\n\\n switch iszero(succeeded)\\n case 1 {\\n // throw if delegatecall failed\\n revert(add(response, 0x20), size)\\n }\\n }\\n }\\n\\n //set new cache\\n function setCache(address _cacheAddr) public auth note returns (bool) {\\n require(_cacheAddr != address(0), \\\"ds-proxy-cache-address-required\\\");\\n cache = DSProxyCache(_cacheAddr); // overwrite cache\\n return true;\\n }\\n}\\n\\n// DSProxyFactory\\n// This factory deploys new proxy instances through build()\\n// Deployed proxy addresses are logged\\ncontract DSProxyFactory {\\n event Created(address indexed sender, address indexed owner, address proxy, address cache);\\n mapping(address => bool) public isProxy;\\n DSProxyCache public cache;\\n\\n constructor() public {\\n cache = new DSProxyCache();\\n }\\n\\n // deploys a new proxy instance\\n // sets owner of proxy to caller\\n function build() public returns (address payable proxy) {\\n proxy = build(msg.sender);\\n }\\n\\n // deploys a new proxy instance\\n // sets custom owner of proxy\\n function build(address owner) public returns (address payable proxy) {\\n proxy = address(new DSProxy(address(cache)));\\n emit Created(msg.sender, owner, address(proxy), address(cache));\\n DSProxy(proxy).setOwner(owner);\\n isProxy[proxy] = true;\\n }\\n}\\n\\n// DSProxyCache\\n// This global cache stores addresses of contracts previously deployed\\n// by a proxy. This saves gas from repeat deployment of the same\\n// contracts and eliminates blockchain bloat.\\n\\n// By default, all proxies deployed from the same factory store\\n// contracts in the same cache. The cache a proxy instance uses can be\\n// changed. The cache uses the sha3 hash of a contract's bytecode to\\n// lookup the address\\ncontract DSProxyCache {\\n mapping(bytes32 => address) cache;\\n\\n function read(bytes memory _code) public view returns (address) {\\n bytes32 hash = keccak256(_code);\\n return cache[hash];\\n }\\n\\n function write(bytes memory _code) public returns (address target) {\\n assembly {\\n target := create(0, add(_code, 0x20), mload(_code))\\n switch iszero(extcodesize(target))\\n case 1 {\\n // throw if contract failed to deploy\\n revert(0, 0)\\n }\\n }\\n bytes32 hash = keccak256(_code);\\n cache[hash] = target;\\n }\\n}\\n\\n// ProxyRegistry\\n// This Registry deploys new proxy instances through DSProxyFactory.build(address) and keeps a registry of owner => proxy\\ncontract ProxyRegistry {\\n mapping(address => DSProxy) public proxies;\\n DSProxyFactory factory;\\n\\n constructor(address factory_) public {\\n factory = DSProxyFactory(factory_);\\n }\\n\\n // deploys a new proxy instance\\n // sets owner of proxy to caller\\n function build() public returns (address payable proxy) {\\n proxy = build(msg.sender);\\n }\\n\\n // deploys a new proxy instance\\n // sets custom owner of proxy\\n function build(address owner) public returns (address payable proxy) {\\n require(proxies[owner] == DSProxy(0) || proxies[owner].owner() != owner); // Not allow new proxy if the user already has one and remains being the owner\\n proxy = factory.build(owner);\\n proxies[owner] = DSProxy(proxy);\\n }\\n}\\n\",\"keccak256\":\"0xe721f09114fbc8e46639e77be091457c0288ee1aaefa389bda2388c027fc0346\",\"license\":\"GPL-3.0-or-later\"}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50604051610e80380380610e808339818101604052602081101561003357600080fd5b5051600180546001600160a01b031916339081179091556040517fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a261007c81610083565b50506102ca565b600061009a336001600160e01b03198335166101e1565b6100eb576040805162461bcd60e51b815260206004820152601460248201527f64732d617574682d756e617574686f72697a6564000000000000000000000000604482015290519081900360640190fd5b600435602435346001600160a01b03851661014d576040805162461bcd60e51b815260206004820152601f60248201527f64732d70726f78792d63616368652d616464726573732d726571756972656400604482015290519081900360640190fd5b600280546001600160a01b0387166001600160a01b0319909116179055600193508183336001600160a01b03166000356001600160e01b0319166001600160e01b0319168460003660405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a4505050919050565b60006001600160a01b0383163014156101fc575060016102c4565b6001546001600160a01b038481169116141561021a575060016102c4565b6000546001600160a01b0316610232575060006102c4565b6000546040805163b700961360e01b81526001600160a01b0386811660048301523060248301526001600160e01b0319861660448301529151919092169163b7009613916064808301926020929190829003018186803b15801561029557600080fd5b505afa1580156102a9573d6000803e3d6000fd5b505050506040513d60208110156102bf57600080fd5b505190505b92915050565b610ba7806102d96000396000f3fe60806040526004361061006b5760003560e01c806313af40351461006d5780631cff79cd146100a057806360c7d295146101c95780637a9e5e4b146101fa5780638da5cb5b1461022d578063948f5076146102425780639d7e5b2714610289578063bf7e214f1461043c575b005b34801561007957600080fd5b5061006b6004803603602081101561009057600080fd5b50356001600160a01b0316610451565b610154600480360360408110156100b657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156100e057600080fd5b8201836020820111156100f257600080fd5b803590602001918460018302840111600160201b8311171561011357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506104ff945050505050565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018e578181015183820152602001610176565b50505050905090810190601f1680156101bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101d557600080fd5b506101de61067f565b604080516001600160a01b039092168252519081900360200190f35b34801561020657600080fd5b5061006b6004803603602081101561021d57600080fd5b50356001600160a01b031661068e565b34801561023957600080fd5b506101de610738565b34801561024e57600080fd5b506102756004803603602081101561026557600080fd5b50356001600160a01b0316610747565b604080519115158252519081900360200190f35b6103b46004803603606081101561029f57600080fd5b810190602081018135600160201b8111156102b957600080fd5b8201836020820111156102cb57600080fd5b803590602001918460018302840111600160201b831117156102ec57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561033e57600080fd5b82018360208201111561035057600080fd5b803590602001918460018302840111600160201b8311171561037157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050351515905061089d565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156104005781810151838201526020016103e8565b50505050905090810190601f16801561042d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561044857600080fd5b506101de610a79565b610467336000356001600160e01b031916610a88565b6104af576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b6060610517336000356001600160e01b031916610a88565b61055f576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600435602435346001600160a01b0386166105c1576040805162461bcd60e51b815260206004820181905260248201527f64732d70726f78792d7461726765742d616464726573732d7265717569726564604482015290519081900360640190fd5b600080865160208801896113885a03f43d6040519550601f19601f6020830101168601604052808652806000602088013e81156001811461060157610608565b8160208801fd5b5050508183336001600160a01b03166000356001600160e01b0319166001600160e01b0319168460003660405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a450505092915050565b6002546001600160a01b031681565b6106a4336000356001600160e01b031916610a88565b6106ec576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b6001546001600160a01b031681565b600061075f336000356001600160e01b031916610a88565b6107a7576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600435602435346001600160a01b038516610809576040805162461bcd60e51b815260206004820152601f60248201527f64732d70726f78792d63616368652d616464726573732d726571756972656400604482015290519081900360640190fd5b600280546001600160a01b0387166001600160a01b0319909116179055600193508183336001600160a01b03166000356001600160e01b0319166001600160e01b0319168460003660405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a4505050919050565b6002546040516322fd145760e21b81526020600482018181528651602484015286516000946060946001600160a01b0390911693638bf4515c938a9390928392604490910191908501908083838c5b838110156109045781810151838201526020016108ec565b50505050905090810190601f1680156109315780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d602081101561097857600080fd5b505191506001600160a01b038216610a6557600254604051633f6861d960e11b81526020600482018181528851602484015288516001600160a01b0390941693637ed0c3b2938a9383926044909201919085019080838360005b838110156109ea5781810151838201526020016109d2565b50505050905090810190601f168015610a175780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610a3657600080fd5b505af1158015610a4a573d6000803e3d6000fd5b505050506040513d6020811015610a6057600080fd5b505191505b610a6f82856104ff565b9050935093915050565b6000546001600160a01b031681565b60006001600160a01b038316301415610aa357506001610b6b565b6001546001600160a01b0384811691161415610ac157506001610b6b565b6000546001600160a01b0316610ad957506000610b6b565b6000546040805163b700961360e01b81526001600160a01b0386811660048301523060248301526001600160e01b0319861660448301529151919092169163b7009613916064808301926020929190829003018186803b158015610b3c57600080fd5b505afa158015610b50573d6000803e3d6000fd5b505050506040513d6020811015610b6657600080fd5b505190505b9291505056fea26469706673582212205e37f669d5954222e515e41a2706083aaafc60eff220176a92c68bdac8cdd26f64736f6c634300060c0033",
"deployedBytecode": "0x60806040526004361061006b5760003560e01c806313af40351461006d5780631cff79cd146100a057806360c7d295146101c95780637a9e5e4b146101fa5780638da5cb5b1461022d578063948f5076146102425780639d7e5b2714610289578063bf7e214f1461043c575b005b34801561007957600080fd5b5061006b6004803603602081101561009057600080fd5b50356001600160a01b0316610451565b610154600480360360408110156100b657600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156100e057600080fd5b8201836020820111156100f257600080fd5b803590602001918460018302840111600160201b8311171561011357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506104ff945050505050565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561018e578181015183820152602001610176565b50505050905090810190601f1680156101bb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101d557600080fd5b506101de61067f565b604080516001600160a01b039092168252519081900360200190f35b34801561020657600080fd5b5061006b6004803603602081101561021d57600080fd5b50356001600160a01b031661068e565b34801561023957600080fd5b506101de610738565b34801561024e57600080fd5b506102756004803603602081101561026557600080fd5b50356001600160a01b0316610747565b604080519115158252519081900360200190f35b6103b46004803603606081101561029f57600080fd5b810190602081018135600160201b8111156102b957600080fd5b8201836020820111156102cb57600080fd5b803590602001918460018302840111600160201b831117156102ec57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561033e57600080fd5b82018360208201111561035057600080fd5b803590602001918460018302840111600160201b8311171561037157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505050351515905061089d565b60405180836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156104005781810151838201526020016103e8565b50505050905090810190601f16801561042d5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561044857600080fd5b506101de610a79565b610467336000356001600160e01b031916610a88565b6104af576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b6060610517336000356001600160e01b031916610a88565b61055f576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600435602435346001600160a01b0386166105c1576040805162461bcd60e51b815260206004820181905260248201527f64732d70726f78792d7461726765742d616464726573732d7265717569726564604482015290519081900360640190fd5b600080865160208801896113885a03f43d6040519550601f19601f6020830101168601604052808652806000602088013e81156001811461060157610608565b8160208801fd5b5050508183336001600160a01b03166000356001600160e01b0319166001600160e01b0319168460003660405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a450505092915050565b6002546001600160a01b031681565b6106a4336000356001600160e01b031916610a88565b6106ec576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b6001546001600160a01b031681565b600061075f336000356001600160e01b031916610a88565b6107a7576040805162461bcd60e51b8152602060048201526014602482015273191ccb585d5d1a0b5d5b985d5d1a1bdc9a5e995960621b604482015290519081900360640190fd5b600435602435346001600160a01b038516610809576040805162461bcd60e51b815260206004820152601f60248201527f64732d70726f78792d63616368652d616464726573732d726571756972656400604482015290519081900360640190fd5b600280546001600160a01b0387166001600160a01b0319909116179055600193508183336001600160a01b03166000356001600160e01b0319166001600160e01b0319168460003660405180848152602001806020018281038252848482818152602001925080828437600083820152604051601f909101601f1916909201829003965090945050505050a4505050919050565b6002546040516322fd145760e21b81526020600482018181528651602484015286516000946060946001600160a01b0390911693638bf4515c938a9390928392604490910191908501908083838c5b838110156109045781810151838201526020016108ec565b50505050905090810190601f1680156109315780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b15801561094e57600080fd5b505afa158015610962573d6000803e3d6000fd5b505050506040513d602081101561097857600080fd5b505191506001600160a01b038216610a6557600254604051633f6861d960e11b81526020600482018181528851602484015288516001600160a01b0390941693637ed0c3b2938a9383926044909201919085019080838360005b838110156109ea5781810151838201526020016109d2565b50505050905090810190601f168015610a175780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610a3657600080fd5b505af1158015610a4a573d6000803e3d6000fd5b505050506040513d6020811015610a6057600080fd5b505191505b610a6f82856104ff565b9050935093915050565b6000546001600160a01b031681565b60006001600160a01b038316301415610aa357506001610b6b565b6001546001600160a01b0384811691161415610ac157506001610b6b565b6000546001600160a01b0316610ad957506000610b6b565b6000546040805163b700961360e01b81526001600160a01b0386811660048301523060248301526001600160e01b0319861660448301529151919092169163b7009613916064808301926020929190829003018186803b158015610b3c57600080fd5b505afa158015610b50573d6000803e3d6000fd5b505050506040513d6020811015610b6657600080fd5b505190505b9291505056fea26469706673582212205e37f669d5954222e515e41a2706083aaafc60eff220176a92c68bdac8cdd26f64736f6c634300060c0033",
"libraries": {},
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 26,
"contract": "contracts/deploy/DSProxyContract.sol:DSProxy",
"label": "authority",
"offset": 0,
"slot": "0",
"type": "t_contract(DSAuthority)13"
},
{
"astId": 28,
"contract": "contracts/deploy/DSProxyContract.sol:DSProxy",
"label": "owner",
"offset": 0,
"slot": "1",
"type": "t_address"
},
{
"astId": 186,
"contract": "contracts/deploy/DSProxyContract.sol:DSProxy",
"label": "cache",
"offset": 0,
"slot": "2",
"type": "t_contract(DSProxyCache)431"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_contract(DSAuthority)13": {
"encoding": "inplace",
"label": "contract DSAuthority",
"numberOfBytes": "20"
},
"t_contract(DSProxyCache)431": {
"encoding": "inplace",
"label": "contract DSProxyCache",
"numberOfBytes": "20"
}
}
}
}