tx · 44mqXyrhGCGN16GAczGDEKpFaKUPhnwNhKTtVi4YVKF1

3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z:  -0.02000000 Waves

2021.12.15 15:43 [1835391] smart account 3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z > SELF 0.00000000 Waves

{ "type": 13, "id": "44mqXyrhGCGN16GAczGDEKpFaKUPhnwNhKTtVi4YVKF1", "fee": 2000000, "feeAssetId": null, "timestamp": 1639572273154, "version": 2, "chainId": 84, "sender": "3N3BYKYYK6TKoHtPLZYU8JRn8PcHTnauS9z", "senderPublicKey": "FsjTCE3KV2vD2r7Du9D3J6Ea2T643E6zxzn6y24outXr", "proofs": [ "3LNjLpcM1R6pL8H8K1JMLt2ih9a6kcfE87auYD2odnjUKi1ubpJc4Tjxosw8hmfDDBZorZvpiorAZcRgrvHs5Mmz" ], "script": "base64:AAIDAAAAAAAAB3wIARIFCgMBAQESBAoCCAIaDwoBQRIKcmFuZHNDb3VudBoTCgFCEg5yZW1haW5pbmdSYW5kcxoSCgFDEg1kYXRhS2V5c0NvdW50GhEKAUQSDGRhdGFEb25lVHhJZBoPCgFFEgpsYXN0T2Zmc2V0Gg0KAUYSCHNsb3dJZHgxGg0KAUcSCHNsb3dJZHgyGg0KAUgSCGZhc3RJZHgxGg0KAUkSCGZhc3RJZHgyGhAKAUoSC3JhbmRPckVtcHR5GhEKAUsSDGZ1bGxTdGF0ZVN0choYCgFMEhNleHRyYWN0R2FtZURhdGFMaXN0Gg4KAU0SCXNlc3Npb25JZBoPCgFOEgpyYXdEYXRhU3RyGg0KAU8SCG5leHRSYW5kGggKAVASA2RpdhoICgFREgNtaW4aEQoBUhIMY3VyclJhbmRzU3RyGhIKAVMSDXJlbWFpbmluZ0hhc2gaEAoBVBILbmV4dFJhbmRJbnQaEAoBVRILbmV4dFJhbmRTdHIaDgoBVhIJZHVwbGljYXRlGhEKAVcSDGdlbmVyYXRlUmFuZBoJCgFYEgRmcm9tGgcKAVkSA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AAAABeAMJAQAAAAIhPQAAAAIFAAAAAXcFAAAAAWgJAAACAAAAAQkAASwAAAACBQAAAAFNAgAAADsgZHJhdzogaXQgbXVzdCBiZSBpbiBSRUFEWSBzdGF0ZSB0byBnZW5lcmF0ZSByYW5kb20gbnVtYmVycwMHCQAAAgAAAAECAAAAFUludmFsaWQgUlNBIHNpZ25hdHVyZQQAAAACYmQJAQAAAAFXAAAACwUAAAABTQUAAAABWAUAAAABWQUAAAABWgUAAAABUgUAAAACYVoFAAAAAmFhBQAAAAFGBQAAAAFHBQAAAAFIBQAAAAFJCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAhieXRlVmVjdAUAAAACYmQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAABTQIAAAAEdGVzdAkAAMsAAAACCQABmwAAAAEFAAAAAU0JAAGbAAAAAQUAAAABRAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAFNAgAAAAZ0ZXN0LTICAAAAAmRzBQAAAANuaWwAAAAAeCFUNQ==", "height": 1835391, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C8QmaqoeSqqVN8vV9kGAgRteHJu44WuXB3CrL6SYDEWC Next: 7XLScQ29pXMkqHTw6ufUuSYViALYvGzS74qUESaqB5Lz Diff:
OldNewDifferences
8282 let newFastIdx1 = 6
8383 let newFastIdx2 = 7
8484 let byteVect = (((((((take(drop(rsaSign, newSlowIdx1), 1) + take(drop(rsaSign, 1), 1)) + take(drop(rsaSign, newFastIdx1), 1)) + take(drop(rsaSign, 3), 1)) + take(drop(rsaSign, newSlowIdx2), 1)) + take(drop(rsaSign, 5), 1)) + take(drop(rsaSign, 6), 1)) + take(drop(rsaSign, newFastIdx2), 1))
85- WriteSet([DataEntry("byteVect", byteVect)])
85+ byteVect
8686 }
8787
8888
218218 then throw("Invalid RSA signature")
219219 else {
220220 let randGenInfo = generateRand(sessionId, from, to, rsaSign, currRandsStr, remainRandsCount, lastOffsetBytes, slowIdx1, slowIdx2, fastIdx1, fastIdx2)
221- WriteSet([DataEntry((sessionId + "test"), (toBytes(sessionId) + toBytes(dataDoneTxId))), DataEntry((sessionId + "test-2"), "ds")])
221+ WriteSet([DataEntry("byteVect", randGenInfo), DataEntry((sessionId + "test"), (toBytes(sessionId) + toBytes(dataDoneTxId))), DataEntry((sessionId + "test-2"), "ds")])
222222 }
223223 }
224224
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let RSAPUBLIC = fromBase64String("base64:LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlHZk1BMEdDU3FHU0liM0RRRUJBUVVBQTRHTkFEQ0JpUUtCZ1FDR25Hd3ZVbG1mTG5ZTkdyRSszczR2QTZRZAowa29PNzdZUjJDdTZpOWQvalE2OVJkU0hHRFlwb3hKM1gvSS84MmtpS1JRcHlwcWJjUS9UY3IxV1VRM1RDQmk1CnFmYyt4ZWVyOS9ncnhUOExJazEvVFhXVEZBQzA2M3R3V1dPbVpXcGNPN3kyZlRuUklkSFRlaUs0T1pzSyt1Z2UKOTdGS3BTbWoxcmpFVDFmM0F3SURBUUFCCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQ==")
55
66 let SERVER = addressFromStringValue("3N4vdqMsEsAZSJWfwYJcaCgUzASJTC2BWsP")
77
88 let WAVELET = ((100 * 1000) * 1000)
99
1010 let SESSIONIDFIXSIZE = 44
1111
1212 let RANDCYCLEPRICE = ((5 * WAVELET) / 1000)
1313
1414 let MAXRANDSPERCYCLE = 14
1515
1616 let STATEINIT = "INIT"
1717
1818 let DATADONE = "READY"
1919
2020 let STATEFINISHED = "FINISHED"
2121
2222 let IdxState = 0
2323
2424 let IdxOrganizerPub = 1
2525
2626 let IdxRandFrom = 2
2727
2828 let IdxRandTo = 3
2929
3030 let IdxRandsCount = 4
3131
3232 let IdxRemainRandsCount = 5
3333
3434 let IdxDataKeysCount = 6
3535
3636 let IdxDataDoneTxId = 7
3737
3838 let IdxLastOffset = 8
3939
4040 let IdxCurrRands = 13
4141
4242 func abs (val) = if ((0 > val))
4343 then -(val)
4444 else val
4545
4646
4747 func formatStateDataStr (drawState,organizerPubKey58,randFrom,randTo,randsCount,remainingRands,dataKeysCount,dataDoneTxId,lastOffset,slowIdx1,slowIdx2,fastIdx1,fastIdx2,randOrEmpty) = {
4848 let fullStateStr = ((((((((((((((((((((((((drawState + "_") + organizerPubKey58) + "_") + randFrom) + "_") + randTo) + "_") + randsCount) + "_") + remainingRands) + "_") + dataKeysCount) + "_") + dataDoneTxId) + "_") + lastOffset) + "_") + slowIdx1) + "_") + slowIdx2) + "_") + fastIdx1) + "_") + fastIdx2)
4949 if ((randOrEmpty == ""))
5050 then ((fullStateStr + "_") + "-")
5151 else ((fullStateStr + "_") + randOrEmpty)
5252 }
5353
5454
5555 func extractGameDataList (sessionId) = {
5656 let rawDataStr = getStringValue(this, sessionId)
5757 split(rawDataStr, "_")
5858 }
5959
6060
6161 func nextRand (div,min,currRandsStr,remainingRands,remainingHash) = {
6262 let nextRandInt = ((abs(toInt(remainingHash)) % div) + min)
6363 let nextRandStr = toString(nextRandInt)
6464 let duplicate = isDefined(indexOf(currRandsStr, nextRandStr))
6565 if (if (!(duplicate))
6666 then (remainingRands > 0)
6767 else false)
6868 then [((currRandsStr + "-") + nextRandStr), "yes"]
6969 else [currRandsStr, ""]
7070 }
7171
7272
7373 func generateRand (sessionId,from,to,rsaSign,currRandsStr,remainingRands,lastOffsetBytes,currSlowIdx1,currSlowIdx2,currFastIdx1,currFastIdx2) = {
7474 let newIncList = if (((lastOffsetBytes + 1) > 87))
7575 then if ((currFastIdx2 > 241))
7676 then [0, (currSlowIdx1 + 1), (currSlowIdx2 + 1), 0, 1]
7777 else [0, currSlowIdx1, currSlowIdx2, (currFastIdx1 + 1), (currFastIdx2 + 1)]
7878 else [(lastOffsetBytes + 1), currSlowIdx1, currSlowIdx2, currFastIdx1, currFastIdx2]
7979 let newOffsetBytes = 3
8080 let newSlowIdx1 = 4
8181 let newSlowIdx2 = 5
8282 let newFastIdx1 = 6
8383 let newFastIdx2 = 7
8484 let byteVect = (((((((take(drop(rsaSign, newSlowIdx1), 1) + take(drop(rsaSign, 1), 1)) + take(drop(rsaSign, newFastIdx1), 1)) + take(drop(rsaSign, 3), 1)) + take(drop(rsaSign, newSlowIdx2), 1)) + take(drop(rsaSign, 5), 1)) + take(drop(rsaSign, 6), 1)) + take(drop(rsaSign, newFastIdx2), 1))
85- WriteSet([DataEntry("byteVect", byteVect)])
85+ byteVect
8686 }
8787
8888
8989 func validateDtxKey (sessionId,dataKeysCount,data) = {
9090 let dataKeyInfo = split(data.key, "_")
9191 if ((size(dataKeyInfo) != 2))
9292 then throw("Invalid data key format. It must follow to ${sessionId}_${num}")
9393 else {
9494 let keySessionId = dataKeyInfo[0]
9595 let keyPostfix = dataKeyInfo[1]
9696 if ((sessionId != keySessionId))
9797 then throw(((("Several data keys have different sessionId: " + sessionId) + " and ") + keySessionId))
9898 else if (isDefined(getString(this, data.key)))
9999 then throw(("One of the data keys has already presented in account state: key=" + data.key))
100100 else if ((size(keyPostfix) > 4))
101101 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} length couldn't be greater than 4")
102102 else if ((take(keyPostfix, 1) == "0"))
103103 then throw("Invalid data key format. It must follow to ${sessionId}_${num} where ${num} couldn't start from 0")
104104 else {
105105 let keyPostfixIntOpt = parseInt(keyPostfix)
106106 if (isDefined(keyPostfixIntOpt))
107107 then {
108108 let keyPostfixInt = extract(keyPostfixIntOpt)
109109 if (if ((1 > keyPostfixInt))
110110 then true
111111 else (keyPostfixInt > dataKeysCount))
112112 then throw((((("Invalid data key format. It must follow to ${sessionId}_${num}" + " where ${num} must be a valid int value from 1 to ") + toString(dataKeysCount)) + " but actualNum=") + toString(keyPostfixInt)))
113113 else match data.value {
114114 case str: String =>
115115 true
116116 case _ =>
117117 throw((sessionId + " draw: only String type is accepted for data transactions"))
118118 }
119119 }
120120 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=") + keyPostfix))
121121 }
122122 }
123123 }
124124
125125
126126 func validateAndGetRandsPmt (randsCount,pmt,minDataPmt) = {
127127 let bound1 = 1000
128128 let basePrice1 = ((13 * WAVELET) / 100)
129129 let div1 = 50
130130 let diff1 = ((8 * WAVELET) / 100)
131131 let bound2 = 5000
132132 let basePrice2 = ((297 * WAVELET) / 100)
133133 let div2 = 1000
134134 let diff2 = ((143 * WAVELET) / 100)
135135 let bound3 = 50000
136136 let basePrice3 = ((1427 * WAVELET) / 100)
137137 let div3 = 5000
138138 let diff3 = ((705 * WAVELET) / 100)
139139 let minRandsPmt = if ((bound1 > randsCount))
140140 then (basePrice1 + ((randsCount / div1) * diff1))
141141 else if ((bound2 > randsCount))
142142 then (basePrice2 + (((randsCount / div2) - 1) * diff2))
143143 else if ((bound3 > randsCount))
144144 then (basePrice3 + (((randsCount / div3) - 1) * diff3))
145145 else throw("Please contact our sales team to generate more than 50k rands")
146146 let minPmt = (minRandsPmt + minDataPmt)
147147 if (isDefined(pmt.assetId))
148148 then throw("Only WAVES can be used as a payment for rands generation")
149149 else if ((minPmt > pmt.amount))
150150 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)))
151151 else minRandsPmt
152152 }
153153
154154
155155 @Callable(i)
156156 func initDraw (randFrom,randTo,randsCount) = {
157157 let sessionId = toBase58String(i.transactionId)
158158 let rangeLength = ((randTo - randFrom) + 1)
159159 let maxRangeLength = (rangeLength / 2)
160160 let randToLen = size(toString((randTo - 1)))
161161 let randsCountLen = size(toString(randsCount))
162162 let dynamicStatusLen = (((2 * randToLen) + (2 * randsCountLen)) + 4)
163163 let maxRandsCount = (((5120 - 175) - dynamicStatusLen) / (randToLen + 1))
164164 if (if ((0 >= randFrom))
165165 then true
166166 else (0 >= randTo))
167167 then throw("randFrom and randTo must be greater than 0")
168168 else if ((randFrom >= randTo))
169169 then throw("randFrom must be strict less then randTo")
170170 else if ((randsCount > rangeLength))
171171 then throw(((((((("Impossible to generate " + toString(randsCount)) + " unique numbers for provided random range [") + toString(randFrom)) + ", ") + toString(randTo)) + "] with actual size ") + toString(rangeLength)))
172172 else if ((randsCount > maxRangeLength))
173173 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)))
174174 else if ((randsCount > maxRandsCount))
175175 then throw(((((("randsCount couldn't be kept in 1 data entry: 1_randNumSpace=" + toString((randToLen + 1))) + " maxAllowedRandsCount=") + toString(maxRandsCount)) + " actualRandsCount=") + toString(randsCount)))
176176 else if (!(isDefined(i.payment)))
177177 then throw("Please provide payment to generate unique random numbers")
178178 else {
179179 let pmt = extract(i.payment)
180180 let minDataPmt = ((((WAVELET * 1) / 1000) * 33) + ((WAVELET * 4) / 1000))
181181 let randsPmt = validateAndGetRandsPmt(randsCount, pmt, minDataPmt)
182182 let dataPmt = (pmt.amount - randsPmt)
183183 let dataTxCount = (dataPmt / minDataPmt)
184184 let dataKeysCount = if ((31250 >= (dataTxCount * 5)))
185185 then (dataTxCount * 5)
186186 else 31250
187187 let organizerPubKey58 = toBase58String(i.callerPublicKey)
188188 let randsCountStr = toString(randsCount)
189189 let initState = formatStateDataStr(DATADONE, organizerPubKey58, toString(randFrom), toString(randTo), randsCountStr, randsCountStr, toString(dataKeysCount), toBase58String(i.transactionId), "0", "0", "1", "0", "1", "")
190190 ScriptResult(WriteSet([DataEntry(sessionId, initState)]), TransferSet([ScriptTransfer(SERVER, randsPmt, unit)]))
191191 }
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func random (sessionId,rsaSign) = {
198198 let drawParamsList = extractGameDataList(sessionId)
199199 let drawState = drawParamsList[IdxState]
200200 let organizerPubKey58 = drawParamsList[IdxOrganizerPub]
201201 let randsCountStr = drawParamsList[IdxRandsCount]
202202 let remainRandsCount = parseIntValue(drawParamsList[IdxRemainRandsCount])
203203 let lastOffsetBytes = parseIntValue(drawParamsList[IdxLastOffset])
204204 let currRandsStr = drawParamsList[IdxCurrRands]
205205 let fromStr = drawParamsList[IdxRandFrom]
206206 let toStr = drawParamsList[IdxRandTo]
207207 let dataDoneTxId = drawParamsList[IdxDataDoneTxId]
208208 let slowIdx1 = parseIntValue(drawParamsList[9])
209209 let slowIdx2 = parseIntValue(drawParamsList[10])
210210 let fastIdx1 = parseIntValue(drawParamsList[11])
211211 let fastIdx2 = parseIntValue(drawParamsList[12])
212212 let from = parseIntValue(fromStr)
213213 let to = parseIntValue(toStr)
214214 let organizerPubKey = fromBase58String(organizerPubKey58)
215215 if ((drawState != DATADONE))
216216 then throw((sessionId + " draw: it must be in READY state to generate random numbers"))
217217 else if (false)
218218 then throw("Invalid RSA signature")
219219 else {
220220 let randGenInfo = generateRand(sessionId, from, to, rsaSign, currRandsStr, remainRandsCount, lastOffsetBytes, slowIdx1, slowIdx2, fastIdx1, fastIdx2)
221- WriteSet([DataEntry((sessionId + "test"), (toBytes(sessionId) + toBytes(dataDoneTxId))), DataEntry((sessionId + "test-2"), "ds")])
221+ WriteSet([DataEntry("byteVect", randGenInfo), DataEntry((sessionId + "test"), (toBytes(sessionId) + toBytes(dataDoneTxId))), DataEntry((sessionId + "test-2"), "ds")])
222222 }
223223 }
224224
225225

github/deemru/w8io/169f3d6 
46.83 ms