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/rApEAAAAAEHN3b3BQcm9tb0FkZ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b2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KlfuwQ==", "height": 2158425, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2XukPStAjTju5r8Lc9ht7DHc9Z2krkLjP2eQWu8tqkfh Next: none Diff:
OldNewDifferences
6363
6464 func z (A,q,B,C) = {
6565 let D = value(blockInfoByHeight((B - 1)))
66- let E = sha256((q + value(D.vrf)))
66+ let E = sha256(q)
6767 (toInt(E, (C * 8)) % A)
6868 }
6969
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'C1iWsKGqLwjHUndiQ7iXpdmPum9PeCDFfyXBdJJosDRS'
55
66 let b = 2
77
88 let c = 9
99
1010 let d = base58'3P8ejTkfRpz9WqCwCuihesNXU5k3zmFFfVe'
1111
1212 let e = 5
1313
1414 let f = "HATCHING_STARTED"
1515
1616 let g = "HATCHING_FINISHED"
1717
1818 let h = base58'3PCC6fVHNa6289DTDmcUo3RuLaFmteZZsmQ'
1919
2020 let i = base58'3PKmLiGEfqLWMC1H9xhzqvAZKUXfFm8uoeg'
2121
2222 let j = base58'3P6s9C39Ak5FAQ3F5VapYJ3ULxgbsAReXWD'
2323
2424 func k () = {
2525 let l = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU')
2626 let m = getInteger(l, "egglock")
2727 if ($isInstanceOf(m, "Int"))
2828 then {
2929 let n = m
3030 n
3131 }
3232 else 0
3333 }
3434
3535
3636 func o (p,q) = (((p + "_") + toBase58String(q)) + "_status")
3737
3838
3939 func r (p,q) = (((p + "_") + toBase58String(q)) + "_fh")
4040
4141
4242 func s (p,q) = (((p + "_") + toBase58String(q)) + "_di")
4343
4444
4545 func t (u) = (("stats_" + u) + "_amount")
4646
4747
4848 func v (w) = {
4949 let x = {
5050 let m = getInteger(this, w)
5151 if ($isInstanceOf(m, "Int"))
5252 then {
5353 let n = m
5454 n
5555 }
5656 else 0
5757 }
5858 x
5959 }
6060
6161
6262 let y = v("discountCoefficient")
6363
6464 func z (A,q,B,C) = {
6565 let D = value(blockInfoByHeight((B - 1)))
66- let E = sha256((q + value(D.vrf)))
66+ let E = sha256(q)
6767 (toInt(E, (C * 8)) % A)
6868 }
6969
7070
7171 func F (G) = v(t(G))
7272
7373
7474 func H (q,B) = {
7575 let I = z(500, q, B, 0)
7676 if (if ((5 > I))
7777 then (F("DUCK-WWWCUPID-JU") == 0)
7878 else false)
7979 then $Tuple2("DUCK-WWWCUPID-JU", "1C1D1I1P1U3W-J")
8080 else {
8181 let J = z(4, q, B, 0)
8282 let K = z(4, q, B, 1)
8383 let L = if ((K == 0))
8484 then "Y"
8585 else if ((K == 1))
8686 then "G"
8787 else if ((K == 2))
8888 then "B"
8989 else "R"
9090 if ((J == 0))
9191 then $Tuple2(("DUCK-FFFFFFFF-G" + L), "8F-G")
9292 else if ((J == 1))
9393 then $Tuple2(("DUCK-HHHHHHHH-G" + L), "8H-G")
9494 else if ((J == 2))
9595 then $Tuple2(("DUCK-GGGGGGGG-G" + L), "8G-G")
9696 else $Tuple2(("DUCK-IIIIIIII-G" + L), "8I-G")
9797 }
9898 }
9999
100100
101101 func M (N) = {
102102 let O = N
103103 let P = y
104104 let Q = c
105105 let R = pow((100 + ((O * P) / (10 * Q))), 2, 5, 1, 2, DOWN)
106106 (R * 1000000)
107107 }
108108
109109
110110 @Callable(S)
111111 func setDiscount (x) = if ((S.caller != this))
112112 then throw("admin_only")
113113 else [IntegerEntry("discountCoefficient", x)]
114114
115115
116116
117117 @Callable(S)
118118 func startDuckHatching (T) = if ((k() > 0))
119119 then throw("EGG operations are temporarily locked")
120120 else {
121121 let N = v("ducks_amount")
122122 let U = M(N)
123123 let V = value(S.payments[0])
124124 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))]
125125 if ((S.caller == Address(i)))
126126 then (W ++ [BooleanEntry((("hatching_" + toBase58String(S.transactionId)) + "_babyDuck"), true)])
127127 else if ((V.assetId != a))
128128 then throw(("You can attach only EGG tokens with the following asset id: " + toBase58String(a)))
129129 else if ((U > V.amount))
130130 then throw(("To hatch a duck you currently need the following amount of EGGlets: " + toString(U)))
131131 else {
132132 let X = fraction(U, e, 100)
133133 let Y = invoke(Address(d), "refPayment", [T], [AttachedPayment(a, X)])
134134 if ((Y == Y))
135135 then (W ++ [ScriptTransfer(S.caller, (V.amount - U), a)])
136136 else throw("Strict value is not equal to itself.")
137137 }
138138 }
139139
140140
141141
142142 @Callable(S)
143143 func startDuckHatchingForAddress (p) = if ((k() > 0))
144144 then throw("EGG operations are temporarily locked")
145145 else if ((S.caller != Address(j)))
146146 then throw("Pernission denied")
147147 else {
148148 let N = v("ducks_amount")
149149 let U = M(N)
150150 [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)]
151151 }
152152
153153
154154
155155 @Callable(S)
156156 func finishDuckHatching (Z) = {
157157 let q = fromBase58String(Z)
158158 let aa = o(toString(S.caller), q)
159159 let ab = r(toString(S.caller), q)
160160 let ac = s(toString(S.caller), q)
161161 let ad = {
162162 let m = getBoolean((("hatching_" + Z) + "_babyDuck"))
163163 if ($isInstanceOf(m, "Boolean"))
164164 then {
165165 let Q = m
166166 Q
167167 }
168168 else false
169169 }
170170 let ae = getStringValue(this, aa)
171171 let B = getIntegerValue(this, ab)
172172 if ((ae == g))
173173 then {
174174 let af = getStringValue(this, s(toString(S.caller), q))
175175 throw(("The duck was hatched and claimed already, here is the folowing: " + af))
176176 }
177177 else if ((B > height))
178178 then throw((((("Hatching is not finished yet " + toString((B - height))) + " blocks remaining, it will take around ") + toString((B - height))) + " minutes"))
179179 else {
180180 let ag = H(q, B)
181181 let ah = ag._1
182182 let ai = ag._2
183183 let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}")
184184 let ak = Issue(ah, aj, 1, 0, false, unit, B)
185185 let al = calculateAssetId(ak)
186186 let am = (v(t(ah)) + 1)
187187 [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)]
188188 }
189189 }
190190
191191
192192
193193 @Callable(S)
194194 func issueFreeDuck () = {
195195 let p = toBase58String(S.caller.bytes)
196196 let Z = toBase58String(S.transactionId)
197197 let q = fromBase58String(Z)
198198 let aa = o(p, q)
199199 let ab = r(p, q)
200200 let N = v("ducks_amount")
201201 let U = M(N)
202202 let an = H(q, (5 + 1))
203203 let ah = an._1
204204 let ai = an._2
205205 let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}")
206206 let ak = Issue(ah, aj, 1, 0, false, unit, height)
207207 let al = calculateAssetId(ak)
208208 let am = (v(t(ah)) + 1)
209209 let ac = s(p, q)
210210 $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))
211211 }
212212
213213
214214
215215 @Callable(S)
216216 func issueJackpot (G) = {
217217 let q = S.transactionId
218218 let p = toBase58String(S.caller.bytes)
219219 let aa = o(p, q)
220220 let ab = r(p, q)
221221 let N = v("ducks_amount")
222222 let U = M(N)
223223 let ao = $Tuple2((("DUCK-" + G) + "-JU"), "8W-J")
224224 let ah = ao._1
225225 let ai = ao._2
226226 let aj = (("{\"genotype\": \"" + ah) + "\", \"crossbreeding\": true}")
227227 let ak = Issue(ah, aj, 1, 0, false, unit, height)
228228 let al = calculateAssetId(ak)
229229 let ac = s(p, q)
230230 $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))
231231 }
232232
233233
234234
235235 @Callable(S)
236236 func reduceRarity (al,ap) = {
237237 let ak = fromBase58String(al)
238238 if (if ((S.caller != Address(h)))
239239 then (S.caller != this)
240240 else false)
241241 then throw("admin or rebirth only")
242242 else {
243243 let ah = value(assetInfo(ak)).name
244244 let aq = takeRight(take(ah, 6), 1)
245245 let ai = (("8" + aq) + "-G")
246246 [IntegerEntry(t(ah), (v(t(ah)) - 1)), IntegerEntry((("stats_" + ai) + "_quantity"), (v((("stats_" + ai) + "_quantity")) - 1))]
247247 }
248248 }
249249
250250
251251 @Verifier(ar)
252252 func as () = sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
253253

github/deemru/w8io/169f3d6 
47.81 ms