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/8i1OVqeOeBVscIi9bTehRMFsBoQapAMYYAAAAAAxwYXlvdXRBbW91bnQAAAAAAAX14QABAAAAEXNlYXJjaEZvckNvdW50ZXJzAAAAAgAAAAZpdGVtSWQAAAAHY291bnRlcgQAAAARc2VhcmNoRm9yQ291bnRlcnMEAAAAByRtYXRjaDAJAAQiAAAAAQkAASwAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAABXwkAAaQAAAABBQAAAAdjb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMCAAAAB05vIFVzZXIFAAAAEXNlYXJjaEZvckN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Z2lzdGVyVXNlcgAAAAAEAAAADGNsaWVudEFkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAADXNlYXJjaEZvclVzZXIEAAAAByRtYXRjaDAJAAQfAAAAAQUAAAAMY2xpZW50QWRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMA//////////8DCQEAAAACIT0AAAACBQAAAA1zZWFyY2hGb3JVc2VyAP//////////CQAAAgAAAAECAAAAE1VzZXIgYWxyZWFkeSBleGlzdHMJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADGNsaWVudEFkcmVzcwUAAAANZGVmYXVsdFJhdGluZwUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl2Wgps", "height": 3125532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8WhTxB3VmD9ySCYVWnnA6BFoHKj9nLDszaE83pxFGjy5 Next: AuWQBNTbpHNsfeXZ7JdsNzTq2TmW9ZgJqbocuevNvLpc Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | let defaultRating = 100 | |
9 | 9 | ||
10 | 10 | let rateAdjustment = 20 | |
11 | + | ||
12 | + | let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH' | |
13 | + | ||
14 | + | let payoutAmount = 100000000 | |
11 | 15 | ||
12 | 16 | func searchForCounters (itemId,counter) = { | |
13 | 17 | let searchForCounters = match getString(((itemId + "_") + toString(counter))) { | |
20 | 24 | } | |
21 | 25 | ||
22 | 26 | ||
23 | - | func | |
27 | + | func searchForAddressPrediction (itemId,adress) = { | |
24 | 28 | let searchForPrediction = match getString(((itemId + "_") + adress)) { | |
25 | 29 | case s: String => | |
26 | 30 | s | |
32 | 36 | ||
33 | 37 | ||
34 | 38 | func findPredictionAdresses (itemId,counter) = { | |
35 | - | let adressList = nil | |
36 | - | if ((counter >= 5)) | |
39 | + | let adressList = if ((counter >= 5)) | |
37 | 40 | then { | |
38 | 41 | let adress1 = searchForCounters(itemId, 1) | |
39 | 42 | let adress2 = searchForCounters(itemId, 2) | |
40 | 43 | let adress3 = searchForCounters(itemId, 3) | |
41 | 44 | let adress4 = searchForCounters(itemId, 4) | |
42 | 45 | let adress5 = searchForCounters(itemId, 5) | |
43 | - | ((((( | |
46 | + | (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5) | |
44 | 47 | } | |
45 | 48 | else if ((counter >= 4)) | |
46 | 49 | then { | |
48 | 51 | let adress2 = searchForCounters(itemId, 2) | |
49 | 52 | let adress3 = searchForCounters(itemId, 3) | |
50 | 53 | let adress4 = searchForCounters(itemId, 4) | |
51 | - | (((( | |
54 | + | ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) | |
52 | 55 | } | |
53 | 56 | else if ((counter >= 3)) | |
54 | 57 | then { | |
55 | 58 | let adress1 = searchForCounters(itemId, 1) | |
56 | 59 | let adress2 = searchForCounters(itemId, 2) | |
57 | 60 | let adress3 = searchForCounters(itemId, 3) | |
58 | - | ((( | |
61 | + | (((nil :+ adress1) :+ adress2) :+ adress3) | |
59 | 62 | } | |
60 | 63 | else if ((counter >= 2)) | |
61 | 64 | then { | |
62 | 65 | let adress1 = searchForCounters(itemId, 1) | |
63 | 66 | let adress2 = searchForCounters(itemId, 2) | |
64 | - | (( | |
67 | + | ((nil :+ adress1) :+ adress2) | |
65 | 68 | } | |
66 | 69 | else { | |
67 | 70 | let adress1 = searchForCounters(itemId, 1) | |
68 | - | ( | |
71 | + | (nil :+ adress1) | |
69 | 72 | } | |
73 | + | adressList | |
70 | 74 | } | |
71 | 75 | ||
72 | 76 | ||
73 | 77 | @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 | + | } | |
75 | 115 | ||
76 | 116 | ||
77 | 117 | ||
156 | 196 | } | |
157 | 197 | if ((searchForUser != -1)) | |
158 | 198 | then throw("User already exists") | |
159 | - | else [IntegerEntry(clientAdress, defaultRating) | |
199 | + | else [IntegerEntry(clientAdress, defaultRating)] | |
160 | 200 | } | |
161 | 201 | ||
162 | 202 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let predictionMaxCounter = 3 | |
5 | 5 | ||
6 | 6 | let maxCounter = 6 | |
7 | 7 | ||
8 | 8 | let defaultRating = 100 | |
9 | 9 | ||
10 | 10 | let rateAdjustment = 20 | |
11 | + | ||
12 | + | let tokenId = base58'8QGJvsXqJ43q5ksFymoPKF1NWWhwUfr2F7h52oeWgVhH' | |
13 | + | ||
14 | + | let payoutAmount = 100000000 | |
11 | 15 | ||
12 | 16 | func searchForCounters (itemId,counter) = { | |
13 | 17 | let searchForCounters = match getString(((itemId + "_") + toString(counter))) { | |
14 | 18 | case s: String => | |
15 | 19 | s | |
16 | 20 | case _ => | |
17 | 21 | "No User" | |
18 | 22 | } | |
19 | 23 | searchForCounters | |
20 | 24 | } | |
21 | 25 | ||
22 | 26 | ||
23 | - | func | |
27 | + | func searchForAddressPrediction (itemId,adress) = { | |
24 | 28 | let searchForPrediction = match getString(((itemId + "_") + adress)) { | |
25 | 29 | case s: String => | |
26 | 30 | s | |
27 | 31 | case _ => | |
28 | 32 | "Not Found" | |
29 | 33 | } | |
30 | 34 | searchForPrediction | |
31 | 35 | } | |
32 | 36 | ||
33 | 37 | ||
34 | 38 | func findPredictionAdresses (itemId,counter) = { | |
35 | - | let adressList = nil | |
36 | - | if ((counter >= 5)) | |
39 | + | let adressList = if ((counter >= 5)) | |
37 | 40 | then { | |
38 | 41 | let adress1 = searchForCounters(itemId, 1) | |
39 | 42 | let adress2 = searchForCounters(itemId, 2) | |
40 | 43 | let adress3 = searchForCounters(itemId, 3) | |
41 | 44 | let adress4 = searchForCounters(itemId, 4) | |
42 | 45 | let adress5 = searchForCounters(itemId, 5) | |
43 | - | ((((( | |
46 | + | (((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5) | |
44 | 47 | } | |
45 | 48 | else if ((counter >= 4)) | |
46 | 49 | then { | |
47 | 50 | let adress1 = searchForCounters(itemId, 1) | |
48 | 51 | let adress2 = searchForCounters(itemId, 2) | |
49 | 52 | let adress3 = searchForCounters(itemId, 3) | |
50 | 53 | let adress4 = searchForCounters(itemId, 4) | |
51 | - | (((( | |
54 | + | ((((nil :+ adress1) :+ adress2) :+ adress3) :+ adress4) | |
52 | 55 | } | |
53 | 56 | else if ((counter >= 3)) | |
54 | 57 | then { | |
55 | 58 | let adress1 = searchForCounters(itemId, 1) | |
56 | 59 | let adress2 = searchForCounters(itemId, 2) | |
57 | 60 | let adress3 = searchForCounters(itemId, 3) | |
58 | - | ((( | |
61 | + | (((nil :+ adress1) :+ adress2) :+ adress3) | |
59 | 62 | } | |
60 | 63 | else if ((counter >= 2)) | |
61 | 64 | then { | |
62 | 65 | let adress1 = searchForCounters(itemId, 1) | |
63 | 66 | let adress2 = searchForCounters(itemId, 2) | |
64 | - | (( | |
67 | + | ((nil :+ adress1) :+ adress2) | |
65 | 68 | } | |
66 | 69 | else { | |
67 | 70 | let adress1 = searchForCounters(itemId, 1) | |
68 | - | ( | |
71 | + | (nil :+ adress1) | |
69 | 72 | } | |
73 | + | adressList | |
70 | 74 | } | |
71 | 75 | ||
72 | 76 | ||
73 | 77 | @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 | + | } | |
75 | 115 | ||
76 | 116 | ||
77 | 117 | ||
78 | 118 | @Callable(i) | |
79 | 119 | func savePrediction (itemId,prediction) = { | |
80 | 120 | let clientAdress = toString(i.caller) | |
81 | 121 | let searchForUser = match getInteger(clientAdress) { | |
82 | 122 | case s: Int => | |
83 | 123 | s | |
84 | 124 | case _ => | |
85 | 125 | "no User exists" | |
86 | 126 | } | |
87 | 127 | if ((searchForUser == "no User exists")) | |
88 | 128 | then throw("User does not exist") | |
89 | 129 | else { | |
90 | 130 | let searchForCounter = match getInteger((itemId + "_counter")) { | |
91 | 131 | case s: Int => | |
92 | 132 | s | |
93 | 133 | case _ => | |
94 | 134 | -1 | |
95 | 135 | } | |
96 | 136 | if ((searchForCounter >= 1)) | |
97 | 137 | then { | |
98 | 138 | let adressList = findPredictionAdresses(itemId, searchForCounter) | |
99 | 139 | if (containsElement(adressList, clientAdress)) | |
100 | 140 | then throw("This User already gave a Prediction") | |
101 | 141 | else { | |
102 | 142 | let predictionCounter = match getInteger((itemId + "_predictionCounter")) { | |
103 | 143 | case s: Int => | |
104 | 144 | s | |
105 | 145 | case _ => | |
106 | 146 | -1 | |
107 | 147 | } | |
108 | 148 | let lastPredictionAdress = adressList[(size(adressList) - 1)] | |
109 | 149 | let lastPrediction = match getString(((itemId + "_") + lastPredictionAdress)) { | |
110 | 150 | case s: String => | |
111 | 151 | s | |
112 | 152 | case _ => | |
113 | 153 | "no Prediction Found" | |
114 | 154 | } | |
115 | 155 | let newCounter = (searchForCounter + 1) | |
116 | 156 | if ((lastPrediction == prediction)) | |
117 | 157 | then if (((predictionCounter + 1) == predictionMaxCounter)) | |
118 | 158 | then { | |
119 | 159 | let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil) | |
120 | 160 | if ((invokeAdjustRating != invokeAdjustRating)) | |
121 | 161 | then throw("Strict value is not equal to itself.") | |
122 | 162 | 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)] | |
123 | 163 | } | |
124 | 164 | 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)] | |
125 | 165 | else if ((newCounter >= maxCounter)) | |
126 | 166 | 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)] | |
127 | 167 | else if (((predictionCounter - 1) == -1)) | |
128 | 168 | 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))] | |
129 | 169 | 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))] | |
130 | 170 | } | |
131 | 171 | } | |
132 | 172 | else { | |
133 | 173 | let searchForNewItem = match getString(("new_" + itemId)) { | |
134 | 174 | case s: String => | |
135 | 175 | s | |
136 | 176 | case _ => | |
137 | 177 | "not Found" | |
138 | 178 | } | |
139 | 179 | if ((searchForNewItem != itemId)) | |
140 | 180 | then throw("Item not Found") | |
141 | 181 | 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)] | |
142 | 182 | } | |
143 | 183 | } | |
144 | 184 | } | |
145 | 185 | ||
146 | 186 | ||
147 | 187 | ||
148 | 188 | @Callable(i) | |
149 | 189 | func registerUser () = { | |
150 | 190 | let clientAdress = toString(i.caller) | |
151 | 191 | let searchForUser = match getInteger(clientAdress) { | |
152 | 192 | case s: Int => | |
153 | 193 | s | |
154 | 194 | case _ => | |
155 | 195 | -1 | |
156 | 196 | } | |
157 | 197 | if ((searchForUser != -1)) | |
158 | 198 | then throw("User already exists") | |
159 | - | else [IntegerEntry(clientAdress, defaultRating) | |
199 | + | else [IntegerEntry(clientAdress, defaultRating)] | |
160 | 200 | } | |
161 | 201 | ||
162 | 202 | ||
163 | 203 | @Verifier(tx) | |
164 | 204 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
165 | 205 |
github/deemru/w8io/026f985 37.52 ms ◑