tx · FskmJc8UxCa366Sfu9WSRr8ooabB75wUb7PXeNde16y2 3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP: -0.01400000 Waves 2021.11.18 19:13 [1796697] smart account 3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP > SELF 0.00000000 Waves
{ "type": 13, "id": "FskmJc8UxCa366Sfu9WSRr8ooabB75wUb7PXeNde16y2", "fee": 1400000, "feeAssetId": null, "timestamp": 1637252112300, "version": 2, "chainId": 84, "sender": "3MrFUxcMycRcQDahrA16JhvuEKnbmMF3QZP", "senderPublicKey": "HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq", "proofs": [ "29Xkch3wbnX9BMM61KJMs3zn3BhdTWBtmUSaRcrBmAHP3G61WsdtCCg4yiEQA8yV4qF9C4SC5MxFAcwSVPeV4WRs" ], "script": "base64:AAIDAAAAAAAAAB0IARIFCgMIAQgSAwoBCBIAEgQKAggIEgUKAwgICAAAACEAAAAADm93bmVyUHVibGljS2V5AQAAACD6+lAsvaY9/ICsFhS1sYMY13YGhvh1jT1AiPapnK+uIAAAAAALcHViS2V5QWxpY2UBAAAAIPr6UCy9pj38gKwWFLWxgxjXdgaG+HWNPUCI9qmcr64gAAAAAAlwdWJLZXlCb2IBAAAAIJSwJHqny7GXkLqb/9sX0sw4nnCkaYeDrScKSJwbx9dLAAAAAAxwdWJLZXlDb29wZXIBAAAAIMviW1daO0ECCbLD7je58oUri4AFkKl3dlICXnEszUFIAAAAAAROT05FAgAAAARub25lAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAGVk9USU5HAgAAAAZ2b3RpbmcAAAAABlJFVkVBTAIAAAAGcmV2ZWFsAAAAAAhGRUFUVVJFRAIAAAAIZmVhdHVyZWQAAAAACERFTElTVEVEAgAAAAhkZWxpc3RlZAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAADbnVtBAAAAAckbWF0Y2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Ym9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGCQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAtzaWduZWRBbGljZQUAAAAJc2lnbmVkQm9iBQAAAAxzaWduZWRDb29wZXIAAAAAAAAAAAJmhy3i", "height": 1796697, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DWWsmmagwQrYiKSwGXesgoabCgs64tiJpzPDMtbwqxew Next: 8845T3SQdj5j6xih5MkB5WTa3Ko5dSpJMdaJHamQpi1S Diff:
Old | New | Differences | |
---|---|---|---|
191 | 191 | then throw("reveal data not valid") | |
192 | 192 | else if ((f > K(t))) | |
193 | 193 | then throw("max num of voters hasn't reached yet") | |
194 | - | else if (if ((Q != j)) | |
195 | - | then (Q != k) | |
196 | - | else false) | |
197 | - | then throw("wrong vote") | |
198 | - | else WriteSet([DataEntry(L(t, w), Q), DataEntry(P(t, Q), ae), DataEntry(N(t), if ((ae >= g)) | |
199 | - | then Q | |
200 | - | else i)]) | |
194 | + | else if ((M(t, w) != e)) | |
195 | + | then throw("user has already participated") | |
196 | + | else if (if ((ac != h)) | |
197 | + | then (ac != i) | |
198 | + | else false) | |
199 | + | then throw("wrong status") | |
200 | + | else if (if ((Q != j)) | |
201 | + | then (Q != k) | |
202 | + | else false) | |
203 | + | then throw("wrong vote") | |
204 | + | else if (if ((ac == j)) | |
205 | + | then true | |
206 | + | else (ac == k)) | |
207 | + | then throw("vote has finished") | |
208 | + | else WriteSet([DataEntry(L(t, w), Q), DataEntry(P(t, Q), ae), DataEntry(N(t), if ((ae >= g)) | |
209 | + | then Q | |
210 | + | else i)]) | |
201 | 211 | } | |
202 | 212 | ||
203 | 213 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq' | |
5 | 5 | ||
6 | 6 | let b = base58'HtiJZF4j7Jo8jR12wxtKDkNhS3qCe3qsk8QxnnjVvXyq' | |
7 | 7 | ||
8 | 8 | let c = base58'B1R7zeh6VgTv4Xxe3aHhdoZ9aQgWcqN8LFC9smacE96r' | |
9 | 9 | ||
10 | 10 | let d = base58'EisxKQktzqqd4UsxE7UgVjSHqoWindUpjoB7dsDwfG4o' | |
11 | 11 | ||
12 | 12 | let e = "none" | |
13 | 13 | ||
14 | 14 | let f = 3 | |
15 | 15 | ||
16 | 16 | let g = 2 | |
17 | 17 | ||
18 | 18 | let h = "voting" | |
19 | 19 | ||
20 | 20 | let i = "reveal" | |
21 | 21 | ||
22 | 22 | let j = "featured" | |
23 | 23 | ||
24 | 24 | let k = "delisted" | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = { | |
28 | 28 | let o = getInteger(this, m) | |
29 | 29 | if ($isInstanceOf(o, "Int")) | |
30 | 30 | then { | |
31 | 31 | let p = o | |
32 | 32 | p | |
33 | 33 | } | |
34 | 34 | else 0 | |
35 | 35 | } | |
36 | 36 | n | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (m) = { | |
41 | 41 | let r = { | |
42 | 42 | let o = getString(this, m) | |
43 | 43 | if ($isInstanceOf(o, "String")) | |
44 | 44 | then { | |
45 | 45 | let p = o | |
46 | 46 | p | |
47 | 47 | } | |
48 | 48 | else e | |
49 | 49 | } | |
50 | 50 | r | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func s (t) = (t + "_price") | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func u (t) = l(s(t)) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func v (w,t) = (((t + "_") + w) + "_cnt") | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func x (w,t) = l(v(w, t)) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func y (z,A) = ("item_" + toBase58String(sha256(toBytes((z + A))))) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func B (t) = (t + "_data") | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func C (t) = (t + "_owner") | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func D (t) = q(C(t)) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func E (F) = (F + "_balance") | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func G (F) = l(E(F)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func H (t,w) = (((t + "_") + w) + "_commit") | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func I (t,w) = q(H(t, w)) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func J (t) = (t + "_comcnt") | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func K (t) = l(J(t)) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func L (t,w) = (((t + "_") + w) + "_reveal") | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func M (t,w) = q(L(t, w)) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func N (t) = (t + "_status") | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func O (t) = q(N(t)) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func P (t,Q) = ((t + "_res:") + Q) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (t,Q) = l(P(t, Q)) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(S) | |
115 | 115 | func addItem (A,T,U) = { | |
116 | 116 | let V = toBase58String(S.caller.bytes) | |
117 | 117 | let t = y(V, A) | |
118 | 118 | if ((0 >= T)) | |
119 | 119 | then throw("purchase amount cannot be less than item price") | |
120 | 120 | else if ((D(t) != e)) | |
121 | 121 | then throw("an item is already exist") | |
122 | 122 | else WriteSet([DataEntry(C(t), V), DataEntry(s(t), T), DataEntry(B(t), U)]) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | ||
127 | 127 | @Callable(S) | |
128 | 128 | func purchase (W) = { | |
129 | 129 | let X = extract(S.payment) | |
130 | 130 | if (isDefined(X.assetId)) | |
131 | 131 | then throw("can use WAVES only at the moment") | |
132 | 132 | else if (!(isDefined(W))) | |
133 | 133 | then throw("You must select Item") | |
134 | 134 | else { | |
135 | 135 | let Y = toBase58String(S.caller.bytes) | |
136 | 136 | let T = u(W) | |
137 | 137 | let V = D(W) | |
138 | 138 | if ((T > X.amount)) | |
139 | 139 | then throw("purchase amoun cannot be less than item price") | |
140 | 140 | else if ((X.amount > T)) | |
141 | 141 | then throw("purchase amoun cannot be higher than item price") | |
142 | 142 | else if ((V == e)) | |
143 | 143 | then throw("supplier does not exist") | |
144 | 144 | else WriteSet([DataEntry(v(Y, W), (x(Y, W) + 1)), DataEntry(E(V), (G(V) + X.amount))]) | |
145 | 145 | } | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | ||
150 | 150 | @Callable(S) | |
151 | 151 | func withdraw () = { | |
152 | 152 | let V = toBase58String(S.caller.bytes) | |
153 | 153 | let Z = G(V) | |
154 | 154 | if ((0 >= Z)) | |
155 | 155 | then throw("no money - no honey") | |
156 | 156 | else ScriptResult(WriteSet([DataEntry(E(V), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(V), Z, unit)])) | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | ||
161 | 161 | @Callable(S) | |
162 | 162 | func voteCommit (t,aa) = if ((C(t) == e)) | |
163 | 163 | then throw("item does not exist") | |
164 | 164 | else { | |
165 | 165 | let w = toBase58String(S.caller.bytes) | |
166 | 166 | let ab = K(t) | |
167 | 167 | let ac = O(t) | |
168 | 168 | if ((ab >= f)) | |
169 | 169 | then throw("reached max num of voters") | |
170 | 170 | else if ((I(t, w) != e)) | |
171 | 171 | then throw("user has already participated") | |
172 | 172 | else if (if ((ac != e)) | |
173 | 173 | then (ac != h) | |
174 | 174 | else false) | |
175 | 175 | then throw("voting is not possible") | |
176 | 176 | else WriteSet([DataEntry(H(t, w), aa), DataEntry(J(t), (ab + 1)), DataEntry(N(t), if (((ab + 1) == f)) | |
177 | 177 | then i | |
178 | 178 | else h)]) | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(S) | |
184 | 184 | func voteReveal (t,Q,ad) = if ((C(t) == e)) | |
185 | 185 | then throw("item does not exist") | |
186 | 186 | else { | |
187 | 187 | let w = toBase58String(S.caller.bytes) | |
188 | 188 | let ac = O(t) | |
189 | 189 | let ae = (R(t, Q) + 1) | |
190 | 190 | if ((toBase58String(sha256(toBytes((Q + ad)))) != I(t, w))) | |
191 | 191 | then throw("reveal data not valid") | |
192 | 192 | else if ((f > K(t))) | |
193 | 193 | then throw("max num of voters hasn't reached yet") | |
194 | - | else if (if ((Q != j)) | |
195 | - | then (Q != k) | |
196 | - | else false) | |
197 | - | then throw("wrong vote") | |
198 | - | else WriteSet([DataEntry(L(t, w), Q), DataEntry(P(t, Q), ae), DataEntry(N(t), if ((ae >= g)) | |
199 | - | then Q | |
200 | - | else i)]) | |
194 | + | else if ((M(t, w) != e)) | |
195 | + | then throw("user has already participated") | |
196 | + | else if (if ((ac != h)) | |
197 | + | then (ac != i) | |
198 | + | else false) | |
199 | + | then throw("wrong status") | |
200 | + | else if (if ((Q != j)) | |
201 | + | then (Q != k) | |
202 | + | else false) | |
203 | + | then throw("wrong vote") | |
204 | + | else if (if ((ac == j)) | |
205 | + | then true | |
206 | + | else (ac == k)) | |
207 | + | then throw("vote has finished") | |
208 | + | else WriteSet([DataEntry(L(t, w), Q), DataEntry(P(t, Q), ae), DataEntry(N(t), if ((ae >= g)) | |
209 | + | then Q | |
210 | + | else i)]) | |
201 | 211 | } | |
202 | 212 | ||
203 | 213 | ||
204 | 214 | @Verifier(af) | |
205 | 215 | func ag () = { | |
206 | 216 | let ah = if (if (if (sigVerify(af.bodyBytes, af.proofs[0], b)) | |
207 | 217 | then true | |
208 | 218 | else sigVerify(af.bodyBytes, af.proofs[1], b)) | |
209 | 219 | then true | |
210 | 220 | else sigVerify(af.bodyBytes, af.proofs[2], b)) | |
211 | 221 | then 1 | |
212 | 222 | else 0 | |
213 | 223 | let ai = if (if (if (sigVerify(af.bodyBytes, af.proofs[0], c)) | |
214 | 224 | then true | |
215 | 225 | else sigVerify(af.bodyBytes, af.proofs[1], c)) | |
216 | 226 | then true | |
217 | 227 | else sigVerify(af.bodyBytes, af.proofs[2], c)) | |
218 | 228 | then 1 | |
219 | 229 | else 0 | |
220 | 230 | let aj = if (if (if (sigVerify(af.bodyBytes, af.proofs[0], d)) | |
221 | 231 | then true | |
222 | 232 | else sigVerify(af.bodyBytes, af.proofs[1], d)) | |
223 | 233 | then true | |
224 | 234 | else sigVerify(af.bodyBytes, af.proofs[2], d)) | |
225 | 235 | then 1 | |
226 | 236 | else 0 | |
227 | 237 | let o = af | |
228 | 238 | if ($isInstanceOf(o, "SetScriptTransaction")) | |
229 | 239 | then { | |
230 | 240 | let ak = o | |
231 | 241 | sigVerify(af.bodyBytes, af.proofs[0], a) | |
232 | 242 | } | |
233 | 243 | else if ($isInstanceOf(o, "DataTransaction")) | |
234 | 244 | then { | |
235 | 245 | let ak = o | |
236 | 246 | true | |
237 | 247 | } | |
238 | 248 | else (((ah + ai) + aj) >= 2) | |
239 | 249 | } | |
240 | 250 |
github/deemru/w8io/026f985 32.39 ms ◑