openzeppelin_rs/contracts/
ERC1155Holder.rs

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