openzeppelin_rs/contracts/
UpgradeableBeacon.rs

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