BCD

Tezos Contract Explorer
Search Networks Deploy
  • Home
  • /
  • Ghostnet
  • /
  • KT1CBQG...xB8C
operations (1.1K)Storage Code Interact Tokens Tickets Fork Statistics Details
Latest
​x
27
 
1
parameter address;
2
storage unit;
3
code { CAR ;
4
       PUSH nat 1 ;
5
       PUSH bytes 0x1234 ;
6
       SOME ;
7
       PUSH nat 0 ;
8
       PAIR ;
9
       TICKET ;
10
       IF_NONE { PUSH string "Could not mint ticket." ; FAILWITH } {} ;
11
       SWAP ;
12
       CONTRACT (or (or (pair bytes (ticket (pair nat (option bytes)))) bytes) bytes) ;
13
       IF_NONE { PUSH string "Invalid rollup address" ; FAILWITH } {} ;
14
       PUSH mutez 0 ;
15
       DIG 2 ;
16
       PUSH bytes 0xbb3cf3be97624af5ef73a68ec75f6edb1961a4f7 ;
17
       PUSH bytes 0xc2c7c201108a8cb5f045e22fe866a91241e8bb9a ;
18
       CONCAT ;
19
       PAIR ;
20
       LEFT bytes ;
21
       LEFT bytes ;
22
       TRANSFER_TOKENS ;
23
       UNIT ;
24
       NIL operation ;
25
       DIG 2 ;
26
       CONS ;
27
       PAIR }