tx · BxBhUpX6MWk8mG8PzJh79gzuHYgpVyYbrAuQbsAPZ3Xb

3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos:  -0.01400000 Waves

2024.05.28 10:30 [3125532] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves

{ "type": 13, "id": "BxBhUpX6MWk8mG8PzJh79gzuHYgpVyYbrAuQbsAPZ3Xb", "fee": 1400000, "feeAssetId": null, "timestamp": 1716881355052, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "5Tbk5YVHGGPaMmmJQwdxvNFwQGKQWcY4Ezr5AePwMTPN4AmeTer6XiHFQD9Wg2n1QDFt8fipDsMzfGDMFkBVCKj5" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAAJAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQAAAAAB3Rva2VuSWQBAAAAIG33eiemmz/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QABAAAAEXNlYXJjaEZvckNvdW50ZXJzAAAAAgAAAAZpdGVtSWQAAAAHY291bnRlcgQAAAARc2VhcmNoRm9yQ291bnRlcnMEAAAAByRtYXRjaDAJAAQiAAAAAQkAASwAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAABXwkAAaQAAAABBQAAAAdjb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMCAAAAB05vIFVzZXIFAAAAEXNlYXJjaEZvck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lZ2lzdGVyVXNlcgAAAAAEAAAADGNsaWVudEFkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAADXNlYXJjaEZvclVzZXIEAAAAByRtYXRjaDAJAAQfAAAAAQUAAAAMY2xpZW50QWRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMA//////////8DCQEAAAACIT0AAAACBQAAAA1zZWFyY2hGb3JVc2VyAP//////////CQAAAgAAAAECAAAAE1VzZXIgYWxyZWFkeSBleGlzdHMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADGNsaWVudEFkcmVzcwUAAAANZGVmYXVsdFJhdGluZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl2Wgps", "height": 3125532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8WhTxB3VmD9ySCYVWnnA6BFoHKj9nLDszaE83pxFGjy5 Next: AuWQBNTbpHNsfeXZ7JdsNzTq2TmW9ZgJqbocuevNvLpc Diff:
OldNewDifferences
88 let defaultRating = 100
99
1010 let rateAdjustment = 20
11+
12+let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
13+
14+let payoutAmount = 100000000
1115
1216 func searchForCounters (itemId,counter) = {
1317 let searchForCounters = match getString(((itemId + "_") + toString(counter))) {
2024 }
2125
2226
23-func searchForAdressPrediction (itemId,adress) = {
27+func searchForAddressPrediction (itemId,adress) = {
2428 let searchForPrediction = match getString(((itemId + "_") + adress)) {
2529 case s: String =>
2630 s
3236
3337
3438 func findPredictionAdresses (itemId,counter) = {
35- let adressList = nil
36- if ((counter >= 5))
39+ let adressList = if ((counter >= 5))
3740 then {
3841 let adress1 = searchForCounters(itemId, 1)
3942 let adress2 = searchForCounters(itemId, 2)
4043 let adress3 = searchForCounters(itemId, 3)
4144 let adress4 = searchForCounters(itemId, 4)
4245 let adress5 = searchForCounters(itemId, 5)
43- (((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
46+ (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
4447 }
4548 else if ((counter >= 4))
4649 then {
4851 let adress2 = searchForCounters(itemId, 2)
4952 let adress3 = searchForCounters(itemId, 3)
5053 let adress4 = searchForCounters(itemId, 4)
51- ((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4)
54+ ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4)
5255 }
5356 else if ((counter >= 3))
5457 then {
5558 let adress1 = searchForCounters(itemId, 1)
5659 let adress2 = searchForCounters(itemId, 2)
5760 let adress3 = searchForCounters(itemId, 3)
58- (((adressList :+ adress1) :+ adress2) :+ adress3)
61+ (((nil :+ adress1) :+ adress2) :+ adress3)
5962 }
6063 else if ((counter >= 2))
6164 then {
6265 let adress1 = searchForCounters(itemId, 1)
6366 let adress2 = searchForCounters(itemId, 2)
64- ((adressList :+ adress1) :+ adress2)
67+ ((nil :+ adress1) :+ adress2)
6568 }
6669 else {
6770 let adress1 = searchForCounters(itemId, 1)
68- (adressList :+ adress1)
71+ (nil :+ adress1)
6972 }
73+ adressList
7074 }
7175
7276
7377 @Callable(i)
74-func adjustRatingsAndPayoutParticipants (itemId,adressList,lastCallerAdress,finalPrediction) = [StringEntry("Test123123", "final")]
78+func adjustRatingsAndPayoutParticipants (itemId,addressList,lastCallerAddress,finalPrediction) = {
79+ func updateRatingsFunc (accum,address) = {
80+ let rating = match getInteger(address) {
81+ case r: Int =>
82+ r
83+ case _ =>
84+ defaultRating
85+ }
86+ let prediction = searchForAddressPrediction(itemId, address)
87+ let updatedRating = if ((prediction == finalPrediction))
88+ then (rating + rateAdjustment)
89+ else (rating - rateAdjustment)
90+ let payout = if ((prediction == finalPrediction))
91+ then payoutAmount
92+ else 0
93+ let updatedEntries = (accum :+ IntegerEntry(address, updatedRating))
94+ if ((payout > 0))
95+ then (updatedEntries :+ ScriptTransfer(Address(fromBase58String(address)), payout, tokenId))
96+ else updatedEntries
97+ }
98+
99+ let updatedRatings = {
100+ let $l = addressList
101+ let $s = size($l)
102+ let $acc0 = nil
103+ func $f0_1 ($a,$i) = if (($i >= $s))
104+ then $a
105+ else updateRatingsFunc($a, $l[$i])
106+
107+ func $f0_2 ($a,$i) = if (($i >= $s))
108+ then $a
109+ else throw("List size exceeds 5")
110+
111+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
112+ }
113+ (updatedRatings :+ BooleanEntry((itemId + "_adjusted"), true))
114+ }
75115
76116
77117
156196 }
157197 if ((searchForUser != -1))
158198 then throw("User already exists")
159- else [IntegerEntry(clientAdress, defaultRating), IntegerEntry("Test123", searchForUser)]
199+ else [IntegerEntry(clientAdress, defaultRating)]
160200 }
161201
162202
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let predictionMaxCounter = 3
55
66 let maxCounter = 6
77
88 let defaultRating = 100
99
1010 let rateAdjustment = 20
11+
12+let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH'
13+
14+let payoutAmount = 100000000
1115
1216 func searchForCounters (itemId,counter) = {
1317 let searchForCounters = match getString(((itemId + "_") + toString(counter))) {
1418 case s: String =>
1519 s
1620 case _ =>
1721 "No User"
1822 }
1923 searchForCounters
2024 }
2125
2226
23-func searchForAdressPrediction (itemId,adress) = {
27+func searchForAddressPrediction (itemId,adress) = {
2428 let searchForPrediction = match getString(((itemId + "_") + adress)) {
2529 case s: String =>
2630 s
2731 case _ =>
2832 "Not Found"
2933 }
3034 searchForPrediction
3135 }
3236
3337
3438 func findPredictionAdresses (itemId,counter) = {
35- let adressList = nil
36- if ((counter >= 5))
39+ let adressList = if ((counter >= 5))
3740 then {
3841 let adress1 = searchForCounters(itemId, 1)
3942 let adress2 = searchForCounters(itemId, 2)
4043 let adress3 = searchForCounters(itemId, 3)
4144 let adress4 = searchForCounters(itemId, 4)
4245 let adress5 = searchForCounters(itemId, 5)
43- (((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
46+ (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5)
4447 }
4548 else if ((counter >= 4))
4649 then {
4750 let adress1 = searchForCounters(itemId, 1)
4851 let adress2 = searchForCounters(itemId, 2)
4952 let adress3 = searchForCounters(itemId, 3)
5053 let adress4 = searchForCounters(itemId, 4)
51- ((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4)
54+ ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4)
5255 }
5356 else if ((counter >= 3))
5457 then {
5558 let adress1 = searchForCounters(itemId, 1)
5659 let adress2 = searchForCounters(itemId, 2)
5760 let adress3 = searchForCounters(itemId, 3)
58- (((adressList :+ adress1) :+ adress2) :+ adress3)
61+ (((nil :+ adress1) :+ adress2) :+ adress3)
5962 }
6063 else if ((counter >= 2))
6164 then {
6265 let adress1 = searchForCounters(itemId, 1)
6366 let adress2 = searchForCounters(itemId, 2)
64- ((adressList :+ adress1) :+ adress2)
67+ ((nil :+ adress1) :+ adress2)
6568 }
6669 else {
6770 let adress1 = searchForCounters(itemId, 1)
68- (adressList :+ adress1)
71+ (nil :+ adress1)
6972 }
73+ adressList
7074 }
7175
7276
7377 @Callable(i)
74-func adjustRatingsAndPayoutParticipants (itemId,adressList,lastCallerAdress,finalPrediction) = [StringEntry("Test123123", "final")]
78+func adjustRatingsAndPayoutParticipants (itemId,addressList,lastCallerAddress,finalPrediction) = {
79+ func updateRatingsFunc (accum,address) = {
80+ let rating = match getInteger(address) {
81+ case r: Int =>
82+ r
83+ case _ =>
84+ defaultRating
85+ }
86+ let prediction = searchForAddressPrediction(itemId, address)
87+ let updatedRating = if ((prediction == finalPrediction))
88+ then (rating + rateAdjustment)
89+ else (rating - rateAdjustment)
90+ let payout = if ((prediction == finalPrediction))
91+ then payoutAmount
92+ else 0
93+ let updatedEntries = (accum :+ IntegerEntry(address, updatedRating))
94+ if ((payout > 0))
95+ then (updatedEntries :+ ScriptTransfer(Address(fromBase58String(address)), payout, tokenId))
96+ else updatedEntries
97+ }
98+
99+ let updatedRatings = {
100+ let $l = addressList
101+ let $s = size($l)
102+ let $acc0 = nil
103+ func $f0_1 ($a,$i) = if (($i >= $s))
104+ then $a
105+ else updateRatingsFunc($a, $l[$i])
106+
107+ func $f0_2 ($a,$i) = if (($i >= $s))
108+ then $a
109+ else throw("List size exceeds 5")
110+
111+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
112+ }
113+ (updatedRatings :+ BooleanEntry((itemId + "_adjusted"), true))
114+ }
75115
76116
77117
78118 @Callable(i)
79119 func savePrediction (itemId,prediction) = {
80120 let clientAdress = toString(i.caller)
81121 let searchForUser = match getInteger(clientAdress) {
82122 case s: Int =>
83123 s
84124 case _ =>
85125 "no User exists"
86126 }
87127 if ((searchForUser == "no User exists"))
88128 then throw("User does not exist")
89129 else {
90130 let searchForCounter = match getInteger((itemId + "_counter")) {
91131 case s: Int =>
92132 s
93133 case _ =>
94134 -1
95135 }
96136 if ((searchForCounter >= 1))
97137 then {
98138 let adressList = findPredictionAdresses(itemId, searchForCounter)
99139 if (containsElement(adressList, clientAdress))
100140 then throw("This User already gave a Prediction")
101141 else {
102142 let predictionCounter = match getInteger((itemId + "_predictionCounter")) {
103143 case s: Int =>
104144 s
105145 case _ =>
106146 -1
107147 }
108148 let lastPredictionAdress = adressList[(size(adressList) - 1)]
109149 let lastPrediction = match getString(((itemId + "_") + lastPredictionAdress)) {
110150 case s: String =>
111151 s
112152 case _ =>
113153 "no Prediction Found"
114154 }
115155 let newCounter = (searchForCounter + 1)
116156 if ((lastPrediction == prediction))
117157 then if (((predictionCounter + 1) == predictionMaxCounter))
118158 then {
119159 let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil)
120160 if ((invokeAdjustRating != invokeAdjustRating))
121161 then throw("Strict value is not equal to itself.")
122162 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter + 1)), BooleanEntry((itemId + "_final"), true), BooleanEntry((itemId + "_cancelled"), false)]
123163 }
124164 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter + 1)), BooleanEntry((itemId + "_final"), false), BooleanEntry((itemId + "_cancelled"), false)]
125165 else if ((newCounter >= maxCounter))
126166 then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter - 1)), BooleanEntry((itemId + "_cancelled"), true), BooleanEntry((itemId + "_final"), false)]
127167 else if (((predictionCounter - 1) == -1))
128168 then [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), 1), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false), StringEntry("test", lastPrediction), IntegerEntry("test2", size(adressList))]
129169 else [StringEntry(((itemId + "_") + toString(newCounter)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), newCounter), IntegerEntry((itemId + "_predictionCounter"), (predictionCounter - 1)), BooleanEntry((itemId + "_cancelled"), false), BooleanEntry((itemId + "_final"), false), StringEntry("test", lastPrediction), IntegerEntry("test2", size(adressList))]
130170 }
131171 }
132172 else {
133173 let searchForNewItem = match getString(("new_" + itemId)) {
134174 case s: String =>
135175 s
136176 case _ =>
137177 "not Found"
138178 }
139179 if ((searchForNewItem != itemId))
140180 then throw("Item not Found")
141181 else [StringEntry(((itemId + "_") + toString(1)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), 1), IntegerEntry((itemId + "_predictionCounter"), 1), DeleteEntry(("new_" + itemId)), StringEntry(("updated_" + itemId), itemId)]
142182 }
143183 }
144184 }
145185
146186
147187
148188 @Callable(i)
149189 func registerUser () = {
150190 let clientAdress = toString(i.caller)
151191 let searchForUser = match getInteger(clientAdress) {
152192 case s: Int =>
153193 s
154194 case _ =>
155195 -1
156196 }
157197 if ((searchForUser != -1))
158198 then throw("User already exists")
159- else [IntegerEntry(clientAdress, defaultRating), IntegerEntry("Test123", searchForUser)]
199+ else [IntegerEntry(clientAdress, defaultRating)]
160200 }
161201
162202
163203 @Verifier(tx)
164204 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
165205

github/deemru/w8io/026f985 
38.84 ms