1pub use erc1967_proxy::*;
2#[allow(
5 clippy::enum_variant_names,
6 clippy::too_many_arguments,
7 clippy::upper_case_acronyms,
8 clippy::type_complexity,
9 dead_code,
10 non_camel_case_types,
11)]
12pub mod erc1967_proxy {
13 #[rustfmt::skip]
14 const __ABI: &str = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_logic\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\",\"components\":[]}],\"stateMutability\":\"payable\",\"type\":\"constructor\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\",\"components\":[],\"indexed\":false},{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"AdminChanged\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"BeaconUpgraded\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"Upgraded\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"fallback\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"receive\",\"outputs\":[]}]";
15 pub static ERC1967PROXY_ABI: ::ethers_contract::Lazy<::ethers_core::abi::Abi> = ::ethers_contract::Lazy::new(||
17 ::ethers_core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid"));
18 #[rustfmt::skip]
19 const __BYTECODE: &[u8] = &[
20 96,
21 128,
22 96,
23 64,
24 82,
25 96,
26 64,
27 81,
28 97,
29 7,
30 59,
31 56,
32 3,
33 128,
34 97,
35 7,
36 59,
37 131,
38 57,
39 129,
40 1,
41 96,
42 64,
43 129,
44 144,
45 82,
46 97,
47 0,
48 34,
49 145,
50 97,
51 3,
52 33,
53 86,
54 91,
55 97,
56 0,
57 46,
58 130,
59 130,
60 96,
61 0,
62 97,
63 0,
64 53,
65 86,
66 91,
67 80,
68 80,
69 97,
70 4,
71 62,
72 86,
73 91,
74 97,
75 0,
76 62,
77 131,
78 97,
79 0,
80 107,
81 86,
82 91,
83 96,
84 0,
85 130,
86 81,
87 17,
88 128,
89 97,
90 0,
91 75,
92 87,
93 80,
94 128,
95 91,
96 21,
97 97,
98 0,
99 102,
100 87,
101 97,
102 0,
103 100,
104 131,
105 131,
106 97,
107 0,
108 171,
109 96,
110 32,
111 27,
112 97,
113 0,
114 41,
115 23,
116 96,
117 32,
118 28,
119 86,
120 91,
121 80,
122 91,
123 80,
124 80,
125 80,
126 86,
127 91,
128 97,
129 0,
130 116,
131 129,
132 97,
133 0,
134 215,
135 86,
136 91,
137 96,
138 64,
139 81,
140 96,
141 1,
142 96,
143 1,
144 96,
145 160,
146 27,
147 3,
148 130,
149 22,
150 144,
151 127,
152 188,
153 124,
154 215,
155 90,
156 32,
157 238,
158 39,
159 253,
160 154,
161 222,
162 186,
163 179,
164 32,
165 65,
166 247,
167 85,
168 33,
169 77,
170 188,
171 107,
172 255,
173 169,
174 12,
175 192,
176 34,
177 91,
178 57,
179 218,
180 46,
181 92,
182 45,
183 59,
184 144,
185 96,
186 0,
187 144,
188 162,
189 80,
190 86,
191 91,
192 96,
193 96,
194 97,
195 0,
196 208,
197 131,
198 131,
199 96,
200 64,
201 81,
202 128,
203 96,
204 96,
205 1,
206 96,
207 64,
208 82,
209 128,
210 96,
211 39,
212 129,
213 82,
214 96,
215 32,
216 1,
217 97,
218 7,
219 20,
220 96,
221 39,
222 145,
223 57,
224 97,
225 1,
226 169,
227 86,
228 91,
229 147,
230 146,
231 80,
232 80,
233 80,
234 86,
235 91,
236 97,
237 0,
238 234,
239 129,
240 97,
241 2,
242 34,
243 96,
244 32,
245 27,
246 97,
247 0,
248 85,
249 23,
250 96,
251 32,
252 28,
253 86,
254 91,
255 97,
256 1,
257 81,
258 87,
259 96,
260 64,
261 81,
262 98,
263 70,
264 27,
265 205,
266 96,
267 229,
268 27,
269 129,
270 82,
271 96,
272 32,
273 96,
274 4,
275 130,
276 1,
277 82,
278 96,
279 45,
280 96,
281 36,
282 130,
283 1,
284 82,
285 127,
286 69,
287 82,
288 67,
289 49,
290 57,
291 54,
292 55,
293 58,
294 32,
295 110,
296 101,
297 119,
298 32,
299 105,
300 109,
301 112,
302 108,
303 101,
304 109,
305 101,
306 110,
307 116,
308 97,
309 116,
310 105,
311 111,
312 110,
313 32,
314 105,
315 115,
316 32,
317 110,
318 96,
319 68,
320 130,
321 1,
322 82,
323 108,
324 27,
325 221,
326 8,
327 24,
328 72,
329 24,
330 219,
331 219,
332 157,
333 28,
334 152,
335 88,
336 221,
337 96,
338 154,
339 27,
340 96,
341 100,
342 130,
343 1,
344 82,
345 96,
346 132,
347 1,
348 91,
349 96,
350 64,
351 81,
352 128,
353 145,
354 3,
355 144,
356 253,
357 91,
358 128,
359 97,
360 1,
361 136,
362 127,
363 54,
364 8,
365 148,
366 161,
367 59,
368 161,
369 163,
370 33,
371 6,
372 103,
373 200,
374 40,
375 73,
376 45,
377 185,
378 141,
379 202,
380 62,
381 32,
382 118,
383 204,
384 55,
385 53,
386 169,
387 32,
388 163,
389 202,
390 80,
391 93,
392 56,
393 43,
394 188,
395 96,
396 0,
397 27,
398 97,
399 2,
400 49,
401 96,
402 32,
403 27,
404 97,
405 0,
406 100,
407 23,
408 96,
409 32,
410 28,
411 86,
412 91,
413 128,
414 84,
415 96,
416 1,
417 96,
418 1,
419 96,
420 160,
421 27,
422 3,
423 25,
424 22,
425 96,
426 1,
427 96,
428 1,
429 96,
430 160,
431 27,
432 3,
433 146,
434 144,
435 146,
436 22,
437 145,
438 144,
439 145,
440 23,
441 144,
442 85,
443 80,
444 86,
445 91,
446 96,
447 96,
448 96,
449 0,
450 128,
451 133,
452 96,
453 1,
454 96,
455 1,
456 96,
457 160,
458 27,
459 3,
460 22,
461 133,
462 96,
463 64,
464 81,
465 97,
466 1,
467 198,
468 145,
469 144,
470 97,
471 3,
472 239,
473 86,
474 91,
475 96,
476 0,
477 96,
478 64,
479 81,
480 128,
481 131,
482 3,
483 129,
484 133,
485 90,
486 244,
487 145,
488 80,
489 80,
490 61,
491 128,
492 96,
493 0,
494 129,
495 20,
496 97,
497 2,
498 1,
499 87,
500 96,
501 64,
502 81,
503 145,
504 80,
505 96,
506 31,
507 25,
508 96,
509 63,
510 61,
511 1,
512 22,
513 130,
514 1,
515 96,
516 64,
517 82,
518 61,
519 130,
520 82,
521 61,
522 96,
523 0,
524 96,
525 32,
526 132,
527 1,
528 62,
529 97,
530 2,
531 6,
532 86,
533 91,
534 96,
535 96,
536 145,
537 80,
538 91,
539 80,
540 144,
541 146,
542 80,
543 144,
544 80,
545 97,
546 2,
547 24,
548 134,
549 131,
550 131,
551 135,
552 97,
553 2,
554 52,
555 86,
556 91,
557 150,
558 149,
559 80,
560 80,
561 80,
562 80,
563 80,
564 80,
565 86,
566 91,
567 96,
568 1,
569 96,
570 1,
571 96,
572 160,
573 27,
574 3,
575 22,
576 59,
577 21,
578 21,
579 144,
580 86,
581 91,
582 144,
583 86,
584 91,
585 96,
586 96,
587 131,
588 21,
589 97,
590 2,
591 163,
592 87,
593 130,
594 81,
595 96,
596 0,
597 3,
598 97,
599 2,
600 156,
601 87,
602 96,
603 1,
604 96,
605 1,
606 96,
607 160,
608 27,
609 3,
610 133,
611 22,
612 59,
613 97,
614 2,
615 156,
616 87,
617 96,
618 64,
619 81,
620 98,
621 70,
622 27,
623 205,
624 96,
625 229,
626 27,
627 129,
628 82,
629 96,
630 32,
631 96,
632 4,
633 130,
634 1,
635 82,
636 96,
637 29,
638 96,
639 36,
640 130,
641 1,
642 82,
643 127,
644 65,
645 100,
646 100,
647 114,
648 101,
649 115,
650 115,
651 58,
652 32,
653 99,
654 97,
655 108,
656 108,
657 32,
658 116,
659 111,
660 32,
661 110,
662 111,
663 110,
664 45,
665 99,
666 111,
667 110,
668 116,
669 114,
670 97,
671 99,
672 116,
673 0,
674 0,
675 0,
676 96,
677 68,
678 130,
679 1,
680 82,
681 96,
682 100,
683 1,
684 97,
685 1,
686 72,
687 86,
688 91,
689 80,
690 129,
691 97,
692 2,
693 173,
694 86,
695 91,
696 97,
697 2,
698 173,
699 131,
700 131,
701 97,
702 2,
703 181,
704 86,
705 91,
706 148,
707 147,
708 80,
709 80,
710 80,
711 80,
712 86,
713 91,
714 129,
715 81,
716 21,
717 97,
718 2,
719 197,
720 87,
721 129,
722 81,
723 128,
724 131,
725 96,
726 32,
727 1,
728 253,
729 91,
730 128,
731 96,
732 64,
733 81,
734 98,
735 70,
736 27,
737 205,
738 96,
739 229,
740 27,
741 129,
742 82,
743 96,
744 4,
745 1,
746 97,
747 1,
748 72,
749 145,
750 144,
751 97,
752 4,
753 11,
754 86,
755 91,
756 99,
757 78,
758 72,
759 123,
760 113,
761 96,
762 224,
763 27,
764 96,
765 0,
766 82,
767 96,
768 65,
769 96,
770 4,
771 82,
772 96,
773 36,
774 96,
775 0,
776 253,
777 91,
778 96,
779 0,
780 91,
781 131,
782 129,
783 16,
784 21,
785 97,
786 3,
787 16,
788 87,
789 129,
790 129,
791 1,
792 81,
793 131,
794 130,
795 1,
796 82,
797 96,
798 32,
799 1,
800 97,
801 2,
802 248,
803 86,
804 91,
805 131,
806 129,
807 17,
808 21,
809 97,
810 0,
811 100,
812 87,
813 80,
814 80,
815 96,
816 0,
817 145,
818 1,
819 82,
820 86,
821 91,
822 96,
823 0,
824 128,
825 96,
826 64,
827 131,
828 133,
829 3,
830 18,
831 21,
832 97,
833 3,
834 52,
835 87,
836 96,
837 0,
838 128,
839 253,
840 91,
841 130,
842 81,
843 96,
844 1,
845 96,
846 1,
847 96,
848 160,
849 27,
850 3,
851 129,
852 22,
853 129,
854 20,
855 97,
856 3,
857 75,
858 87,
859 96,
860 0,
861 128,
862 253,
863 91,
864 96,
865 32,
866 132,
867 1,
868 81,
869 144,
870 146,
871 80,
872 96,
873 1,
874 96,
875 1,
876 96,
877 64,
878 27,
879 3,
880 128,
881 130,
882 17,
883 21,
884 97,
885 3,
886 104,
887 87,
888 96,
889 0,
890 128,
891 253,
892 91,
893 129,
894 133,
895 1,
896 145,
897 80,
898 133,
899 96,
900 31,
901 131,
902 1,
903 18,
904 97,
905 3,
906 124,
907 87,
908 96,
909 0,
910 128,
911 253,
912 91,
913 129,
914 81,
915 129,
916 129,
917 17,
918 21,
919 97,
920 3,
921 142,
922 87,
923 97,
924 3,
925 142,
926 97,
927 2,
928 223,
929 86,
930 91,
931 96,
932 64,
933 81,
934 96,
935 31,
936 130,
937 1,
938 96,
939 31,
940 25,
941 144,
942 129,
943 22,
944 96,
945 63,
946 1,
947 22,
948 129,
949 1,
950 144,
951 131,
952 130,
953 17,
954 129,
955 131,
956 16,
957 23,
958 21,
959 97,
960 3,
961 182,
962 87,
963 97,
964 3,
965 182,
966 97,
967 2,
968 223,
969 86,
970 91,
971 129,
972 96,
973 64,
974 82,
975 130,
976 129,
977 82,
978 136,
979 96,
980 32,
981 132,
982 135,
983 1,
984 1,
985 17,
986 21,
987 97,
988 3,
989 207,
990 87,
991 96,
992 0,
993 128,
994 253,
995 91,
996 97,
997 3,
998 224,
999 131,
1000 96,
1001 32,
1002 131,
1003 1,
1004 96,
1005 32,
1006 136,
1007 1,
1008 97,
1009 2,
1010 245,
1011 86,
1012 91,
1013 128,
1014 149,
1015 80,
1016 80,
1017 80,
1018 80,
1019 80,
1020 80,
1021 146,
1022 80,
1023 146,
1024 144,
1025 80,
1026 86,
1027 91,
1028 96,
1029 0,
1030 130,
1031 81,
1032 97,
1033 4,
1034 1,
1035 129,
1036 132,
1037 96,
1038 32,
1039 135,
1040 1,
1041 97,
1042 2,
1043 245,
1044 86,
1045 91,
1046 145,
1047 144,
1048 145,
1049 1,
1050 146,
1051 145,
1052 80,
1053 80,
1054 86,
1055 91,
1056 96,
1057 32,
1058 129,
1059 82,
1060 96,
1061 0,
1062 130,
1063 81,
1064 128,
1065 96,
1066 32,
1067 132,
1068 1,
1069 82,
1070 97,
1071 4,
1072 42,
1073 129,
1074 96,
1075 64,
1076 133,
1077 1,
1078 96,
1079 32,
1080 135,
1081 1,
1082 97,
1083 2,
1084 245,
1085 86,
1086 91,
1087 96,
1088 31,
1089 1,
1090 96,
1091 31,
1092 25,
1093 22,
1094 145,
1095 144,
1096 145,
1097 1,
1098 96,
1099 64,
1100 1,
1101 146,
1102 145,
1103 80,
1104 80,
1105 86,
1106 91,
1107 97,
1108 2,
1109 199,
1110 128,
1111 97,
1112 4,
1113 77,
1114 96,
1115 0,
1116 57,
1117 96,
1118 0,
1119 243,
1120 254,
1121 96,
1122 128,
1123 96,
1124 64,
1125 82,
1126 54,
1127 97,
1128 0,
1129 19,
1130 87,
1131 97,
1132 0,
1133 17,
1134 97,
1135 0,
1136 23,
1137 86,
1138 91,
1139 0,
1140 91,
1141 97,
1142 0,
1143 17,
1144 91,
1145 97,
1146 0,
1147 39,
1148 97,
1149 0,
1150 34,
1151 97,
1152 0,
1153 103,
1154 86,
1155 91,
1156 97,
1157 0,
1158 159,
1159 86,
1160 91,
1161 86,
1162 91,
1163 96,
1164 96,
1165 97,
1166 0,
1167 78,
1168 131,
1169 131,
1170 96,
1171 64,
1172 81,
1173 128,
1174 96,
1175 96,
1176 1,
1177 96,
1178 64,
1179 82,
1180 128,
1181 96,
1182 39,
1183 129,
1184 82,
1185 96,
1186 32,
1187 1,
1188 97,
1189 2,
1190 107,
1191 96,
1192 39,
1193 145,
1194 57,
1195 97,
1196 0,
1197 195,
1198 86,
1199 91,
1200 147,
1201 146,
1202 80,
1203 80,
1204 80,
1205 86,
1206 91,
1207 96,
1208 1,
1209 96,
1210 1,
1211 96,
1212 160,
1213 27,
1214 3,
1215 22,
1216 59,
1217 21,
1218 21,
1219 144,
1220 86,
1221 91,
1222 144,
1223 86,
1224 91,
1225 96,
1226 0,
1227 97,
1228 0,
1229 154,
1230 127,
1231 54,
1232 8,
1233 148,
1234 161,
1235 59,
1236 161,
1237 163,
1238 33,
1239 6,
1240 103,
1241 200,
1242 40,
1243 73,
1244 45,
1245 185,
1246 141,
1247 202,
1248 62,
1249 32,
1250 118,
1251 204,
1252 55,
1253 53,
1254 169,
1255 32,
1256 163,
1257 202,
1258 80,
1259 93,
1260 56,
1261 43,
1262 188,
1263 84,
1264 96,
1265 1,
1266 96,
1267 1,
1268 96,
1269 160,
1270 27,
1271 3,
1272 22,
1273 144,
1274 86,
1275 91,
1276 144,
1277 80,
1278 144,
1279 86,
1280 91,
1281 54,
1282 96,
1283 0,
1284 128,
1285 55,
1286 96,
1287 0,
1288 128,
1289 54,
1290 96,
1291 0,
1292 132,
1293 90,
1294 244,
1295 61,
1296 96,
1297 0,
1298 128,
1299 62,
1300 128,
1301 128,
1302 21,
1303 97,
1304 0,
1305 190,
1306 87,
1307 61,
1308 96,
1309 0,
1310 243,
1311 91,
1312 61,
1313 96,
1314 0,
1315 253,
1316 91,
1317 96,
1318 96,
1319 96,
1320 0,
1321 128,
1322 133,
1323 96,
1324 1,
1325 96,
1326 1,
1327 96,
1328 160,
1329 27,
1330 3,
1331 22,
1332 133,
1333 96,
1334 64,
1335 81,
1336 97,
1337 0,
1338 224,
1339 145,
1340 144,
1341 97,
1342 2,
1343 27,
1344 86,
1345 91,
1346 96,
1347 0,
1348 96,
1349 64,
1350 81,
1351 128,
1352 131,
1353 3,
1354 129,
1355 133,
1356 90,
1357 244,
1358 145,
1359 80,
1360 80,
1361 61,
1362 128,
1363 96,
1364 0,
1365 129,
1366 20,
1367 97,
1368 1,
1369 27,
1370 87,
1371 96,
1372 64,
1373 81,
1374 145,
1375 80,
1376 96,
1377 31,
1378 25,
1379 96,
1380 63,
1381 61,
1382 1,
1383 22,
1384 130,
1385 1,
1386 96,
1387 64,
1388 82,
1389 61,
1390 130,
1391 82,
1392 61,
1393 96,
1394 0,
1395 96,
1396 32,
1397 132,
1398 1,
1399 62,
1400 97,
1401 1,
1402 32,
1403 86,
1404 91,
1405 96,
1406 96,
1407 145,
1408 80,
1409 91,
1410 80,
1411 145,
1412 80,
1413 145,
1414 80,
1415 97,
1416 1,
1417 49,
1418 134,
1419 131,
1420 131,
1421 135,
1422 97,
1423 1,
1424 59,
1425 86,
1426 91,
1427 150,
1428 149,
1429 80,
1430 80,
1431 80,
1432 80,
1433 80,
1434 80,
1435 86,
1436 91,
1437 96,
1438 96,
1439 131,
1440 21,
1441 97,
1442 1,
1443 175,
1444 87,
1445 130,
1446 81,
1447 96,
1448 0,
1449 3,
1450 97,
1451 1,
1452 168,
1453 87,
1454 96,
1455 1,
1456 96,
1457 1,
1458 96,
1459 160,
1460 27,
1461 3,
1462 133,
1463 22,
1464 59,
1465 97,
1466 1,
1467 168,
1468 87,
1469 96,
1470 64,
1471 81,
1472 98,
1473 70,
1474 27,
1475 205,
1476 96,
1477 229,
1478 27,
1479 129,
1480 82,
1481 96,
1482 32,
1483 96,
1484 4,
1485 130,
1486 1,
1487 82,
1488 96,
1489 29,
1490 96,
1491 36,
1492 130,
1493 1,
1494 82,
1495 127,
1496 65,
1497 100,
1498 100,
1499 114,
1500 101,
1501 115,
1502 115,
1503 58,
1504 32,
1505 99,
1506 97,
1507 108,
1508 108,
1509 32,
1510 116,
1511 111,
1512 32,
1513 110,
1514 111,
1515 110,
1516 45,
1517 99,
1518 111,
1519 110,
1520 116,
1521 114,
1522 97,
1523 99,
1524 116,
1525 0,
1526 0,
1527 0,
1528 96,
1529 68,
1530 130,
1531 1,
1532 82,
1533 96,
1534 100,
1535 1,
1536 91,
1537 96,
1538 64,
1539 81,
1540 128,
1541 145,
1542 3,
1543 144,
1544 253,
1545 91,
1546 80,
1547 129,
1548 97,
1549 1,
1550 185,
1551 86,
1552 91,
1553 97,
1554 1,
1555 185,
1556 131,
1557 131,
1558 97,
1559 1,
1560 193,
1561 86,
1562 91,
1563 148,
1564 147,
1565 80,
1566 80,
1567 80,
1568 80,
1569 86,
1570 91,
1571 129,
1572 81,
1573 21,
1574 97,
1575 1,
1576 209,
1577 87,
1578 129,
1579 81,
1580 128,
1581 131,
1582 96,
1583 32,
1584 1,
1585 253,
1586 91,
1587 128,
1588 96,
1589 64,
1590 81,
1591 98,
1592 70,
1593 27,
1594 205,
1595 96,
1596 229,
1597 27,
1598 129,
1599 82,
1600 96,
1601 4,
1602 1,
1603 97,
1604 1,
1605 159,
1606 145,
1607 144,
1608 97,
1609 2,
1610 55,
1611 86,
1612 91,
1613 96,
1614 0,
1615 91,
1616 131,
1617 129,
1618 16,
1619 21,
1620 97,
1621 2,
1622 6,
1623 87,
1624 129,
1625 129,
1626 1,
1627 81,
1628 131,
1629 130,
1630 1,
1631 82,
1632 96,
1633 32,
1634 1,
1635 97,
1636 1,
1637 238,
1638 86,
1639 91,
1640 131,
1641 129,
1642 17,
1643 21,
1644 97,
1645 2,
1646 21,
1647 87,
1648 96,
1649 0,
1650 132,
1651 132,
1652 1,
1653 82,
1654 91,
1655 80,
1656 80,
1657 80,
1658 80,
1659 86,
1660 91,
1661 96,
1662 0,
1663 130,
1664 81,
1665 97,
1666 2,
1667 45,
1668 129,
1669 132,
1670 96,
1671 32,
1672 135,
1673 1,
1674 97,
1675 1,
1676 235,
1677 86,
1678 91,
1679 145,
1680 144,
1681 145,
1682 1,
1683 146,
1684 145,
1685 80,
1686 80,
1687 86,
1688 91,
1689 96,
1690 32,
1691 129,
1692 82,
1693 96,
1694 0,
1695 130,
1696 81,
1697 128,
1698 96,
1699 32,
1700 132,
1701 1,
1702 82,
1703 97,
1704 2,
1705 86,
1706 129,
1707 96,
1708 64,
1709 133,
1710 1,
1711 96,
1712 32,
1713 135,
1714 1,
1715 97,
1716 1,
1717 235,
1718 86,
1719 91,
1720 96,
1721 31,
1722 1,
1723 96,
1724 31,
1725 25,
1726 22,
1727 145,
1728 144,
1729 145,
1730 1,
1731 96,
1732 64,
1733 1,
1734 146,
1735 145,
1736 80,
1737 80,
1738 86,
1739 254,
1740 65,
1741 100,
1742 100,
1743 114,
1744 101,
1745 115,
1746 115,
1747 58,
1748 32,
1749 108,
1750 111,
1751 119,
1752 45,
1753 108,
1754 101,
1755 118,
1756 101,
1757 108,
1758 32,
1759 100,
1760 101,
1761 108,
1762 101,
1763 103,
1764 97,
1765 116,
1766 101,
1767 32,
1768 99,
1769 97,
1770 108,
1771 108,
1772 32,
1773 102,
1774 97,
1775 105,
1776 108,
1777 101,
1778 100,
1779 162,
1780 100,
1781 105,
1782 112,
1783 102,
1784 115,
1785 88,
1786 34,
1787 18,
1788 32,
1789 118,
1790 196,
1791 62,
1792 247,
1793 232,
1794 63,
1795 63,
1796 93,
1797 78,
1798 159,
1799 103,
1800 164,
1801 123,
1802 183,
1803 65,
1804 164,
1805 130,
1806 213,
1807 89,
1808 7,
1809 139,
1810 14,
1811 185,
1812 27,
1813 112,
1814 1,
1815 102,
1816 71,
1817 140,
1818 119,
1819 87,
1820 118,
1821 100,
1822 115,
1823 111,
1824 108,
1825 99,
1826 67,
1827 0,
1828 8,
1829 13,
1830 0,
1831 51,
1832 65,
1833 100,
1834 100,
1835 114,
1836 101,
1837 115,
1838 115,
1839 58,
1840 32,
1841 108,
1842 111,
1843 119,
1844 45,
1845 108,
1846 101,
1847 118,
1848 101,
1849 108,
1850 32,
1851 100,
1852 101,
1853 108,
1854 101,
1855 103,
1856 97,
1857 116,
1858 101,
1859 32,
1860 99,
1861 97,
1862 108,
1863 108,
1864 32,
1865 102,
1866 97,
1867 105,
1868 108,
1869 101,
1870 100,
1871 ];
1872 pub static ERC1967PROXY_BYTECODE: ::ethers_core::types::Bytes = ::ethers_core::types::Bytes::from_static(
1874 __BYTECODE,
1875 );
1876 #[rustfmt::skip]
1877 const __DEPLOYED_BYTECODE: &[u8] = &[
1878 96,
1879 128,
1880 96,
1881 64,
1882 82,
1883 54,
1884 97,
1885 0,
1886 19,
1887 87,
1888 97,
1889 0,
1890 17,
1891 97,
1892 0,
1893 23,
1894 86,
1895 91,
1896 0,
1897 91,
1898 97,
1899 0,
1900 17,
1901 91,
1902 97,
1903 0,
1904 39,
1905 97,
1906 0,
1907 34,
1908 97,
1909 0,
1910 103,
1911 86,
1912 91,
1913 97,
1914 0,
1915 159,
1916 86,
1917 91,
1918 86,
1919 91,
1920 96,
1921 96,
1922 97,
1923 0,
1924 78,
1925 131,
1926 131,
1927 96,
1928 64,
1929 81,
1930 128,
1931 96,
1932 96,
1933 1,
1934 96,
1935 64,
1936 82,
1937 128,
1938 96,
1939 39,
1940 129,
1941 82,
1942 96,
1943 32,
1944 1,
1945 97,
1946 2,
1947 107,
1948 96,
1949 39,
1950 145,
1951 57,
1952 97,
1953 0,
1954 195,
1955 86,
1956 91,
1957 147,
1958 146,
1959 80,
1960 80,
1961 80,
1962 86,
1963 91,
1964 96,
1965 1,
1966 96,
1967 1,
1968 96,
1969 160,
1970 27,
1971 3,
1972 22,
1973 59,
1974 21,
1975 21,
1976 144,
1977 86,
1978 91,
1979 144,
1980 86,
1981 91,
1982 96,
1983 0,
1984 97,
1985 0,
1986 154,
1987 127,
1988 54,
1989 8,
1990 148,
1991 161,
1992 59,
1993 161,
1994 163,
1995 33,
1996 6,
1997 103,
1998 200,
1999 40,
2000 73,
2001 45,
2002 185,
2003 141,
2004 202,
2005 62,
2006 32,
2007 118,
2008 204,
2009 55,
2010 53,
2011 169,
2012 32,
2013 163,
2014 202,
2015 80,
2016 93,
2017 56,
2018 43,
2019 188,
2020 84,
2021 96,
2022 1,
2023 96,
2024 1,
2025 96,
2026 160,
2027 27,
2028 3,
2029 22,
2030 144,
2031 86,
2032 91,
2033 144,
2034 80,
2035 144,
2036 86,
2037 91,
2038 54,
2039 96,
2040 0,
2041 128,
2042 55,
2043 96,
2044 0,
2045 128,
2046 54,
2047 96,
2048 0,
2049 132,
2050 90,
2051 244,
2052 61,
2053 96,
2054 0,
2055 128,
2056 62,
2057 128,
2058 128,
2059 21,
2060 97,
2061 0,
2062 190,
2063 87,
2064 61,
2065 96,
2066 0,
2067 243,
2068 91,
2069 61,
2070 96,
2071 0,
2072 253,
2073 91,
2074 96,
2075 96,
2076 96,
2077 0,
2078 128,
2079 133,
2080 96,
2081 1,
2082 96,
2083 1,
2084 96,
2085 160,
2086 27,
2087 3,
2088 22,
2089 133,
2090 96,
2091 64,
2092 81,
2093 97,
2094 0,
2095 224,
2096 145,
2097 144,
2098 97,
2099 2,
2100 27,
2101 86,
2102 91,
2103 96,
2104 0,
2105 96,
2106 64,
2107 81,
2108 128,
2109 131,
2110 3,
2111 129,
2112 133,
2113 90,
2114 244,
2115 145,
2116 80,
2117 80,
2118 61,
2119 128,
2120 96,
2121 0,
2122 129,
2123 20,
2124 97,
2125 1,
2126 27,
2127 87,
2128 96,
2129 64,
2130 81,
2131 145,
2132 80,
2133 96,
2134 31,
2135 25,
2136 96,
2137 63,
2138 61,
2139 1,
2140 22,
2141 130,
2142 1,
2143 96,
2144 64,
2145 82,
2146 61,
2147 130,
2148 82,
2149 61,
2150 96,
2151 0,
2152 96,
2153 32,
2154 132,
2155 1,
2156 62,
2157 97,
2158 1,
2159 32,
2160 86,
2161 91,
2162 96,
2163 96,
2164 145,
2165 80,
2166 91,
2167 80,
2168 145,
2169 80,
2170 145,
2171 80,
2172 97,
2173 1,
2174 49,
2175 134,
2176 131,
2177 131,
2178 135,
2179 97,
2180 1,
2181 59,
2182 86,
2183 91,
2184 150,
2185 149,
2186 80,
2187 80,
2188 80,
2189 80,
2190 80,
2191 80,
2192 86,
2193 91,
2194 96,
2195 96,
2196 131,
2197 21,
2198 97,
2199 1,
2200 175,
2201 87,
2202 130,
2203 81,
2204 96,
2205 0,
2206 3,
2207 97,
2208 1,
2209 168,
2210 87,
2211 96,
2212 1,
2213 96,
2214 1,
2215 96,
2216 160,
2217 27,
2218 3,
2219 133,
2220 22,
2221 59,
2222 97,
2223 1,
2224 168,
2225 87,
2226 96,
2227 64,
2228 81,
2229 98,
2230 70,
2231 27,
2232 205,
2233 96,
2234 229,
2235 27,
2236 129,
2237 82,
2238 96,
2239 32,
2240 96,
2241 4,
2242 130,
2243 1,
2244 82,
2245 96,
2246 29,
2247 96,
2248 36,
2249 130,
2250 1,
2251 82,
2252 127,
2253 65,
2254 100,
2255 100,
2256 114,
2257 101,
2258 115,
2259 115,
2260 58,
2261 32,
2262 99,
2263 97,
2264 108,
2265 108,
2266 32,
2267 116,
2268 111,
2269 32,
2270 110,
2271 111,
2272 110,
2273 45,
2274 99,
2275 111,
2276 110,
2277 116,
2278 114,
2279 97,
2280 99,
2281 116,
2282 0,
2283 0,
2284 0,
2285 96,
2286 68,
2287 130,
2288 1,
2289 82,
2290 96,
2291 100,
2292 1,
2293 91,
2294 96,
2295 64,
2296 81,
2297 128,
2298 145,
2299 3,
2300 144,
2301 253,
2302 91,
2303 80,
2304 129,
2305 97,
2306 1,
2307 185,
2308 86,
2309 91,
2310 97,
2311 1,
2312 185,
2313 131,
2314 131,
2315 97,
2316 1,
2317 193,
2318 86,
2319 91,
2320 148,
2321 147,
2322 80,
2323 80,
2324 80,
2325 80,
2326 86,
2327 91,
2328 129,
2329 81,
2330 21,
2331 97,
2332 1,
2333 209,
2334 87,
2335 129,
2336 81,
2337 128,
2338 131,
2339 96,
2340 32,
2341 1,
2342 253,
2343 91,
2344 128,
2345 96,
2346 64,
2347 81,
2348 98,
2349 70,
2350 27,
2351 205,
2352 96,
2353 229,
2354 27,
2355 129,
2356 82,
2357 96,
2358 4,
2359 1,
2360 97,
2361 1,
2362 159,
2363 145,
2364 144,
2365 97,
2366 2,
2367 55,
2368 86,
2369 91,
2370 96,
2371 0,
2372 91,
2373 131,
2374 129,
2375 16,
2376 21,
2377 97,
2378 2,
2379 6,
2380 87,
2381 129,
2382 129,
2383 1,
2384 81,
2385 131,
2386 130,
2387 1,
2388 82,
2389 96,
2390 32,
2391 1,
2392 97,
2393 1,
2394 238,
2395 86,
2396 91,
2397 131,
2398 129,
2399 17,
2400 21,
2401 97,
2402 2,
2403 21,
2404 87,
2405 96,
2406 0,
2407 132,
2408 132,
2409 1,
2410 82,
2411 91,
2412 80,
2413 80,
2414 80,
2415 80,
2416 86,
2417 91,
2418 96,
2419 0,
2420 130,
2421 81,
2422 97,
2423 2,
2424 45,
2425 129,
2426 132,
2427 96,
2428 32,
2429 135,
2430 1,
2431 97,
2432 1,
2433 235,
2434 86,
2435 91,
2436 145,
2437 144,
2438 145,
2439 1,
2440 146,
2441 145,
2442 80,
2443 80,
2444 86,
2445 91,
2446 96,
2447 32,
2448 129,
2449 82,
2450 96,
2451 0,
2452 130,
2453 81,
2454 128,
2455 96,
2456 32,
2457 132,
2458 1,
2459 82,
2460 97,
2461 2,
2462 86,
2463 129,
2464 96,
2465 64,
2466 133,
2467 1,
2468 96,
2469 32,
2470 135,
2471 1,
2472 97,
2473 1,
2474 235,
2475 86,
2476 91,
2477 96,
2478 31,
2479 1,
2480 96,
2481 31,
2482 25,
2483 22,
2484 145,
2485 144,
2486 145,
2487 1,
2488 96,
2489 64,
2490 1,
2491 146,
2492 145,
2493 80,
2494 80,
2495 86,
2496 254,
2497 65,
2498 100,
2499 100,
2500 114,
2501 101,
2502 115,
2503 115,
2504 58,
2505 32,
2506 108,
2507 111,
2508 119,
2509 45,
2510 108,
2511 101,
2512 118,
2513 101,
2514 108,
2515 32,
2516 100,
2517 101,
2518 108,
2519 101,
2520 103,
2521 97,
2522 116,
2523 101,
2524 32,
2525 99,
2526 97,
2527 108,
2528 108,
2529 32,
2530 102,
2531 97,
2532 105,
2533 108,
2534 101,
2535 100,
2536 162,
2537 100,
2538 105,
2539 112,
2540 102,
2541 115,
2542 88,
2543 34,
2544 18,
2545 32,
2546 118,
2547 196,
2548 62,
2549 247,
2550 232,
2551 63,
2552 63,
2553 93,
2554 78,
2555 159,
2556 103,
2557 164,
2558 123,
2559 183,
2560 65,
2561 164,
2562 130,
2563 213,
2564 89,
2565 7,
2566 139,
2567 14,
2568 185,
2569 27,
2570 112,
2571 1,
2572 102,
2573 71,
2574 140,
2575 119,
2576 87,
2577 118,
2578 100,
2579 115,
2580 111,
2581 108,
2582 99,
2583 67,
2584 0,
2585 8,
2586 13,
2587 0,
2588 51,
2589 ];
2590 pub static ERC1967PROXY_DEPLOYED_BYTECODE: ::ethers_core::types::Bytes = ::ethers_core::types::Bytes::from_static(
2592 __DEPLOYED_BYTECODE,
2593 );
2594 pub struct ERC1967Proxy<M>(::ethers_contract::Contract<M>);
2595 impl<M> ::core::clone::Clone for ERC1967Proxy<M> {
2596 fn clone(&self) -> Self {
2597 Self(::core::clone::Clone::clone(&self.0))
2598 }
2599 }
2600 impl<M> ::core::ops::Deref for ERC1967Proxy<M> {
2601 type Target = ::ethers_contract::Contract<M>;
2602 fn deref(&self) -> &Self::Target {
2603 &self.0
2604 }
2605 }
2606 impl<M> ::core::ops::DerefMut for ERC1967Proxy<M> {
2607 fn deref_mut(&mut self) -> &mut Self::Target {
2608 &mut self.0
2609 }
2610 }
2611 impl<M> ::core::fmt::Debug for ERC1967Proxy<M> {
2612 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2613 f.debug_tuple(stringify!(ERC1967Proxy)).field(&self.address()).finish()
2614 }
2615 }
2616 impl<M: ::ethers_providers::Middleware> ERC1967Proxy<M> {
2617 pub fn new<T: Into<::ethers_core::types::Address>>(
2620 address: T,
2621 client: ::std::sync::Arc<M>,
2622 ) -> Self {
2623 Self(
2624 ::ethers_contract::Contract::new(
2625 address.into(),
2626 ERC1967PROXY_ABI.clone(),
2627 client,
2628 ),
2629 )
2630 }
2631 pub fn deploy<T: ::ethers_core::abi::Tokenize>(
2655 client: ::std::sync::Arc<M>,
2656 constructor_args: T,
2657 ) -> ::core::result::Result<
2658 ::ethers_contract::builders::ContractDeployer<M, Self>,
2659 ::ethers_contract::ContractError<M>,
2660 > {
2661 let factory = ::ethers_contract::ContractFactory::new(
2662 ERC1967PROXY_ABI.clone(),
2663 ERC1967PROXY_BYTECODE.clone().into(),
2664 client,
2665 );
2666 let deployer = factory.deploy(constructor_args)?;
2667 let deployer = ::ethers_contract::ContractDeployer::new(deployer);
2668 Ok(deployer)
2669 }
2670 pub fn admin_changed_filter(
2672 &self,
2673 ) -> ::ethers_contract::builders::Event<
2674 ::std::sync::Arc<M>,
2675 M,
2676 AdminChangedFilter,
2677 > {
2678 self.0.event()
2679 }
2680 pub fn beacon_upgraded_filter(
2682 &self,
2683 ) -> ::ethers_contract::builders::Event<
2684 ::std::sync::Arc<M>,
2685 M,
2686 BeaconUpgradedFilter,
2687 > {
2688 self.0.event()
2689 }
2690 pub fn upgraded_filter(
2692 &self,
2693 ) -> ::ethers_contract::builders::Event<::std::sync::Arc<M>, M, UpgradedFilter> {
2694 self.0.event()
2695 }
2696 pub fn events(
2698 &self,
2699 ) -> ::ethers_contract::builders::Event<
2700 ::std::sync::Arc<M>,
2701 M,
2702 ERC1967ProxyEvents,
2703 > {
2704 self.0.event_with_filter(::core::default::Default::default())
2705 }
2706 }
2707 impl<M: ::ethers_providers::Middleware> From<::ethers_contract::Contract<M>>
2708 for ERC1967Proxy<M> {
2709 fn from(contract: ::ethers_contract::Contract<M>) -> Self {
2710 Self::new(contract.address(), contract.client())
2711 }
2712 }
2713 #[derive(
2714 Clone,
2715 ::ethers_contract::EthEvent,
2716 ::ethers_contract::EthDisplay,
2717 Default,
2718 Debug,
2719 PartialEq,
2720 Eq,
2721 Hash
2722 )]
2723 #[ethevent(name = "AdminChanged", abi = "AdminChanged(address,address)")]
2724 pub struct AdminChangedFilter {
2725 pub previous_admin: ::ethers_core::types::Address,
2726 pub new_admin: ::ethers_core::types::Address,
2727 }
2728 #[derive(
2729 Clone,
2730 ::ethers_contract::EthEvent,
2731 ::ethers_contract::EthDisplay,
2732 Default,
2733 Debug,
2734 PartialEq,
2735 Eq,
2736 Hash
2737 )]
2738 #[ethevent(name = "BeaconUpgraded", abi = "BeaconUpgraded(address)")]
2739 pub struct BeaconUpgradedFilter {
2740 #[ethevent(indexed)]
2741 pub beacon: ::ethers_core::types::Address,
2742 }
2743 #[derive(
2744 Clone,
2745 ::ethers_contract::EthEvent,
2746 ::ethers_contract::EthDisplay,
2747 Default,
2748 Debug,
2749 PartialEq,
2750 Eq,
2751 Hash
2752 )]
2753 #[ethevent(name = "Upgraded", abi = "Upgraded(address)")]
2754 pub struct UpgradedFilter {
2755 #[ethevent(indexed)]
2756 pub implementation: ::ethers_core::types::Address,
2757 }
2758 #[derive(Clone, ::ethers_contract::EthAbiType, Debug, PartialEq, Eq, Hash)]
2760 pub enum ERC1967ProxyEvents {
2761 AdminChangedFilter(AdminChangedFilter),
2762 BeaconUpgradedFilter(BeaconUpgradedFilter),
2763 UpgradedFilter(UpgradedFilter),
2764 }
2765 impl ::ethers_contract::EthLogDecode for ERC1967ProxyEvents {
2766 fn decode_log(
2767 log: &::ethers_core::abi::RawLog,
2768 ) -> ::core::result::Result<Self, ::ethers_core::abi::Error> {
2769 if let Ok(decoded) = AdminChangedFilter::decode_log(log) {
2770 return Ok(ERC1967ProxyEvents::AdminChangedFilter(decoded));
2771 }
2772 if let Ok(decoded) = BeaconUpgradedFilter::decode_log(log) {
2773 return Ok(ERC1967ProxyEvents::BeaconUpgradedFilter(decoded));
2774 }
2775 if let Ok(decoded) = UpgradedFilter::decode_log(log) {
2776 return Ok(ERC1967ProxyEvents::UpgradedFilter(decoded));
2777 }
2778 Err(::ethers_core::abi::Error::InvalidData)
2779 }
2780 }
2781 impl ::core::fmt::Display for ERC1967ProxyEvents {
2782 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2783 match self {
2784 Self::AdminChangedFilter(element) => {
2785 ::core::fmt::Display::fmt(element, f)
2786 }
2787 Self::BeaconUpgradedFilter(element) => {
2788 ::core::fmt::Display::fmt(element, f)
2789 }
2790 Self::UpgradedFilter(element) => ::core::fmt::Display::fmt(element, f),
2791 }
2792 }
2793 }
2794 impl ::core::convert::From<AdminChangedFilter> for ERC1967ProxyEvents {
2795 fn from(value: AdminChangedFilter) -> Self {
2796 Self::AdminChangedFilter(value)
2797 }
2798 }
2799 impl ::core::convert::From<BeaconUpgradedFilter> for ERC1967ProxyEvents {
2800 fn from(value: BeaconUpgradedFilter) -> Self {
2801 Self::BeaconUpgradedFilter(value)
2802 }
2803 }
2804 impl ::core::convert::From<UpgradedFilter> for ERC1967ProxyEvents {
2805 fn from(value: UpgradedFilter) -> Self {
2806 Self::UpgradedFilter(value)
2807 }
2808 }
2809}