/
proxyManager.json
770 lines (770 loc) · 66.6 KB
/
proxyManager.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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
{
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "deployer",
"type": "address"
}
],
"name": "DeploymentApprovalGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "deployer",
"type": "address"
}
],
"name": "DeploymentApprovalRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "implementationAddress",
"type": "address"
}
],
"name": "ManyToOne_ImplementationCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
}
],
"name": "ManyToOne_ImplementationLocked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "implementationAddress",
"type": "address"
}
],
"name": "ManyToOne_ImplementationUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"name": "ManyToOne_ProxyDeployed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"name": "OneToOne_ImplementationLocked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "proxyAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "implementationAddress",
"type": "address"
}
],
"name": "OneToOne_ImplementationUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "proxyAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "implementationAddress",
"type": "address"
}
],
"name": "OneToOne_ProxyDeployed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "deployer",
"type": "address"
}
],
"name": "approveDeployer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
}
],
"name": "computeHolderAddressManyToOne",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "originator",
"type": "address"
},
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "suppliedSalt",
"type": "bytes32"
}
],
"name": "computeProxyAddressManyToOne",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "originator",
"type": "address"
},
{
"internalType": "bytes32",
"name": "suppliedSalt",
"type": "bytes32"
}
],
"name": "computeProxyAddressOneToOne",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "createManyToOneProxyRelationship",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "suppliedSalt",
"type": "bytes32"
}
],
"name": "deployProxyManyToOne",
"outputs": [
{
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "suppliedSalt",
"type": "bytes32"
},
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "deployProxyOneToOne",
"outputs": [
{
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getImplementationHolder",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
}
],
"name": "getImplementationHolder",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "deployer",
"type": "address"
}
],
"name": "isApprovedDeployer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
}
],
"name": "isImplementationLocked",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"name": "isImplementationLocked",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
}
],
"name": "lockImplementationManyToOne",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "proxyAddress",
"type": "address"
}
],
"name": "lockImplementationOneToOne",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "deployer",
"type": "address"
}
],
"name": "revokeDeployerApproval",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "implementationID",
"type": "bytes32"
},
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "setImplementationAddressManyToOne",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "proxyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "implementation",
"type": "address"
}
],
"name": "setImplementationAddressOneToOne",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"receipt": {
"to": null,
"from": "0x8740d0EF44FFd926302E36CfAf7A38e61dAD550e",
"contractAddress": "0x68Cf58DD7d90bBcfAc51D52bF5005c202B17974c",
"transactionIndex": 14,
"gasUsed": "1470753",
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000001000800000000000000000000000000000000020000000000000000000808000000000000000000000000000000400020000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000800000000000000000000000000000000",
"blockHash": "0x06f9ed5267cb04f36ee6fde154c839fe768264b2407e07f9b2a5da8060549553",
"transactionHash": "0xbd5931a4305ad6197b98fe83bacf1003a793d8f975eb6ecf5f4c8c104d73cfbc",
"logs": [
{
"transactionIndex": 14,
"blockNumber": 7423024,
"transactionHash": "0xbd5931a4305ad6197b98fe83bacf1003a793d8f975eb6ecf5f4c8c104d73cfbc",
"address": "0x68Cf58DD7d90bBcfAc51D52bF5005c202B17974c",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000008740d0ef44ffd926302e36cfaf7a38e61dad550e"
],
"data": "0x",
"logIndex": 9,
"blockHash": "0x06f9ed5267cb04f36ee6fde154c839fe768264b2407e07f9b2a5da8060549553"
}
],
"blockNumber": 7423024,
"cumulativeGasUsed": "2762048",
"status": 1,
"byzantium": true
},
"address": "0x68Cf58DD7d90bBcfAc51D52bF5005c202B17974c",
"args": [],
"solcInputHash": "0xd54b2fd043b0d0ad87e570456bf439f2f7ceafbd68a1e6b5b75539fd97bf62e4",
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"DeploymentApprovalGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"DeploymentApprovalRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementationAddress\",\"type\":\"address\"}],\"name\":\"ManyToOne_ImplementationCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"}],\"name\":\"ManyToOne_ImplementationLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementationAddress\",\"type\":\"address\"}],\"name\":\"ManyToOne_ImplementationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"name\":\"ManyToOne_ProxyDeployed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"name\":\"OneToOne_ImplementationLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementationAddress\",\"type\":\"address\"}],\"name\":\"OneToOne_ImplementationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementationAddress\",\"type\":\"address\"}],\"name\":\"OneToOne_ProxyDeployed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"approveDeployer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"}],\"name\":\"computeHolderAddressManyToOne\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"originator\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"suppliedSalt\",\"type\":\"bytes32\"}],\"name\":\"computeProxyAddressManyToOne\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"originator\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"suppliedSalt\",\"type\":\"bytes32\"}],\"name\":\"computeProxyAddressOneToOne\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"createManyToOneProxyRelationship\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"suppliedSalt\",\"type\":\"bytes32\"}],\"name\":\"deployProxyManyToOne\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"suppliedSalt\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"deployProxyOneToOne\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getImplementationHolder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"}],\"name\":\"getImplementationHolder\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"isApprovedDeployer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"}],\"name\":\"isImplementationLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"name\":\"isImplementationLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"}],\"name\":\"lockImplementationManyToOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"}],\"name\":\"lockImplementationOneToOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"deployer\",\"type\":\"address\"}],\"name\":\"revokeDeployerApproval\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"implementationID\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"setImplementationAddressManyToOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"proxyAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"setImplementationAddressOneToOne\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Contract that manages deployment and upgrades of delegatecall proxies. An implementation identifier can be created on the proxy manager which is used to specify the logic address for a particular contract type, and to upgrade the implementation as needed. ====== Proxy Types ====== A one-to-one proxy is a single proxy contract with an upgradeable implementation address. A many-to-one proxy is a single upgradeable implementation address that may be used by many proxy contracts. ====== Access Control ====== The proxy manager has a single address as its owner. The owner is the sole account with the following permissions: - Create new many-to-one implementations - Create new one-to-one proxies - Modify the implementation address of existing proxies - Lock proxies - Designate approved deployers - Remove approved deployers - Modify the owner address Approved deployers may only deploy many-to-one proxies. ====== Upgrades ====== Proxies can be upgraded by the owner if they are not locked. Many-to-one proxy implementations are upgraded by calling the holder contract for the implementation ID being upgraded. One-to-one proxies are upgraded by calling the proxy contract directly. The owner can lock a one-to-one proxy or many-to-one implementation ID so that it becomes impossible to upgrade.\",\"kind\":\"dev\",\"methods\":{\"approveDeployer(address)\":{\"details\":\"Allows `deployer` to deploy many-to-one proxies.\"},\"computeHolderAddressManyToOne(bytes32)\":{\"details\":\"Computes the create2 address of the implementation holder for `implementationID`.\",\"params\":{\"implementationID\":\"The identifier for the contract implementation.\"}},\"computeProxyAddressManyToOne(address,bytes32,bytes32)\":{\"details\":\"Computes the create2 address for a many-to-one proxy for the implementation `implementationID` requested by `originator` using `suppliedSalt`.\",\"params\":{\"implementationID\":\"The identifier for the contract implementation.\",\"originator\":\"Address of the account requesting deployment.\",\"suppliedSalt\":\"Salt provided by the account requesting deployment.\"}},\"computeProxyAddressOneToOne(address,bytes32)\":{\"details\":\"Computes the create2 address for a one-to-one proxy requested by `originator` using `suppliedSalt`.\",\"params\":{\"originator\":\"Address of the account requesting deployment.\",\"suppliedSalt\":\"Salt provided by the account requesting deployment.\"}},\"createManyToOneProxyRelationship(bytes32,address)\":{\"details\":\"Creates a many-to-one proxy relationship. Deploys an implementation holder contract which stores the implementation address for many proxies. The implementation address can be updated on the holder to change the runtime code used by all its proxies.\",\"params\":{\"implementation\":\"Address with the runtime code the proxies should use.\",\"implementationID\":\"ID for the implementation, used to identify the proxies that use it. Also used as the salt in the create2 call when deploying the implementation holder contract.\"}},\"deployProxyManyToOne(bytes32,bytes32)\":{\"details\":\"Deploy a proxy with a many-to-one relationship with its implemenation. The proxy will call the implementation holder for every transaction to determine the address to use in calls.\",\"params\":{\"implementationID\":\"Identifier for the proxy's implementation.\",\"suppliedSalt\":\"Salt provided by the account requesting deployment.\"}},\"deployProxyOneToOne(bytes32,address)\":{\"details\":\"Deploy a proxy contract with a one-to-one relationship with its implementation. The proxy will have its own implementation address which can be updated by the proxy manager.\",\"params\":{\"implementation\":\"Address of the contract with the runtime code that the proxy should use.\",\"suppliedSalt\":\"Salt provided by the account requesting deployment.\"}},\"getImplementationHolder()\":{\"details\":\"Queries the temporary storage value `_implementationHolder`. This is used in the constructor of the many-to-one proxy contract so that the create2 address is static (adding constructor arguments would change the codehash) and the implementation holder can be stored as a constant.\"},\"getImplementationHolder(bytes32)\":{\"details\":\"Returns the address of the implementation holder contract for `implementationID`.\"},\"isApprovedDeployer(address)\":{\"details\":\"Returns a boolean stating whether `deployer` is allowed to deploy many-to-one proxies.\"},\"isImplementationLocked(address)\":{\"details\":\"Returns a boolean stating whether `proxyAddress` is locked.\"},\"isImplementationLocked(bytes32)\":{\"details\":\"Returns a boolean stating whether `implementationID` is locked.\"},\"lockImplementationManyToOne(bytes32)\":{\"details\":\"Lock the current implementation for `implementationID` so that it can never be upgraded again.\"},\"lockImplementationOneToOne(address)\":{\"details\":\"Lock the current implementation for `proxyAddress` so that it can never be upgraded again.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"revokeDeployerApproval(address)\":{\"details\":\"Prevents `deployer` from deploying many-to-one proxies.\"},\"setImplementationAddressManyToOne(bytes32,address)\":{\"details\":\"Updates the implementation address for a many-to-one proxy relationship.\",\"params\":{\"implementation\":\"Address with the runtime code the proxies should use.\",\"implementationID\":\"Identifier for the implementation.\"}},\"setImplementationAddressOneToOne(address,address)\":{\"details\":\"Updates the implementation address for a one-to-one proxy. Note: This could work for many-to-one as well if the caller provides the implementation holder address in place of the proxy address, as they use the same access control and update mechanism.\",\"params\":{\"implementation\":\"Address with the runtime code for the proxy to use.\",\"proxyAddress\":\"Address of the deployed proxy\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/DelegateCallProxyManager.sol\":\"DelegateCallProxyManager\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/GSN/Context.sol\":{\"keccak256\":\"0xdb26cbf4d028490f49831a7865c2fe1b28db44b535ca8d343785a3b768aae183\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://840b14ce0315c47d49ba328f1f9fa7654ded1c9e1559e6c5e777a7b2dc28bf0a\",\"dweb:/ipfs/QmTLLabn4wcfGro9LEmUXUN2nwKqZSotXMvjDCLXEnLtZP\"]},\"@openzeppelin/contracts/access/Ownable.sol\":{\"keccak256\":\"0x4bd6402ca6b3419008c2b482aff54e66836e8cb4eba2680e42ac5884ae6424fc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://8f9f711fb8d0d92aeea1c327e3845d13ca1fa8f142e47f8723cd5b3106fb29a3\",\"dweb:/ipfs/QmVQUReDW9f4zGqhizwHnyU8EntMs95tbASdqkGncnikba\"]},\"@openzeppelin/contracts/proxy/Proxy.sol\":{\"keccak256\":\"0x302c3404769f7a5a3d68a7035b9ed71a4b1f8a1669afa7895558a11b6accebfa\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c413ff3bdda059e93afc96fbcc44c700e5578b7752eb1a3f166dd52d80e27a31\",\"dweb:/ipfs/QmY9xsG9pPtCdwVDWZ58Gmah6dgFBMWTZYQvqLxikKTYdU\"]},\"@openzeppelin/contracts/utils/Address.sol\":{\"keccak256\":\"0xf5fa8cbdffa5ef8be49b246b5628facc30b71707e78a45d80d93b64eff3fe390\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://774e78a9ff32792cc95db4d2ceaf3a7965bb7f0bea5e6cb7cff182b450d44b37\",\"dweb:/ipfs/QmRRMC4uj7eAcLW7chynA3sNEYULMFazdLwQHKHQPyzAbA\"]},\"@openzeppelin/contracts/utils/Create2.sol\":{\"keccak256\":\"0x16926b3c19504ea52f73abe41dfa9c1ef9c328d6088b82162d475caecaa47a6d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc578656a08c07f33ecf4a54324bad5f951afdcd990cdab1dcde493d6bb49d9c\",\"dweb:/ipfs/QmbXLJtTaqBg7WwC4p9gsRjA3VEwNwGc6W9afJeAaacF71\"]},\"contracts/CodeHashes.sol\":{\"keccak256\":\"0x2c82d565ac205e9f0de57beba110dc60a816baf11d95a5bfa7a86f5bc93100d9\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://6ff1117b88b6ff6e43e634f2d0ac398da58c55bd434a2af3b470795d3aa90ab3\",\"dweb:/ipfs/QmVG71LRUcYwmTNHS2ZJccd8uFqKPCYXt4ahCkRKDHfUvd\"]},\"contracts/DelegateCallProxyManager.sol\":{\"keccak256\":\"0xad6004d879a171c7a111333aa5f0a56b18434f87fa96e741c91e94d38c31dfbb\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://6c0da285745e3657792b3b416d925180a2f95c30167807fed994fc84681753bd\",\"dweb:/ipfs/QmeBHdkjm69YCZxnXbmxtiqGpi9s2AaR8HWbxqr46UWvQn\"]},\"contracts/DelegateCallProxyManyToOne.sol\":{\"keccak256\":\"0x24a20a3778980eba1ab27c08c82c973addc1c5b1e64f9efa9535b4275cc86d98\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://e9eb96528c406fccbd50c52ceabfbb6b1815c008cb7bb8e846c0b24eee9050ad\",\"dweb:/ipfs/QmaMFwJ5Pdx7kvtrBs6BUPJJzP6NmHKs1KQiVqCLbxurnn\"]},\"contracts/DelegateCallProxyOneToOne.sol\":{\"keccak256\":\"0xdacbe19ff830076669630ccf0a392a98cbccd4234b656e2dd51cf98899b74bf7\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://8d37ea6c81c79b027dec9702517bbd0e286da01a1bacdc6e40afc8186b52b94b\",\"dweb:/ipfs/QmT4rSUa2K979rd1o6jV1jXk7dgDBCTqfNLg5psQ9uBBMH\"]},\"contracts/ManyToOneImplementationHolder.sol\":{\"keccak256\":\"0x7045007870fb6ef7000a640ccf4a508dad6bfa33280270c42f1cc3ff006fb075\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://be5cab4a88e7e7035501292df790c21c6d42586fde105628d5bbaee8045f9743\",\"dweb:/ipfs/Qmaifp4Txt7TBGBXKNUQemusDGJyESVf9E4aDcjfoKxTUW\"]},\"contracts/SaltyLib.sol\":{\"keccak256\":\"0xdd4f18bcfc3f0761c822c079c2b8177f317edd40c84f85c77fa07a1827b1796b\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ef7e1818cb47a6ff6ab364162f051d6a3444eb8438015259a71fefd547ccb98e\",\"dweb:/ipfs/QmV2gNBns5YTiF2ENEf7B5SZNUeC6Thw89jGECUoRG5FnN\"]},\"contracts/interfaces/IDelegateCallProxyManager.sol\":{\"keccak256\":\"0x24f7aa01dd4c8592b889d6d81badd244ad9e602232406be5941413418d171421\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://3edfca6e8b608f4e4fd2c86a3eb3146202f9bfd7f26ff4608172894313ea911d\",\"dweb:/ipfs/QmdSvcGykCzAgfkyzofX6DEwbtFnAtjtnb9KddA7YJVtHZ\"]}},\"version\":1}",
"bytecode": "0x608060405234801561001057600080fd5b50600061001b61006a565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35061006e565b3390565b61193c8061007d6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80639225ce23116100ad578063db97034011610071578063db9703401461033c578063dc7faa0714610362578063dde5c32f14610388578063f2fde38b146103b4578063f9628542146103da5761012c565b80639225ce231461026f578063964c406114610295578063c3242d6b146102c1578063d07ad498146102ed578063d083bc861461031f5761012c565b80635e4ccacf116100f45780635e4ccacf146101ee5780636813a3c21461020b5780636daf503514610239578063715018a61461025f5780638da5cb5b146102675761012c565b80631a5e5bc5146101315780631da0505d146101705780632275a830146101785780634f85f3ea146101975780635b54cf96146101c8575b600080fd5b6101546004803603604081101561014757600080fd5b5080359060200135610406565b604080516001600160a01b039092168252519081900360200190f35b6101546105ba565b6101956004803603602081101561018e57600080fd5b50356105c9565b005b6101b4600480360360208110156101ad57600080fd5b50356106df565b604080519115158252519081900360200190f35b610195600480360360208110156101de57600080fd5b50356001600160a01b0316610762565b6101546004803603602081101561020457600080fd5b5035610816565b6101956004803603604081101561022157600080fd5b506001600160a01b0381358116916020013516610848565b6101956004803603602081101561024f57600080fd5b50356001600160a01b031661095d565b610195610a10565b610154610ab2565b6101b46004803603602081101561028557600080fd5b50356001600160a01b0316610ac1565b610195600480360360408110156102ab57600080fd5b50803590602001356001600160a01b0316610adf565b610195600480360360408110156102d757600080fd5b50803590602001356001600160a01b0316610bca565b6101546004803603606081101561030357600080fd5b506001600160a01b038135169060208101359060400135610d40565b6101546004803603602081101561033557600080fd5b5035610d83565b6101956004803603602081101561035257600080fd5b50356001600160a01b0316610d9e565b6101b46004803603602081101561037857600080fd5b50356001600160a01b0316610e4e565b6101546004803603604081101561039e57600080fd5b506001600160a01b038135169060200135610e6c565b610195600480360360208110156103ca57600080fd5b50356001600160a01b0316610ead565b610154600480360360408110156103f057600080fd5b50803590602001356001600160a01b0316610fa5565b600080610411611082565b6001600160a01b03811660009081526001602052604090205490915060ff1680610453575061043e610ab2565b6001600160a01b0316816001600160a01b0316145b610497576040805162461bcd60e51b815260206004820152601060248201526f11549497d393d517d054141493d5915160821b604482015290519081900360640190fd5b6000848152600260205260409020546001600160a01b0316806104f9576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b600061050d610506611082565b8787611086565b600480546001600160a01b0319166001600160a01b03851617905560405190915061055b9060009083906105436020820161140a565b601f1982820381018352601f909101166040526110d3565b600480546001600160a01b0319169055604080518881526001600160a01b038316602082015281519296507f7b2f1f9260fa3ce14c2f36f34469f302e66164e3da9dbff6b24c723bcd39d115929081900390910190a150505092915050565b6004546001600160a01b031690565b6105d1611082565b6000546001600160a01b03908116911614610621576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000818152600260205260409020546001600160a01b031680610683576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b038116600090815260036020908152604091829020805460ff19166001179055815184815291517fd62bff6e969424de31ee669b9853f7f90fc209ef41f5721bf62c502e7b2a3d089281900390910190a15050565b6000818152600260205260408120546001600160a01b031680610741576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b031660009081526003602052604090205460ff1692915050565b61076a611082565b6000546001600160a01b039081169116146107ba576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916909217909155815192835290517fa8320d9911124be4bd8a47fe086523f921e913be4659887a823d16c1a7c567b39281900390910190a150565b6000610842827ffc7aed17e5c5d36a15e443235cb9c59bae4a013202cde6ab3e657fa1176d7f3e6111e4565b92915050565b610850611082565b6000546001600160a01b039081169116146108a0576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526003602052604090205460ff161561090a576040805162461bcd60e51b815260206004820152601960248201527811549497d2535413115351539510551253d397d313d0d2d151603a1b604482015290519081900360640190fd5b61091482826111f8565b604080516001600160a01b0380851682528316602082015281517f52f99278569fbf4dd0ee15eb946bc8d758d614d1917ff0faf9b326dd4aada643929181900390910190a15050565b610965611082565b6000546001600160a01b039081169116146109b5576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260036020908152604091829020805460ff19166001179055815192835290517ff51e53e36caf2e8338b84c69c3919eb728c75e5961f866d09697d8cdce7432df9281900390910190a150565b610a18611082565b6000546001600160a01b03908116911614610a68576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526003602052604090205460ff1690565b610ae7611082565b6000546001600160a01b03908116911614610b37576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000610b4f6000846040518060200161054390611417565b600084815260026020526040902080546001600160a01b0319166001600160a01b0383161790559050610b8281836111f8565b604080518481526001600160a01b038416602082015281517f06e1ff8de03513a819420b2e2f57764e89938cd88b8769998326edf2703c2338929181900390910190a1505050565b610bd2611082565b6000546001600160a01b03908116911614610c22576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000828152600260205260409020546001600160a01b031680610c84576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b03811660009081526003602052604090205460ff1615610cee576040805162461bcd60e51b815260206004820152601960248201527811549497d2535413115351539510551253d397d313d0d2d151603a1b604482015290519081900360640190fd5b610cf881836111f8565b604080518481526001600160a01b038416602082015281517f43440a819e0e769fd70fc34ea1c8462915e7170e4396fb7595b450a09d0cdf38929181900390910190a1505050565b600080610d4e858585611086565b9050610d7a817f8fb4522edc5e0645a7ae5cfdbfe3b34d4a14de9e0279b74da795856b5ef4f1e66111e4565b95945050505050565b6000908152600260205260409020546001600160a01b031690565b610da6611082565b6000546001600160a01b03908116911614610df6576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020908152604091829020805460ff19169055815192835290517ff0f9ad55989ce899961b5c41524ba369cda0a1fcd9301dd0c868430e69c41b759281900390910190a150565b6001600160a01b031660009081526001602052604090205460ff1690565b600080610e798484611364565b9050610ea5817fdf533b6e999d326280ce88ca39ea2eddf95ed96f6c153ed5642d9b0a95dba4a26111e4565b949350505050565b610eb5611082565b6000546001600160a01b03908116911614610f05576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116610f4a5760405162461bcd60e51b81526004018080602001828103825260268152602001806118c16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610faf611082565b6000546001600160a01b03908116911614610fff576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b600061101261100c611082565b85611364565b905061102a6000826040518060200161054390611423565b915061103682846111f8565b604080516001600160a01b0380851682528516602082015281517f66708f841fd2ea7b5488d47d39951f9f79cb1033a9c5e0d1e98f76cdb8ba1e88929181900390910190a15092915050565b3390565b6040805160609490941b6bffffffffffffffffffffffff19166020808601919091526034850193909352605480850192909252805180850390920182526074909301909252815191012090565b6000808447101561112b576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b825161117e576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b038116610ea5576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006111f18383306113a9565b9392505050565b61120181611404565b611245576040805162461bcd60e51b815260206004820152601060248201526f11549497d393d517d0d3d395149050d560821b604482015290519081900360640190fd5b6000826001600160a01b03168260405160200180826001600160a01b031681526020019150506040516020818303038152906040526040518082805190602001908083835b602083106112a95780518252601f19909201916020918201910161128a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461130b576040519150601f19603f3d011682016040523d82523d6000602084013e611310565b606091505b505090508061135f576040805162461bcd60e51b815260206004820152601660248201527511549497d4d15517d05111149154d4d7d4915591549560521b604482015290519081900360640190fd5b505050565b6000828260405160200180836001600160a01b031660601b81526014018281526020019250505060405160208183030381529060405280519060200120905092915050565b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b3b151590565b6102b18061143183390190565b60aa806116e283390190565b6101358061178c8339019056fe60a060405234801561001057600080fd5b50336001600160a01b0316631da0505d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561004a57600080fd5b505afa15801561005e573d6000803e3d6000fd5b505050506040513d602081101561007457600080fd5b5051606081901b6001600160601b0319166080526001600160a01b031661020a6100a7600039806046525061020a6000f3fe60806040523661001357610011610017565b005b6100115b61001f61002f565b61002f61002a610031565b6101b0565b565b60405160009081906060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083818181855afa9150503d806000811461009d576040519150601f19603f3d011682016040523d82523d6000602084013e6100a2565b606091505b50915091508181906101325760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600081806020019051602081101561014a57600080fd5b505190506001600160a01b0381166101a9576040805162461bcd60e51b815260206004820152601760248201527f4552525f4e554c4c5f494d504c454d454e544154494f4e000000000000000000604482015290519081900360640190fd5b9250505090565b3660008037600080366000845af43d6000803e8080156101cf573d6000f35b3d6000fdfea2646970667358221220a87867c818d1cc630f8c80138e49dc1cd74c60b8055aff3acb3df87a306c802464736f6c634300060c003360a0604052348015600f57600080fd5b5033606081901b608052607d61002d60003980600f5250607d6000f3fe6080604052336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614603f5760005460005260206000f35b60003560005500fea26469706673582212207b7be31d5f4c47a2747eeb08f94f4d95410f4b18c218276fbf64166c0847879f64736f6c634300060c003360a060405234801561001057600080fd5b5033606081901b60805261010561003060003980603252506101056000f3fe608060405236601057600e6013565b005b600e5b60196027565b602560216087565b60ac565b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614606057605c6025565b6025565b6000357f913bd12b32b36f36cedaeb6e043912bceb97022755958701789d3108d33a045a55005b7f913bd12b32b36f36cedaeb6e043912bceb97022755958701789d3108d33a045a5490565b3660008037600080366000845af43d6000803e80801560ca573d6000f35b3d6000fdfea26469706673582212201d5d6ac3fbe2ff956c757ddb03b461d8f29475cb9a2baf6e1fc8bf35fcdbc70564736f6c634300060c00334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220da21269baf9a935b77c35af61305bb6bb8c95863bbcf7758f6caa6a1594110e564736f6c634300060c0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80639225ce23116100ad578063db97034011610071578063db9703401461033c578063dc7faa0714610362578063dde5c32f14610388578063f2fde38b146103b4578063f9628542146103da5761012c565b80639225ce231461026f578063964c406114610295578063c3242d6b146102c1578063d07ad498146102ed578063d083bc861461031f5761012c565b80635e4ccacf116100f45780635e4ccacf146101ee5780636813a3c21461020b5780636daf503514610239578063715018a61461025f5780638da5cb5b146102675761012c565b80631a5e5bc5146101315780631da0505d146101705780632275a830146101785780634f85f3ea146101975780635b54cf96146101c8575b600080fd5b6101546004803603604081101561014757600080fd5b5080359060200135610406565b604080516001600160a01b039092168252519081900360200190f35b6101546105ba565b6101956004803603602081101561018e57600080fd5b50356105c9565b005b6101b4600480360360208110156101ad57600080fd5b50356106df565b604080519115158252519081900360200190f35b610195600480360360208110156101de57600080fd5b50356001600160a01b0316610762565b6101546004803603602081101561020457600080fd5b5035610816565b6101956004803603604081101561022157600080fd5b506001600160a01b0381358116916020013516610848565b6101956004803603602081101561024f57600080fd5b50356001600160a01b031661095d565b610195610a10565b610154610ab2565b6101b46004803603602081101561028557600080fd5b50356001600160a01b0316610ac1565b610195600480360360408110156102ab57600080fd5b50803590602001356001600160a01b0316610adf565b610195600480360360408110156102d757600080fd5b50803590602001356001600160a01b0316610bca565b6101546004803603606081101561030357600080fd5b506001600160a01b038135169060208101359060400135610d40565b6101546004803603602081101561033557600080fd5b5035610d83565b6101956004803603602081101561035257600080fd5b50356001600160a01b0316610d9e565b6101b46004803603602081101561037857600080fd5b50356001600160a01b0316610e4e565b6101546004803603604081101561039e57600080fd5b506001600160a01b038135169060200135610e6c565b610195600480360360208110156103ca57600080fd5b50356001600160a01b0316610ead565b610154600480360360408110156103f057600080fd5b50803590602001356001600160a01b0316610fa5565b600080610411611082565b6001600160a01b03811660009081526001602052604090205490915060ff1680610453575061043e610ab2565b6001600160a01b0316816001600160a01b0316145b610497576040805162461bcd60e51b815260206004820152601060248201526f11549497d393d517d054141493d5915160821b604482015290519081900360640190fd5b6000848152600260205260409020546001600160a01b0316806104f9576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b600061050d610506611082565b8787611086565b600480546001600160a01b0319166001600160a01b03851617905560405190915061055b9060009083906105436020820161140a565b601f1982820381018352601f909101166040526110d3565b600480546001600160a01b0319169055604080518881526001600160a01b038316602082015281519296507f7b2f1f9260fa3ce14c2f36f34469f302e66164e3da9dbff6b24c723bcd39d115929081900390910190a150505092915050565b6004546001600160a01b031690565b6105d1611082565b6000546001600160a01b03908116911614610621576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000818152600260205260409020546001600160a01b031680610683576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b038116600090815260036020908152604091829020805460ff19166001179055815184815291517fd62bff6e969424de31ee669b9853f7f90fc209ef41f5721bf62c502e7b2a3d089281900390910190a15050565b6000818152600260205260408120546001600160a01b031680610741576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b031660009081526003602052604090205460ff1692915050565b61076a611082565b6000546001600160a01b039081169116146107ba576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020818152604092839020805460ff1916909217909155815192835290517fa8320d9911124be4bd8a47fe086523f921e913be4659887a823d16c1a7c567b39281900390910190a150565b6000610842827ffc7aed17e5c5d36a15e443235cb9c59bae4a013202cde6ab3e657fa1176d7f3e6111e4565b92915050565b610850611082565b6000546001600160a01b039081169116146108a0576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b03821660009081526003602052604090205460ff161561090a576040805162461bcd60e51b815260206004820152601960248201527811549497d2535413115351539510551253d397d313d0d2d151603a1b604482015290519081900360640190fd5b61091482826111f8565b604080516001600160a01b0380851682528316602082015281517f52f99278569fbf4dd0ee15eb946bc8d758d614d1917ff0faf9b326dd4aada643929181900390910190a15050565b610965611082565b6000546001600160a01b039081169116146109b5576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260036020908152604091829020805460ff19166001179055815192835290517ff51e53e36caf2e8338b84c69c3919eb728c75e5961f866d09697d8cdce7432df9281900390910190a150565b610a18611082565b6000546001600160a01b03908116911614610a68576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6001600160a01b031660009081526003602052604090205460ff1690565b610ae7611082565b6000546001600160a01b03908116911614610b37576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000610b4f6000846040518060200161054390611417565b600084815260026020526040902080546001600160a01b0319166001600160a01b0383161790559050610b8281836111f8565b604080518481526001600160a01b038416602082015281517f06e1ff8de03513a819420b2e2f57764e89938cd88b8769998326edf2703c2338929181900390910190a1505050565b610bd2611082565b6000546001600160a01b03908116911614610c22576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6000828152600260205260409020546001600160a01b031680610c84576040805162461bcd60e51b815260206004820152601560248201527411549497d2535413115351539510551253d397d251605a1b604482015290519081900360640190fd5b6001600160a01b03811660009081526003602052604090205460ff1615610cee576040805162461bcd60e51b815260206004820152601960248201527811549497d2535413115351539510551253d397d313d0d2d151603a1b604482015290519081900360640190fd5b610cf881836111f8565b604080518481526001600160a01b038416602082015281517f43440a819e0e769fd70fc34ea1c8462915e7170e4396fb7595b450a09d0cdf38929181900390910190a1505050565b600080610d4e858585611086565b9050610d7a817f8fb4522edc5e0645a7ae5cfdbfe3b34d4a14de9e0279b74da795856b5ef4f1e66111e4565b95945050505050565b6000908152600260205260409020546001600160a01b031690565b610da6611082565b6000546001600160a01b03908116911614610df6576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260016020908152604091829020805460ff19169055815192835290517ff0f9ad55989ce899961b5c41524ba369cda0a1fcd9301dd0c868430e69c41b759281900390910190a150565b6001600160a01b031660009081526001602052604090205460ff1690565b600080610e798484611364565b9050610ea5817fdf533b6e999d326280ce88ca39ea2eddf95ed96f6c153ed5642d9b0a95dba4a26111e4565b949350505050565b610eb5611082565b6000546001600160a01b03908116911614610f05576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b6001600160a01b038116610f4a5760405162461bcd60e51b81526004018080602001828103825260268152602001806118c16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000610faf611082565b6000546001600160a01b03908116911614610fff576040805162461bcd60e51b815260206004820181905260248201526000805160206118e7833981519152604482015290519081900360640190fd5b600061101261100c611082565b85611364565b905061102a6000826040518060200161054390611423565b915061103682846111f8565b604080516001600160a01b0380851682528516602082015281517f66708f841fd2ea7b5488d47d39951f9f79cb1033a9c5e0d1e98f76cdb8ba1e88929181900390910190a15092915050565b3390565b6040805160609490941b6bffffffffffffffffffffffff19166020808601919091526034850193909352605480850192909252805180850390920182526074909301909252815191012090565b6000808447101561112b576040805162461bcd60e51b815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b825161117e576040805162461bcd60e51b815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015290519081900360640190fd5b8383516020850187f590506001600160a01b038116610ea5576040805162461bcd60e51b815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015290519081900360640190fd5b60006111f18383306113a9565b9392505050565b61120181611404565b611245576040805162461bcd60e51b815260206004820152601060248201526f11549497d393d517d0d3d395149050d560821b604482015290519081900360640190fd5b6000826001600160a01b03168260405160200180826001600160a01b031681526020019150506040516020818303038152906040526040518082805190602001908083835b602083106112a95780518252601f19909201916020918201910161128a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461130b576040519150601f19603f3d011682016040523d82523d6000602084013e611310565b606091505b505090508061135f576040805162461bcd60e51b815260206004820152601660248201527511549497d4d15517d05111149154d4d7d4915591549560521b604482015290519081900360640190fd5b505050565b6000828260405160200180836001600160a01b031660601b81526014018281526020019250505060405160208183030381529060405280519060200120905092915050565b604080516001600160f81b031960208083019190915260609390931b6bffffffffffffffffffffffff191660218201526035810194909452605580850193909352805180850390930183526075909301909252805191012090565b3b151590565b6102b18061143183390190565b60aa806116e283390190565b6101358061178c8339019056fe60a060405234801561001057600080fd5b50336001600160a01b0316631da0505d6040518163ffffffff1660e01b815260040160206040518083038186803b15801561004a57600080fd5b505afa15801561005e573d6000803e3d6000fd5b505050506040513d602081101561007457600080fd5b5051606081901b6001600160601b0319166080526001600160a01b031661020a6100a7600039806046525061020a6000f3fe60806040523661001357610011610017565b005b6100115b61001f61002f565b61002f61002a610031565b6101b0565b565b60405160009081906060906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169083818181855afa9150503d806000811461009d576040519150601f19603f3d011682016040523d82523d6000602084013e6100a2565b606091505b50915091508181906101325760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156100f75781810151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600081806020019051602081101561014a57600080fd5b505190506001600160a01b0381166101a9576040805162461bcd60e51b815260206004820152601760248201527f4552525f4e554c4c5f494d504c454d454e544154494f4e000000000000000000604482015290519081900360640190fd5b9250505090565b3660008037600080366000845af43d6000803e8080156101cf573d6000f35b3d6000fdfea2646970667358221220a87867c818d1cc630f8c80138e49dc1cd74c60b8055aff3acb3df87a306c802464736f6c634300060c003360a0604052348015600f57600080fd5b5033606081901b608052607d61002d60003980600f5250607d6000f3fe6080604052336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614603f5760005460005260206000f35b60003560005500fea26469706673582212207b7be31d5f4c47a2747eeb08f94f4d95410f4b18c218276fbf64166c0847879f64736f6c634300060c003360a060405234801561001057600080fd5b5033606081901b60805261010561003060003980603252506101056000f3fe608060405236601057600e6013565b005b600e5b60196027565b602560216087565b60ac565b565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614606057605c6025565b6025565b6000357f913bd12b32b36f36cedaeb6e043912bceb97022755958701789d3108d33a045a55005b7f913bd12b32b36f36cedaeb6e043912bceb97022755958701789d3108d33a045a5490565b3660008037600080366000845af43d6000803e80801560ca573d6000f35b3d6000fdfea26469706673582212201d5d6ac3fbe2ff956c757ddb03b461d8f29475cb9a2baf6e1fc8bf35fcdbc70564736f6c634300060c00334f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220da21269baf9a935b77c35af61305bb6bb8c95863bbcf7758f6caa6a1594110e564736f6c634300060c0033",
"devdoc": {
"details": "Contract that manages deployment and upgrades of delegatecall proxies. An implementation identifier can be created on the proxy manager which is used to specify the logic address for a particular contract type, and to upgrade the implementation as needed. ====== Proxy Types ====== A one-to-one proxy is a single proxy contract with an upgradeable implementation address. A many-to-one proxy is a single upgradeable implementation address that may be used by many proxy contracts. ====== Access Control ====== The proxy manager has a single address as its owner. The owner is the sole account with the following permissions: - Create new many-to-one implementations - Create new one-to-one proxies - Modify the implementation address of existing proxies - Lock proxies - Designate approved deployers - Remove approved deployers - Modify the owner address Approved deployers may only deploy many-to-one proxies. ====== Upgrades ====== Proxies can be upgraded by the owner if they are not locked. Many-to-one proxy implementations are upgraded by calling the holder contract for the implementation ID being upgraded. One-to-one proxies are upgraded by calling the proxy contract directly. The owner can lock a one-to-one proxy or many-to-one implementation ID so that it becomes impossible to upgrade.",
"kind": "dev",
"methods": {
"approveDeployer(address)": {
"details": "Allows `deployer` to deploy many-to-one proxies."
},
"computeHolderAddressManyToOne(bytes32)": {
"details": "Computes the create2 address of the implementation holder for `implementationID`.",
"params": {
"implementationID": "The identifier for the contract implementation."
}
},
"computeProxyAddressManyToOne(address,bytes32,bytes32)": {
"details": "Computes the create2 address for a many-to-one proxy for the implementation `implementationID` requested by `originator` using `suppliedSalt`.",
"params": {
"implementationID": "The identifier for the contract implementation.",
"originator": "Address of the account requesting deployment.",
"suppliedSalt": "Salt provided by the account requesting deployment."
}
},
"computeProxyAddressOneToOne(address,bytes32)": {
"details": "Computes the create2 address for a one-to-one proxy requested by `originator` using `suppliedSalt`.",
"params": {
"originator": "Address of the account requesting deployment.",
"suppliedSalt": "Salt provided by the account requesting deployment."
}
},
"createManyToOneProxyRelationship(bytes32,address)": {
"details": "Creates a many-to-one proxy relationship. Deploys an implementation holder contract which stores the implementation address for many proxies. The implementation address can be updated on the holder to change the runtime code used by all its proxies.",
"params": {
"implementation": "Address with the runtime code the proxies should use.",
"implementationID": "ID for the implementation, used to identify the proxies that use it. Also used as the salt in the create2 call when deploying the implementation holder contract."
}
},
"deployProxyManyToOne(bytes32,bytes32)": {
"details": "Deploy a proxy with a many-to-one relationship with its implemenation. The proxy will call the implementation holder for every transaction to determine the address to use in calls.",
"params": {
"implementationID": "Identifier for the proxy's implementation.",
"suppliedSalt": "Salt provided by the account requesting deployment."
}
},
"deployProxyOneToOne(bytes32,address)": {
"details": "Deploy a proxy contract with a one-to-one relationship with its implementation. The proxy will have its own implementation address which can be updated by the proxy manager.",
"params": {
"implementation": "Address of the contract with the runtime code that the proxy should use.",
"suppliedSalt": "Salt provided by the account requesting deployment."
}
},
"getImplementationHolder()": {
"details": "Queries the temporary storage value `_implementationHolder`. This is used in the constructor of the many-to-one proxy contract so that the create2 address is static (adding constructor arguments would change the codehash) and the implementation holder can be stored as a constant."
},
"getImplementationHolder(bytes32)": {
"details": "Returns the address of the implementation holder contract for `implementationID`."
},
"isApprovedDeployer(address)": {
"details": "Returns a boolean stating whether `deployer` is allowed to deploy many-to-one proxies."
},
"isImplementationLocked(address)": {
"details": "Returns a boolean stating whether `proxyAddress` is locked."
},
"isImplementationLocked(bytes32)": {
"details": "Returns a boolean stating whether `implementationID` is locked."
},
"lockImplementationManyToOne(bytes32)": {
"details": "Lock the current implementation for `implementationID` so that it can never be upgraded again."
},
"lockImplementationOneToOne(address)": {
"details": "Lock the current implementation for `proxyAddress` so that it can never be upgraded again."
},
"owner()": {
"details": "Returns the address of the current owner."
},
"renounceOwnership()": {
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
},
"revokeDeployerApproval(address)": {
"details": "Prevents `deployer` from deploying many-to-one proxies."
},
"setImplementationAddressManyToOne(bytes32,address)": {
"details": "Updates the implementation address for a many-to-one proxy relationship.",
"params": {
"implementation": "Address with the runtime code the proxies should use.",
"implementationID": "Identifier for the implementation."
}
},
"setImplementationAddressOneToOne(address,address)": {
"details": "Updates the implementation address for a one-to-one proxy. Note: This could work for many-to-one as well if the caller provides the implementation holder address in place of the proxy address, as they use the same access control and update mechanism.",
"params": {
"implementation": "Address with the runtime code for the proxy to use.",
"proxyAddress": "Address of the deployed proxy"
}
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 8108,
"contract": "contracts/DelegateCallProxyManager.sol:DelegateCallProxyManager",
"label": "_owner",
"offset": 0,
"slot": "0",
"type": "t_address"
},
{
"astId": 8650,
"contract": "contracts/DelegateCallProxyManager.sol:DelegateCallProxyManager",
"label": "_approvedDeployers",
"offset": 0,
"slot": "1",
"type": "t_mapping(t_address,t_bool)"
},
{
"astId": 8654,
"contract": "contracts/DelegateCallProxyManager.sol:DelegateCallProxyManager",
"label": "_implementationHolders",
"offset": 0,
"slot": "2",
"type": "t_mapping(t_bytes32,t_address)"
},
{
"astId": 8658,
"contract": "contracts/DelegateCallProxyManager.sol:DelegateCallProxyManager",
"label": "_lockedImplementations",
"offset": 0,
"slot": "3",
"type": "t_mapping(t_address,t_bool)"
},
{
"astId": 8660,
"contract": "contracts/DelegateCallProxyManager.sol:DelegateCallProxyManager",
"label": "_implementationHolder",
"offset": 0,
"slot": "4",
"type": "t_address"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
},
"t_bool": {
"encoding": "inplace",
"label": "bool",
"numberOfBytes": "1"
},
"t_bytes32": {
"encoding": "inplace",
"label": "bytes32",
"numberOfBytes": "32"
},
"t_mapping(t_address,t_bool)": {
"encoding": "mapping",
"key": "t_address",
"label": "mapping(address => bool)",
"numberOfBytes": "32",
"value": "t_bool"
},
"t_mapping(t_bytes32,t_address)": {
"encoding": "mapping",
"key": "t_bytes32",
"label": "mapping(bytes32 => address)",
"numberOfBytes": "32",
"value": "t_address"
}
}
},
"gasEstimates": {
"creation": {
"codeDepositCost": "1292000",
"executionCost": "23777",
"totalCost": "1315777"
},
"external": {
"approveDeployer(address)": "infinite",
"computeHolderAddressManyToOne(bytes32)": "626",
"computeProxyAddressManyToOne(address,bytes32,bytes32)": "1015",
"computeProxyAddressOneToOne(address,bytes32)": "939",
"createManyToOneProxyRelationship(bytes32,address)": "infinite",
"deployProxyManyToOne(bytes32,bytes32)": "infinite",
"deployProxyOneToOne(bytes32,address)": "infinite",
"getImplementationHolder()": "1083",
"getImplementationHolder(bytes32)": "1256",
"isApprovedDeployer(address)": "1198",
"isImplementationLocked(address)": "1177",
"isImplementationLocked(bytes32)": "2137",
"lockImplementationManyToOne(bytes32)": "infinite",
"lockImplementationOneToOne(address)": "infinite",
"owner()": "1148",
"renounceOwnership()": "infinite",
"revokeDeployerApproval(address)": "infinite",
"setImplementationAddressManyToOne(bytes32,address)": "infinite",
"setImplementationAddressOneToOne(address,address)": "infinite",
"transferOwnership(address)": "infinite"
},
"internal": {
"_setImplementation(address,address)": "infinite"
}
}
}