BCD

Tezos Contract Explorer
Search Networks Deploy
  • Home
  • /
  • Mainnet
  • /
  • objkt.com Minting Factory
operations (3.6M)Storage Code Interact Tokens Metadata Fork Statistics Details
Latest
​x
549
 
1
parameter (or
2
            (or
3
              (or
4
                (or (nat %accept_invitation)
5
                    (or (address %add_mod) (bytes %create_artist_collection)))
6
                (or
7
                  (or (bytes %create_global_collection)
8
                      (pair %invite_collaborator (address %collaborator)
9
                                                 (nat %collection_id)))
10
                  (or
11
                    (pair %mint_artist (pair (nat %collection_id) (nat %editions))
12
                                       (pair (bytes %metadata_cid) (address %target)))
13
                    (pair %mint_global (pair (nat %collection_id) (nat %editions))
14
                                       (pair (bytes %metadata_cid) (address %target))))))
15
              (or
16
                (or
17
                  (pair %remove_collaborator (address %collaborator)
18
                                             (nat %collection_id))
19
                  (or (address %remove_mod) (nat %revoke_invitation)))
20
                (or
21
                  (or (pair %set_metadata string bytes)
22
                      (nat %toggle_global_collection_lock))
23
                  (or
24
                    (pair %update_artist_metadata (nat %collection_id)
25
                                                  (bytes %metadata_cid))
26
                    (pair %update_global_metadata (nat %collection_id)
27
                                                  (bytes %metadata_cid))))))
28
            (or
29
              (or
30
                (lambda %_create_artist_collection
31
                  (pair
32
                    (or
33
                      (or
34
                        (or (nat %accept_invitation)
35
                            (or (address %add_mod) (bytes %create_artist_collection)))
36
                        (or
37
                          (or (bytes %create_global_collection)
38
                              (pair %invite_collaborator (address %collaborator)
39
                                                         (nat %collection_id)))
40
                          (or
41
                            (pair %mint_artist
42
                              (pair (nat %collection_id) (nat %editions))
43
                              (pair (bytes %metadata_cid) (address %target)))
44
                            (pair %mint_global
45
                              (pair (nat %collection_id) (nat %editions))
46
                              (pair (bytes %metadata_cid) (address %target))))))
47
                      (or
48
                        (or
49
                          (pair %remove_collaborator (address %collaborator)
50
                                                     (nat %collection_id))
51
                          (or (address %remove_mod) (nat %revoke_invitation)))
52
                        (or
53
                          (or (pair %set_metadata string bytes)
54
                              (nat %toggle_global_collection_lock))
55
                          (or
56
                            (pair %update_artist_metadata (nat %collection_id)
57
                                                          (bytes %metadata_cid))
58
                            (pair %update_global_metadata (nat %collection_id)
59
                                                          (bytes %metadata_cid))))))
60
                    (pair
61
                      (pair (pair (address %admin) (nat %artist_collection_id))
62
                            (pair
63
                              (big_map %artist_collections nat
64
                                                           (pair (address %contract)
65
                                                                 (pair
66
                                                                   (address %creator)
67
                                                                   (nat %token_id))))
68
                              (big_map %collaborators (pair nat address) bool)))
69
                      (pair
70
                        (pair (nat %global_collection_id)
71
                              (big_map %global_collections nat
72
                                                           (pair (address %contract)
73
                                                                 (pair (bool %lock)
74
                                                                       (nat %token_id)))))
75
                        (pair (big_map %metadata string bytes) (set %mods address)))))
76
                  (pair (list operation)
77
                        (pair
78
                          (pair (pair (address %admin) (nat %artist_collection_id))
79
                                (pair
80
                                  (big_map %artist_collections nat
81
                                                               (pair (address %contract)
82
                                                                     (pair
83
                                                                       (address %creator)
84
                                                                       (nat %token_id))))
85
                                  (big_map %collaborators (pair nat address) bool)))
86
                          (pair
87
                            (pair (nat %global_collection_id)
88
                                  (big_map %global_collections nat
89
                                                               (pair (address %contract)
90
                                                                     (pair (bool %lock)
91
                                                                           (nat %token_id)))))
92
                            (pair (big_map %metadata string bytes) (set %mods address))))))
93
                (or
94
                  (lambda %_create_global_collection
95
                    (pair
96
                      (or
97
                        (or
98
                          (or (nat %accept_invitation)
99
                              (or (address %add_mod) (bytes %create_artist_collection)))
100
                          (or
101
                            (or (bytes %create_global_collection)
102
                                (pair %invite_collaborator (address %collaborator)
103
                                                           (nat %collection_id)))
104
                            (or
105
                              (pair %mint_artist
106
                                (pair (nat %collection_id) (nat %editions))
107
                                (pair (bytes %metadata_cid) (address %target)))
108
                              (pair %mint_global
109
                                (pair (nat %collection_id) (nat %editions))
110
                                (pair (bytes %metadata_cid) (address %target))))))
111
                        (or
112
                          (or
113
                            (pair %remove_collaborator (address %collaborator)
114
                                                       (nat %collection_id))
115
                            (or (address %remove_mod) (nat %revoke_invitation)))
116
                          (or
117
                            (or (pair %set_metadata string bytes)
118
                                (nat %toggle_global_collection_lock))
119
                            (or
120
                              (pair %update_artist_metadata (nat %collection_id)
121
                                                            (bytes %metadata_cid))
122
                              (pair %update_global_metadata (nat %collection_id)
123
                                                            (bytes %metadata_cid))))))
124
                      (pair
125
                        (pair (pair (address %admin) (nat %artist_collection_id))
126
                              (pair
127
                                (big_map %artist_collections nat
128
                                                             (pair (address %contract)
129
                                                                   (pair
130
                                                                     (address %creator)
131
                                                                     (nat %token_id))))
132
                                (big_map %collaborators (pair nat address) bool)))
133
                        (pair
134
                          (pair (nat %global_collection_id)
135
                                (big_map %global_collections nat
136
                                                             (pair (address %contract)
137
                                                                   (pair (bool %lock)
138
                                                                         (nat %token_id)))))
139
                          (pair (big_map %metadata string bytes) (set %mods address)))))
140
                    (pair (list operation)
141
                          (pair
142
                            (pair (pair (address %admin) (nat %artist_collection_id))
143
                                  (pair
144
                                    (big_map %artist_collections nat
145
                                                                 (pair
146
                                                                   (address %contract)
147
                                                                   (pair
148
                                                                     (address %creator)
149
                                                                     (nat %token_id))))
150
                                    (big_map %collaborators (pair nat address) bool)))
151
                            (pair
152
                              (pair (nat %global_collection_id)
153
                                    (big_map %global_collections nat
154
                                                                 (pair
155
                                                                   (address %contract)
156
                                                                   (pair (bool %lock)
157
                                                                         (nat %token_id)))))
158
                              (pair (big_map %metadata string bytes) (set %mods address))))))
159
                  (lambda %_mint_artist
160
                    (pair
161
                      (or
162
                        (or
163
                          (or (nat %accept_invitation)
164
                              (or (address %add_mod) (bytes %create_artist_collection)))
165
                          (or
166
                            (or (bytes %create_global_collection)
167
                                (pair %invite_collaborator (address %collaborator)
168
                                                           (nat %collection_id)))
169
                            (or
170
                              (pair %mint_artist
171
                                (pair (nat %collection_id) (nat %editions))
172
                                (pair (bytes %metadata_cid) (address %target)))
173
                              (pair %mint_global
174
                                (pair (nat %collection_id) (nat %editions))
175
                                (pair (bytes %metadata_cid) (address %target))))))
176
                        (or
177
                          (or
178
                            (pair %remove_collaborator (address %collaborator)
179
                                                       (nat %collection_id))
180
                            (or (address %remove_mod) (nat %revoke_invitation)))
181
                          (or
182
                            (or (pair %set_metadata string bytes)
183
                                (nat %toggle_global_collection_lock))
184
                            (or
185
                              (pair %update_artist_metadata (nat %collection_id)
186
                                                            (bytes %metadata_cid))
187
                              (pair %update_global_metadata (nat %collection_id)
188
                                                            (bytes %metadata_cid))))))
189
                      (pair
190
                        (pair (pair (address %admin) (nat %artist_collection_id))
191
                              (pair
192
                                (big_map %artist_collections nat
193
                                                             (pair (address %contract)
194
                                                                   (pair
195
                                                                     (address %creator)
196
                                                                     (nat %token_id))))
197
                                (big_map %collaborators (pair nat address) bool)))
198
                        (pair
199
                          (pair (nat %global_collection_id)
200
                                (big_map %global_collections nat
201
                                                             (pair (address %contract)
202
                                                                   (pair (bool %lock)
203
                                                                         (nat %token_id)))))
204
                          (pair (big_map %metadata string bytes) (set %mods address)))))
205
                    (pair (list operation)
206
                          (pair
207
                            (pair (pair (address %admin) (nat %artist_collection_id))
208
                                  (pair
209
                                    (big_map %artist_collections nat
210
                                                                 (pair
211
                                                                   (address %contract)
212
                                                                   (pair
213
                                                                     (address %creator)
214
                                                                     (nat %token_id))))
215
                                    (big_map %collaborators (pair nat address) bool)))
216
                            (pair
217
                              (pair (nat %global_collection_id)
218
                                    (big_map %global_collections nat
219
                                                                 (pair
220
                                                                   (address %contract)
221
                                                                   (pair (bool %lock)
222
                                                                         (nat %token_id)))))
223
                              (pair (big_map %metadata string bytes) (set %mods address))))))))
224
              (or
225
                (or
226
                  (lambda %_mint_global
227
                    (pair
228
                      (or
229
                        (or
230
                          (or (nat %accept_invitation)
231
                              (or (address %add_mod) (bytes %create_artist_collection)))
232
                          (or
233
                            (or (bytes %create_global_collection)
234
                                (pair %invite_collaborator (address %collaborator)
235
                                                           (nat %collection_id)))
236
                            (or
237
                              (pair %mint_artist
238
                                (pair (nat %collection_id) (nat %editions))
239
                                (pair (bytes %metadata_cid) (address %target)))
240
                              (pair %mint_global
241
                                (pair (nat %collection_id) (nat %editions))
242
                                (pair (bytes %metadata_cid) (address %target))))))
243
                        (or
244
                          (or
245
                            (pair %remove_collaborator (address %collaborator)
246
                                                       (nat %collection_id))
247
                            (or (address %remove_mod) (nat %revoke_invitation)))
248
                          (or
249
                            (or (pair %set_metadata string bytes)
250
                                (nat %toggle_global_collection_lock))
251
                            (or
252
                              (pair %update_artist_metadata (nat %collection_id)
253
                                                            (bytes %metadata_cid))
254
                              (pair %update_global_metadata (nat %collection_id)
255
                                                            (bytes %metadata_cid))))))
256
                      (pair
257
                        (pair (pair (address %admin) (nat %artist_collection_id))
258
                              (pair
259
                                (big_map %artist_collections nat
260
                                                             (pair (address %contract)
261
                                                                   (pair
262
                                                                     (address %creator)
263
                                                                     (nat %token_id))))
264
                                (big_map %collaborators (pair nat address) bool)))
265
                        (pair
266
                          (pair (nat %global_collection_id)
267
                                (big_map %global_collections nat
268
                                                             (pair (address %contract)
269
                                                                   (pair (bool %lock)
270
                                                                         (nat %token_id)))))
271
                          (pair (big_map %metadata string bytes) (set %mods address)))))
272
                    (pair (list operation)
273
                          (pair
274
                            (pair (pair (address %admin) (nat %artist_collection_id))
275
                                  (pair
276
                                    (big_map %artist_collections nat
277
                                                                 (pair
278
                                                                   (address %contract)
279
                                                                   (pair
280
                                                                     (address %creator)
281
                                                                     (nat %token_id))))
282
                                    (big_map %collaborators (pair nat address) bool)))
283
                            (pair
284
                              (pair (nat %global_collection_id)
285
                                    (big_map %global_collections nat
286
                                                                 (pair
287
                                                                   (address %contract)
288
                                                                   (pair (bool %lock)
289
                                                                         (nat %token_id)))))
290
                              (pair (big_map %metadata string bytes) (set %mods address))))))
291
                  (lambda %_toggle_global_collection_lock
292
                    (pair
293
                      (or
294
                        (or
295
                          (or (nat %accept_invitation)
296
                              (or (address %add_mod) (bytes %create_artist_collection)))
297
                          (or
298
                            (or (bytes %create_global_collection)
299
                                (pair %invite_collaborator (address %collaborator)
300
                                                           (nat %collection_id)))
301
                            (or
302
                              (pair %mint_artist
303
                                (pair (nat %collection_id) (nat %editions))
304
                                (pair (bytes %metadata_cid) (address %target)))
305
                              (pair %mint_global
306
                                (pair (nat %collection_id) (nat %editions))
307
                                (pair (bytes %metadata_cid) (address %target))))))
308
                        (or
309
                          (or
310
                            (pair %remove_collaborator (address %collaborator)
311
                                                       (nat %collection_id))
312
                            (or (address %remove_mod) (nat %revoke_invitation)))
313
                          (or
314
                            (or (pair %set_metadata string bytes)
315
                                (nat %toggle_global_collection_lock))
316
                            (or
317
                              (pair %update_artist_metadata (nat %collection_id)
318
                                                            (bytes %metadata_cid))
319
                              (pair %update_global_metadata (nat %collection_id)
320
                                                            (bytes %metadata_cid))))))
321
                      (pair
322
                        (pair (pair (address %admin) (nat %artist_collection_id))
323
                              (pair
324
                                (big_map %artist_collections nat
325
                                                             (pair (address %contract)
326
                                                                   (pair
327
                                                                     (address %creator)
328
                                                                     (nat %token_id))))
329
                                (big_map %collaborators (pair nat address) bool)))
330
                        (pair
331
                          (pair (nat %global_collection_id)
332
                                (big_map %global_collections nat
333
                                                             (pair (address %contract)
334
                                                                   (pair (bool %lock)
335
                                                                         (nat %token_id)))))
336
                          (pair (big_map %metadata string bytes) (set %mods address)))))
337
                    (pair (list operation)
338
                          (pair
339
                            (pair (pair (address %admin) (nat %artist_collection_id))
340
                                  (pair
341
                                    (big_map %artist_collections nat
342
                                                                 (pair
343
                                                                   (address %contract)
344
                                                                   (pair
345
                                                                     (address %creator)
346
                                                                     (nat %token_id))))
347
                                    (big_map %collaborators (pair nat address) bool)))
348
                            (pair
349
                              (pair (nat %global_collection_id)
350
                                    (big_map %global_collections nat
351
                                                                 (pair
352
                                                                   (address %contract)
353
                                                                   (pair (bool %lock)
354
                                                                         (nat %token_id)))))
355
                              (pair (big_map %metadata string bytes) (set %mods address)))))))
356
                (or
357
                  (lambda %_update_artist_metadata
358
                    (pair
359
                      (or
360
                        (or
361
                          (or (nat %accept_invitation)
362
                              (or (address %add_mod) (bytes %create_artist_collection)))
363
                          (or
364
                            (or (bytes %create_global_collection)
365
                                (pair %invite_collaborator (address %collaborator)
366
                                                           (nat %collection_id)))
367
                            (or
368
                              (pair %mint_artist
369
                                (pair (nat %collection_id) (nat %editions))
370
                                (pair (bytes %metadata_cid) (address %target)))
371
                              (pair %mint_global
372
                                (pair (nat %collection_id) (nat %editions))
373
                                (pair (bytes %metadata_cid) (address %target))))))
374
                        (or
375
                          (or
376
                            (pair %remove_collaborator (address %collaborator)
377
                                                       (nat %collection_id))
378
                            (or (address %remove_mod) (nat %revoke_invitation)))
379
                          (or
380
                            (or (pair %set_metadata string bytes)
381
                                (nat %toggle_global_collection_lock))
382
                            (or
383
                              (pair %update_artist_metadata (nat %collection_id)
384
                                                            (bytes %metadata_cid))
385
                              (pair %update_global_metadata (nat %collection_id)
386
                                                            (bytes %metadata_cid))))))
387
                      (pair
388
                        (pair (pair (address %admin) (nat %artist_collection_id))
389
                              (pair
390
                                (big_map %artist_collections nat
391
                                                             (pair (address %contract)
392
                                                                   (pair
393
                                                                     (address %creator)
394
                                                                     (nat %token_id))))
395
                                (big_map %collaborators (pair nat address) bool)))
396
                        (pair
397
                          (pair (nat %global_collection_id)
398
                                (big_map %global_collections nat
399
                                                             (pair (address %contract)
400
                                                                   (pair (bool %lock)
401
                                                                         (nat %token_id)))))
402
                          (pair (big_map %metadata string bytes) (set %mods address)))))
403
                    (pair (list operation)
404
                          (pair
405
                            (pair (pair (address %admin) (nat %artist_collection_id))
406
                                  (pair
407
                                    (big_map %artist_collections nat
408
                                                                 (pair
409
                                                                   (address %contract)
410
                                                                   (pair
411
                                                                     (address %creator)
412
                                                                     (nat %token_id))))
413
                                    (big_map %collaborators (pair nat address) bool)))
414
                            (pair
415
                              (pair (nat %global_collection_id)
416
                                    (big_map %global_collections nat
417
                                                                 (pair
418
                                                                   (address %contract)
419
                                                                   (pair (bool %lock)
420
                                                                         (nat %token_id)))))
421
                              (pair (big_map %metadata string bytes) (set %mods address))))))
422
                  (lambda %_update_global_metadata
423
                    (pair
424
                      (or
425
                        (or
426
                          (or (nat %accept_invitation)
427
                              (or (address %add_mod) (bytes %create_artist_collection)))
428
                          (or
429
                            (or (bytes %create_global_collection)
430
                                (pair %invite_collaborator (address %collaborator)
431
                                                           (nat %collection_id)))
432
                            (or
433
                              (pair %mint_artist
434
                                (pair (nat %collection_id) (nat %editions))
435
                                (pair (bytes %metadata_cid) (address %target)))
436
                              (pair %mint_global
437
                                (pair (nat %collection_id) (nat %editions))
438
                                (pair (bytes %metadata_cid) (address %target))))))
439
                        (or
440
                          (or
441
                            (pair %remove_collaborator (address %collaborator)
442
                                                       (nat %collection_id))
443
                            (or (address %remove_mod) (nat %revoke_invitation)))
444
                          (or
445
                            (or (pair %set_metadata string bytes)
446
                                (nat %toggle_global_collection_lock))
447
                            (or
448
                              (pair %update_artist_metadata (nat %collection_id)
449
                                                            (bytes %metadata_cid))
450
                              (pair %update_global_metadata (nat %collection_id)
451
                                                            (bytes %metadata_cid))))))
452
                      (pair
453
                        (pair (pair (address %admin) (nat %artist_collection_id))
454
                              (pair
455
                                (big_map %artist_collections nat
456
                                                             (pair (address %contract)
457
                                                                   (pair
458
                                                                     (address %creator)
459
                                                                     (nat %token_id))))
460
                                (big_map %collaborators (pair nat address) bool)))
461
                        (pair
462
                          (pair (nat %global_collection_id)
463
                                (big_map %global_collections nat
464
                                                             (pair (address %contract)
465
                                                                   (pair (bool %lock)
466
                                                                         (nat %token_id)))))
467
                          (pair (big_map %metadata string bytes) (set %mods address)))))
468
                    (pair (list operation)
469
                          (pair
470
                            (pair (pair (address %admin) (nat %artist_collection_id))
471
                                  (pair
472
                                    (big_map %artist_collections nat
473
                                                                 (pair
474
                                                                   (address %contract)
475
                                                                   (pair
476
                                                                     (address %creator)
477
                                                                     (nat %token_id))))
478
                                    (big_map %collaborators (pair nat address) bool)))
479
                            (pair
480
                              (pair (nat %global_collection_id)
481
                                    (big_map %global_collections nat
482
                                                                 (pair
483
                                                                   (address %contract)
484
                                                                   (pair (bool %lock)
485
                                                                         (nat %token_id)))))
486
                              (pair (big_map %metadata string bytes) (set %mods address))))))))));
