tx · 8WhTxB3VmD9ySCYVWnnA6BFoHKj9nLDszaE83pxFGjy5 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos: -0.01400000 Waves 2024.05.21 18:44 [3115959] smart account 3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos > SELF 0.00000000 Waves
{ "type": 13, "id": "8WhTxB3VmD9ySCYVWnnA6BFoHKj9nLDszaE83pxFGjy5", "fee": 1400000, "feeAssetId": null, "timestamp": 1716306284163, "version": 2, "chainId": 84, "sender": "3N8YkRZsgDVNAxtmwU1F65EpcYMb8f7QPos", "senderPublicKey": "F7SLwr7RYVQpyocmVScFC6ooaAwewaGq6wNRDYvyiPj1", "proofs": [ "5HsriVcoHnKbpddyFtzvePhko4XAdzRxsGrj8BmnavQ8LEFbCXnvLtr1n1Jvq77V5Vv8axVZD51tTDdJB5DuHZWo" ], "script": "base64:AAIFAAAAAAAAABIIAhIGCgQIGAgIEgQKAggIEgAAAAAHAAAAABRwcmVkaWN0aW9uTWF4Q291bnRlcgAAAAAAAAAAAwAAAAAKbWF4Q291bnRlcgAAAAAAAAAABgAAAAANZGVmYXVsdFJhdGluZwAAAAAAAAAAZAAAAAAOcmF0ZUFkanVzdG1lbnQAAAAAAAAAABQBAAAAEXNlYXJjaEZvckNvdW50ZXJzAAAAAgAAAAZpdGVtSWQAAAAHY291bnRlcgQAAAARc2VhcmNoRm9yQ291bnRlcnMEAAAAByRtYXRjaDAJAAQiAAAAAQkAASwAAAACCQABLAAAAAIFAAAABml0ZW1JZAIAAAABXwkAAaQAAAABBQAAAAdjb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMCAAAAB05vIFVzZXIFAAAAEXNlYXJjaEZvckNvdW50ZXJzAQAAABlzZWFyY2hGb3JBZHJlc3NQcmVkaWN0aW9uAAAAAgAAAAZpdGVtSWQAAAAGYWRyZXNzBAAAABNzZWFyY2hGb3JQcmV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nZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kU0k+Q==", "height": 3115959, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HKZz41Q5tH4ioa1LcvbUH6wDpnpZS1jqyFskhhbhL6eF Next: BxBhUpX6MWk8mG8PzJh79gzuHYgpVyYbrAuQbsAPZ3Xb Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | let maxCounter = 6 | |
7 | 7 | ||
8 | 8 | let defaultRating = 100 | |
9 | + | ||
10 | + | let rateAdjustment = 20 | |
9 | 11 | ||
10 | 12 | func searchForCounters (itemId,counter) = { | |
11 | 13 | let searchForCounters = match getString(((itemId + "_") + toString(counter))) { | |
136 | 138 | } | |
137 | 139 | if ((searchForNewItem != itemId)) | |
138 | 140 | then throw("Item not Found") | |
139 | - | else [StringEntry(((itemId + "_") + toString(1)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), 1), IntegerEntry((itemId + "_predictionCounter"), 1), DeleteEntry(("new_" + itemId))] | |
141 | + | 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)] | |
140 | 142 | } | |
141 | 143 | } | |
142 | 144 | } |
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 | + | ||
10 | + | let rateAdjustment = 20 | |
9 | 11 | ||
10 | 12 | func searchForCounters (itemId,counter) = { | |
11 | 13 | let searchForCounters = match getString(((itemId + "_") + toString(counter))) { | |
12 | 14 | case s: String => | |
13 | 15 | s | |
14 | 16 | case _ => | |
15 | 17 | "No User" | |
16 | 18 | } | |
17 | 19 | searchForCounters | |
18 | 20 | } | |
19 | 21 | ||
20 | 22 | ||
21 | 23 | func searchForAdressPrediction (itemId,adress) = { | |
22 | 24 | let searchForPrediction = match getString(((itemId + "_") + adress)) { | |
23 | 25 | case s: String => | |
24 | 26 | s | |
25 | 27 | case _ => | |
26 | 28 | "Not Found" | |
27 | 29 | } | |
28 | 30 | searchForPrediction | |
29 | 31 | } | |
30 | 32 | ||
31 | 33 | ||
32 | 34 | func findPredictionAdresses (itemId,counter) = { | |
33 | 35 | let adressList = nil | |
34 | 36 | if ((counter >= 5)) | |
35 | 37 | then { | |
36 | 38 | let adress1 = searchForCounters(itemId, 1) | |
37 | 39 | let adress2 = searchForCounters(itemId, 2) | |
38 | 40 | let adress3 = searchForCounters(itemId, 3) | |
39 | 41 | let adress4 = searchForCounters(itemId, 4) | |
40 | 42 | let adress5 = searchForCounters(itemId, 5) | |
41 | 43 | (((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4) :+ adress5) | |
42 | 44 | } | |
43 | 45 | else if ((counter >= 4)) | |
44 | 46 | then { | |
45 | 47 | let adress1 = searchForCounters(itemId, 1) | |
46 | 48 | let adress2 = searchForCounters(itemId, 2) | |
47 | 49 | let adress3 = searchForCounters(itemId, 3) | |
48 | 50 | let adress4 = searchForCounters(itemId, 4) | |
49 | 51 | ((((adressList :+ adress1) :+ adress2) :+ adress3) :+ adress4) | |
50 | 52 | } | |
51 | 53 | else if ((counter >= 3)) | |
52 | 54 | then { | |
53 | 55 | let adress1 = searchForCounters(itemId, 1) | |
54 | 56 | let adress2 = searchForCounters(itemId, 2) | |
55 | 57 | let adress3 = searchForCounters(itemId, 3) | |
56 | 58 | (((adressList :+ adress1) :+ adress2) :+ adress3) | |
57 | 59 | } | |
58 | 60 | else if ((counter >= 2)) | |
59 | 61 | then { | |
60 | 62 | let adress1 = searchForCounters(itemId, 1) | |
61 | 63 | let adress2 = searchForCounters(itemId, 2) | |
62 | 64 | ((adressList :+ adress1) :+ adress2) | |
63 | 65 | } | |
64 | 66 | else { | |
65 | 67 | let adress1 = searchForCounters(itemId, 1) | |
66 | 68 | (adressList :+ adress1) | |
67 | 69 | } | |
68 | 70 | } | |
69 | 71 | ||
70 | 72 | ||
71 | 73 | @Callable(i) | |
72 | 74 | func adjustRatingsAndPayoutParticipants (itemId,adressList,lastCallerAdress,finalPrediction) = [StringEntry("Test123123", "final")] | |
73 | 75 | ||
74 | 76 | ||
75 | 77 | ||
76 | 78 | @Callable(i) | |
77 | 79 | func savePrediction (itemId,prediction) = { | |
78 | 80 | let clientAdress = toString(i.caller) | |
79 | 81 | let searchForUser = match getInteger(clientAdress) { | |
80 | 82 | case s: Int => | |
81 | 83 | s | |
82 | 84 | case _ => | |
83 | 85 | "no User exists" | |
84 | 86 | } | |
85 | 87 | if ((searchForUser == "no User exists")) | |
86 | 88 | then throw("User does not exist") | |
87 | 89 | else { | |
88 | 90 | let searchForCounter = match getInteger((itemId + "_counter")) { | |
89 | 91 | case s: Int => | |
90 | 92 | s | |
91 | 93 | case _ => | |
92 | 94 | -1 | |
93 | 95 | } | |
94 | 96 | if ((searchForCounter >= 1)) | |
95 | 97 | then { | |
96 | 98 | let adressList = findPredictionAdresses(itemId, searchForCounter) | |
97 | 99 | if (containsElement(adressList, clientAdress)) | |
98 | 100 | then throw("This User already gave a Prediction") | |
99 | 101 | else { | |
100 | 102 | let predictionCounter = match getInteger((itemId + "_predictionCounter")) { | |
101 | 103 | case s: Int => | |
102 | 104 | s | |
103 | 105 | case _ => | |
104 | 106 | -1 | |
105 | 107 | } | |
106 | 108 | let lastPredictionAdress = adressList[(size(adressList) - 1)] | |
107 | 109 | let lastPrediction = match getString(((itemId + "_") + lastPredictionAdress)) { | |
108 | 110 | case s: String => | |
109 | 111 | s | |
110 | 112 | case _ => | |
111 | 113 | "no Prediction Found" | |
112 | 114 | } | |
113 | 115 | let newCounter = (searchForCounter + 1) | |
114 | 116 | if ((lastPrediction == prediction)) | |
115 | 117 | then if (((predictionCounter + 1) == predictionMaxCounter)) | |
116 | 118 | then { | |
117 | 119 | let invokeAdjustRating = invoke(this, "adjustRatingsAndPayoutParticipants", [itemId, adressList, clientAdress, prediction], nil) | |
118 | 120 | if ((invokeAdjustRating != invokeAdjustRating)) | |
119 | 121 | then throw("Strict value is not equal to itself.") | |
120 | 122 | 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)] | |
121 | 123 | } | |
122 | 124 | 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)] | |
123 | 125 | else if ((newCounter >= maxCounter)) | |
124 | 126 | 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)] | |
125 | 127 | else if (((predictionCounter - 1) == -1)) | |
126 | 128 | 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))] | |
127 | 129 | 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))] | |
128 | 130 | } | |
129 | 131 | } | |
130 | 132 | else { | |
131 | 133 | let searchForNewItem = match getString(("new_" + itemId)) { | |
132 | 134 | case s: String => | |
133 | 135 | s | |
134 | 136 | case _ => | |
135 | 137 | "not Found" | |
136 | 138 | } | |
137 | 139 | if ((searchForNewItem != itemId)) | |
138 | 140 | then throw("Item not Found") | |
139 | - | else [StringEntry(((itemId + "_") + toString(1)), clientAdress), StringEntry(((itemId + "_") + clientAdress), prediction), IntegerEntry((itemId + "_counter"), 1), IntegerEntry((itemId + "_predictionCounter"), 1), DeleteEntry(("new_" + itemId))] | |
141 | + | 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)] | |
140 | 142 | } | |
141 | 143 | } | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | ||
146 | 148 | @Callable(i) | |
147 | 149 | func registerUser () = { | |
148 | 150 | let clientAdress = toString(i.caller) | |
149 | 151 | let searchForUser = match getInteger(clientAdress) { | |
150 | 152 | case s: Int => | |
151 | 153 | s | |
152 | 154 | case _ => | |
153 | 155 | -1 | |
154 | 156 | } | |
155 | 157 | if ((searchForUser != -1)) | |
156 | 158 | then throw("User already exists") | |
157 | 159 | else [IntegerEntry(clientAdress, defaultRating), IntegerEntry("Test123", searchForUser)] | |
158 | 160 | } | |
159 | 161 | ||
160 | 162 | ||
161 | 163 | @Verifier(tx) | |
162 | 164 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
163 | 165 |
github/deemru/w8io/026f985 45.73 ms ◑