tx · 3YJp9nVwETfCvYHy2XtAWgcPNeznbGTN5fMaTJDu7Kz3

3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z:  -0.01000000 Waves

2021.12.15 17:51 [1835513] smart account 3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z > SELF 0.00000000 Waves

{ "type": 13, "id": "3YJp9nVwETfCvYHy2XtAWgcPNeznbGTN5fMaTJDu7Kz3", "fee": 1000000, "feeAssetId": null, "timestamp": 1639579920230, "version": 2, "chainId": 84, "sender": "3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z", "senderPublicKey": "FsjTCE3KV2vD2r7Du9D3J6Ea2T643E6zxzn6y24outXr", "proofs": [ "3ECNyMiso9TiwEypp1oPz3h9AWUBq37VJwp1gopyzXqp8uqp1TBodM7APLQmdFa1uCoXgG1VFHSEXQqZvQLP8oGK" ], "script": "base64:AAIDAAAAAAAACNEIARIFCgMBAQESBAoCCAgaDwoBQRIKcmFuZHNDb3VudBoTCgFCEg5yZW1haW5pbmdSYW5kcxoSCgFDEg1kYXRhS2V5c0NvdW50GhEKAUQSDGRhdGFEb25lVHhJZBoPCgFFEgpsYXN0T2Zmc2V0Gg0KAUYSCHNsb3dJZHgxGg0KAUcSCHNsb3dJZHgyGg0KAUgSCGZhc3RJZHgxGg0KAUkSCGZhc3RJZHgyGhAKAUoSC3JhbmRPckVtcHR5GhEKAUsSDGZ1bGxTdGF0ZVN0choYCgFMEhNleHRyYWN0R2FtZURhdGFMaXN0Gg4KAU0SCXNlc3Npb25JZBoPCgFOEgpyYXdEYXRhU3RyGg0KAU8SCG5leHRSYW5kGggKAVASA2RpdhoICgFREgNtaW4aEQoBUhIMY3VyclJhbmRzU3RyGhIKAVMSDXJlbWFpbmluZ0hhc2gaEAoBVBILbmV4dFJhbmRJbnQaEAoBVRILbmV4dFJhbmRTdHIaDgoBVhIJZHVwbGljYXRlGhEKAVcSDGdlbmVyYXRlUmFuZBoJCgFYEgRmcm9tGgcKAVkS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AAJidAUAAAACYkIJAAGRAAAAAgUAAAACYnYFAAAAAXAFAAAAAUQJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAIJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAMJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAQJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAUJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAYJAAGRAAAAAgUAAAACYkEAAAAAAAAAAAAFAAAAA25pbAAAAADELX5K", "height": 1835513, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GWpHCJfhefnwb2UXNsfaQepXB1RDds2sYViNjg3Zy6pS Next: 7UspagBTW17FYiSNXUt251mCVum7U8dGnp1aWuDkd9ZB Diff:
OldNewDifferences
265265 let bz = fromBase58String(x)
266266 if ((w != h))
267267 then throw((M + " draw: it must be in READY state to generate random numbers"))
268- else if (!(rsaVerify(SHA256, toBytes(M), toBytes(Z), a)))
268+ else if (!(rsaVerify(SHA256, toBytes("test"), toBytes(Z), a)))
269269 then throw("Invalid RSA signature")
270270 else {
271271 let bA = W(M, X, Y, toBytes(Z), R, bw, aa, F, G, H, I)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase64String("base64:LS0tLS1CRUdJTiBSU0EgUFVCTElDIEtFWS0tLS0tCk1JR0pBb0dCQUxyRmtIWHpmcmdoQTkzaVkrTnZFYlFzTkJKdW02dWxnZlNueWFvUDY2anpRTllJL1B1YlgybjEKV1ZZR1AyT21XMjhaQTNycG9OT2tYZlUvQnFuOVF0YTBLdkJPdXF5M1EyNEhleWNtTDMwZjdxbnU3V1EvT05KWApCTDZYQ1FtSUtOT1JyQzNVMjRHWEdIMkpQQ3BZNzVQY2FHOTNYKzJxVDRKUG5GRFpieFpyQWdNQkFBRT0KLS0tLS1FTkQgUlNBIFBVQkxJQyBLRVktLS0tLQ==")
55
66 let b = addressFromStringValue("3N4vdqMsEsAZSJWfwYJcaCgUzASJTC2BWsP")
77
88 let c = ((100 * 1000) * 1000)
99
1010 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 let s = 13
4141
4242 func t (u) = if ((0 > u))
4343 then -(u)
4444 else u
4545
4646
4747 func v (w,x,y,z,A,B,C,D,E,F,G,H,I,J) = {
4848 let K = ((((((((((((((((((((((((w + "_") + x) + "_") + y) + "_") + z) + "_") + A) + "_") + B) + "_") + C) + "_") + D) + "_") + E) + "_") + F) + "_") + G) + "_") + H) + "_") + I)
4949 if ((J == ""))
5050 then ((K + "_") + "-")
5151 else ((K + "_") + J)
5252 }
5353
5454
5555 func L (M) = {
5656 let N = getStringValue(this, M)
5757 split(N, "_")
5858 }
5959
6060
6161 func O (P,Q,R,B,S) = {
6262 let T = ((t(toInt(S)) % P) + Q)
6363 let U = toString(T)
6464 let V = isDefined(indexOf(R, U))
6565 if (if (!(V))
6666 then (B > 0)
6767 else false)
6868 then [((R + "-") + U), "yes"]
6969 else [R, ""]
7070 }
7171
7272
7373 func W (M,X,Y,Z,R,B,aa,ab,ac,ad,ae) = {
7474 let af = if (((aa + 1) > 87))
7575 then if ((ae > 241))
7676 then [0, (ab + 1), (ac + 1), 0, 1]
7777 else [0, ab, ac, (ad + 1), (ae + 1)]
7878 else [(aa + 1), ab, ac, ad, ae]
7979 let ag = af[0]
8080 let ah = af[1]
8181 let ai = af[2]
8282 let aj = af[3]
8383 let ak = af[4]
8484 let al = (((((((take(drop(Z, ah), 1) + take(drop(Z, 1), 1)) + take(drop(Z, aj), 1)) + take(drop(Z, 3), 1)) + take(drop(Z, ai), 1)) + take(drop(Z, 5), 1)) + take(drop(Z, 6), 1)) + take(drop(Z, ak), 1))
8585 let am = ((sha256(al) + blake2b256(al)) + keccak256(al))
8686 let P = ((Y - X) + 1)
8787 let an = O(P, X, R, B, drop(am, ag))
8888 let ao = if ((an[1] != ""))
8989 then (B - 1)
9090 else B
9191 let ap = O(P, X, an[0], ao, drop(am, (ag + 1)))
9292 let aq = if ((ap[1] != ""))
9393 then (ao - 1)
9494 else ao
9595 let ar = O(P, X, ap[0], aq, drop(am, (ag + 2)))
9696 let as = if ((ar[1] != ""))
9797 then (aq - 1)
9898 else aq
9999 let at = O(P, X, ar[0], as, drop(am, (ag + 3)))
100100 let au = if ((at[1] != ""))
101101 then (as - 1)
102102 else as
103103 let av = O(P, X, at[0], au, drop(am, (ag + 4)))
104104 let aw = if ((av[1] != ""))
105105 then (au - 1)
106106 else au
107107 let ax = O(P, X, av[0], aw, drop(am, (ag + 5)))
108108 let ay = if ((ax[1] != ""))
109109 then (aw - 1)
110110 else aw
111111 let az = O(P, X, ax[0], ay, drop(am, (ag + 6)))
112112 let aA = if ((az[1] != ""))
113113 then (ay - 1)
114114 else ay
115115 let aB = O(P, X, az[0], aA, drop(am, (ag + 7)))
116116 let aC = if ((aB[1] != ""))
117117 then (aA - 1)
118118 else aA
119119 let aD = O(P, X, aB[0], aC, drop(am, (ag + 8)))
120120 let aE = if ((aD[1] != ""))
121121 then (aC - 1)
122122 else aC
123123 let aF = O(P, X, aD[0], aE, drop(am, (ag + 9)))
124124 let aG = if ((aF[1] != ""))
125125 then (aE - 1)
126126 else aE
127127 let aH = O(P, X, aF[0], aG, drop(am, (ag + 10)))
128128 let aI = if ((aH[1] != ""))
129129 then (aG - 1)
130130 else aG
131131 [aH[0], if ((aI == 0))
132132 then "0"
133133 else toString(aI), toString((ag + 10)), toString(ah), toString(ai), toString(aj), toString(ak)]
134134 }
135135
136136
137137 func aJ (M,C,aK) = {
138138 let aL = split(aK.key, "_")
139139 if ((size(aL) != 2))
140140 then throw("Invalid data key format. It must follow to ${sessionId}_${num}")
141141 else {
142142 let aM = aL[0]
143143 let aN = aL[1]
144144 if ((M != aM))
145145 then throw(((("Several data keys have different sessionId: " + M) + " and ") + aM))
146146 else if (isDefined(getString(this, aK.key)))
147147 then throw(("One of the data keys has already presented in account state: key=" + aK.key))
148148 else if ((size(aN) > 4))
149149 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} length couldn't be greater than 4")
150150 else if ((take(aN, 1) == "0"))
151151 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} couldn't start from 0")
152152 else {
153153 let aO = parseInt(aN)
154154 if (isDefined(aO))
155155 then {
156156 let aP = extract(aO)
157157 if (if ((1 > aP))
158158 then true
159159 else (aP > C))
160160 then throw((((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to ") + toString(C)) + " but actualNum=") + toString(aP)))
161161 else {
162162 let aQ = aK.value
163163 if ($isInstanceOf(aQ, "String"))
164164 then {
165165 let aR = aQ
166166 true
167167 }
168168 else throw((M + " draw: only String type is accepted for data transactions"))
169169 }
170170 }
171171 else throw((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to 31250 but actualNum=") + aN))
172172 }
173173 }
174174 }
175175
176176
177177 func aS (A,aT,aU) = {
178178 let aV = 1000
179179 let aW = ((13 * c) / 100)
180180 let aX = 50
181181 let aY = ((8 * c) / 100)
182182 let aZ = 5000
183183 let ba = ((297 * c) / 100)
184184 let bb = 1000
185185 let bc = ((143 * c) / 100)
186186 let bd = 50000
187187 let be = ((1427 * c) / 100)
188188 let bf = 5000
189189 let bg = ((705 * c) / 100)
190190 let bh = if ((aV > A))
191191 then (aW + ((A / aX) * aY))
192192 else if ((aZ > A))
193193 then (ba + (((A / bb) - 1) * bc))
194194 else if ((bd > A))
195195 then (be + (((A / bf) - 1) * bg))
196196 else throw("Please contact our sales team to generate more than 50k rands")
197197 let bi = (bh + aU)
198198 if (isDefined(aT.assetId))
199199 then throw("Only WAVES can be used as a payment for rands generation")
200200 else if ((bi > aT.amount))
201201 then throw(((((("Attached payment is to small to generate " + toString(A)) + " unique randoms numbers and upload at least 1 data tx: actualPmt=") + toString(aT.amount)) + " but minPmt is ") + toString(bi)))
202202 else bh
203203 }
204204
205205
206206 @Callable(bj)
207207 func initDraw (y,z,A) = {
208208 let M = toBase58String(bj.transactionId)
209209 let bk = ((z - y) + 1)
210210 let bl = (bk / 2)
211211 let bm = size(toString((z - 1)))
212212 let bn = size(toString(A))
213213 let bo = (((2 * bm) + (2 * bn)) + 4)
214214 let bp = (((5120 - 175) - bo) / (bm + 1))
215215 if (if ((0 >= y))
216216 then true
217217 else (0 >= z))
218218 then throw("randFrom and randTo must be greater than 0")
219219 else if ((y >= z))
220220 then throw("randFrom must be strict less then randTo")
221221 else if ((A > bk))
222222 then throw(((((((("Impossible to generate " + toString(A)) + " unique numbers for provided random range [") + toString(y)) + ", ") + toString(z)) + "] with actual size ") + toString(bk)))
223223 else if ((A > bl))
224224 then throw(((((((((("randsCount must be less then 50% of passed range length: range=[" + toString(y)) + ", ") + toString(z)) + "], rangeLength=") + toString(bk)) + " randsCount=") + toString(A)) + " allowedRandsCount=") + toString(bl)))
225225 else if ((A > bp))
226226 then throw(((((("randsCount couldn't be kept in 1 data entry: 1_randNumSpace=" + toString((bm + 1))) + " maxAllowedRandsCount=") + toString(bp)) + " actualRandsCount=") + toString(A)))
227227 else if (!(isDefined(bj.payment)))
228228 then throw("Please provide payment to generate unique random numbers")
229229 else {
230230 let aT = extract(bj.payment)
231231 let aU = ((((c * 1) / 1000) * 33) + ((c * 4) / 1000))
232232 let bq = aS(A, aT, aU)
233233 let br = (aT.amount - bq)
234234 let bs = (br / aU)
235235 let C = if ((31250 >= (bs * 5)))
236236 then (bs * 5)
237237 else 31250
238238 let x = toBase58String(bj.callerPublicKey)
239239 let bt = toString(A)
240240 let bu = v(h, x, toString(y), toString(z), bt, bt, toString(C), toBase58String(bj.transactionId), "0", "0", "1", "0", "1", "")
241241 ScriptResult(WriteSet([DataEntry(M, bu)]), TransferSet([ScriptTransfer(b, bq, unit)]))
242242 }
243243 }
244244
245245
246246
247247 @Callable(bj)
248248 func random (M,Z) = {
249249 let bv = L(M)
250250 let w = bv[j]
251251 let x = bv[k]
252252 let bt = bv[n]
253253 let bw = parseIntValue(bv[o])
254254 let aa = parseIntValue(bv[r])
255255 let R = bv[s]
256256 let bx = bv[l]
257257 let by = bv[m]
258258 let D = bv[q]
259259 let F = parseIntValue(bv[9])
260260 let G = parseIntValue(bv[10])
261261 let H = parseIntValue(bv[11])
262262 let I = parseIntValue(bv[12])
263263 let X = parseIntValue(bx)
264264 let Y = parseIntValue(by)
265265 let bz = fromBase58String(x)
266266 if ((w != h))
267267 then throw((M + " draw: it must be in READY state to generate random numbers"))
268- else if (!(rsaVerify(SHA256, toBytes(M), toBytes(Z), a)))
268+ else if (!(rsaVerify(SHA256, toBytes("test"), toBytes(Z), a)))
269269 then throw("Invalid RSA signature")
270270 else {
271271 let bA = W(M, X, Y, toBytes(Z), R, bw, aa, F, G, H, I)
272272 let bB = bA[1]
273273 let bC = if ((bB == "0"))
274274 then i
275275 else h
276276 WriteSet([DataEntry(M, v(bC, x, bx, by, bt, bB, bv[p], D, bA[2], bA[3], bA[4], bA[5], bA[6], bA[0]))])
277277 }
278278 }
279279
280280

github/deemru/w8io/026f985 
52.94 ms