487
storage (pair
488
          (pair
489
            (pair (pair (address %admin) (nat %artist_collection_id))
490
                  (pair
491
                    (big_map %artist_collections nat
492
                                                 (pair (address %contract)
493
                                                       (pair (address %creator)
494
                                                             (nat %token_id))))
495
                    (big_map %collaborators (pair nat address) bool)))
496
            (pair
497
              (pair (nat %global_collection_id)
498
                    (big_map %global_collections nat
499
                                                 (pair (address %contract)
500
                                                       (pair (bool %lock)
501
                                                             (nat %token_id)))))
502
              (pair (big_map %metadata string bytes) (set %mods address))))
503
          (big_map nat
504
                   (lambda
505
                     (pair
506
                       (or
507
                         (or (or nat (or address bytes))
508
                             (or (or bytes (pair address nat))
509
                                 (or (pair (pair nat nat) (pair bytes address))
510
                                     (pair (pair nat nat) (pair bytes address)))))
511
                         (or (or (pair address nat) (or address nat))
512
                             (or (or (pair string bytes) nat)
513
                                 (or (pair nat bytes) (pair nat bytes)))))
514
                       (pair
515
                         (pair (pair address nat)
516
                               (pair (big_map nat (pair address (pair address nat)))
517
                                     (big_map (pair nat address) bool)))
518
                         (pair (pair nat (big_map nat (pair address (pair bool nat))))
519
                               (pair (big_map string bytes) (set address)))))
520
                     (pair (list operation)
521
                           (pair
522
                             (pair (pair address nat)
523
                                   (pair (big_map nat (pair address (pair address nat)))
524
                                         (big_map (pair nat address) bool)))
525
                             (pair
526
                               (pair nat (big_map nat (pair address (pair bool nat))))
527
                               (pair (big_map string bytes) (set address))))))));
