tx · E7kdGeKUvaWAQXHi33iKFajNzK6eyfsMWGXEjtUoJGi3

3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y:  -0.01500000 Waves

2019.07.25 18:23 [601739] smart account 3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y > SELF 0.00000000 Waves

{ "type": 13, "id": "E7kdGeKUvaWAQXHi33iKFajNzK6eyfsMWGXEjtUoJGi3", "fee": 1500000, "feeAssetId": null, "timestamp": 1564068184731, "version": 1, "sender": "3MqtTwie8XKCcUcntgFAFYnfLEnffezju4Y", "senderPublicKey": "Gf4eU8JJaQziR7AfnST6tmzhUgFmeKavkwyoceen3PK1", "proofs": [ "3YnHpi56XCjALg57KGtpGG9Y5iJyv3Eh7EPUp1KE2Ar1n51vcpWpQp74NnBtvvvnhUj6uGihMiLj8WuX6C19gMni" ], "script": "base64:AAIDAAAAAAAAAAAAAAAYAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBcWxBaUFOU21CcERIWUtQOXNLZ2VOL2wxYkFiMjhnL3RHbGdEa3dUNUZpTU40WDNwd2R2ZHhFN212U1I4LzQxZFU5cng0akcrNnRacGIxVUxWRFBzNDMxdFIySVJhVFh3NUNqK0FjMnZoTCs1SmFtQ2VyR0QxVVcrYmgvRUdRdHhvOFczWUxEcm9mWEI1UUhKeDRQa3oyS2dmK29TL0M4aEh1Qi9VNGtyTzc2VTA1MDdHVGpaUFA5a1JRMHVMU01lcVFYdDh3WFMrbk1wNXdhanF4UHBETE1hU1JFZ3NLd3YvQUVrUDRkenBUWWJpa0xCWWw0cXRkSnNEODRITEZTa2l3ZDNCaGNPclBqb0lZbUx4UXVCRDVUSU1LVEtEM3NkWmdhWTlyc3lxeDNBMDBpbm55eEQ2enAzYjRnRnBVT1g4SnhLWmRFQzJteUVxbGVOZ2c3R3p3SURBUUFCAAAAAAZTRVJWRVI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Rc5ua6qNa5FH6RaHwSpQL Next: F6RpxQT5HqcMhmoYwPTaxvfC5AdZ9JNwsdsAU6tCBuGR Diff:
OldNewDifferences
77
88 let c = ((100 * 1000) * 1000)
99
10-let d = 50
10+let d = 44
1111
1212 let e = ((5 * c) / 1000)
1313
133133 }
134134
135135
136-func ay (G,az,aA,aB) = {
137- let aC = take(az.key, d)
138- if ((aB >= aA))
139- then true
140- else if (if (if ((G == aC))
141- then (size(az.key) > d)
142- else false)
143- then !(isDefined(getString(this, az.key)))
144- else false)
136+func ay (G,az) = if (if (if ((G == take(az.key, d)))
137+ then (size(az.key) > d)
138+ else false)
139+ then !(isDefined(getString(this, az.key)))
140+ else false)
141+ then {
142+ let aA = az.value
143+ if ($isInstanceOf(aA, "String"))
145144 then {
146- let aD = az.value
147- if ($isInstanceOf(aD, "String"))
148- then {
149- let aE = aD
150- true
151- }
152- else throw((G + " draw: only String type is accepted for data transactions"))
145+ let aB = aA
146+ true
153147 }
154- else false
155- }
148+ else throw((G + " draw: only String type is accepted for data transactions"))
149+ }
150+ else false
156151
157152
158-@Callable(aF)
153+@Callable(aC)
159154 func initDraw (x,y,z) = {
160- let G = toBase58String(aF.transactionId)
155+ let G = toBase58String(aC.transactionId)
161156 if (if ((0 >= x))
162157 then true
163158 else (0 >= y))
167162 else if ((z > ((y - x) + 1)))
168163 then throw(((((("Impossible to generate " + toString(z)) + " for provided random range - from ") + toString(x)) + " to ") + toString(y)))
169164 else {
170- let w = toBase58String(aF.callerPublicKey)
171- let aG = toString(z)
172- let aH = u(g, w, toString(x), toString(y), aG, aG, "null", "0", "")
173- ScriptResult(WriteSet([DataEntry(G, aH)]), TransferSet([ScriptTransfer(b, 1000, unit)]))
165+ let w = toBase58String(aC.callerPublicKey)
166+ let aD = toString(z)
167+ let aE = u(g, w, toString(x), toString(y), aD, aD, "null", "0", "")
168+ ScriptResult(WriteSet([DataEntry(G, aE)]), TransferSet([ScriptTransfer(b, 1000, unit)]))
174169 }
175170 }
176171
177172
178173
179-@Callable(aF)
174+@Callable(aC)
180175 func ready (G) = {
181- let aI = F(G)
182- let v = aI[j]
183- let w = aI[k]
184- let aG = aI[n]
185- let aJ = aI[o]
186- let aK = aI[l]
187- let aL = aI[m]
188- let aM = fromBase58String(w)
176+ let aF = F(G)
177+ let v = aF[j]
178+ let w = aF[k]
179+ let aD = aF[n]
180+ let aG = aF[o]
181+ let aH = aF[l]
182+ let aI = aF[m]
183+ let aJ = fromBase58String(w)
189184 if ((v != g))
190185 then throw((G + " draw: moving into READY state is allowed only from INIT state"))
191- else if ((aM != aF.callerPublicKey))
186+ else if ((aJ != aC.callerPublicKey))
192187 then throw((G + "draw: moving into READY state is allowed for organizer only"))
193188 else {
194- let aN = u(h, w, aK, aL, aG, aJ, toBase58String(aF.transactionId), "0", "")
195- WriteSet([DataEntry(G, aN)])
189+ let aK = u(h, w, aH, aI, aD, aG, toBase58String(aC.transactionId), "0", "")
190+ WriteSet([DataEntry(G, aK)])
196191 }
197192 }
198193
199194
200195
201-@Callable(aF)
196+@Callable(aC)
202197 func random (G,T) = {
203- let aI = F(G)
204- let v = aI[j]
205- let w = aI[k]
206- let aG = aI[n]
207- let aO = parseIntValue(aI[o])
208- let U = parseIntValue(aI[q])
209- let L = aI[r]
210- let aK = aI[l]
211- let aL = aI[m]
212- let B = aI[p]
213- let R = parseIntValue(aK)
214- let S = parseIntValue(aL)
215- let aM = fromBase58String(w)
198+ let aF = F(G)
199+ let v = aF[j]
200+ let w = aF[k]
201+ let aD = aF[n]
202+ let aL = parseIntValue(aF[o])
203+ let U = parseIntValue(aF[q])
204+ let L = aF[r]
205+ let aH = aF[l]
206+ let aI = aF[m]
207+ let B = aF[p]
208+ let R = parseIntValue(aH)
209+ let S = parseIntValue(aI)
210+ let aJ = fromBase58String(w)
216211 if ((v != h))
217212 then throw((G + " draw: it must be in READY state to generate random numbers"))
218213 else if (!(rsaVerify(SHA256, (toBytes(G) + toBytes(B)), T, a)))
219214 then throw("Invalid RSA signature")
220215 else {
221- let aP = Q(G, R, S, T, L, aO, U)
222- let aQ = aP[0]
223- let aR = aP[1]
224- let aS = aP[2]
225- let aT = if ((aR == "0"))
216+ let aM = Q(G, R, S, T, L, aL, U)
217+ let aN = aM[0]
218+ let aO = aM[1]
219+ let aP = aM[2]
220+ let aQ = if ((aO == "0"))
226221 then i
227222 else h
228- WriteSet([DataEntry(G, u(aT, w, aK, aL, aG, aR, B, aS, aQ))])
223+ WriteSet([DataEntry(G, u(aQ, w, aH, aI, aD, aO, B, aP, aN))])
229224 }
230225 }
231226
232227
233-@Verifier(aU)
234-func aV () = {
235- let aD = aU
236- if ($isInstanceOf(aD, "DataTransaction"))
228+@Verifier(aR)
229+func aS () = {
230+ let aA = aR
231+ if ($isInstanceOf(aA, "DataTransaction"))
237232 then {
238- let aW = aD
239- let aX = aW.data[0]
240- let G = take(aX.key, d)
241- let aI = F(G)
242- let v = aI[0]
243- let w = aI[1]
244- let aM = fromBase58String(w)
245- let aA = size(aW.data)
246- if (if (if (if (if (if (if (if (if ((v == g))
247- then sigVerify(aU.bodyBytes, aU.proofs[0], aM)
233+ let aT = aA
234+ let aU = aT.data[0]
235+ let G = take(aU.key, d)
236+ let aF = F(G)
237+ let v = aF[0]
238+ let w = aF[1]
239+ let aJ = fromBase58String(w)
240+ let aV = size(aT.data)
241+ let aW = sigVerify(aR.bodyBytes, aR.proofs[0], aJ)
242+ let aX = if ((aV > 0))
243+ then (5 >= aV)
244+ else false
245+ let aY = if (if (if (if (if (ay(G, aU))
246+ then if ((1 >= aV))
247+ then true
248+ else ay(G, aT.data[1])
248249 else false)
249- then (aA > 0)
250+ then if ((2 >= aV))
251+ then true
252+ else ay(G, aT.data[2])
250253 else false)
251- then (5 >= aA)
254+ then if ((3 >= aV))
255+ then true
256+ else ay(G, aT.data[3])
252257 else false)
253- then ay(G, aX, aA, 0)
258+ then if ((4 >= aV))
259+ then true
260+ else ay(G, aT.data[4])
254261 else false)
255- then ay(G, aW.data[1], aA, 1)
262+ then if ((5 >= aV))
263+ then true
264+ else ay(G, aT.data[5])
265+ else false
266+ if (if (if ((v == g))
267+ then aW
256268 else false)
257- then ay(G, aW.data[2], aA, 2)
269+ then aX
258270 else false)
259- then ay(G, aW.data[3], aA, 3)
260- else false)
261- then ay(G, aW.data[4], aA, 4)
262- else false)
263- then ay(G, aW.data[5], aA, 5)
271+ then aY
264272 else false
265273 }
266- else if ($isInstanceOf(aD, "SetScriptTransaction"))
274+ else if ($isInstanceOf(aA, "SetScriptTransaction"))
267275 then {
268- let aY = aD
276+ let aZ = aA
269277 true
270278 }
271- else if ($isInstanceOf(aD, "TransferTransaction"))
279+ else if ($isInstanceOf(aA, "TransferTransaction"))
272280 then {
273- let aZ = aD
281+ let ba = aA
274282 true
275283 }
276284 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlAiANSmBpDHYKP9sKgeN/l1bAb28g/tGlgDkwT5FiMN4X3pwdvdxE7mvSR8/41dU9rx4jG+6tZpb1ULVDPs431tR2IRaTXw5Cj+Ac2vhL+5JamCerGD1UW+bh/EGQtxo8W3YLDrofXB5QHJx4Pkz2Kgf+oS/C8hHuB/U4krO76U0507GTjZPP9kRQ0uLSMeqQXt8wXS+nMp5wajqxPpDLMaSREgsKwv/AEkP4dzpTYbikLBYl4qtdJsD84HLFSkiwd3BhcOrPjoIYmLxQuBD5TIMKTKD3sdZgaY9rsyqx3A00innyxD6zp3b4gFpUOX8JxKZdEC2myEqleNgg7GzwIDAQAB")
55
66 let b = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
77
88 let c = ((100 * 1000) * 1000)
99
10-let d = 50
10+let d = 44
1111
1212 let e = ((5 * c) / 1000)
1313
1414 let f = 14
1515
1616 let g = "INIT"
1717
1818 let h = "READY"
1919
2020 let i = "FINISHED"
2121
2222 let j = 0
2323
2424 let k = 1
2525
2626 let l = 2
2727
2828 let m = 3
2929
3030 let n = 4
3131
3232 let o = 5
3333
3434 let p = 6
3535
3636 let q = 7
3737
3838 let r = 8
3939
4040 func s (t) = if ((0 > t))
4141 then -(t)
4242 else t
4343
4444
4545 func u (v,w,x,y,z,A,B,C,D) = {
4646 let E = ((((((((((((((v + "_") + w) + "_") + x) + "_") + y) + "_") + z) + "_") + A) + "_") + B) + "_") + C)
4747 if ((D == ""))
4848 then ((E + "_") + "-")
4949 else ((E + "_") + D)
5050 }
5151
5252
5353 func F (G) = {
5454 let H = getStringValue(this, G)
5555 split(H, "_")
5656 }
5757
5858
5959 func I (J,K,L,A,M) = {
6060 let N = ((s(toInt(M)) % J) + K)
6161 let O = toString(N)
6262 let P = isDefined(indexOf(L, O))
6363 if (if (!(P))
6464 then (A > 0)
6565 else false)
6666 then [((L + "-") + O), "yes"]
6767 else [L, ""]
6868 }
6969
7070
7171 func Q (G,R,S,T,L,A,U) = {
7272 let V = T
7373 let J = ((S - R) + 1)
7474 let W = I(J, R, L, A, drop(V, (U + 1)))
7575 let X = if ((W[1] != ""))
7676 then (A - 1)
7777 else A
7878 let Y = I(J, R, W[0], X, drop(V, (U + 2)))
7979 let Z = if ((Y[1] != ""))
8080 then (X - 1)
8181 else X
8282 let aa = I(J, R, Y[0], Z, drop(V, (U + 3)))
8383 let ab = if ((aa[1] != ""))
8484 then (Z - 1)
8585 else Z
8686 let ac = I(J, R, aa[0], ab, drop(V, (U + 4)))
8787 let ad = if ((ac[1] != ""))
8888 then (ab - 1)
8989 else ab
9090 let ae = I(J, R, ac[0], ad, drop(V, (U + 5)))
9191 let af = if ((ae[1] != ""))
9292 then (ad - 1)
9393 else ad
9494 let ag = I(J, R, ae[0], af, drop(V, (U + 6)))
9595 let ah = if ((ag[1] != ""))
9696 then (af - 1)
9797 else af
9898 let ai = I(J, R, ag[0], ah, drop(V, (U + 7)))
9999 let aj = if ((ai[1] != ""))
100100 then (ah - 1)
101101 else ah
102102 let ak = I(J, R, ai[0], aj, drop(V, (U + 8)))
103103 let al = if ((ak[1] != ""))
104104 then (aj - 1)
105105 else aj
106106 let am = I(J, R, ak[0], al, drop(V, (U + 9)))
107107 let an = if ((am[1] != ""))
108108 then (al - 1)
109109 else al
110110 let ao = I(J, R, am[0], an, drop(V, (U + 10)))
111111 let ap = if ((ao[1] != ""))
112112 then (an - 1)
113113 else an
114114 let aq = I(J, R, ao[0], ap, drop(V, (U + 11)))
115115 let ar = if ((aq[1] != ""))
116116 then (ap - 1)
117117 else ap
118118 let as = I(J, R, aq[0], ar, drop(V, (U + 12)))
119119 let at = if ((as[1] != ""))
120120 then (ar - 1)
121121 else ar
122122 let au = I(J, R, as[0], at, drop(V, (U + 13)))
123123 let av = if ((au[1] != ""))
124124 then (at - 1)
125125 else at
126126 let aw = I(J, R, au[0], av, drop(V, (U + 14)))
127127 let ax = if ((aw[1] != ""))
128128 then (av - 1)
129129 else av
130130 [aw[0], if ((ax == 0))
131131 then "0"
132132 else toString(ax), toString((U + 14))]
133133 }
134134
135135
136-func ay (G,az,aA,aB) = {
137- let aC = take(az.key, d)
138- if ((aB >= aA))
139- then true
140- else if (if (if ((G == aC))
141- then (size(az.key) > d)
142- else false)
143- then !(isDefined(getString(this, az.key)))
144- else false)
136+func ay (G,az) = if (if (if ((G == take(az.key, d)))
137+ then (size(az.key) > d)
138+ else false)
139+ then !(isDefined(getString(this, az.key)))
140+ else false)
141+ then {
142+ let aA = az.value
143+ if ($isInstanceOf(aA, "String"))
145144 then {
146- let aD = az.value
147- if ($isInstanceOf(aD, "String"))
148- then {
149- let aE = aD
150- true
151- }
152- else throw((G + " draw: only String type is accepted for data transactions"))
145+ let aB = aA
146+ true
153147 }
154- else false
155- }
148+ else throw((G + " draw: only String type is accepted for data transactions"))
149+ }
150+ else false
156151
157152
158-@Callable(aF)
153+@Callable(aC)
159154 func initDraw (x,y,z) = {
160- let G = toBase58String(aF.transactionId)
155+ let G = toBase58String(aC.transactionId)
161156 if (if ((0 >= x))
162157 then true
163158 else (0 >= y))
164159 then throw("randFrom and randTo must be greater than 0")
165160 else if ((x >= y))
166161 then throw("randFrom must be strict less then randTo")
167162 else if ((z > ((y - x) + 1)))
168163 then throw(((((("Impossible to generate " + toString(z)) + " for provided random range - from ") + toString(x)) + " to ") + toString(y)))
169164 else {
170- let w = toBase58String(aF.callerPublicKey)
171- let aG = toString(z)
172- let aH = u(g, w, toString(x), toString(y), aG, aG, "null", "0", "")
173- ScriptResult(WriteSet([DataEntry(G, aH)]), TransferSet([ScriptTransfer(b, 1000, unit)]))
165+ let w = toBase58String(aC.callerPublicKey)
166+ let aD = toString(z)
167+ let aE = u(g, w, toString(x), toString(y), aD, aD, "null", "0", "")
168+ ScriptResult(WriteSet([DataEntry(G, aE)]), TransferSet([ScriptTransfer(b, 1000, unit)]))
174169 }
175170 }
176171
177172
178173
179-@Callable(aF)
174+@Callable(aC)
180175 func ready (G) = {
181- let aI = F(G)
182- let v = aI[j]
183- let w = aI[k]
184- let aG = aI[n]
185- let aJ = aI[o]
186- let aK = aI[l]
187- let aL = aI[m]
188- let aM = fromBase58String(w)
176+ let aF = F(G)
177+ let v = aF[j]
178+ let w = aF[k]
179+ let aD = aF[n]
180+ let aG = aF[o]
181+ let aH = aF[l]
182+ let aI = aF[m]
183+ let aJ = fromBase58String(w)
189184 if ((v != g))
190185 then throw((G + " draw: moving into READY state is allowed only from INIT state"))
191- else if ((aM != aF.callerPublicKey))
186+ else if ((aJ != aC.callerPublicKey))
192187 then throw((G + "draw: moving into READY state is allowed for organizer only"))
193188 else {
194- let aN = u(h, w, aK, aL, aG, aJ, toBase58String(aF.transactionId), "0", "")
195- WriteSet([DataEntry(G, aN)])
189+ let aK = u(h, w, aH, aI, aD, aG, toBase58String(aC.transactionId), "0", "")
190+ WriteSet([DataEntry(G, aK)])
196191 }
197192 }
198193
199194
200195
201-@Callable(aF)
196+@Callable(aC)
202197 func random (G,T) = {
203- let aI = F(G)
204- let v = aI[j]
205- let w = aI[k]
206- let aG = aI[n]
207- let aO = parseIntValue(aI[o])
208- let U = parseIntValue(aI[q])
209- let L = aI[r]
210- let aK = aI[l]
211- let aL = aI[m]
212- let B = aI[p]
213- let R = parseIntValue(aK)
214- let S = parseIntValue(aL)
215- let aM = fromBase58String(w)
198+ let aF = F(G)
199+ let v = aF[j]
200+ let w = aF[k]
201+ let aD = aF[n]
202+ let aL = parseIntValue(aF[o])
203+ let U = parseIntValue(aF[q])
204+ let L = aF[r]
205+ let aH = aF[l]
206+ let aI = aF[m]
207+ let B = aF[p]
208+ let R = parseIntValue(aH)
209+ let S = parseIntValue(aI)
210+ let aJ = fromBase58String(w)
216211 if ((v != h))
217212 then throw((G + " draw: it must be in READY state to generate random numbers"))
218213 else if (!(rsaVerify(SHA256, (toBytes(G) + toBytes(B)), T, a)))
219214 then throw("Invalid RSA signature")
220215 else {
221- let aP = Q(G, R, S, T, L, aO, U)
222- let aQ = aP[0]
223- let aR = aP[1]
224- let aS = aP[2]
225- let aT = if ((aR == "0"))
216+ let aM = Q(G, R, S, T, L, aL, U)
217+ let aN = aM[0]
218+ let aO = aM[1]
219+ let aP = aM[2]
220+ let aQ = if ((aO == "0"))
226221 then i
227222 else h
228- WriteSet([DataEntry(G, u(aT, w, aK, aL, aG, aR, B, aS, aQ))])
223+ WriteSet([DataEntry(G, u(aQ, w, aH, aI, aD, aO, B, aP, aN))])
229224 }
230225 }
231226
232227
233-@Verifier(aU)
234-func aV () = {
235- let aD = aU
236- if ($isInstanceOf(aD, "DataTransaction"))
228+@Verifier(aR)
229+func aS () = {
230+ let aA = aR
231+ if ($isInstanceOf(aA, "DataTransaction"))
237232 then {
238- let aW = aD
239- let aX = aW.data[0]
240- let G = take(aX.key, d)
241- let aI = F(G)
242- let v = aI[0]
243- let w = aI[1]
244- let aM = fromBase58String(w)
245- let aA = size(aW.data)
246- if (if (if (if (if (if (if (if (if ((v == g))
247- then sigVerify(aU.bodyBytes, aU.proofs[0], aM)
233+ let aT = aA
234+ let aU = aT.data[0]
235+ let G = take(aU.key, d)
236+ let aF = F(G)
237+ let v = aF[0]
238+ let w = aF[1]
239+ let aJ = fromBase58String(w)
240+ let aV = size(aT.data)
241+ let aW = sigVerify(aR.bodyBytes, aR.proofs[0], aJ)
242+ let aX = if ((aV > 0))
243+ then (5 >= aV)
244+ else false
245+ let aY = if (if (if (if (if (ay(G, aU))
246+ then if ((1 >= aV))
247+ then true
248+ else ay(G, aT.data[1])
248249 else false)
249- then (aA > 0)
250+ then if ((2 >= aV))
251+ then true
252+ else ay(G, aT.data[2])
250253 else false)
251- then (5 >= aA)
254+ then if ((3 >= aV))
255+ then true
256+ else ay(G, aT.data[3])
252257 else false)
253- then ay(G, aX, aA, 0)
258+ then if ((4 >= aV))
259+ then true
260+ else ay(G, aT.data[4])
254261 else false)
255- then ay(G, aW.data[1], aA, 1)
262+ then if ((5 >= aV))
263+ then true
264+ else ay(G, aT.data[5])
265+ else false
266+ if (if (if ((v == g))
267+ then aW
256268 else false)
257- then ay(G, aW.data[2], aA, 2)
269+ then aX
258270 else false)
259- then ay(G, aW.data[3], aA, 3)
260- else false)
261- then ay(G, aW.data[4], aA, 4)
262- else false)
263- then ay(G, aW.data[5], aA, 5)
271+ then aY
264272 else false
265273 }
266- else if ($isInstanceOf(aD, "SetScriptTransaction"))
274+ else if ($isInstanceOf(aA, "SetScriptTransaction"))
267275 then {
268- let aY = aD
276+ let aZ = aA
269277 true
270278 }
271- else if ($isInstanceOf(aD, "TransferTransaction"))
279+ else if ($isInstanceOf(aA, "TransferTransaction"))
272280 then {
273- let aZ = aD
281+ let ba = aA
274282 true
275283 }
276284 else false
277285 }
278286

github/deemru/w8io/026f985 
54.12 ms