tx · CeKT2kK5VqkJwssVmy2n2CW7xpqEwQ2DP3oNzFLvpUGw 3NCman4dCzk1HWWU4DPTr5rsbhvuUCwwUZh: -0.01400000 Waves 2022.02.01 19:02 [1904748] smart account 3NCman4dCzk1HWWU4DPTr5rsbhvuUCwwUZh > SELF 0.00000000 Waves
{ "type": 13, "id": "CeKT2kK5VqkJwssVmy2n2CW7xpqEwQ2DP3oNzFLvpUGw", "fee": 1400000, "feeAssetId": null, "timestamp": 1643731421609, "version": 2, "chainId": 84, "sender": "3NCman4dCzk1HWWU4DPTr5rsbhvuUCwwUZh", "senderPublicKey": "H2pYnWJJx65CZzDe7K8uDrXypr7eDKevtrtLRF2uN1Qd", "proofs": [ "4qunQMSvRzAhqCjq1fcA5YZwvfkRN6DW5975NtSpo5L81zMVMELnM3WU6DTUibV4jtV3HatrRBuNPxVa2mwL1qSt" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAADwAAAAAQaW5jdWJhdG9yQWRkcmVzcwEAAAAaAVQu1YzRxAHn1ekAzs1AJJ6xFAc06V7PK6oAAAAADmJyZWVkZXJBZGRyZXNzAQAAABoBVIXmeysidPaPsP+lKHIt9Vw8rE+lS45bjgEAAAAJaXNTeW1ib2xBAAAAAgAAAAthY2N1bXVsYXRlZAAAAANzeW0DCQAAAAAAAAIFAAAAA3N5bQIAAAABQQkAAGQAAAACBQAAAAthY2N1bXVsYXRlZAAAAAAAAAAAAQkAAGQAAAACBQAAAAthY2N1bXVsYXRlZAAAAAAAAAAAAAEAAAAJaXNTeW1ib2xCAAAAAgAAAAthY2N1bXVsYXRlZAAAAANzeW0DCQAAAAAAAAIFAAAAA3N5bQIAAAABQgkAAGQAAAACBQAAAAthY2N1bXVsYXRlZAAAAAAAAAAAAQkAAGQAAAACBQAAAAthY2N1bXVsYXRlZAAAAAAAAAAAAAEAAAAJaXNTeW1ib2xDAAAAAgAAAAthY2N1bXVsYXRlZAAAAANzeW0DCQAAAAAAAAIFAAAAA3N5bQIAAA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l0ZXMJAAJZAAAAAQUAAAAHYXNzZXRJZAMDCQAAAAAAAAIICQEAAAAFdmFsdWUAAAABCQAD7AAAAAEFAAAADGFzc2V0SWRCeXRlcwAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQUAAAAOYnJlZWRlckFkZHJlc3MGCQAAAAAAAAIICQEAAAAFdmFsdWUAAAABCQAD7AAAAAEFAAAADGFzc2V0SWRCeXRlcwAAAAZpc3N1ZXIJAQAAAAdBZGRyZXNzAAAAAQUAAAAQaW5jdWJhdG9yQWRkcmVzcwQAAAAJYXNzZXROYW1lCAkBAAAABXZhbHVlAAAAAQkAA+wAAAABBQAAAAxhc3NldElkQnl0ZXMAAAAEbmFtZQMJAAAAAAAAAgkBAAAACXRha2VSaWdodAAAAAIJAQAAAAV2YWx1ZQAAAAEFAAAACWFzc2V0TmFtZQAAAAAAAAAAAQIAAAABVQkABRQAAAACBQAAAANuaWwAAAAAAAAAAGQEAAAACmdlbmVyYXRpb24JAAEvAAAAAgkBAAAACXRha2VSaWdodAAAAAIFAAAACWFzc2V0TmFtZQAAAAAAAAAAAgAAAAAAAAAAAQQAAAADZ2VuCQABLAAAAAIJAAEsAAAAAgkBAAAABmdldEdlbgAAAAEFAAAACWFzc2V0TmFtZQIAAAABLQUAAAAKZ2VuZXJhdGlvbgkABRQAAAACBQAAAANuaWwJAQAAAA9jYWxjQXNzZXRSYXJpdHkAAAACBQAAAANnZW4FAAAACmdlbmVyYXRpb24JAAACAAAAAQIAAAANbm90IHZhbGlkIE5GVAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5EO5Ong==", "height": 1904748, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FjhScV1STS2NJ3VeL3tYS6oDsax52PPDLVRg3d4jU9JE Next: none Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | else (accumulated + 0) | |
46 | 46 | ||
47 | 47 | ||
48 | + | func isSymbolI (accumulated,sym) = if ((sym == "I")) | |
49 | + | then (accumulated + 1) | |
50 | + | else (accumulated + 0) | |
51 | + | ||
52 | + | ||
48 | 53 | func getAmountOrClear (amount) = if (contains(amount, "0")) | |
49 | 54 | then "" | |
50 | 55 | else amount | |
52 | 57 | ||
53 | 58 | func getGen (assetName) = { | |
54 | 59 | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
55 | - | (((((((getAmountOrClear((toString({ | |
56 | - | let $list15991630 = genotype | |
57 | - | let $size15991630 = size($list15991630) | |
58 | - | let $acc015991630 = 0 | |
59 | - | if (($size15991630 == 0)) | |
60 | - | then $acc015991630 | |
61 | - | else { | |
62 | - | let $acc115991630 = isSymbolA($acc015991630, $list15991630[0]) | |
63 | - | if (($size15991630 == 1)) | |
64 | - | then $acc115991630 | |
65 | - | else { | |
66 | - | let $acc215991630 = isSymbolA($acc115991630, $list15991630[1]) | |
67 | - | if (($size15991630 == 2)) | |
68 | - | then $acc215991630 | |
69 | - | else { | |
70 | - | let $acc315991630 = isSymbolA($acc215991630, $list15991630[2]) | |
71 | - | if (($size15991630 == 3)) | |
72 | - | then $acc315991630 | |
73 | - | else { | |
74 | - | let $acc415991630 = isSymbolA($acc315991630, $list15991630[3]) | |
75 | - | if (($size15991630 == 4)) | |
76 | - | then $acc415991630 | |
77 | - | else { | |
78 | - | let $acc515991630 = isSymbolA($acc415991630, $list15991630[4]) | |
79 | - | if (($size15991630 == 5)) | |
80 | - | then $acc515991630 | |
81 | - | else { | |
82 | - | let $acc615991630 = isSymbolA($acc515991630, $list15991630[5]) | |
83 | - | if (($size15991630 == 6)) | |
84 | - | then $acc615991630 | |
85 | - | else { | |
86 | - | let $acc715991630 = isSymbolA($acc615991630, $list15991630[6]) | |
87 | - | if (($size15991630 == 7)) | |
88 | - | then $acc715991630 | |
89 | - | else { | |
90 | - | let $acc815991630 = isSymbolA($acc715991630, $list15991630[7]) | |
91 | - | if (($size15991630 == 8)) | |
92 | - | then $acc815991630 | |
93 | - | else { | |
94 | - | let $acc915991630 = isSymbolA($acc815991630, $list15991630[8]) | |
95 | - | throw("List size exceed 8") | |
96 | - | } | |
97 | - | } | |
98 | - | } | |
99 | - | } | |
100 | - | } | |
101 | - | } | |
102 | - | } | |
103 | - | } | |
104 | - | } | |
60 | + | ((((((((getAmountOrClear((toString({ | |
61 | + | let $l = genotype | |
62 | + | let $s = size($l) | |
63 | + | let $acc0 = 0 | |
64 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
65 | + | then $a | |
66 | + | else isSymbolA($a, $l[$i]) | |
67 | + | ||
68 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
69 | + | then $a | |
70 | + | else throw("List size exceeds 8") | |
71 | + | ||
72 | + | $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) | |
105 | 73 | }) + "A")) + getAmountOrClear((toString({ | |
106 | - | let $list16671698 = genotype | |
107 | - | let $size16671698 = size($list16671698) | |
108 | - | let $acc016671698 = 0 | |
109 | - | if (($size16671698 == 0)) | |
110 | - | then $acc016671698 | |
111 | - | else { | |
112 | - | let $acc116671698 = isSymbolB($acc016671698, $list16671698[0]) | |
113 | - | if (($size16671698 == 1)) | |
114 | - | then $acc116671698 | |
115 | - | else { | |
116 | - | let $acc216671698 = isSymbolB($acc116671698, $list16671698[1]) | |
117 | - | if (($size16671698 == 2)) | |
118 | - | then $acc216671698 | |
119 | - | else { | |
120 | - | let $acc316671698 = isSymbolB($acc216671698, $list16671698[2]) | |
121 | - | if (($size16671698 == 3)) | |
122 | - | then $acc316671698 | |
123 | - | else { | |
124 | - | let $acc416671698 = isSymbolB($acc316671698, $list16671698[3]) | |
125 | - | if (($size16671698 == 4)) | |
126 | - | then $acc416671698 | |
127 | - | else { | |
128 | - | let $acc516671698 = isSymbolB($acc416671698, $list16671698[4]) | |
129 | - | if (($size16671698 == 5)) | |
130 | - | then $acc516671698 | |
131 | - | else { | |
132 | - | let $acc616671698 = isSymbolB($acc516671698, $list16671698[5]) | |
133 | - | if (($size16671698 == 6)) | |
134 | - | then $acc616671698 | |
135 | - | else { | |
136 | - | let $acc716671698 = isSymbolB($acc616671698, $list16671698[6]) | |
137 | - | if (($size16671698 == 7)) | |
138 | - | then $acc716671698 | |
139 | - | else { | |
140 | - | let $acc816671698 = isSymbolB($acc716671698, $list16671698[7]) | |
141 | - | if (($size16671698 == 8)) | |
142 | - | then $acc816671698 | |
143 | - | else { | |
144 | - | let $acc916671698 = isSymbolB($acc816671698, $list16671698[8]) | |
145 | - | throw("List size exceed 8") | |
146 | - | } | |
147 | - | } | |
148 | - | } | |
149 | - | } | |
150 | - | } | |
151 | - | } | |
152 | - | } | |
153 | - | } | |
154 | - | } | |
74 | + | let $l = genotype | |
75 | + | let $s = size($l) | |
76 | + | let $acc0 = 0 | |
77 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
78 | + | then $a | |
79 | + | else isSymbolB($a, $l[$i]) | |
80 | + | ||
81 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
82 | + | then $a | |
83 | + | else throw("List size exceeds 8") | |
84 | + | ||
85 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
155 | 86 | }) + "B"))) + getAmountOrClear((toString({ | |
156 | - | let $list17351766 = genotype | |
157 | - | let $size17351766 = size($list17351766) | |
158 | - | let $acc017351766 = 0 | |
159 | - | if (($size17351766 == 0)) | |
160 | - | then $acc017351766 | |
161 | - | else { | |
162 | - | let $acc117351766 = isSymbolC($acc017351766, $list17351766[0]) | |
163 | - | if (($size17351766 == 1)) | |
164 | - | then $acc117351766 | |
165 | - | else { | |
166 | - | let $acc217351766 = isSymbolC($acc117351766, $list17351766[1]) | |
167 | - | if (($size17351766 == 2)) | |
168 | - | then $acc217351766 | |
169 | - | else { | |
170 | - | let $acc317351766 = isSymbolC($acc217351766, $list17351766[2]) | |
171 | - | if (($size17351766 == 3)) | |
172 | - | then $acc317351766 | |
173 | - | else { | |
174 | - | let $acc417351766 = isSymbolC($acc317351766, $list17351766[3]) | |
175 | - | if (($size17351766 == 4)) | |
176 | - | then $acc417351766 | |
177 | - | else { | |
178 | - | let $acc517351766 = isSymbolC($acc417351766, $list17351766[4]) | |
179 | - | if (($size17351766 == 5)) | |
180 | - | then $acc517351766 | |
181 | - | else { | |
182 | - | let $acc617351766 = isSymbolC($acc517351766, $list17351766[5]) | |
183 | - | if (($size17351766 == 6)) | |
184 | - | then $acc617351766 | |
185 | - | else { | |
186 | - | let $acc717351766 = isSymbolC($acc617351766, $list17351766[6]) | |
187 | - | if (($size17351766 == 7)) | |
188 | - | then $acc717351766 | |
189 | - | else { | |
190 | - | let $acc817351766 = isSymbolC($acc717351766, $list17351766[7]) | |
191 | - | if (($size17351766 == 8)) | |
192 | - | then $acc817351766 | |
193 | - | else { | |
194 | - | let $acc917351766 = isSymbolC($acc817351766, $list17351766[8]) | |
195 | - | throw("List size exceed 8") | |
196 | - | } | |
197 | - | } | |
198 | - | } | |
199 | - | } | |
200 | - | } | |
201 | - | } | |
202 | - | } | |
203 | - | } | |
204 | - | } | |
87 | + | let $l = genotype | |
88 | + | let $s = size($l) | |
89 | + | let $acc0 = 0 | |
90 | + | func $f2_1 ($a,$i) = if (($i >= $s)) | |
91 | + | then $a | |
92 | + | else isSymbolC($a, $l[$i]) | |
93 | + | ||
94 | + | func $f2_2 ($a,$i) = if (($i >= $s)) | |
95 | + | then $a | |
96 | + | else throw("List size exceeds 8") | |
97 | + | ||
98 | + | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
205 | 99 | }) + "C"))) + getAmountOrClear((toString({ | |
206 | - | let $list18051836 = genotype | |
207 | - | let $size18051836 = size($list18051836) | |
208 | - | let $acc018051836 = 0 | |
209 | - | if (($size18051836 == 0)) | |
210 | - | then $acc018051836 | |
211 | - | else { | |
212 | - | let $acc118051836 = isSymbolD($acc018051836, $list18051836[0]) | |
213 | - | if (($size18051836 == 1)) | |
214 | - | then $acc118051836 | |
215 | - | else { | |
216 | - | let $acc218051836 = isSymbolD($acc118051836, $list18051836[1]) | |
217 | - | if (($size18051836 == 2)) | |
218 | - | then $acc218051836 | |
219 | - | else { | |
220 | - | let $acc318051836 = isSymbolD($acc218051836, $list18051836[2]) | |
221 | - | if (($size18051836 == 3)) | |
222 | - | then $acc318051836 | |
223 | - | else { | |
224 | - | let $acc418051836 = isSymbolD($acc318051836, $list18051836[3]) | |
225 | - | if (($size18051836 == 4)) | |
226 | - | then $acc418051836 | |
227 | - | else { | |
228 | - | let $acc518051836 = isSymbolD($acc418051836, $list18051836[4]) | |
229 | - | if (($size18051836 == 5)) | |
230 | - | then $acc518051836 | |
231 | - | else { | |
232 | - | let $acc618051836 = isSymbolD($acc518051836, $list18051836[5]) | |
233 | - | if (($size18051836 == 6)) | |
234 | - | then $acc618051836 | |
235 | - | else { | |
236 | - | let $acc718051836 = isSymbolD($acc618051836, $list18051836[6]) | |
237 | - | if (($size18051836 == 7)) | |
238 | - | then $acc718051836 | |
239 | - | else { | |
240 | - | let $acc818051836 = isSymbolD($acc718051836, $list18051836[7]) | |
241 | - | if (($size18051836 == 8)) | |
242 | - | then $acc818051836 | |
243 | - | else { | |
244 | - | let $acc918051836 = isSymbolD($acc818051836, $list18051836[8]) | |
245 | - | throw("List size exceed 8") | |
246 | - | } | |
247 | - | } | |
248 | - | } | |
249 | - | } | |
250 | - | } | |
251 | - | } | |
252 | - | } | |
253 | - | } | |
254 | - | } | |
100 | + | let $l = genotype | |
101 | + | let $s = size($l) | |
102 | + | let $acc0 = 0 | |
103 | + | func $f3_1 ($a,$i) = if (($i >= $s)) | |
104 | + | then $a | |
105 | + | else isSymbolD($a, $l[$i]) | |
106 | + | ||
107 | + | func $f3_2 ($a,$i) = if (($i >= $s)) | |
108 | + | then $a | |
109 | + | else throw("List size exceeds 8") | |
110 | + | ||
111 | + | $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
255 | 112 | }) + "D"))) + getAmountOrClear((toString({ | |
256 | - | let $list18731904 = genotype | |
257 | - | let $size18731904 = size($list18731904) | |
258 | - | let $acc018731904 = 0 | |
259 | - | if (($size18731904 == 0)) | |
260 | - | then $acc018731904 | |
261 | - | else { | |
262 | - | let $acc118731904 = isSymbolE($acc018731904, $list18731904[0]) | |
263 | - | if (($size18731904 == 1)) | |
264 | - | then $acc118731904 | |
265 | - | else { | |
266 | - | let $acc218731904 = isSymbolE($acc118731904, $list18731904[1]) | |
267 | - | if (($size18731904 == 2)) | |
268 | - | then $acc218731904 | |
269 | - | else { | |
270 | - | let $acc318731904 = isSymbolE($acc218731904, $list18731904[2]) | |
271 | - | if (($size18731904 == 3)) | |
272 | - | then $acc318731904 | |
273 | - | else { | |
274 | - | let $acc418731904 = isSymbolE($acc318731904, $list18731904[3]) | |
275 | - | if (($size18731904 == 4)) | |
276 | - | then $acc418731904 | |
277 | - | else { | |
278 | - | let $acc518731904 = isSymbolE($acc418731904, $list18731904[4]) | |
279 | - | if (($size18731904 == 5)) | |
280 | - | then $acc518731904 | |
281 | - | else { | |
282 | - | let $acc618731904 = isSymbolE($acc518731904, $list18731904[5]) | |
283 | - | if (($size18731904 == 6)) | |
284 | - | then $acc618731904 | |
285 | - | else { | |
286 | - | let $acc718731904 = isSymbolE($acc618731904, $list18731904[6]) | |
287 | - | if (($size18731904 == 7)) | |
288 | - | then $acc718731904 | |
289 | - | else { | |
290 | - | let $acc818731904 = isSymbolE($acc718731904, $list18731904[7]) | |
291 | - | if (($size18731904 == 8)) | |
292 | - | then $acc818731904 | |
293 | - | else { | |
294 | - | let $acc918731904 = isSymbolE($acc818731904, $list18731904[8]) | |
295 | - | throw("List size exceed 8") | |
296 | - | } | |
297 | - | } | |
298 | - | } | |
299 | - | } | |
300 | - | } | |
301 | - | } | |
302 | - | } | |
303 | - | } | |
304 | - | } | |
113 | + | let $l = genotype | |
114 | + | let $s = size($l) | |
115 | + | let $acc0 = 0 | |
116 | + | func $f4_1 ($a,$i) = if (($i >= $s)) | |
117 | + | then $a | |
118 | + | else isSymbolE($a, $l[$i]) | |
119 | + | ||
120 | + | func $f4_2 ($a,$i) = if (($i >= $s)) | |
121 | + | then $a | |
122 | + | else throw("List size exceeds 8") | |
123 | + | ||
124 | + | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
305 | 125 | }) + "E"))) + getAmountOrClear((toString({ | |
306 | - | let $list19411972 = genotype | |
307 | - | let $size19411972 = size($list19411972) | |
308 | - | let $acc019411972 = 0 | |
309 | - | if (($size19411972 == 0)) | |
310 | - | then $acc019411972 | |
311 | - | else { | |
312 | - | let $acc119411972 = isSymbolF($acc019411972, $list19411972[0]) | |
313 | - | if (($size19411972 == 1)) | |
314 | - | then $acc119411972 | |
315 | - | else { | |
316 | - | let $acc219411972 = isSymbolF($acc119411972, $list19411972[1]) | |
317 | - | if (($size19411972 == 2)) | |
318 | - | then $acc219411972 | |
319 | - | else { | |
320 | - | let $acc319411972 = isSymbolF($acc219411972, $list19411972[2]) | |
321 | - | if (($size19411972 == 3)) | |
322 | - | then $acc319411972 | |
323 | - | else { | |
324 | - | let $acc419411972 = isSymbolF($acc319411972, $list19411972[3]) | |
325 | - | if (($size19411972 == 4)) | |
326 | - | then $acc419411972 | |
327 | - | else { | |
328 | - | let $acc519411972 = isSymbolF($acc419411972, $list19411972[4]) | |
329 | - | if (($size19411972 == 5)) | |
330 | - | then $acc519411972 | |
331 | - | else { | |
332 | - | let $acc619411972 = isSymbolF($acc519411972, $list19411972[5]) | |
333 | - | if (($size19411972 == 6)) | |
334 | - | then $acc619411972 | |
335 | - | else { | |
336 | - | let $acc719411972 = isSymbolF($acc619411972, $list19411972[6]) | |
337 | - | if (($size19411972 == 7)) | |
338 | - | then $acc719411972 | |
339 | - | else { | |
340 | - | let $acc819411972 = isSymbolF($acc719411972, $list19411972[7]) | |
341 | - | if (($size19411972 == 8)) | |
342 | - | then $acc819411972 | |
343 | - | else { | |
344 | - | let $acc919411972 = isSymbolF($acc819411972, $list19411972[8]) | |
345 | - | throw("List size exceed 8") | |
346 | - | } | |
347 | - | } | |
348 | - | } | |
349 | - | } | |
350 | - | } | |
351 | - | } | |
352 | - | } | |
353 | - | } | |
354 | - | } | |
126 | + | let $l = genotype | |
127 | + | let $s = size($l) | |
128 | + | let $acc0 = 0 | |
129 | + | func $f5_1 ($a,$i) = if (($i >= $s)) | |
130 | + | then $a | |
131 | + | else isSymbolF($a, $l[$i]) | |
132 | + | ||
133 | + | func $f5_2 ($a,$i) = if (($i >= $s)) | |
134 | + | then $a | |
135 | + | else throw("List size exceeds 8") | |
136 | + | ||
137 | + | $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
355 | 138 | }) + "F"))) + getAmountOrClear((toString({ | |
356 | - | let $list20112042 = genotype | |
357 | - | let $size20112042 = size($list20112042) | |
358 | - | let $acc020112042 = 0 | |
359 | - | if (($size20112042 == 0)) | |
360 | - | then $acc020112042 | |
361 | - | else { | |
362 | - | let $acc120112042 = isSymbolG($acc020112042, $list20112042[0]) | |
363 | - | if (($size20112042 == 1)) | |
364 | - | then $acc120112042 | |
365 | - | else { | |
366 | - | let $acc220112042 = isSymbolG($acc120112042, $list20112042[1]) | |
367 | - | if (($size20112042 == 2)) | |
368 | - | then $acc220112042 | |
369 | - | else { | |
370 | - | let $acc320112042 = isSymbolG($acc220112042, $list20112042[2]) | |
371 | - | if (($size20112042 == 3)) | |
372 | - | then $acc320112042 | |
373 | - | else { | |
374 | - | let $acc420112042 = isSymbolG($acc320112042, $list20112042[3]) | |
375 | - | if (($size20112042 == 4)) | |
376 | - | then $acc420112042 | |
377 | - | else { | |
378 | - | let $acc520112042 = isSymbolG($acc420112042, $list20112042[4]) | |
379 | - | if (($size20112042 == 5)) | |
380 | - | then $acc520112042 | |
381 | - | else { | |
382 | - | let $acc620112042 = isSymbolG($acc520112042, $list20112042[5]) | |
383 | - | if (($size20112042 == 6)) | |
384 | - | then $acc620112042 | |
385 | - | else { | |
386 | - | let $acc720112042 = isSymbolG($acc620112042, $list20112042[6]) | |
387 | - | if (($size20112042 == 7)) | |
388 | - | then $acc720112042 | |
389 | - | else { | |
390 | - | let $acc820112042 = isSymbolG($acc720112042, $list20112042[7]) | |
391 | - | if (($size20112042 == 8)) | |
392 | - | then $acc820112042 | |
393 | - | else { | |
394 | - | let $acc920112042 = isSymbolG($acc820112042, $list20112042[8]) | |
395 | - | throw("List size exceed 8") | |
396 | - | } | |
397 | - | } | |
398 | - | } | |
399 | - | } | |
400 | - | } | |
401 | - | } | |
402 | - | } | |
403 | - | } | |
404 | - | } | |
139 | + | let $l = genotype | |
140 | + | let $s = size($l) | |
141 | + | let $acc0 = 0 | |
142 | + | func $f6_1 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else isSymbolG($a, $l[$i]) | |
145 | + | ||
146 | + | func $f6_2 ($a,$i) = if (($i >= $s)) | |
147 | + | then $a | |
148 | + | else throw("List size exceeds 8") | |
149 | + | ||
150 | + | $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
405 | 151 | }) + "G"))) + getAmountOrClear((toString({ | |
406 | - | let $list20792110 = genotype | |
407 | - | let $size20792110 = size($list20792110) | |
408 | - | let $acc020792110 = 0 | |
409 | - | if (($size20792110 == 0)) | |
410 | - | then $acc020792110 | |
411 | - | else { | |
412 | - | let $acc120792110 = isSymbolH($acc020792110, $list20792110[0]) | |
413 | - | if (($size20792110 == 1)) | |
414 | - | then $acc120792110 | |
415 | - | else { | |
416 | - | let $acc220792110 = isSymbolH($acc120792110, $list20792110[1]) | |
417 | - | if (($size20792110 == 2)) | |
418 | - | then $acc220792110 | |
419 | - | else { | |
420 | - | let $acc320792110 = isSymbolH($acc220792110, $list20792110[2]) | |
421 | - | if (($size20792110 == 3)) | |
422 | - | then $acc320792110 | |
423 | - | else { | |
424 | - | let $acc420792110 = isSymbolH($acc320792110, $list20792110[3]) | |
425 | - | if (($size20792110 == 4)) | |
426 | - | then $acc420792110 | |
427 | - | else { | |
428 | - | let $acc520792110 = isSymbolH($acc420792110, $list20792110[4]) | |
429 | - | if (($size20792110 == 5)) | |
430 | - | then $acc520792110 | |
431 | - | else { | |
432 | - | let $acc620792110 = isSymbolH($acc520792110, $list20792110[5]) | |
433 | - | if (($size20792110 == 6)) | |
434 | - | then $acc620792110 | |
435 | - | else { | |
436 | - | let $acc720792110 = isSymbolH($acc620792110, $list20792110[6]) | |
437 | - | if (($size20792110 == 7)) | |
438 | - | then $acc720792110 | |
439 | - | else { | |
440 | - | let $acc820792110 = isSymbolH($acc720792110, $list20792110[7]) | |
441 | - | if (($size20792110 == 8)) | |
442 | - | then $acc820792110 | |
443 | - | else { | |
444 | - | let $acc920792110 = isSymbolH($acc820792110, $list20792110[8]) | |
445 | - | throw("List size exceed 8") | |
446 | - | } | |
447 | - | } | |
448 | - | } | |
449 | - | } | |
450 | - | } | |
451 | - | } | |
452 | - | } | |
453 | - | } | |
454 | - | } | |
455 | - | }) + "H"))) | |
152 | + | let $l = genotype | |
153 | + | let $s = size($l) | |
154 | + | let $acc0 = 0 | |
155 | + | func $f7_1 ($a,$i) = if (($i >= $s)) | |
156 | + | then $a | |
157 | + | else isSymbolH($a, $l[$i]) | |
158 | + | ||
159 | + | func $f7_2 ($a,$i) = if (($i >= $s)) | |
160 | + | then $a | |
161 | + | else throw("List size exceeds 8") | |
162 | + | ||
163 | + | $f7_2($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
164 | + | }) + "H"))) + getAmountOrClear((toString({ | |
165 | + | let $l = genotype | |
166 | + | let $s = size($l) | |
167 | + | let $acc0 = 0 | |
168 | + | func $f8_1 ($a,$i) = if (($i >= $s)) | |
169 | + | then $a | |
170 | + | else isSymbolI($a, $l[$i]) | |
171 | + | ||
172 | + | func $f8_2 ($a,$i) = if (($i >= $s)) | |
173 | + | then $a | |
174 | + | else throw("List size exceeds 8") | |
175 | + | ||
176 | + | $f8_2($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
177 | + | }) + "I"))) | |
456 | 178 | } | |
457 | 179 | ||
458 | 180 | ||
478 | 200 | else (value(assetInfo(assetIdBytes)).issuer == Address(incubatorAddress))) | |
479 | 201 | then { | |
480 | 202 | let assetName = value(assetInfo(assetIdBytes)).name | |
481 | - | let generation = take(takeRight(assetName, 2), 1) | |
482 | - | let gen = ((getGen(assetName) + "-") + generation) | |
483 | - | $Tuple2(nil, calcAssetRarity(gen, generation)) | |
203 | + | if ((takeRight(value(assetName), 1) == "U")) | |
204 | + | then $Tuple2(nil, 100) | |
205 | + | else { | |
206 | + | let generation = take(takeRight(assetName, 2), 1) | |
207 | + | let gen = ((getGen(assetName) + "-") + generation) | |
208 | + | $Tuple2(nil, calcAssetRarity(gen, generation)) | |
209 | + | } | |
484 | 210 | } | |
485 | 211 | else throw("not valid NFT") | |
486 | 212 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let incubatorAddress = base58'3MtBigTsaeevrcJAEwVcr4quwkqcrtnjoAh' | |
5 | 5 | ||
6 | 6 | let breederAddress = base58'3N285kYUMxPi6oZsdWrxhSY34dJHyu4kRN5' | |
7 | 7 | ||
8 | 8 | func isSymbolA (accumulated,sym) = if ((sym == "A")) | |
9 | 9 | then (accumulated + 1) | |
10 | 10 | else (accumulated + 0) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func isSymbolB (accumulated,sym) = if ((sym == "B")) | |
14 | 14 | then (accumulated + 1) | |
15 | 15 | else (accumulated + 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func isSymbolC (accumulated,sym) = if ((sym == "C")) | |
19 | 19 | then (accumulated + 1) | |
20 | 20 | else (accumulated + 0) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func isSymbolD (accumulated,sym) = if ((sym == "D")) | |
24 | 24 | then (accumulated + 1) | |
25 | 25 | else (accumulated + 0) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func isSymbolE (accumulated,sym) = if ((sym == "E")) | |
29 | 29 | then (accumulated + 1) | |
30 | 30 | else (accumulated + 0) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func isSymbolF (accumulated,sym) = if ((sym == "F")) | |
34 | 34 | then (accumulated + 1) | |
35 | 35 | else (accumulated + 0) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func isSymbolG (accumulated,sym) = if ((sym == "G")) | |
39 | 39 | then (accumulated + 1) | |
40 | 40 | else (accumulated + 0) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func isSymbolH (accumulated,sym) = if ((sym == "H")) | |
44 | 44 | then (accumulated + 1) | |
45 | 45 | else (accumulated + 0) | |
46 | 46 | ||
47 | 47 | ||
48 | + | func isSymbolI (accumulated,sym) = if ((sym == "I")) | |
49 | + | then (accumulated + 1) | |
50 | + | else (accumulated + 0) | |
51 | + | ||
52 | + | ||
48 | 53 | func getAmountOrClear (amount) = if (contains(amount, "0")) | |
49 | 54 | then "" | |
50 | 55 | else amount | |
51 | 56 | ||
52 | 57 | ||
53 | 58 | func getGen (assetName) = { | |
54 | 59 | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
55 | - | (((((((getAmountOrClear((toString({ | |
56 | - | let $list15991630 = genotype | |
57 | - | let $size15991630 = size($list15991630) | |
58 | - | let $acc015991630 = 0 | |
59 | - | if (($size15991630 == 0)) | |
60 | - | then $acc015991630 | |
61 | - | else { | |
62 | - | let $acc115991630 = isSymbolA($acc015991630, $list15991630[0]) | |
63 | - | if (($size15991630 == 1)) | |
64 | - | then $acc115991630 | |
65 | - | else { | |
66 | - | let $acc215991630 = isSymbolA($acc115991630, $list15991630[1]) | |
67 | - | if (($size15991630 == 2)) | |
68 | - | then $acc215991630 | |
69 | - | else { | |
70 | - | let $acc315991630 = isSymbolA($acc215991630, $list15991630[2]) | |
71 | - | if (($size15991630 == 3)) | |
72 | - | then $acc315991630 | |
73 | - | else { | |
74 | - | let $acc415991630 = isSymbolA($acc315991630, $list15991630[3]) | |
75 | - | if (($size15991630 == 4)) | |
76 | - | then $acc415991630 | |
77 | - | else { | |
78 | - | let $acc515991630 = isSymbolA($acc415991630, $list15991630[4]) | |
79 | - | if (($size15991630 == 5)) | |
80 | - | then $acc515991630 | |
81 | - | else { | |
82 | - | let $acc615991630 = isSymbolA($acc515991630, $list15991630[5]) | |
83 | - | if (($size15991630 == 6)) | |
84 | - | then $acc615991630 | |
85 | - | else { | |
86 | - | let $acc715991630 = isSymbolA($acc615991630, $list15991630[6]) | |
87 | - | if (($size15991630 == 7)) | |
88 | - | then $acc715991630 | |
89 | - | else { | |
90 | - | let $acc815991630 = isSymbolA($acc715991630, $list15991630[7]) | |
91 | - | if (($size15991630 == 8)) | |
92 | - | then $acc815991630 | |
93 | - | else { | |
94 | - | let $acc915991630 = isSymbolA($acc815991630, $list15991630[8]) | |
95 | - | throw("List size exceed 8") | |
96 | - | } | |
97 | - | } | |
98 | - | } | |
99 | - | } | |
100 | - | } | |
101 | - | } | |
102 | - | } | |
103 | - | } | |
104 | - | } | |
60 | + | ((((((((getAmountOrClear((toString({ | |
61 | + | let $l = genotype | |
62 | + | let $s = size($l) | |
63 | + | let $acc0 = 0 | |
64 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
65 | + | then $a | |
66 | + | else isSymbolA($a, $l[$i]) | |
67 | + | ||
68 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
69 | + | then $a | |
70 | + | else throw("List size exceeds 8") | |
71 | + | ||
72 | + | $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) | |
105 | 73 | }) + "A")) + getAmountOrClear((toString({ | |
106 | - | let $list16671698 = genotype | |
107 | - | let $size16671698 = size($list16671698) | |
108 | - | let $acc016671698 = 0 | |
109 | - | if (($size16671698 == 0)) | |
110 | - | then $acc016671698 | |
111 | - | else { | |
112 | - | let $acc116671698 = isSymbolB($acc016671698, $list16671698[0]) | |
113 | - | if (($size16671698 == 1)) | |
114 | - | then $acc116671698 | |
115 | - | else { | |
116 | - | let $acc216671698 = isSymbolB($acc116671698, $list16671698[1]) | |
117 | - | if (($size16671698 == 2)) | |
118 | - | then $acc216671698 | |
119 | - | else { | |
120 | - | let $acc316671698 = isSymbolB($acc216671698, $list16671698[2]) | |
121 | - | if (($size16671698 == 3)) | |
122 | - | then $acc316671698 | |
123 | - | else { | |
124 | - | let $acc416671698 = isSymbolB($acc316671698, $list16671698[3]) | |
125 | - | if (($size16671698 == 4)) | |
126 | - | then $acc416671698 | |
127 | - | else { | |
128 | - | let $acc516671698 = isSymbolB($acc416671698, $list16671698[4]) | |
129 | - | if (($size16671698 == 5)) | |
130 | - | then $acc516671698 | |
131 | - | else { | |
132 | - | let $acc616671698 = isSymbolB($acc516671698, $list16671698[5]) | |
133 | - | if (($size16671698 == 6)) | |
134 | - | then $acc616671698 | |
135 | - | else { | |
136 | - | let $acc716671698 = isSymbolB($acc616671698, $list16671698[6]) | |
137 | - | if (($size16671698 == 7)) | |
138 | - | then $acc716671698 | |
139 | - | else { | |
140 | - | let $acc816671698 = isSymbolB($acc716671698, $list16671698[7]) | |
141 | - | if (($size16671698 == 8)) | |
142 | - | then $acc816671698 | |
143 | - | else { | |
144 | - | let $acc916671698 = isSymbolB($acc816671698, $list16671698[8]) | |
145 | - | throw("List size exceed 8") | |
146 | - | } | |
147 | - | } | |
148 | - | } | |
149 | - | } | |
150 | - | } | |
151 | - | } | |
152 | - | } | |
153 | - | } | |
154 | - | } | |
74 | + | let $l = genotype | |
75 | + | let $s = size($l) | |
76 | + | let $acc0 = 0 | |
77 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
78 | + | then $a | |
79 | + | else isSymbolB($a, $l[$i]) | |
80 | + | ||
81 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
82 | + | then $a | |
83 | + | else throw("List size exceeds 8") | |
84 | + | ||
85 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
155 | 86 | }) + "B"))) + getAmountOrClear((toString({ | |
156 | - | let $list17351766 = genotype | |
157 | - | let $size17351766 = size($list17351766) | |
158 | - | let $acc017351766 = 0 | |
159 | - | if (($size17351766 == 0)) | |
160 | - | then $acc017351766 | |
161 | - | else { | |
162 | - | let $acc117351766 = isSymbolC($acc017351766, $list17351766[0]) | |
163 | - | if (($size17351766 == 1)) | |
164 | - | then $acc117351766 | |
165 | - | else { | |
166 | - | let $acc217351766 = isSymbolC($acc117351766, $list17351766[1]) | |
167 | - | if (($size17351766 == 2)) | |
168 | - | then $acc217351766 | |
169 | - | else { | |
170 | - | let $acc317351766 = isSymbolC($acc217351766, $list17351766[2]) | |
171 | - | if (($size17351766 == 3)) | |
172 | - | then $acc317351766 | |
173 | - | else { | |
174 | - | let $acc417351766 = isSymbolC($acc317351766, $list17351766[3]) | |
175 | - | if (($size17351766 == 4)) | |
176 | - | then $acc417351766 | |
177 | - | else { | |
178 | - | let $acc517351766 = isSymbolC($acc417351766, $list17351766[4]) | |
179 | - | if (($size17351766 == 5)) | |
180 | - | then $acc517351766 | |
181 | - | else { | |
182 | - | let $acc617351766 = isSymbolC($acc517351766, $list17351766[5]) | |
183 | - | if (($size17351766 == 6)) | |
184 | - | then $acc617351766 | |
185 | - | else { | |
186 | - | let $acc717351766 = isSymbolC($acc617351766, $list17351766[6]) | |
187 | - | if (($size17351766 == 7)) | |
188 | - | then $acc717351766 | |
189 | - | else { | |
190 | - | let $acc817351766 = isSymbolC($acc717351766, $list17351766[7]) | |
191 | - | if (($size17351766 == 8)) | |
192 | - | then $acc817351766 | |
193 | - | else { | |
194 | - | let $acc917351766 = isSymbolC($acc817351766, $list17351766[8]) | |
195 | - | throw("List size exceed 8") | |
196 | - | } | |
197 | - | } | |
198 | - | } | |
199 | - | } | |
200 | - | } | |
201 | - | } | |
202 | - | } | |
203 | - | } | |
204 | - | } | |
87 | + | let $l = genotype | |
88 | + | let $s = size($l) | |
89 | + | let $acc0 = 0 | |
90 | + | func $f2_1 ($a,$i) = if (($i >= $s)) | |
91 | + | then $a | |
92 | + | else isSymbolC($a, $l[$i]) | |
93 | + | ||
94 | + | func $f2_2 ($a,$i) = if (($i >= $s)) | |
95 | + | then $a | |
96 | + | else throw("List size exceeds 8") | |
97 | + | ||
98 | + | $f2_2($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($f2_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
205 | 99 | }) + "C"))) + getAmountOrClear((toString({ | |
206 | - | let $list18051836 = genotype | |
207 | - | let $size18051836 = size($list18051836) | |
208 | - | let $acc018051836 = 0 | |
209 | - | if (($size18051836 == 0)) | |
210 | - | then $acc018051836 | |
211 | - | else { | |
212 | - | let $acc118051836 = isSymbolD($acc018051836, $list18051836[0]) | |
213 | - | if (($size18051836 == 1)) | |
214 | - | then $acc118051836 | |
215 | - | else { | |
216 | - | let $acc218051836 = isSymbolD($acc118051836, $list18051836[1]) | |
217 | - | if (($size18051836 == 2)) | |
218 | - | then $acc218051836 | |
219 | - | else { | |
220 | - | let $acc318051836 = isSymbolD($acc218051836, $list18051836[2]) | |
221 | - | if (($size18051836 == 3)) | |
222 | - | then $acc318051836 | |
223 | - | else { | |
224 | - | let $acc418051836 = isSymbolD($acc318051836, $list18051836[3]) | |
225 | - | if (($size18051836 == 4)) | |
226 | - | then $acc418051836 | |
227 | - | else { | |
228 | - | let $acc518051836 = isSymbolD($acc418051836, $list18051836[4]) | |
229 | - | if (($size18051836 == 5)) | |
230 | - | then $acc518051836 | |
231 | - | else { | |
232 | - | let $acc618051836 = isSymbolD($acc518051836, $list18051836[5]) | |
233 | - | if (($size18051836 == 6)) | |
234 | - | then $acc618051836 | |
235 | - | else { | |
236 | - | let $acc718051836 = isSymbolD($acc618051836, $list18051836[6]) | |
237 | - | if (($size18051836 == 7)) | |
238 | - | then $acc718051836 | |
239 | - | else { | |
240 | - | let $acc818051836 = isSymbolD($acc718051836, $list18051836[7]) | |
241 | - | if (($size18051836 == 8)) | |
242 | - | then $acc818051836 | |
243 | - | else { | |
244 | - | let $acc918051836 = isSymbolD($acc818051836, $list18051836[8]) | |
245 | - | throw("List size exceed 8") | |
246 | - | } | |
247 | - | } | |
248 | - | } | |
249 | - | } | |
250 | - | } | |
251 | - | } | |
252 | - | } | |
253 | - | } | |
254 | - | } | |
100 | + | let $l = genotype | |
101 | + | let $s = size($l) | |
102 | + | let $acc0 = 0 | |
103 | + | func $f3_1 ($a,$i) = if (($i >= $s)) | |
104 | + | then $a | |
105 | + | else isSymbolD($a, $l[$i]) | |
106 | + | ||
107 | + | func $f3_2 ($a,$i) = if (($i >= $s)) | |
108 | + | then $a | |
109 | + | else throw("List size exceeds 8") | |
110 | + | ||
111 | + | $f3_2($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($f3_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
255 | 112 | }) + "D"))) + getAmountOrClear((toString({ | |
256 | - | let $list18731904 = genotype | |
257 | - | let $size18731904 = size($list18731904) | |
258 | - | let $acc018731904 = 0 | |
259 | - | if (($size18731904 == 0)) | |
260 | - | then $acc018731904 | |
261 | - | else { | |
262 | - | let $acc118731904 = isSymbolE($acc018731904, $list18731904[0]) | |
263 | - | if (($size18731904 == 1)) | |
264 | - | then $acc118731904 | |
265 | - | else { | |
266 | - | let $acc218731904 = isSymbolE($acc118731904, $list18731904[1]) | |
267 | - | if (($size18731904 == 2)) | |
268 | - | then $acc218731904 | |
269 | - | else { | |
270 | - | let $acc318731904 = isSymbolE($acc218731904, $list18731904[2]) | |
271 | - | if (($size18731904 == 3)) | |
272 | - | then $acc318731904 | |
273 | - | else { | |
274 | - | let $acc418731904 = isSymbolE($acc318731904, $list18731904[3]) | |
275 | - | if (($size18731904 == 4)) | |
276 | - | then $acc418731904 | |
277 | - | else { | |
278 | - | let $acc518731904 = isSymbolE($acc418731904, $list18731904[4]) | |
279 | - | if (($size18731904 == 5)) | |
280 | - | then $acc518731904 | |
281 | - | else { | |
282 | - | let $acc618731904 = isSymbolE($acc518731904, $list18731904[5]) | |
283 | - | if (($size18731904 == 6)) | |
284 | - | then $acc618731904 | |
285 | - | else { | |
286 | - | let $acc718731904 = isSymbolE($acc618731904, $list18731904[6]) | |
287 | - | if (($size18731904 == 7)) | |
288 | - | then $acc718731904 | |
289 | - | else { | |
290 | - | let $acc818731904 = isSymbolE($acc718731904, $list18731904[7]) | |
291 | - | if (($size18731904 == 8)) | |
292 | - | then $acc818731904 | |
293 | - | else { | |
294 | - | let $acc918731904 = isSymbolE($acc818731904, $list18731904[8]) | |
295 | - | throw("List size exceed 8") | |
296 | - | } | |
297 | - | } | |
298 | - | } | |
299 | - | } | |
300 | - | } | |
301 | - | } | |
302 | - | } | |
303 | - | } | |
304 | - | } | |
113 | + | let $l = genotype | |
114 | + | let $s = size($l) | |
115 | + | let $acc0 = 0 | |
116 | + | func $f4_1 ($a,$i) = if (($i >= $s)) | |
117 | + | then $a | |
118 | + | else isSymbolE($a, $l[$i]) | |
119 | + | ||
120 | + | func $f4_2 ($a,$i) = if (($i >= $s)) | |
121 | + | then $a | |
122 | + | else throw("List size exceeds 8") | |
123 | + | ||
124 | + | $f4_2($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($f4_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
305 | 125 | }) + "E"))) + getAmountOrClear((toString({ | |
306 | - | let $list19411972 = genotype | |
307 | - | let $size19411972 = size($list19411972) | |
308 | - | let $acc019411972 = 0 | |
309 | - | if (($size19411972 == 0)) | |
310 | - | then $acc019411972 | |
311 | - | else { | |
312 | - | let $acc119411972 = isSymbolF($acc019411972, $list19411972[0]) | |
313 | - | if (($size19411972 == 1)) | |
314 | - | then $acc119411972 | |
315 | - | else { | |
316 | - | let $acc219411972 = isSymbolF($acc119411972, $list19411972[1]) | |
317 | - | if (($size19411972 == 2)) | |
318 | - | then $acc219411972 | |
319 | - | else { | |
320 | - | let $acc319411972 = isSymbolF($acc219411972, $list19411972[2]) | |
321 | - | if (($size19411972 == 3)) | |
322 | - | then $acc319411972 | |
323 | - | else { | |
324 | - | let $acc419411972 = isSymbolF($acc319411972, $list19411972[3]) | |
325 | - | if (($size19411972 == 4)) | |
326 | - | then $acc419411972 | |
327 | - | else { | |
328 | - | let $acc519411972 = isSymbolF($acc419411972, $list19411972[4]) | |
329 | - | if (($size19411972 == 5)) | |
330 | - | then $acc519411972 | |
331 | - | else { | |
332 | - | let $acc619411972 = isSymbolF($acc519411972, $list19411972[5]) | |
333 | - | if (($size19411972 == 6)) | |
334 | - | then $acc619411972 | |
335 | - | else { | |
336 | - | let $acc719411972 = isSymbolF($acc619411972, $list19411972[6]) | |
337 | - | if (($size19411972 == 7)) | |
338 | - | then $acc719411972 | |
339 | - | else { | |
340 | - | let $acc819411972 = isSymbolF($acc719411972, $list19411972[7]) | |
341 | - | if (($size19411972 == 8)) | |
342 | - | then $acc819411972 | |
343 | - | else { | |
344 | - | let $acc919411972 = isSymbolF($acc819411972, $list19411972[8]) | |
345 | - | throw("List size exceed 8") | |
346 | - | } | |
347 | - | } | |
348 | - | } | |
349 | - | } | |
350 | - | } | |
351 | - | } | |
352 | - | } | |
353 | - | } | |
354 | - | } | |
126 | + | let $l = genotype | |
127 | + | let $s = size($l) | |
128 | + | let $acc0 = 0 | |
129 | + | func $f5_1 ($a,$i) = if (($i >= $s)) | |
130 | + | then $a | |
131 | + | else isSymbolF($a, $l[$i]) | |
132 | + | ||
133 | + | func $f5_2 ($a,$i) = if (($i >= $s)) | |
134 | + | then $a | |
135 | + | else throw("List size exceeds 8") | |
136 | + | ||
137 | + | $f5_2($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($f5_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
355 | 138 | }) + "F"))) + getAmountOrClear((toString({ | |
356 | - | let $list20112042 = genotype | |
357 | - | let $size20112042 = size($list20112042) | |
358 | - | let $acc020112042 = 0 | |
359 | - | if (($size20112042 == 0)) | |
360 | - | then $acc020112042 | |
361 | - | else { | |
362 | - | let $acc120112042 = isSymbolG($acc020112042, $list20112042[0]) | |
363 | - | if (($size20112042 == 1)) | |
364 | - | then $acc120112042 | |
365 | - | else { | |
366 | - | let $acc220112042 = isSymbolG($acc120112042, $list20112042[1]) | |
367 | - | if (($size20112042 == 2)) | |
368 | - | then $acc220112042 | |
369 | - | else { | |
370 | - | let $acc320112042 = isSymbolG($acc220112042, $list20112042[2]) | |
371 | - | if (($size20112042 == 3)) | |
372 | - | then $acc320112042 | |
373 | - | else { | |
374 | - | let $acc420112042 = isSymbolG($acc320112042, $list20112042[3]) | |
375 | - | if (($size20112042 == 4)) | |
376 | - | then $acc420112042 | |
377 | - | else { | |
378 | - | let $acc520112042 = isSymbolG($acc420112042, $list20112042[4]) | |
379 | - | if (($size20112042 == 5)) | |
380 | - | then $acc520112042 | |
381 | - | else { | |
382 | - | let $acc620112042 = isSymbolG($acc520112042, $list20112042[5]) | |
383 | - | if (($size20112042 == 6)) | |
384 | - | then $acc620112042 | |
385 | - | else { | |
386 | - | let $acc720112042 = isSymbolG($acc620112042, $list20112042[6]) | |
387 | - | if (($size20112042 == 7)) | |
388 | - | then $acc720112042 | |
389 | - | else { | |
390 | - | let $acc820112042 = isSymbolG($acc720112042, $list20112042[7]) | |
391 | - | if (($size20112042 == 8)) | |
392 | - | then $acc820112042 | |
393 | - | else { | |
394 | - | let $acc920112042 = isSymbolG($acc820112042, $list20112042[8]) | |
395 | - | throw("List size exceed 8") | |
396 | - | } | |
397 | - | } | |
398 | - | } | |
399 | - | } | |
400 | - | } | |
401 | - | } | |
402 | - | } | |
403 | - | } | |
404 | - | } | |
139 | + | let $l = genotype | |
140 | + | let $s = size($l) | |
141 | + | let $acc0 = 0 | |
142 | + | func $f6_1 ($a,$i) = if (($i >= $s)) | |
143 | + | then $a | |
144 | + | else isSymbolG($a, $l[$i]) | |
145 | + | ||
146 | + | func $f6_2 ($a,$i) = if (($i >= $s)) | |
147 | + | then $a | |
148 | + | else throw("List size exceeds 8") | |
149 | + | ||
150 | + | $f6_2($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($f6_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
405 | 151 | }) + "G"))) + getAmountOrClear((toString({ | |
406 | - | let $list20792110 = genotype | |
407 | - | let $size20792110 = size($list20792110) | |
408 | - | let $acc020792110 = 0 | |
409 | - | if (($size20792110 == 0)) | |
410 | - | then $acc020792110 | |
411 | - | else { | |
412 | - | let $acc120792110 = isSymbolH($acc020792110, $list20792110[0]) | |
413 | - | if (($size20792110 == 1)) | |
414 | - | then $acc120792110 | |
415 | - | else { | |
416 | - | let $acc220792110 = isSymbolH($acc120792110, $list20792110[1]) | |
417 | - | if (($size20792110 == 2)) | |
418 | - | then $acc220792110 | |
419 | - | else { | |
420 | - | let $acc320792110 = isSymbolH($acc220792110, $list20792110[2]) | |
421 | - | if (($size20792110 == 3)) | |
422 | - | then $acc320792110 | |
423 | - | else { | |
424 | - | let $acc420792110 = isSymbolH($acc320792110, $list20792110[3]) | |
425 | - | if (($size20792110 == 4)) | |
426 | - | then $acc420792110 | |
427 | - | else { | |
428 | - | let $acc520792110 = isSymbolH($acc420792110, $list20792110[4]) | |
429 | - | if (($size20792110 == 5)) | |
430 | - | then $acc520792110 | |
431 | - | else { | |
432 | - | let $acc620792110 = isSymbolH($acc520792110, $list20792110[5]) | |
433 | - | if (($size20792110 == 6)) | |
434 | - | then $acc620792110 | |
435 | - | else { | |
436 | - | let $acc720792110 = isSymbolH($acc620792110, $list20792110[6]) | |
437 | - | if (($size20792110 == 7)) | |
438 | - | then $acc720792110 | |
439 | - | else { | |
440 | - | let $acc820792110 = isSymbolH($acc720792110, $list20792110[7]) | |
441 | - | if (($size20792110 == 8)) | |
442 | - | then $acc820792110 | |
443 | - | else { | |
444 | - | let $acc920792110 = isSymbolH($acc820792110, $list20792110[8]) | |
445 | - | throw("List size exceed 8") | |
446 | - | } | |
447 | - | } | |
448 | - | } | |
449 | - | } | |
450 | - | } | |
451 | - | } | |
452 | - | } | |
453 | - | } | |
454 | - | } | |
455 | - | }) + "H"))) | |
152 | + | let $l = genotype | |
153 | + | let $s = size($l) | |
154 | + | let $acc0 = 0 | |
155 | + | func $f7_1 ($a,$i) = if (($i >= $s)) | |
156 | + | then $a | |
157 | + | else isSymbolH($a, $l[$i]) | |
158 | + | ||
159 | + | func $f7_2 ($a,$i) = if (($i >= $s)) | |
160 | + | then $a | |
161 | + | else throw("List size exceeds 8") | |
162 | + | ||
163 | + | $f7_2($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($f7_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
164 | + | }) + "H"))) + getAmountOrClear((toString({ | |
165 | + | let $l = genotype | |
166 | + | let $s = size($l) | |
167 | + | let $acc0 = 0 | |
168 | + | func $f8_1 ($a,$i) = if (($i >= $s)) | |
169 | + | then $a | |
170 | + | else isSymbolI($a, $l[$i]) | |
171 | + | ||
172 | + | func $f8_2 ($a,$i) = if (($i >= $s)) | |
173 | + | then $a | |
174 | + | else throw("List size exceeds 8") | |
175 | + | ||
176 | + | $f8_2($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($f8_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8) | |
177 | + | }) + "I"))) | |
456 | 178 | } | |
457 | 179 | ||
458 | 180 | ||
459 | 181 | func getAssetOrigin (generation) = if ((generation == "G")) | |
460 | 182 | then incubatorAddress | |
461 | 183 | else breederAddress | |
462 | 184 | ||
463 | 185 | ||
464 | 186 | func calcAssetRarity (genotype,generation) = { | |
465 | 187 | let quantity = getIntegerValue(Address(getAssetOrigin(generation)), (("stats_" + genotype) + "_quantity")) | |
466 | 188 | let power = pow((10000 / quantity), 4, 5, 1, 2, FLOOR) | |
467 | 189 | if ((power > 0)) | |
468 | 190 | then power | |
469 | 191 | else 2 | |
470 | 192 | } | |
471 | 193 | ||
472 | 194 | ||
473 | 195 | @Callable(i) | |
474 | 196 | func getAssetRarity (assetId) = { | |
475 | 197 | let assetIdBytes = fromBase58String(assetId) | |
476 | 198 | if (if ((value(assetInfo(assetIdBytes)).issuer == Address(breederAddress))) | |
477 | 199 | then true | |
478 | 200 | else (value(assetInfo(assetIdBytes)).issuer == Address(incubatorAddress))) | |
479 | 201 | then { | |
480 | 202 | let assetName = value(assetInfo(assetIdBytes)).name | |
481 | - | let generation = take(takeRight(assetName, 2), 1) | |
482 | - | let gen = ((getGen(assetName) + "-") + generation) | |
483 | - | $Tuple2(nil, calcAssetRarity(gen, generation)) | |
203 | + | if ((takeRight(value(assetName), 1) == "U")) | |
204 | + | then $Tuple2(nil, 100) | |
205 | + | else { | |
206 | + | let generation = take(takeRight(assetName, 2), 1) | |
207 | + | let gen = ((getGen(assetName) + "-") + generation) | |
208 | + | $Tuple2(nil, calcAssetRarity(gen, generation)) | |
209 | + | } | |
484 | 210 | } | |
485 | 211 | else throw("not valid NFT") | |
486 | 212 | } | |
487 | 213 | ||
488 | 214 | ||
489 | 215 | @Verifier(tx) | |
490 | 216 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
491 | 217 |
github/deemru/w8io/026f985 48.56 ms ◑