528
code { CAST (pair
529
              (or
530
                (or
531
                  (or (or nat (or address bytes))
532
                      (or (or bytes (pair address nat))
533
                          (or (pair (pair nat nat) (pair bytes address))
534
                              (pair (pair nat nat) (pair bytes address)))))
535
                  (or (or (pair address nat) (or address nat))
536
                      (or (or (pair string bytes) nat)
537
                          (or (pair nat bytes) (pair nat bytes)))))
538
                (or
539
                  (or
540
                    (lambda
541
                      (pair
542
                        (or
543
                          (or (or nat (or address bytes))
544
                              (or (or bytes (pair address nat))
545
                                  (or (pair (pair nat nat) (pair bytes address))
546
                                      (pair (pair nat nat) (pair bytes address)))))
547
                          (or (or (pair address nat) (or address nat))
548
                              (or (or (pair string bytes) nat)
549
                                  (or (pair nat bytes) (pair nat bytes)))))
550
                        (pair
551
                          (pair (pair address nat)
552
                                (pair (big_map nat (pair address (pair address nat)))
553
                                      (big_map (pair nat address) bool)))
554
                          (pair (pair nat (big_map nat (pair address (pair bool nat))))
555
                                (pair (big_map string bytes) (set address)))))
556
                      (pair (list operation)
557
                            (pair
558
                              (pair (pair address nat)
559
                                    (pair
560
                                      (big_map nat (pair address (pair address nat)))
561
                                      (big_map (pair nat address) bool)))
562
                              (pair
563
                                (pair nat (big_map nat (pair address (pair bool nat))))
564
                                (pair (big_map string bytes) (set address))))))
565
                    (or
566
                      (lambda
567
                        (pair
568
                          (or
569
                            (or (or nat (or address bytes))
570
                                (or (or bytes (pair address nat))
571
                                    (or (pair (pair nat nat) (pair bytes address))
572
                                        (pair (pair nat nat) (pair bytes address)))))
573
                            (or (or (pair address nat) (or address nat))
574
                                (or (or (pair string bytes) nat)
575
                                    (or (pair nat bytes) (pair nat bytes)))))
576
                          (pair
577
                            (pair (pair address nat)
578
                                  (pair (big_map nat (pair address (pair address nat)))
579
                                        (big_map (pair nat address) bool)))
580
                            (pair
581
                              (pair nat (big_map nat (pair address (pair bool nat))))
582
                              (pair (big_map string bytes) (set address)))))
583
                        (pair (list operation)
584
                              (pair
585
                                (pair (pair address nat)
586
                                      (pair
587
                                        (big_map nat (pair address (pair address nat)))
588
                                        (big_map (pair nat address) bool)))
589
                                (pair
590
                                  (pair nat (big_map nat (pair address (pair bool nat))))
591
                                  (pair (big_map string bytes) (set address))))))
592
                      (lambda
593
                        (pair
594
                          (or
595
                            (or (or nat (or address bytes))
596
                                (or (or bytes (pair address nat))
597
                                    (or (pair (pair nat nat) (pair bytes address))
598
                                        (pair (pair nat nat) (pair bytes address)))))
599
                            (or (or (pair address nat) (or address nat))
600
                                (or (or (pair string bytes) nat)
601
                                    (or (pair nat bytes) (pair nat bytes)))))
602
                          (pair
603
                            (pair (pair address nat)
604
                                  (pair (big_map nat (pair address (pair address nat)))
605
                                        (big_map (pair nat address) bool)))
606
                            (pair
607
                              (pair nat (big_map nat (pair address (pair bool nat))))
608
                              (pair (big_map string bytes) (set address)))))
609
                        (pair (list operation)
610
                              (pair
611
                                (pair (pair address nat)
612
                                      (pair
613
                                        (big_map nat (pair address (pair address nat)))
614
                                        (big_map (pair nat address) bool)))
615
                                (pair
616
                                  (pair nat (big_map nat (pair address (pair bool nat))))
617
                                  (pair (big_map string bytes) (set address))))))))
618
                  (or
619
                    (or
620
                      (lambda
621
                        (pair
622
                          (or
623
                            (or (or nat (or address bytes))
624
                                (or (or bytes (pair address nat))
625
                                    (or (pair (pair nat nat) (pair bytes address))
626
                                        (pair (pair nat nat) (pair bytes address)))))
627
                            (or (or (pair address nat) (or address nat))
628
                                (or (or (pair string bytes) nat)
629
                                    (or (pair nat bytes) (pair nat bytes)))))
630
                          (pair
631
                            (pair (pair address nat)
632
                                  (pair (big_map nat (pair address (pair address nat)))
633
                                        (big_map (pair nat address) bool)))
634
                            (pair
635
                              (pair nat (big_map nat (pair address (pair bool nat))))
636
                              (pair (big_map string bytes) (set address)))))
637
                        (pair (list operation)
638
                              (pair
639
                                (pair (pair address nat)
640
                                      (pair
641
                                        (big_map nat (pair address (pair address nat)))
642
                                        (big_map (pair nat address) bool)))
643
                                (pair
644
                                  (pair nat (big_map nat (pair address (pair bool nat))))
645
                                  (pair (big_map string bytes) (set address))))))
646
                      (lambda
647
                        (pair
648
                          (or
649
                            (or (or nat (or address bytes))
650
                                (or (or bytes (pair address nat))
651
                                    (or (pair (pair nat nat) (pair bytes address))
652
                                        (pair (pair nat nat) (pair bytes address)))))
653
                            (or (or (pair address nat) (or address nat))
654
                                (or (or (pair string bytes) nat)
655
                                    (or (pair nat bytes) (pair nat bytes)))))
656
                          (pair
657
                            (pair (pair address nat)
658
                                  (pair (big_map nat (pair address (pair address nat)))
659
                                        (big_map (pair nat address) bool)))
660
                            (pair
661
                              (pair nat (big_map nat (pair address (pair bool nat))))
662
                              (pair (big_map string bytes) (set address)))))
663
                        (pair (list operation)
664
                              (pair
665
                                (pair (pair address nat)
666
                                      (pair
667
                                        (big_map nat (pair address (pair address nat)))
668
                                        (big_map (pair nat address) bool)))
669
                                (pair
670
                                  (pair nat (big_map nat (pair address (pair bool nat))))
671
                                  (pair (big_map string bytes) (set address)))))))
672
                    (or
673
                      (lambda
674
                        (pair
675
                          (or
676
                            (or (or nat (or address bytes))
677
                                (or (or bytes (pair address nat))
678
                                    (or (pair (pair nat nat) (pair bytes address))
679
                                        (pair (pair nat nat) (pair bytes address)))))
680
                            (or (or (pair address nat) (or address nat))
681
                                (or (or (pair string bytes) nat)
682
                                    (or (pair nat bytes) (pair nat bytes)))))
683
                          (pair
684
                            (pair (pair address nat)
685
                                  (pair (big_map nat (pair address (pair address nat)))
686
                                        (big_map (pair nat address) bool)))
687
                            (pair
688
                              (pair nat (big_map nat (pair address (pair bool nat))))
689
                              (pair (big_map string bytes) (set address)))))
690
                        (pair (list operation)
691
                              (pair
692
                                (pair (pair address nat)
693
                                      (pair
694
                                        (big_map nat (pair address (pair address nat)))
695
                                        (big_map (pair nat address) bool)))
696
                                (pair
697
                                  (pair nat (big_map nat (pair address (pair bool nat))))
698
                                  (pair (big_map string bytes) (set address))))))
699
                      (lambda
700
                        (pair
701
                          (or
702
                            (or (or nat (or address bytes))
703
                                (or (or bytes (pair address nat))
704
                                    (or (pair (pair nat nat) (pair bytes address))
705
                                        (pair (pair nat nat) (pair bytes address)))))
706
                            (or (or (pair address nat) (or address nat))
707
                                (or (or (pair string bytes) nat)
708
                                    (or (pair nat bytes) (pair nat bytes)))))
709
                          (pair
710
                            (pair (pair address nat)
711
                                  (pair (big_map nat (pair address (pair address nat)))
712
                                        (big_map (pair nat address) bool)))
713
                            (pair
714
                              (pair nat (big_map nat (pair address (pair bool nat))))
715
                              (pair (big_map string bytes) (set address)))))
716
                        (pair (list operation)
717
                              (pair
718
                                (pair (pair address nat)
719
                                      (pair
720
                                        (big_map nat (pair address (pair address nat)))
721
                                        (big_map (pair nat address) bool)))
722
                                (pair
723
                                  (pair nat (big_map nat (pair address (pair bool nat))))
724
                                  (pair (big_map string bytes) (set address))))))))))
725
              (pair
726
                (pair
727
                  (pair (pair address nat)
728
                        (pair (big_map nat (pair address (pair address nat)))
729
                              (big_map (pair nat address) bool)))
730
                  (pair (pair nat (big_map nat (pair address (pair bool nat))))
731
                        (pair (big_map string bytes) (set address))))
732
                (big_map nat
733
                         (lambda
734
                           (pair
735
                             (or
736
                               (or (or nat (or address bytes))
737
                                   (or (or bytes (pair address nat))
738
                                       (or (pair (pair nat nat) (pair bytes address))
739
                                           (pair (pair nat nat) (pair bytes address)))))
740
                               (or (or (pair address nat) (or address nat))
741
                                   (or (or (pair string bytes) nat)
742
                                       (or (pair nat bytes) (pair nat bytes)))))
743
                             (pair
744
                               (pair (pair address nat)
745
                                     (pair
746
                                       (big_map nat (pair address (pair address nat)))
747
                                       (big_map (pair nat address) bool)))
748
                               (pair
749
                                 (pair nat (big_map nat (pair address (pair bool nat))))
750
                                 (pair (big_map string bytes) (set address)))))
751
                           (pair (list operation)
752
                                 (pair
753
                                   (pair (pair address nat)
754
                                         (pair
755
                                           (big_map nat
756
                                                    (pair address (pair address nat)))
757
                                           (big_map (pair nat address) bool)))
758
                                   (pair
759
                                     (pair nat
760
                                           (big_map nat (pair address (pair bool nat))))
761
                                     (pair (big_map string bytes) (set address))))))))) ;
762
       UNPAIR 3 ;
763
       IF_LEFT
764
         { DUP ;
765
           IF_LEFT
766
             { IF_LEFT
767
                 { IF_LEFT
768
                     { DROP ; PUSH nat 0 }
769
                     { IF_LEFT { DROP ; PUSH nat 1 } { DROP ; PUSH nat 2 } } }
770
                 { IF_LEFT
771
                     { IF_LEFT { DROP ; PUSH nat 3 } { DROP ; PUSH nat 4 } }
772
                     { IF_LEFT { DROP ; PUSH nat 5 } { DROP ; PUSH nat 6 } } } }
773
             { IF_LEFT
774
                 { IF_LEFT
775
                     { DROP ; PUSH nat 7 }
776
                     { IF_LEFT { DROP ; PUSH nat 8 } { DROP ; PUSH nat 9 } } }
777
                 { IF_LEFT
778
                     { IF_LEFT { DROP ; PUSH nat 10 } { DROP ; PUSH nat 11 } }
779
                     { IF_LEFT { DROP ; PUSH nat 12 } { DROP ; PUSH nat 13 } } } } ;
780
           DUP 4 ;
781
           SWAP ;
782
           GET ;
783
           IF_NONE { PUSH int -1 ; FAILWITH } {} ;
784
           DUG 2 ;
785
           PAIR ;
786
           EXEC ;
787
           UNPAIR }
788
         { IF_LEFT
789
             { IF_LEFT
790
                 { SWAP ;
791
                   DUP ;
792
                   DUG 2 ;
793
                   CAR ;
794
                   CAR ;
795
                   CAR ;
796
                   SENDER ;
797
                   COMPARE ;
798
                   EQ ;
799
                   IF
800
                     {}
801
                     { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
802
                       FAILWITH } ;
803
                   DIG 2 ;
804
                   SWAP ;
805
                   SOME ;
806
                   PUSH nat 5 ;
807
                   UPDATE ;
808
                   SWAP }
809
                 { IF_LEFT
810
                     { SWAP ;
811
                       DUP ;
812
                       DUG 2 ;
813
                       CAR ;
814
                       CAR ;
815
                       CAR ;
816
                       SENDER ;
817
                       COMPARE ;
818
                       EQ ;
819
                       IF
820
                         {}
821
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
822
                           FAILWITH } ;
823
                       DIG 2 ;
824
                       SWAP ;
825
                       SOME ;
826
                       PUSH nat 5 ;
827
                       UPDATE ;
828
                       SWAP }
829
                     { SWAP ;
830
                       DUP ;
831
                       DUG 2 ;
832
                       CAR ;
833
                       CAR ;
834
                       CAR ;
835
                       SENDER ;
836
                       COMPARE ;
837
                       EQ ;
838
                       IF
839
                         {}
840
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
841
                           FAILWITH } ;
842
                       DIG 2 ;
843
                       SWAP ;
844
                       SOME ;
845
                       PUSH nat 5 ;
846
                       UPDATE ;
847
                       SWAP } } }
