tx · GBPvQk9YhHR9Kn8nSVikF64fW2k5ERxNNjUzRH6bdAYz 3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc: -0.11300000 Waves 2022.07.27 18:55 [2158425] smart account 3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc > SELF 0.00000000 Waves
{ "type": 13, "id": "GBPvQk9YhHR9Kn8nSVikF64fW2k5ERxNNjUzRH6bdAYz", "fee": 11300000, "feeAssetId": null, "timestamp": 1658937294055, "version": 2, "chainId": 84, "sender": "3Myz9GtrZ8K6kbSPSDzd5G4wBjuEDVHLFQc", "senderPublicKey": "CA71qLoghoRv3dLmoVCAcrCy6etvA68ioPm5f61MKkh", "proofs": [ "jH4XpVzUrRzwCfWxkv7T5MsAuMQh2N91bbhLaPR4Ue9BUap9iw9KtSsMMZv3brFmACx89kh85uj3RQsMz6j8uow" ], "script": "base64:AAIFAAAAAAAAACMIAhIDCgEBEgMKAQgSAwoBCBIDCgEIEgASAwoBCBIECgIICAAAABUAAAAAC2VnZ3NBc3NldElkAQAAACCjn39PI3JR0SziIZJiiE0MC/PqIm6B1a/8C5MXzm2xyQAAAAAQZGVsYXlGb3JIYXRjaGluZwAAAAAAAAAAAgAAAAALdHlwZXNBbW91bnQAAAAAAAAAAAkAAAAAEnJlZkNvbnRyYWN0QWRkcmVzcwEAAAAaAVdJun1CvJ+wEYXBypiq1jTt8AvN7+jD7qUAAAAADVJlZmVyZXJSZXdhcmQAAAAAAAAAAAUAAAAAD0hhdGNoaW5nU3RhcnRlZAIAAAAQSEFUQ0hJTkdfU1RBUlRFRAAAAAAQSGF0Y2hpbmdGaW5pc2hlZAIAAAARSEFUQ0hJTkdfRklOSVNIRUQAAAAADnJlYmlydGhBZGRyZXNzAQAAABoBV3CRddSe63o+H/lkADDI3EZdXJpE33XC9wAAAAAQYmFieUR1Y2tzQWRkcmVzcwEAAAAaAVfDo8tHAeegleDgE8m9dZsB82cmhk/rApEAAAAAEHN3b3BQcm9tb0FkZH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2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KlfuwQ==", "height": 2158425, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2XukPStAjTju5r8Lc9ht7DHc9Z2krkLjP2eQWu8tqkfh Next: none Diff:
Old | New | Differences | |
---|---|---|---|
63 | 63 | ||
64 | 64 | func z (A,q,B,C) = { | |
65 | 65 | let D = value(blockInfoByHeight((B - 1))) | |
66 | - | let E = sha256( | |
66 | + | let E = sha256(q) | |
67 | 67 | (toInt(E, (C * 8)) % A) | |
68 | 68 | } | |
69 | 69 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'C1iWsKGqLwjHUndiQ7iXpdmPum9PeCDFfyXBdJJosDRS' | |
5 | 5 | ||
6 | 6 | let b = 2 | |
7 | 7 | ||
8 | 8 | let c = 9 | |
9 | 9 | ||
10 | 10 | let d = base58'3P8ejTkfRpz9WqCwCuihesNXU5k3zmFFfVe' | |
11 | 11 | ||
12 | 12 | let e = 5 | |
13 | 13 | ||
14 | 14 | let f = "HATCHING_STARTED" | |
15 | 15 | ||
16 | 16 | let g = "HATCHING_FINISHED" | |
17 | 17 | ||
18 | 18 | let h = base58'3PCC6fVHNa6289DTDmcUo3RuLaFmteZZsmQ' | |
19 | 19 | ||
20 | 20 | let i = base58'3PKmLiGEfqLWMC1H9xhzqvAZKUXfFm8uoeg' | |
21 | 21 | ||
22 | 22 | let j = base58'3P6s9C39Ak5FAQ3F5VapYJ3ULxgbsAReXWD' | |
23 | 23 | ||
24 | 24 | func k () = { | |
25 | 25 | let l = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU') | |
26 | 26 | let m = getInteger(l, "egglock") | |
27 | 27 | if ($isInstanceOf(m, "Int")) | |
28 | 28 | then { | |
29 | 29 | let n = m | |
30 | 30 | n | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func o (p,q) = (((p + "_") + toBase58String(q)) + "_status") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func r (p,q) = (((p + "_") + toBase58String(q)) + "_fh") | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func s (p,q) = (((p + "_") + toBase58String(q)) + "_di") | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func t (u) = (("stats_" + u) + "_amount") | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func v (w) = { | |
49 | 49 | let x = { | |
50 | 50 | let m = getInteger(this, w) | |
51 | 51 | if ($isInstanceOf(m, "Int")) | |
52 | 52 | then { | |
53 | 53 | let n = m | |
54 | 54 | n | |
55 | 55 | } | |
56 | 56 | else 0 | |
57 | 57 | } | |
58 | 58 | x | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | let y = v("discountCoefficient") | |
63 | 63 | ||
64 | 64 | func z (A,q,B,C) = { | |
65 | 65 | let D = value(blockInfoByHeight((B - 1))) | |
66 | - | let E = sha256( | |
66 | + | let E = sha256(q) | |
67 | 67 | (toInt(E, (C * 8)) % A) | |
68 | 68 | } | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func F (G) = v(t(G)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (q,B) = { | |
75 | 75 | let I = z(500, q, B, 0) | |
76 | 76 | if (if ((5 > I)) | |
77 | 77 | then (F("DUCK-WWWCUPID-JU") == 0) | |
78 | 78 | else false) | |
79 | 79 | then $Tuple2("DUCK-WWWCUPID-JU", "1C1D1I1P1U3W-J") | |
80 | 80 | else { | |
81 | 81 | let J = z(4, q, B, 0) | |
82 | 82 | let K = z(4, q, B, 1) | |
83 | 83 | let L = if ((K == 0)) | |
84 | 84 | then "Y" | |
85 | 85 | else if ((K == 1)) | |
86 | 86 | then "G" | |
87 | 87 | else if ((K == 2)) | |
88 | 88 | then "B" | |
89 | 89 | else "R" | |
90 | 90 | if ((J == 0)) | |
91 | 91 | then $Tuple2(("DUCK-FFFFFFFF-G" + L), "8F-G") | |
92 | 92 | else if ((J == 1)) | |
93 | 93 | then $Tuple2(("DUCK-HHHHHHHH-G" + L), "8H-G") | |
94 | 94 | else if ((J == 2)) | |
95 | 95 | then $Tuple2(("DUCK-GGGGGGGG-G" + L), "8G-G") | |
96 | 96 | else $Tuple2(("DUCK-IIIIIIII-G" + L), "8I-G") | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func M (N) = { | |
102 | 102 | let O = N | |
103 | 103 | let P = y | |
104 | 104 | let Q = c | |
105 | 105 | let R = pow((100 + ((O * P) / (10 * Q))), 2, 5, 1, 2, DOWN) | |
106 | 106 | (R * 1000000) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | @Callable(S) | |
111 | 111 | func setDiscount (x) = if ((S.caller != this)) | |
112 | 112 | then throw("admin_only") | |
113 | 113 | else [IntegerEntry("discountCoefficient", x)] | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(S) | |
118 | 118 | func startDuckHatching (T) = if ((k() > 0)) | |
119 | 119 | then throw("EGG operations are temporarily locked") | |
120 | 120 | else { | |
121 | 121 | let N = v("ducks_amount") | |
122 | 122 | let U = M(N) | |
123 | 123 | let V = value(S.payments[0]) | |
124 | 124 | let W = [StringEntry(o(toString(S.originCaller), S.transactionId), f), IntegerEntry(r(toString(S.originCaller), S.transactionId), (height + b)), IntegerEntry("ducks_amount", (N + 1)), IntegerEntry("ducks_last_price", (U / 1000000))] | |
125 | 125 | if ((S.caller == Address(i))) | |
126 | 126 | then (W ++ [BooleanEntry((("hatching_" + toBase58String(S.transactionId)) + "_babyDuck"), true)]) | |
127 | 127 | else if ((V.assetId != a)) | |
128 | 128 | then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(a))) | |
129 | 129 | else if ((U > V.amount)) | |
130 | 130 | then throw(("To hatch a duck you currently need the following amount of EGGlets: " + toString(U))) | |
131 | 131 | else { | |
132 | 132 | let X = fraction(U, e, 100) | |
133 | 133 | let Y = invoke(Address(d), "refPayment", [T], [AttachedPayment(a, X)]) | |
134 | 134 | if ((Y == Y)) | |
135 | 135 | then (W ++ [ScriptTransfer(S.caller, (V.amount - U), a)]) | |
136 | 136 | else throw("Strict value is not equal to itself.") | |
137 | 137 | } | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(S) | |
143 | 143 | func startDuckHatchingForAddress (p) = if ((k() > 0)) | |
144 | 144 | then throw("EGG operations are temporarily locked") | |
145 | 145 | else if ((S.caller != Address(j))) | |
146 | 146 | then throw("Pernission denied") | |
147 | 147 | else { | |
148 | 148 | let N = v("ducks_amount") | |
149 | 149 | let U = M(N) | |
150 | 150 | [StringEntry(o(p, S.transactionId), f), IntegerEntry(r(p, S.transactionId), (height + b)), IntegerEntry("ducks_amount", (N + 1)), IntegerEntry("ducks_last_price", (U / 1000000)), BooleanEntry((("hatching_" + toBase58String(S.transactionId)) + "_promo"), true)] | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | ||
155 | 155 | @Callable(S) | |
156 | 156 | func finishDuckHatching (Z) = { | |
157 | 157 | let q = fromBase58String(Z) | |
158 | 158 | let aa = o(toString(S.caller), q) | |
159 | 159 | let ab = r(toString(S.caller), q) | |
160 | 160 | let ac = s(toString(S.caller), q) | |
161 | 161 | let ad = { | |
162 | 162 | let m = getBoolean((("hatching_" + Z) + "_babyDuck")) | |
163 | 163 | if ($isInstanceOf(m, "Boolean")) | |
164 | 164 | then { | |
165 | 165 | let Q = m | |
166 | 166 | Q | |
167 | 167 | } | |
168 | 168 | else false | |
169 | 169 | } | |
170 | 170 | let ae = getStringValue(this, aa) | |
171 | 171 | let B = getIntegerValue(this, ab) | |
172 | 172 | if ((ae == g)) | |
173 | 173 | then { | |
174 | 174 | let af = getStringValue(this, s(toString(S.caller), q)) | |
175 | 175 | throw(("The duck was hatched and claimed already, here is the folowing: " + af)) | |
176 | 176 | } | |
177 | 177 | else if ((B > height)) | |
178 | 178 | then throw((((("Hatching is not finished yet " + toString((B - height))) + " blocks remaining, it will take around ") + toString((B - height))) + " minutes")) | |
179 | 179 | else { | |
180 | 180 | let ag = H(q, B) | |
181 | 181 | let ah = ag._1 | |
182 | 182 | let ai = ag._2 | |
183 | 183 | let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}") | |
184 | 184 | let ak = Issue(ah, aj, 1, 0, false, unit, B) | |
185 | 185 | let al = calculateAssetId(ak) | |
186 | 186 | let am = (v(t(ah)) + 1) | |
187 | 187 | [StringEntry(aa, g), StringEntry(ac, toBase58String(al)), StringEntry(toBase58String(al), ac), BooleanEntry((("duck_" + toBase58String(al)) + "_grown"), ad), IntegerEntry(t(ah), am), IntegerEntry((("stats_" + ai) + "_quantity"), (v((("stats_" + ai) + "_quantity")) + 1)), ak, ScriptTransfer(S.caller, 1, al)] | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(S) | |
194 | 194 | func issueFreeDuck () = { | |
195 | 195 | let p = toBase58String(S.caller.bytes) | |
196 | 196 | let Z = toBase58String(S.transactionId) | |
197 | 197 | let q = fromBase58String(Z) | |
198 | 198 | let aa = o(p, q) | |
199 | 199 | let ab = r(p, q) | |
200 | 200 | let N = v("ducks_amount") | |
201 | 201 | let U = M(N) | |
202 | 202 | let an = H(q, (5 + 1)) | |
203 | 203 | let ah = an._1 | |
204 | 204 | let ai = an._2 | |
205 | 205 | let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}") | |
206 | 206 | let ak = Issue(ah, aj, 1, 0, false, unit, height) | |
207 | 207 | let al = calculateAssetId(ak) | |
208 | 208 | let am = (v(t(ah)) + 1) | |
209 | 209 | let ac = s(p, q) | |
210 | 210 | $Tuple2([IntegerEntry(r(p, q), height), IntegerEntry("ducks_amount", (N + 1)), IntegerEntry("ducks_last_price", (U / 1000000)), StringEntry(toBase58String(al), toBase58String(al)), StringEntry(toBase58String(S.transactionId), toBase58String(al)), StringEntry(aa, g), StringEntry(ac, toBase58String(al)), StringEntry(toBase58String(al), ac), IntegerEntry(t(ah), am), IntegerEntry((("stats_" + ai) + "_quantity"), (v((("stats_" + ai) + "_quantity")) + 1)), ak, ScriptTransfer(value(addressFromString(p)), 1, al)], toBase58String(al)) | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(S) | |
216 | 216 | func issueJackpot (G) = { | |
217 | 217 | let q = S.transactionId | |
218 | 218 | let p = toBase58String(S.caller.bytes) | |
219 | 219 | let aa = o(p, q) | |
220 | 220 | let ab = r(p, q) | |
221 | 221 | let N = v("ducks_amount") | |
222 | 222 | let U = M(N) | |
223 | 223 | let ao = $Tuple2((("DUCK-" + G) + "-JU"), "8W-J") | |
224 | 224 | let ah = ao._1 | |
225 | 225 | let ai = ao._2 | |
226 | 226 | let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}") | |
227 | 227 | let ak = Issue(ah, aj, 1, 0, false, unit, height) | |
228 | 228 | let al = calculateAssetId(ak) | |
229 | 229 | let ac = s(p, q) | |
230 | 230 | $Tuple2([IntegerEntry(r(p, q), height), IntegerEntry("ducks_amount", (N + 1)), IntegerEntry("ducks_last_price", (U / 1000000)), StringEntry(aa, g), StringEntry(ac, toBase58String(al)), StringEntry(toBase58String(al), ac), IntegerEntry(t(ah), (v(t(ah)) + 1)), IntegerEntry((("stats_" + ai) + "_quantity"), (v((("stats_" + ai) + "_quantity")) + 1)), ak, ScriptTransfer(value(addressFromString(p)), 1, al)], toBase58String(al)) | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | ||
235 | 235 | @Callable(S) | |
236 | 236 | func reduceRarity (al,ap) = { | |
237 | 237 | let ak = fromBase58String(al) | |
238 | 238 | if (if ((S.caller != Address(h))) | |
239 | 239 | then (S.caller != this) | |
240 | 240 | else false) | |
241 | 241 | then throw("admin or rebirth only") | |
242 | 242 | else { | |
243 | 243 | let ah = value(assetInfo(ak)).name | |
244 | 244 | let aq = takeRight(take(ah, 6), 1) | |
245 | 245 | let ai = (("8" + aq) + "-G") | |
246 | 246 | [IntegerEntry(t(ah), (v(t(ah)) - 1)), IntegerEntry((("stats_" + ai) + "_quantity"), (v((("stats_" + ai) + "_quantity")) - 1))] | |
247 | 247 | } | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | @Verifier(ar) | |
252 | 252 | func as () = sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey) | |
253 | 253 |
github/deemru/w8io/169f3d6 47.81 ms ◑