BCD

Tezos Contract Explorer
Search Networks Deploy
  • Home
  • /
  • Mainnet
  • /
  • KT1DXyL...eYs8
FA2
operations (13)Storage Code Interact Tokens Metadata Fork Views Statistics Details
Latest
​x
541
 
1
parameter (or
2
            (or
3
              (or
4
                (lambda %admin_update
5
                  (pair
6
                    (pair
7
                      (big_map %actions string
8
                                        (lambda
9
                                          (pair (pair bytes address)
10
                                                (pair
11
                                                  (pair
12
                                                    (pair (big_map %data bytes bytes)
13
                                                          (big_map %expiry_map bytes
14
                                                                               timestamp))
15
                                                    (pair
16
                                                      (big_map %metadata string bytes)
17
                                                      (nat %next_tzip12_token_id)))
18
                                                  (pair
19
                                                    (pair (address %owner)
20
                                                          (big_map %records bytes
21
                                                                            (pair
22
                                                                              (pair
23
                                                                                (pair
24
                                                                                  (option %address address)
25
                                                                                  (map %data
26
                                                                                    string
27
                                                                                    bytes))
28
                                                                                (pair
29
                                                                                  (option %expiry_key bytes)
30
                                                                                  (map %internal_data
31
                                                                                    string
32
                                                                                    bytes)))
33
                                                                              (pair
34
                                                                                (pair
35
                                                                                  (nat %level)
36
                                                                                  (address %owner))
37
                                                                                (option %tzip12_token_id nat)))))
38
                                                    (pair
39
                                                      (big_map %reverse_records address
40
                                                                                (pair
41
                                                                                  (pair
42
                                                                                    (map %internal_data
43
                                                                                      string
44
                                                                                      bytes)
45
                                                                                    (option %name bytes))
46
                                                                                  (address %owner)))
47
                                                      (big_map %tzip12_tokens nat bytes)))))
48
                                          (pair (list operation)
49
                                                (pair
50
                                                  (pair
51
                                                    (pair (big_map %data bytes bytes)
52
                                                          (big_map %expiry_map bytes
53
                                                                               timestamp))
54
                                                    (pair
55
                                                      (big_map %metadata string bytes)
56
                                                      (nat %next_tzip12_token_id)))
57
                                                  (pair
58
                                                    (pair (address %owner)
59
                                                          (big_map %records bytes
60
                                                                            (pair
61
                                                                              (pair
62
                                                                                (pair
63
                                                                                  (option %address address)
64
                                                                                  (map %data
65
                                                                                    string
66
                                                                                    bytes))
67
                                                                                (pair
68
                                                                                  (option %expiry_key bytes)
69
                                                                                  (map %internal_data
70
                                                                                    string
71
                                                                                    bytes)))
72
                                                                              (pair
73
                                                                                (pair
74
                                                                                  (nat %level)
75
                                                                                  (address %owner))
76
                                                                                (option %tzip12_token_id nat)))))
77
                                                    (pair
78
                                                      (big_map %reverse_records address
79
                                                                                (pair
80
                                                                                  (pair
81
                                                                                    (map %internal_data
82
                                                                                      string
83
                                                                                      bytes)
84
                                                                                    (option %name bytes))
85
                                                                                  (address %owner)))
86
                                                      (big_map %tzip12_tokens nat bytes)))))))
87
                      (pair %store
88
                        (pair
89
                          (pair (big_map %data bytes bytes)
90
                                (big_map %expiry_map bytes timestamp))
91
                          (pair (big_map %metadata string bytes)
92
                                (nat %next_tzip12_token_id)))
93
                        (pair
94
                          (pair (address %owner)
95
                                (big_map %records bytes
96
                                                  (pair
97
                                                    (pair
98
                                                      (pair (option %address address)
99
                                                            (map %data string bytes))
100
                                                      (pair (option %expiry_key bytes)
101
                                                            (map %internal_data string
102
                                                                                bytes)))
103
                                                    (pair
104
                                                      (pair (nat %level)
105
                                                            (address %owner))
106
                                                      (option %tzip12_token_id nat)))))
107
                          (pair
108
                            (big_map %reverse_records address
109
                                                      (pair
110
                                                        (pair
111
                                                          (map %internal_data string
112
                                                                              bytes)
113
                                                          (option %name bytes))
114
                                                        (address %owner)))
115
                            (big_map %tzip12_tokens nat bytes)))))
116
                    (set %trusted_senders address))
117
                  (pair (list operation)
118
                        (pair
119
                          (pair
120
                            (big_map %actions string
121
                                              (lambda
122
                                                (pair (pair bytes address)
123
                                                      (pair
124
                                                        (pair
125
                                                          (pair
126
                                                            (big_map %data bytes bytes)
127
                                                            (big_map %expiry_map bytes
128
                                                                                 timestamp))
129
                                                          (pair
130
                                                            (big_map %metadata string
131
                                                                               bytes)
132
                                                            (nat %next_tzip12_token_id)))
133
                                                        (pair
134
                                                          (pair (address %owner)
135
                                                                (big_map %records bytes
136
                                                                                  (pair
137
                                                                                    (pair
138
                                                                                      (pair
139
                                                                                        (option %address address)
140
                                                                                        (map %data
141
                                                                                          string
142
                                                                                          bytes))
143
                                                                                      (pair
144
                                                                                        (option %expiry_key bytes)
145
                                                                                        (map %internal_data
146
                                                                                          string
147
                                                                                          bytes)))
148
                                                                                    (pair
149
                                                                                      (pair
150
                                                                                        (nat %level)
151
                                                                                        (address %owner))
152
                                                                                      (option %tzip12_token_id nat)))))
153
                                                          (pair
154
                                                            (big_map %reverse_records
155
                                                              address
156
                                                              (pair
157
                                                                (pair
158
                                                                  (map %internal_data
159
                                                                    string
160
                                                                    bytes)
161
                                                                  (option %name bytes))
162
                                                                (address %owner)))
163
                                                            (big_map %tzip12_tokens nat
164
                                                                                    bytes)))))
165
                                                (pair (list operation)
166
                                                      (pair
167
                                                        (pair
168
                                                          (pair
169
                                                            (big_map %data bytes bytes)
170
                                                            (big_map %expiry_map bytes
171
                                                                                 timestamp))
172
                                                          (pair
173
                                                            (big_map %metadata string
174
                                                                               bytes)
175
                                                            (nat %next_tzip12_token_id)))
176
                                                        (pair
177
                                                          (pair (address %owner)
178
                                                                (big_map %records bytes
179
                                                                                  (pair
180
                                                                                    (pair
181
                                                                                      (pair
182
                                                                                        (option %address address)
183
                                                                                        (map %data
184
                                                                                          string
185
                                                                                          bytes))
186
                                                                                      (pair
187
                                                                                        (option %expiry_key bytes)
188
                                                                                        (map %internal_data
189
                                                                                          string
190
                                                                                          bytes)))
191
                                                                                    (pair
192
                                                                                      (pair
193
                                                                                        (nat %level)
194
                                                                                        (address %owner))
195
                                                                                      (option %tzip12_token_id nat)))))
196
                                                          (pair
197
                                                            (big_map %reverse_records
198
                                                              address
199
                                                              (pair
200
                                                                (pair
201
                                                                  (map %internal_data
202
                                                                    string
203
                                                                    bytes)
204
                                                                  (option %name bytes))
205
                                                                (address %owner)))
206
                                                            (big_map %tzip12_tokens nat
207
                                                                                    bytes)))))))
208
                            (pair %store
209
                              (pair
210
                                (pair (big_map %data bytes bytes)
211
                                      (big_map %expiry_map bytes timestamp))
212
                                (pair (big_map %metadata string bytes)
213
                                      (nat %next_tzip12_token_id)))
214
                              (pair
215
                                (pair (address %owner)
216
                                      (big_map %records bytes
217
                                                        (pair
218
                                                          (pair
219
                                                            (pair
220
                                                              (option %address address)
221
                                                              (map %data string bytes))
222
                                                            (pair
223
                                                              (option %expiry_key bytes)
224
                                                              (map %internal_data string
225
                                                                                  bytes)))
226
                                                          (pair
227
                                                            (pair (nat %level)
228
                                                                  (address %owner))
229
                                                            (option %tzip12_token_id nat)))))
230
                                (pair
231
                                  (big_map %reverse_records address
232
                                                            (pair
233
                                                              (pair
234
                                                                (map %internal_data
235
                                                                  string
236
                                                                  bytes)
237
                                                                (option %name bytes))
238
                                                              (address %owner)))
239
                                  (big_map %tzip12_tokens nat bytes)))))
240
                          (set %trusted_senders address))))
241
                (pair %balance_of
242
                  (list %requests (pair (address %owner) (nat %token_id)))
243
                  (contract %callback (list (pair
244
                                            (pair %request (address %owner)
245
                                                           (nat %token_id))
246
                                            (nat %balance))))))
247
              (or
248
                (pair %execute (string %action_name)
249
                               (pair (bytes %payload) (address %original_sender)))
250
                (list %transfer (pair (address %from_)
251
                                     (list %txs (pair (address %to_)
252
                                                     (pair (nat %token_id) (nat %amount))))))))
253
            (list %update_operators (or
254
                                     (pair %add_operator (address %owner)
255
                                                         (pair (address %operator)
256
                                                               (nat %token_id)))
257
                                     (pair %remove_operator (address %owner)
258
                                                            (pair (address %operator)
259
                                                                  (nat %token_id))))));