848
             { IF_LEFT
849
                 { IF_LEFT
850
                     { SWAP ;
851
                       DUP ;
852
                       DUG 2 ;
853
                       CAR ;
854
                       CAR ;
855
                       CAR ;
856
                       SENDER ;
857
                       COMPARE ;
858
                       EQ ;
859
                       IF
860
                         {}
861
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
862
                           FAILWITH } ;
863
                       DIG 2 ;
864
                       SWAP ;
865
                       SOME ;
866
                       PUSH nat 5 ;
867
                       UPDATE ;
868
                       SWAP }
869
                     { SWAP ;
870
                       DUP ;
871
                       DUG 2 ;
872
                       CAR ;
873
                       CAR ;
874
                       CAR ;
875
                       SENDER ;
876
                       COMPARE ;
877
                       EQ ;
878
                       IF
879
                         {}
880
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
881
                           FAILWITH } ;
882
                       DIG 2 ;
883
                       SWAP ;
884
                       SOME ;
885
                       PUSH nat 5 ;
886
                       UPDATE ;
887
                       SWAP } }
888
                 { IF_LEFT
889
                     { SWAP ;
890
                       DUP ;
891
                       DUG 2 ;
892
                       CAR ;
893
                       CAR ;
894
                       CAR ;
895
                       SENDER ;
896
                       COMPARE ;
897
                       EQ ;
898
                       IF
899
                         {}
900
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
901
                           FAILWITH } ;
902
                       DIG 2 ;
903
                       SWAP ;
904
                       SOME ;
905
                       PUSH nat 5 ;
906
                       UPDATE ;
907
                       SWAP }
908
                     { SWAP ;
909
                       DUP ;
910
                       DUG 2 ;
911
                       CAR ;
912
                       CAR ;
913
                       CAR ;
914
                       SENDER ;
915
                       COMPARE ;
916
                       EQ ;
917
                       IF
918
                         {}
919
                         { PUSH string "WrongCondition: sp.sender == self.data.admin" ;
920
                           FAILWITH } ;
921
                       DIG 2 ;
922
                       SWAP ;
923
                       SOME ;
924
                       PUSH nat 5 ;
925
                       UPDATE ;
926
                       SWAP } } } ;
927
           NIL operation } ;
928
       NIL operation ;
929
       SWAP ;
930
       ITER { CONS } ;
931
       DUG 2 ;
932
       PAIR ;
933
       SWAP ;
934
       PAIR }