tx · 6dX9ZhRrXUxd5pzeRSY9qeCKSzfkc7mwufaKwuKq3bot

3Mqf8RMmNmF1EDvwzRSjAL8bRZResUEywhe:  -0.01500000 Waves

2019.08.05 19:09 [617827] smart account 3Mqf8RMmNmF1EDvwzRSjAL8bRZResUEywhe > SELF 0.00000000 Waves

{ "type": 13, "id": "6dX9ZhRrXUxd5pzeRSY9qeCKSzfkc7mwufaKwuKq3bot", "fee": 1500000, "feeAssetId": null, "timestamp": 1565021397022, "version": 1, "sender": "3Mqf8RMmNmF1EDvwzRSjAL8bRZResUEywhe", "senderPublicKey": "A8W4NkcccYM68MvwZf5oAefoT5R8QiLkahC8gASN3VC8", "proofs": [ "3xmUmUgER1Qi7hNmVs626JwZxp3uC8xAksxr3xssddjQRe6L8twu12diGsKy6opc4yr2ShPr7AKCJ3VMv1QDAeUg" ], "script": "base64:AAIDAAAAAAAAAAAAAAAZAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGPYmFzZTY0Ok1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQkNnS0NBUUVBbXB1WGNJL280cElCNXl3djlET09HYXBUQlV3UlZsTS82K0g2aEZlbE9YdGtyd1kvWUl0bVB4RURwejdyQWVyUVBRZTl0RFBFYUF2L0dubEV6dHliT0ZYZ3U5RHpEZThZb01SRDF2YWtnb0Fjb2dtYlk1OFFENktNajVIa29Wai95VE5JYzlzemo1cWhJbHJBZG1iM0tMTDZoUVU3eTgrSmo2OUJXVlBzYVFna3NwU2RlWXRiMXRIUWM3dDk1bjdPWjU2cjJBN0czK2JRZjZuU01rUGtBaElyRXBiQ201OG9pR0JjemRUZC9McUZTVm90WnNiTDdZaDZTSExmbkhlRCtRZ2NmSnJuYW04T0hNR0pFSlRSWGpJTGVIR2psUkNQOG9WcGlvSHJ5MVMyeFB4NXNWekltMk1NK0N6WWVuQUdsbzBqMjZhdEJoaVVMb1R1bHdEM3BRSURBUUFCAAAAAAZTRVJWRVIJAQAAABxAZ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AEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAAEc3N0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAYHgk2qtQ==", "chainId": 84, "height": 617827, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let RSAPUBLIC = fromBase64String("base64:MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmpuXcI/o4pIB5ywv9DOOGapTBUwRVlM/6+H6hFelOXtkrwY/YItmPxEDpz7rAerQPQe9tDPEaAv/GnlEztybOFXgu9DzDe8YoMRD1vakgoAcogmbY58QD6KMj5HkoVj/yTNIc9szj5qhIlrAdmb3KLL6hQU7y8+Jj69BWVPsaQgkspSdeYtb1tHQc7t95n7OZ56r2A7G3+bQf6nSMkPkAhIrEpbCm58oiGBczdTd/LqFSVotZsbL7Yh6SHLfnHeD+QgcfJrnam8OHMGJEJTRXjILeHGjlRCP8oVpioHry1S2xPx5sVzIm2MM+CzYenAGlo0j26atBhiULoTulwD3pQIDAQAB")
5+
6+let SERVER = addressFromStringValue("3NCiG28LmWyTigWG13E5QnvdHBsZFYXSS2j")
7+
8+let WAVELET = ((100 * 1000) * 1000)
9+
10+let SESSIONIDFIXSIZE = 44
11+
12+let RANDCYCLEPRICE = ((5 * WAVELET) / 1000)
13+
14+let MAXRANDSPERCYCLE = 14
15+
16+let STATEINIT = "INIT"
17+
18+let DATADONE = "READY"
19+
20+let STATEFINISHED = "FINISHED"
21+
22+let IdxState = 0
23+
24+let IdxOrganizerPub = 1
25+
26+let IdxRandFrom = 2
27+
28+let IdxRandTo = 3
29+
30+let IdxRandsCount = 4
31+
32+let IdxRemainRandsCount = 5
33+
34+let IdxDataDoneTxId = 6
35+
36+let IdxLastOffset = 7
37+
38+let IdxCurrRands = 8
39+
40+func abs (val) = if ((0 > val))
41+ then -(val)
42+ else val
43+
44+
45+func formatStateDataStr (drawState,organizerPubKey58,randFrom,randTo,randsCount,remainingRands,dataDoneTxId,lastOffset,randOrEmpty) = {
46+ let fullStateStr = ((((((((((((((drawState + "_") + organizerPubKey58) + "_") + randFrom) + "_") + randTo) + "_") + randsCount) + "_") + remainingRands) + "_") + dataDoneTxId) + "_") + lastOffset)
47+ if ((randOrEmpty == ""))
48+ then ((fullStateStr + "_") + "-")
49+ else ((fullStateStr + "_") + randOrEmpty)
50+ }
51+
52+
53+func extractGameDataList (sessionId) = {
54+ let rawDataStr = getStringValue(this, sessionId)
55+ split(rawDataStr, "_")
56+ }
57+
58+
59+func nextRand (div,min,currRandsStr,remainingRands,remainingHash) = {
60+ let nextRandInt = ((abs(toInt(remainingHash)) % div) + min)
61+ let nextRandStr = toString(nextRandInt)
62+ let duplicate = isDefined(indexOf(currRandsStr, nextRandStr))
63+ if (if (!(duplicate))
64+ then (remainingRands > 0)
65+ else false)
66+ then [((currRandsStr + "-") + nextRandStr), "yes"]
67+ else [currRandsStr, ""]
68+ }
69+
70+
71+func generateRand (sessionId,from,to,rsaSign,currRandsStr,remainingRands,lastOffsetBytes) = {
72+ let randHash = rsaSign
73+ let div = ((to - from) + 1)
74+ let rand1 = nextRand(div, from, currRandsStr, remainingRands, drop(randHash, (lastOffsetBytes + 1)))
75+ let rem1 = if ((rand1[1] != ""))
76+ then (remainingRands - 1)
77+ else remainingRands
78+ let rand2 = nextRand(div, from, rand1[0], rem1, drop(randHash, (lastOffsetBytes + 2)))
79+ let rem2 = if ((rand2[1] != ""))
80+ then (rem1 - 1)
81+ else rem1
82+ let rand3 = nextRand(div, from, rand2[0], rem2, drop(randHash, (lastOffsetBytes + 3)))
83+ let rem3 = if ((rand3[1] != ""))
84+ then (rem2 - 1)
85+ else rem2
86+ let rand4 = nextRand(div, from, rand3[0], rem3, drop(randHash, (lastOffsetBytes + 4)))
87+ let rem4 = if ((rand4[1] != ""))
88+ then (rem3 - 1)
89+ else rem3
90+ let rand5 = nextRand(div, from, rand4[0], rem4, drop(randHash, (lastOffsetBytes + 5)))
91+ let rem5 = if ((rand5[1] != ""))
92+ then (rem4 - 1)
93+ else rem4
94+ let rand6 = nextRand(div, from, rand5[0], rem5, drop(randHash, (lastOffsetBytes + 6)))
95+ let rem6 = if ((rand6[1] != ""))
96+ then (rem5 - 1)
97+ else rem5
98+ let rand7 = nextRand(div, from, rand6[0], rem6, drop(randHash, (lastOffsetBytes + 7)))
99+ let rem7 = if ((rand7[1] != ""))
100+ then (rem6 - 1)
101+ else rem6
102+ let rand8 = nextRand(div, from, rand7[0], rem7, drop(randHash, (lastOffsetBytes + 8)))
103+ let rem8 = if ((rand8[1] != ""))
104+ then (rem7 - 1)
105+ else rem7
106+ let rand9 = nextRand(div, from, rand8[0], rem8, drop(randHash, (lastOffsetBytes + 9)))
107+ let rem9 = if ((rand9[1] != ""))
108+ then (rem8 - 1)
109+ else rem8
110+ let rand10 = nextRand(div, from, rand9[0], rem9, drop(randHash, (lastOffsetBytes + 10)))
111+ let rem10 = if ((rand10[1] != ""))
112+ then (rem9 - 1)
113+ else rem9
114+ let rand11 = nextRand(div, from, rand10[0], rem10, drop(randHash, (lastOffsetBytes + 11)))
115+ let rem11 = if ((rand11[1] != ""))
116+ then (rem10 - 1)
117+ else rem10
118+ let rand12 = nextRand(div, from, rand11[0], rem11, drop(randHash, (lastOffsetBytes + 12)))
119+ let rem12 = if ((rand12[1] != ""))
120+ then (rem11 - 1)
121+ else rem11
122+ let rand13 = nextRand(div, from, rand12[0], rem12, drop(randHash, (lastOffsetBytes + 13)))
123+ let rem13 = if ((rand13[1] != ""))
124+ then (rem12 - 1)
125+ else rem12
126+ let rand14 = nextRand(div, from, rand13[0], rem13, drop(randHash, (lastOffsetBytes + 14)))
127+ let rem14 = if ((rand14[1] != ""))
128+ then (rem13 - 1)
129+ else rem13
130+[rand14[0], if ((rem14 == 0))
131+ then "0"
132+ else toString(rem14), toString((lastOffsetBytes + 14))]
133+ }
134+
135+
136+func validateDtxKey (sessionId,data) = {
137+ let dataKeyInfo = split(data.key, "_")
138+ if ((size(dataKeyInfo) != 2))
139+ then throw("Invalid data key format. It must follow to ${sessionId}_${num}")
140+ else {
141+ let keySessionId = dataKeyInfo[0]
142+ let keyPostfix = dataKeyInfo[1]
143+ if ((sessionId != keySessionId))
144+ then throw(((("Several data keys have different sessionId: " + sessionId) + " and ") + keySessionId))
145+ else if (isDefined(getString(this, data.key)))
146+ then throw(("One of the data keys has already presented in account state: key=" + data.key))
147+ else if ((size(keyPostfix) > 4))
148+ then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} length couldn't be greater than 4")
149+ else if ((take(keyPostfix, 0) == "0"))
150+ then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} couldn't start from 0")
151+ else {
152+ let keyPostfixIntOpt = parseInt(keyPostfix)
153+ if (isDefined(keyPostfixIntOpt))
154+ then {
155+ let keyPostfixInt = extract(keyPostfixIntOpt)
156+ if (if ((1 > keyPostfixInt))
157+ then true
158+ else (keyPostfixInt > 7145))
159+ then throw((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to 7145 but actualNum=") + toString(keyPostfixInt)))
160+ else match data.value {
161+ case str: String =>
162+ true
163+ case _ =>
164+ throw((sessionId + " draw: only String type is accepted for data transactions"))
165+ }
166+ }
167+ else throw((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to 7145 but actualNum=") + keyPostfix))
168+ }
169+ }
170+ }
171+
172+
173+func validateAndGetRandsPmt (randsCount,pmt,minDataPmt) = {
174+ let bound1 = 1000
175+ let basePrice1 = ((13 * WAVELET) / 100)
176+ let div1 = 50
177+ let diff1 = ((8 * WAVELET) / 100)
178+ let bound2 = 5000
179+ let basePrice2 = ((297 * WAVELET) / 100)
180+ let div2 = 1000
181+ let diff2 = ((143 * WAVELET) / 100)
182+ let bound3 = 50000
183+ let basePrice3 = ((1427 * WAVELET) / 100)
184+ let div3 = 5000
185+ let diff3 = ((705 * WAVELET) / 100)
186+ let minRandsPmt = if ((bound1 > randsCount))
187+ then (basePrice1 + ((randsCount / div1) * diff1))
188+ else if ((bound2 > randsCount))
189+ then (basePrice2 + (((randsCount / div2) - 1) * diff2))
190+ else if ((bound3 > randsCount))
191+ then (basePrice3 + (((randsCount / div3) - 1) * diff3))
192+ else throw("Please contact our sales team to generate more than 50k rands")
193+ let minPmt = (minRandsPmt + minDataPmt)
194+ if (isDefined(pmt.assetId))
195+ then throw("Only WAVES can be used as a payment for rands generation")
196+ else if ((minPmt > pmt.amount))
197+ then throw(((((("Attached payment is to small to generate " + toString(randsCount)) + " unique randoms numbers and upload at least 1 data tx: actualPmt=") + toString(pmt.amount)) + " but minPmt is ") + toString(minPmt)))
198+ else minRandsPmt
199+ }
200+
201+
202+@Callable(i)
203+func initDraw (randFrom,randTo,randsCount) = {
204+ let sessionId = toBase58String(i.transactionId)
205+ let rangeLength = ((randTo - randFrom) + 1)
206+ let maxRangeLength = (rangeLength / 2)
207+ if (if ((0 >= randFrom))
208+ then true
209+ else (0 >= randTo))
210+ then throw("randFrom and randTo must be greater than 0")
211+ else if ((randFrom >= randTo))
212+ then throw("randFrom must be strict less then randTo")
213+ else if ((randsCount > rangeLength))
214+ then throw(((((((("Impossible to generate " + toString(randsCount)) + " unique numbers for provided random range [") + toString(randFrom)) + ", ") + toString(randTo)) + "] with actual size ") + toString(rangeLength)))
215+ else if ((randsCount > maxRangeLength))
216+ then throw(((((((((("randsCount must be less then 50% of passed range length: range=[" + toString(randFrom)) + ", ") + toString(randTo)) + "], rangeLength=") + toString(rangeLength)) + " randsCount=") + toString(randsCount)) + " allowedRandsCount=") + toString(maxRangeLength)))
217+ else if (!(isDefined(i.payment)))
218+ then throw("Please provide payment to generate unique random numbers")
219+ else {
220+ let pmt = extract(i.payment)
221+ let minDataPmt = ((5 * WAVELET) / 1000)
222+ let randsPmt = validateAndGetRandsPmt(randsCount, pmt, minDataPmt)
223+ let dataPmt = (pmt.amount - randsPmt)
224+ let dataTxCount = (dataPmt / minDataPmt)
225+ let dataKeyCount = (dataTxCount * 5)
226+ let organizerPubKey58 = toBase58String(i.callerPublicKey)
227+ let randsCountStr = toString(randsCount)
228+ let initState = formatStateDataStr(STATEINIT, organizerPubKey58, toString(randFrom), toString(randTo), randsCountStr, randsCountStr, "null", "0", "")
229+ ScriptResult(WriteSet([DataEntry(sessionId, initState)]), TransferSet([ScriptTransfer(SERVER, randsPmt, unit)]))
230+ }
231+ }
232+
233+
234+
235+@Callable(i)
236+func ready (sessionId) = {
237+ let drawParamsList = extractGameDataList(sessionId)
238+ let drawState = drawParamsList[IdxState]
239+ let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
240+ let randsCountStr = drawParamsList[IdxRandsCount]
241+ let remainRandsCountStr = drawParamsList[IdxRemainRandsCount]
242+ let fromStr = drawParamsList[IdxRandFrom]
243+ let toStr = drawParamsList[IdxRandTo]
244+ let organizerPubKey = fromBase58String(organizerPubKey58)
245+ if ((drawState != STATEINIT))
246+ then throw((sessionId + " draw: moving into READY state is allowed only from INIT state"))
247+ else if ((organizerPubKey != i.callerPublicKey))
248+ then throw((sessionId + "draw: moving into READY state is allowed for organizer only"))
249+ else {
250+ let readyState = formatStateDataStr(DATADONE, organizerPubKey58, fromStr, toStr, randsCountStr, remainRandsCountStr, toBase58String(i.transactionId), "0", "")
251+ WriteSet([DataEntry(sessionId, readyState)])
252+ }
253+ }
254+
255+
256+
257+@Callable(i)
258+func random (sessionId,rsaSign) = {
259+ let drawParamsList = extractGameDataList(sessionId)
260+ let drawState = drawParamsList[IdxState]
261+ let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
262+ let randsCountStr = drawParamsList[IdxRandsCount]
263+ let remainRandsCount = parseIntValue(drawParamsList[IdxRemainRandsCount])
264+ let lastOffsetBytes = parseIntValue(drawParamsList[IdxLastOffset])
265+ let currRandsStr = drawParamsList[IdxCurrRands]
266+ let fromStr = drawParamsList[IdxRandFrom]
267+ let toStr = drawParamsList[IdxRandTo]
268+ let dataDoneTxId = drawParamsList[IdxDataDoneTxId]
269+ let from = parseIntValue(fromStr)
270+ let to = parseIntValue(toStr)
271+ let organizerPubKey = fromBase58String(organizerPubKey58)
272+ if ((drawState != DATADONE))
273+ then throw((sessionId + " draw: it must be in READY state to generate random numbers"))
274+ else if (!(rsaVerify(SHA256, (toBytes(sessionId) + toBytes(dataDoneTxId)), rsaSign, RSAPUBLIC)))
275+ then throw("Invalid RSA signature")
276+ else {
277+ let randGenInfo = generateRand(sessionId, from, to, rsaSign, currRandsStr, remainRandsCount, lastOffsetBytes)
278+ let newRandsStr = randGenInfo[0]
279+ let newRemainRandsCountStr = randGenInfo[1]
280+ let newOffsetBytes = randGenInfo[2]
281+ let newState = if ((newRemainRandsCountStr == "0"))
282+ then STATEFINISHED
283+ else DATADONE
284+ WriteSet([DataEntry(sessionId, formatStateDataStr(newState, organizerPubKey58, fromStr, toStr, randsCountStr, newRemainRandsCountStr, dataDoneTxId, newOffsetBytes, newRandsStr))])
285+ }
286+ }
287+
288+
289+@Verifier(tx)
290+func verify () = match tx {
291+ case dtx: DataTransaction =>
292+ let data0 = dtx.data[0]
293+ let sessionId = take(data0.key, SESSIONIDFIXSIZE)
294+ let drawParamsList = extractGameDataList(sessionId)
295+ let drawState = drawParamsList[0]
296+ let organizerPubKey58 = drawParamsList[1]
297+ let organizerPubKey = fromBase58String(organizerPubKey58)
298+ let dataEntriesCount = size(dtx.data)
299+ let sigValid = sigVerify(tx.bodyBytes, tx.proofs[0], organizerPubKey)
300+ let dataSizeValid = (dataEntriesCount == 5)
301+ let keysValid = if (if (if (if (validateDtxKey(sessionId, data0))
302+ then validateDtxKey(sessionId, dtx.data[1])
303+ else false)
304+ then validateDtxKey(sessionId, dtx.data[2])
305+ else false)
306+ then validateDtxKey(sessionId, dtx.data[3])
307+ else false)
308+ then validateDtxKey(sessionId, dtx.data[4])
309+ else false
310+ if (if (if ((drawState == STATEINIT))
311+ then sigValid
312+ else false)
313+ then dataSizeValid
314+ else false)
315+ then keysValid
316+ else false
317+ case sstx: SetScriptTransaction =>
318+ true
319+ case ttx: TransferTransaction =>
320+ true
321+ case _ =>
322+ false
323+}
324+

github/deemru/w8io/169f3d6 
32.75 ms