260
storage (pair
261
          (pair
262
            (big_map %actions string
263
                              (lambda
264
                                (pair (pair bytes address)
265
                                      (pair
266
                                        (pair
267
                                          (pair (big_map %data bytes bytes)
268
                                                (big_map %expiry_map bytes timestamp))
269
                                          (pair (big_map %metadata string bytes)
270
                                                (nat %next_tzip12_token_id)))
271
                                        (pair
272
                                          (pair (address %owner)
273
                                                (big_map %records bytes
274
                                                                  (pair
275
                                                                    (pair
276
                                                                      (pair
277
                                                                        (option %address address)
278
                                                                        (map %data
279
                                                                          string
280
                                                                          bytes))
281
                                                                      (pair
282
                                                                        (option %expiry_key bytes)
283
                                                                        (map %internal_data
284
                                                                          string
285
                                                                          bytes)))
286
                                                                    (pair
287
                                                                      (pair (nat %level)
288
                                                                            (address %owner))
289
                                                                      (option %tzip12_token_id nat)))))
290
                                          (pair
291
                                            (big_map %reverse_records address
292
                                                                      (pair
293
                                                                        (pair
294
                                                                          (map %internal_data
295
                                                                            string
296
                                                                            bytes)
297
                                                                          (option %name bytes))
298
                                                                        (address %owner)))
299
                                            (big_map %tzip12_tokens nat bytes)))))
300
                                (pair (list operation)
301
                                      (pair
302
                                        (pair
303
                                          (pair (big_map %data bytes bytes)
304
                                                (big_map %expiry_map bytes timestamp))
305
                                          (pair (big_map %metadata string bytes)
306
                                                (nat %next_tzip12_token_id)))
307
                                        (pair
308
                                          (pair (address %owner)
309
                                                (big_map %records bytes
310
                                                                  (pair
311
                                                                    (pair
312
                                                                      (pair
313
                                                                        (option %address address)
314
                                                                        (map %data
315
                                                                          string
316
                                                                          bytes))
317
                                                                      (pair
318
                                                                        (option %expiry_key bytes)
319
                                                                        (map %internal_data
320
                                                                          string
321
                                                                          bytes)))
322
                                                                    (pair
323
                                                                      (pair (nat %level)
324
                                                                            (address %owner))
325
                                                                      (option %tzip12_token_id nat)))))
326
                                          (pair
327
                                            (big_map %reverse_records address
328
                                                                      (pair
329
                                                                        (pair
330
                                                                          (map %internal_data
331
                                                                            string
332
                                                                            bytes)
333
                                                                          (option %name bytes))
334
                                                                        (address %owner)))
335
                                            (big_map %tzip12_tokens nat bytes)))))))
336
            (pair %store
337
              (pair
338
                (pair (big_map %data bytes bytes) (big_map %expiry_map bytes timestamp))
339
                (pair (big_map %metadata string bytes) (nat %next_tzip12_token_id)))
340
              (pair
341
                (pair (address %owner)
342
                      (big_map %records bytes
343
                                        (pair
344
                                          (pair
345
                                            (pair (option %address address)
346
                                                  (map %data string bytes))
347
                                            (pair (option %expiry_key bytes)
348
                                                  (map %internal_data string bytes)))
349
                                          (pair (pair (nat %level) (address %owner))
350
                                                (option %tzip12_token_id nat)))))
351
                (pair
352
                  (big_map %reverse_records address
353
                                            (pair
354
                                              (pair (map %internal_data string bytes)
355
                                                    (option %name bytes))
356
                                              (address %owner)))
357
                  (big_map %tzip12_tokens nat bytes)))))
358
          (set %trusted_senders address));
