1 | | - | {-# STDLIB_VERSION 6 #-} |
---|
2 | | - | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | | - | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
5 | | - | |
---|
6 | | - | @Callable(i) |
---|
7 | | - | func call5 (addresses,funcName) = { |
---|
8 | | - | func iter (accum,address) = { |
---|
9 | | - | let r = invoke(addressFromStringValue(address), funcName, nil, nil) |
---|
10 | | - | if ((r == r)) |
---|
11 | | - | then 0 |
---|
12 | | - | else throw("Strict value is not equal to itself.") |
---|
13 | | - | } |
---|
14 | | - | |
---|
15 | | - | let r = { |
---|
16 | | - | let $l = split(addresses, ";") |
---|
17 | | - | let $s = size($l) |
---|
18 | | - | let $acc0 = 0 |
---|
19 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
20 | | - | then $a |
---|
21 | | - | else iter($a, $l[$i]) |
---|
22 | | - | |
---|
23 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
24 | | - | then $a |
---|
25 | | - | else throw("List size exceeds 5") |
---|
26 | | - | |
---|
27 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
28 | | - | } |
---|
29 | | - | if ((r == r)) |
---|
30 | | - | then nil |
---|
31 | | - | else throw("Strict value is not equal to itself.") |
---|
32 | | - | } |
---|
33 | | - | |
---|
34 | | - | |
---|
35 | | - | |
---|
36 | | - | @Callable(i) |
---|
37 | | - | func call8 (addresses,funcName) = { |
---|
38 | | - | func iter (accum,address) = { |
---|
39 | | - | let r = invoke(addressFromStringValue(address), funcName, nil, nil) |
---|
40 | | - | if ((r == r)) |
---|
41 | | - | then 0 |
---|
42 | | - | else throw("Strict value is not equal to itself.") |
---|
43 | | - | } |
---|
44 | | - | |
---|
45 | | - | let r = { |
---|
46 | | - | let $l = split(addresses, ";") |
---|
47 | | - | let $s = size($l) |
---|
48 | | - | let $acc0 = 0 |
---|
49 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
50 | | - | then $a |
---|
51 | | - | else iter($a, $l[$i]) |
---|
52 | | - | |
---|
53 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
54 | | - | then $a |
---|
55 | | - | else throw("List size exceeds 8") |
---|
56 | | - | |
---|
57 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) |
---|
58 | | - | } |
---|
59 | | - | if ((r == r)) |
---|
60 | | - | then nil |
---|
61 | | - | else throw("Strict value is not equal to itself.") |
---|
62 | | - | } |
---|
63 | | - | |
---|
64 | | - | |
---|
65 | | - | |
---|
66 | | - | @Callable(i) |
---|
67 | | - | func call10 (addresses,funcName) = { |
---|
68 | | - | func iter (accum,address) = { |
---|
69 | | - | let r = invoke(addressFromStringValue(address), funcName, nil, nil) |
---|
70 | | - | if ((r == r)) |
---|
71 | | - | then 0 |
---|
72 | | - | else throw("Strict value is not equal to itself.") |
---|
73 | | - | } |
---|
74 | | - | |
---|
75 | | - | let r = { |
---|
76 | | - | let $l = split(addresses, ";") |
---|
77 | | - | let $s = size($l) |
---|
78 | | - | let $acc0 = 0 |
---|
79 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
80 | | - | then $a |
---|
81 | | - | else iter($a, $l[$i]) |
---|
82 | | - | |
---|
83 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
84 | | - | then $a |
---|
85 | | - | else throw("List size exceeds 10") |
---|
86 | | - | |
---|
87 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
88 | | - | } |
---|
89 | | - | if ((r == r)) |
---|
90 | | - | then nil |
---|
91 | | - | else throw("Strict value is not equal to itself.") |
---|
92 | | - | } |
---|
93 | | - | |
---|
94 | | - | |
---|
95 | | - | |
---|
96 | | - | @Callable(i) |
---|
97 | | - | func call12 (addresses,funcName) = { |
---|
98 | | - | func iter (accum,address) = { |
---|
99 | | - | let r = invoke(addressFromStringValue(address), funcName, nil, nil) |
---|
100 | | - | if ((r == r)) |
---|
101 | | - | then 0 |
---|
102 | | - | else throw("Strict value is not equal to itself.") |
---|
103 | | - | } |
---|
104 | | - | |
---|
105 | | - | let r = { |
---|
106 | | - | let $l = split_4C(addresses, ";") |
---|
107 | | - | let $s = size($l) |
---|
108 | | - | let $acc0 = 0 |
---|
109 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
110 | | - | then $a |
---|
111 | | - | else iter($a, $l[$i]) |
---|
112 | | - | |
---|
113 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
114 | | - | then $a |
---|
115 | | - | else throw("List size exceeds 12") |
---|
116 | | - | |
---|
117 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12) |
---|
118 | | - | } |
---|
119 | | - | if ((r == r)) |
---|
120 | | - | then nil |
---|
121 | | - | else throw("Strict value is not equal to itself.") |
---|
122 | | - | } |
---|
123 | | - | |
---|
124 | | - | |
---|
125 | | - | |
---|
126 | | - | @Callable(i) |
---|
127 | | - | func call18 (addresses,funcName) = { |
---|
128 | | - | func iter (accum,address) = { |
---|
129 | | - | let r = invoke(addressFromStringValue(address), funcName, nil, nil) |
---|
130 | | - | if ((r == r)) |
---|
131 | | - | then 0 |
---|
132 | | - | else throw("Strict value is not equal to itself.") |
---|
133 | | - | } |
---|
134 | | - | |
---|
135 | | - | let r = { |
---|
136 | | - | let $l = split_4C(addresses, ";") |
---|
137 | | - | let $s = size($l) |
---|
138 | | - | let $acc0 = 0 |
---|
139 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
140 | | - | then $a |
---|
141 | | - | else iter($a, $l[$i]) |
---|
142 | | - | |
---|
143 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
144 | | - | then $a |
---|
145 | | - | else throw("List size exceeds 18") |
---|
146 | | - | |
---|
147 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) |
---|
148 | | - | } |
---|
149 | | - | if ((r == r)) |
---|
150 | | - | then nil |
---|
151 | | - | else throw("Strict value is not equal to itself.") |
---|
152 | | - | } |
---|
153 | | - | |
---|
154 | | - | |
---|
| 1 | + | # no script |
---|