359
code { UNPAIR ;
360
       IF_LEFT
361
         { IF_LEFT
362
             { IF_LEFT
363
                 { SWAP ;
364
                   DUP ;
365
                   DUG 2 ;
366
                   CAR ;
367
                   CDR ;
368
                   CDR ;
369
                   CAR ;
370
                   CAR ;
371
                   SENDER ;
372
                   COMPARE ;
373
                   EQ ;
374
                   IF
375
                     { SWAP ; EXEC }
376
                     { DROP 2 ; PUSH string "NOT_AUTHORIZED" ; FAILWITH } }
377
                 { SWAP ;
378
                   SENDER ;
379
                   PAIR ;
380
                   SWAP ;
381
                   DUP ;
382
                   DUG 2 ;
383
                   CDR ;
384
                   ADDRESS ;
385
                   DIG 2 ;
386
                   CAR ;
387
                   PAIR ;
388
                   PACK ;
389
                   PUSH string "BalanceOf" ;
390
                   DIG 2 ;
391
                   UNPAIR ;
392
                   SWAP ;
393
                   DUP ;
394
                   DUG 2 ;
395
                   CAR ;
396
                   CAR ;
397
                   DIG 3 ;
398
                   GET ;
399
                   IF_NONE
400
                     { DROP 3 ; PUSH string "UNKNOWN_ACTION" ; FAILWITH }
401
                     { DUP 3 ;
402
                       CAR ;
403
                       CDR ;
404
                       DIG 2 ;
405
                       DIG 4 ;
406
                       PAIR ;
407
                       PAIR ;
408
                       EXEC ;
409
                       UNPAIR ;
410
                       DUP 3 ;
411
                       CDR ;
412
                       DIG 2 ;
413
                       DIG 3 ;
414
                       CAR ;
415
                       CAR ;
416
                       PAIR ;
417
                       PAIR ;
418
                       SWAP ;
419
                       PAIR } } }
420
             { IF_LEFT
421
                 { SWAP ;
422
                   DUP ;
423
                   DUG 2 ;
424
                   CDR ;
425
                   SENDER ;
426
                   MEM ;
427
                   IF {} { PUSH string "NOT_TRUSTED_SENDER" ; FAILWITH } ;
428
                   DUP ;
429
                   DUG 2 ;
430
                   CDR ;
431
                   CDR ;
432
                   PAIR ;
433
                   SWAP ;
434
                   DUP ;
435
                   DUG 2 ;
436
                   CDR ;
437
                   CAR ;
438
                   DIG 2 ;
439
                   CAR ;
440
                   DIG 2 ;
441
                   UNPAIR ;
442
                   SWAP ;
443
                   DUP ;
444
                   DUG 2 ;
445
                   CAR ;
446
                   CAR ;
447
                   DIG 3 ;
448
                   GET ;
449
                   IF_NONE
450
                     { DROP 3 ; PUSH string "UNKNOWN_ACTION" ; FAILWITH }
451
                     { DUP 3 ;
452
                       CAR ;
453
                       CDR ;
454
                       DIG 2 ;
455
                       DIG 4 ;
456
                       PAIR ;
457
                       PAIR ;
458
                       EXEC ;
459
                       UNPAIR ;
460
                       DUP 3 ;
461
                       CDR ;
462
                       DIG 2 ;
463
                       DIG 3 ;
464
                       CAR ;
465
                       CAR ;
466
                       PAIR ;
467
                       PAIR ;
468
                       SWAP ;
469
                       PAIR } }
470
                 { SWAP ;
471
                   SENDER ;
472
                   PAIR ;
473
                   SWAP ;
474
                   PACK ;
475
                   PUSH string "Transfer" ;
476
                   DIG 2 ;
477
                   UNPAIR ;
478
                   SWAP ;
479
                   DUP ;
480
                   DUG 2 ;
481
                   CAR ;
482
                   CAR ;
483
                   DIG 3 ;
484
                   GET ;
485
                   IF_NONE
486
                     { DROP 3 ; PUSH string "UNKNOWN_ACTION" ; FAILWITH }
487
                     { DUP 3 ;
488
                       CAR ;
489
                       CDR ;
490
                       DIG 2 ;
491
                       DIG 4 ;
492
                       PAIR ;
493
                       PAIR ;
494
                       EXEC ;
495
                       UNPAIR ;
496
                       DUP 3 ;
497
                       CDR ;
498
                       DIG 2 ;
499
                       DIG 3 ;
500
                       CAR ;
501
                       CAR ;
502
                       PAIR ;
503
                       PAIR ;
504
                       SWAP ;
505
                       PAIR } } } }
506
         { SWAP ;
507
           SENDER ;
508
           PAIR ;
509
           SWAP ;
510
           PACK ;
511
           PUSH string "UpdateOperators" ;
512
           DIG 2 ;
513
           UNPAIR ;
514
           SWAP ;
515
           DUP ;
516
           DUG 2 ;
517
           CAR ;
518
           CAR ;
519
           DIG 3 ;
520
           GET ;
521
           IF_NONE
522
             { DROP 3 ; PUSH string "UNKNOWN_ACTION" ; FAILWITH }
523
             { DUP 3 ;
524
               CAR ;
525
               CDR ;
526
               DIG 2 ;
527
               DIG 4 ;
528
               PAIR ;
529
               PAIR ;
530
               EXEC ;
531
               UNPAIR ;
532
               DUP 3 ;
533
               CDR ;
534
               DIG 2 ;
535
               DIG 3 ;
536
               CAR ;
537
               CAR ;
538
               PAIR ;
539
               PAIR ;
540
               SWAP ;
541
               PAIR } } }