tx · 7cZihdB6jum9cwmofEsk1q9K5juMWRe9d7QFZ5hhxtYo 3NB6ViLiZv3r5EdQ2Q8GA8GKpuwmG3zevAt: -0.05000000 Waves 2019.08.16 21:38 [634014] smart account 3NB6ViLiZv3r5EdQ2Q8GA8GKpuwmG3zevAt > SELF 0.00000000 Waves
{ "type": 13, "id": "7cZihdB6jum9cwmofEsk1q9K5juMWRe9d7QFZ5hhxtYo", "fee": 5000000, "feeAssetId": null, "timestamp": 1565980594652, "version": 1, "sender": "3NB6ViLiZv3r5EdQ2Q8GA8GKpuwmG3zevAt", "senderPublicKey": "3ghbp6Z5eXoKniLSE8XPjn5od7gT1K7qhk6zANBhv9C3", "proofs": [ "2HjNfweBkEMLBsLX7fe6FTC6z9vmDjaNuFtud3GNacG7D1t3D7VRkiRovREydX5tpLYBSCm5QrCS7spnb1iuv6mu" ], "script": "base64:AAIDAAAAAAAAAAAAAAAlAAAAAA5vd25lclB1YmxpY2tleQEAAAAgJ+LupRtywYm1DtC2wa7+mcHTm1BkasCvRteam1vswWgAAAAADGFsbGljZVB1YmtleQEAAAAgdahQG7OF8VCvnmrXif7UUhoQjaCrm/2hFDfEk/59nDEAAAAACWJvYlB1YmtleQEAAAAgoHwmi+qXZSlN20yTARZQ9O8s6pUs/3qey7EnxhpjMk8AAAAADGNvb3BlclB1YmtleQEAAAAgU/w5K0kRwpKzXSOUcyJ72drbib04bPq1q9XqkXENjioAAAAABE5PTkUCAAAABG5vbmUAAAAABlZPVEVSUwAAAAAAAAAAAwAAAAAGUVVPUlVNAAAAAAAAAAACAAAAAAZWT1RJTkcCAAAABnZvdGluZwAAAAAGUkVWRUFMAgAAAAZyZXZlYWwAAAAACEZFQVRVUkVEAgAAAAhmZWF0dXJlZAAAAAAIREVMSVNURUQCAAAACGRlbGlzdGVkAAAAAAh2ZXJpZmllcgIAAAAjM01zOXNVYjdXM0w1NUxMR3hlSFdpcWdUZmRIOXluMm1heWIAAAAACFZFUklGSUVEAgAAAAh2ZXJpZm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hQcbf8vUzWN87ZeuyRu4rpQN8kUV Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | let VERIFIED = "verified" | |
29 | 29 | ||
30 | 30 | let BLACKLISTED = "blacklist" | |
31 | + | ||
32 | + | let maxAuctionDuration = (1440 * 30) | |
31 | 33 | ||
32 | 34 | func getNumberByKey (key) = { | |
33 | 35 | let num = match getInteger(this, key) { | |
109 | 111 | ||
110 | 112 | ||
111 | 113 | func getValueVouteCount (item,voute) = getNumberByKey(getKeyVoteCount(item, voute)) | |
114 | + | ||
115 | + | ||
116 | + | @Callable(i) | |
117 | + | func startAuction (duration,startPrice,priceAssetId) = { | |
118 | + | let auctionId = toBase58String(i.transactionId) | |
119 | + | let endHeight = (lastBlock.height + duration) | |
120 | + | let pmt = extract(i.payment) | |
121 | + | if ((duration > maxAuctionDuration)) | |
122 | + | then throw(("Duration is too long. Must be less than " + toString(maxAuctionDuration))) | |
123 | + | else WriteSet([DataEntry(auctionId, endHeight), DataEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), DataEntry((auctionId + "_lot_assetId"), if (isDefined(pmt.assetId)) | |
124 | + | then toBase58String(value(pmt.assetId)) | |
125 | + | else "WAVES"), DataEntry((auctionId + "_lot_amount"), pmt.amount), DataEntry((auctionId + "_startPrice"), startPrice), DataEntry((auctionId + "_priceAssetId"), priceAssetId)]) | |
126 | + | } | |
127 | + | ||
112 | 128 | ||
113 | 129 | ||
114 | 130 | @Callable(i) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ownerPublickey = base58'3ghbp6Z5eXoKniLSE8XPjn5od7gT1K7qhk6zANBhv9C3' | |
5 | 5 | ||
6 | 6 | let allicePubkey = base58'8vHZLEG3BmzYYVjQyNi1m11kh6FeSoVAKKwtsYXC3bqA' | |
7 | 7 | ||
8 | 8 | let bobPubkey = base58'BoU2oQn7y52MZgT1Q7vJCJwUxov9tXb2zpC5gmWQbutJ' | |
9 | 9 | ||
10 | 10 | let cooperPubkey = base58'6equaSt4fnw6gEoLGiL3dTDDGxDc4PY5NyV3gVkEEr1F' | |
11 | 11 | ||
12 | 12 | let NONE = "none" | |
13 | 13 | ||
14 | 14 | let VOTERS = 3 | |
15 | 15 | ||
16 | 16 | let QUORUM = 2 | |
17 | 17 | ||
18 | 18 | let VOTING = "voting" | |
19 | 19 | ||
20 | 20 | let REVEAL = "reveal" | |
21 | 21 | ||
22 | 22 | let FEATURED = "featured" | |
23 | 23 | ||
24 | 24 | let DELISTED = "delisted" | |
25 | 25 | ||
26 | 26 | let verifier = "3Ms9sUb7W3L55LLGxeHWiqgTfdH9yn2mayb" | |
27 | 27 | ||
28 | 28 | let VERIFIED = "verified" | |
29 | 29 | ||
30 | 30 | let BLACKLISTED = "blacklist" | |
31 | + | ||
32 | + | let maxAuctionDuration = (1440 * 30) | |
31 | 33 | ||
32 | 34 | func getNumberByKey (key) = { | |
33 | 35 | let num = match getInteger(this, key) { | |
34 | 36 | case a: Int => | |
35 | 37 | a | |
36 | 38 | case _ => | |
37 | 39 | 0 | |
38 | 40 | } | |
39 | 41 | num | |
40 | 42 | } | |
41 | 43 | ||
42 | 44 | ||
43 | 45 | func getStrByKey (key) = { | |
44 | 46 | let str = match getString(this, key) { | |
45 | 47 | case a: String => | |
46 | 48 | a | |
47 | 49 | case _ => | |
48 | 50 | NONE | |
49 | 51 | } | |
50 | 52 | str | |
51 | 53 | } | |
52 | 54 | ||
53 | 55 | ||
54 | 56 | func getKeyItemPrice (item) = (item + "_price") | |
55 | 57 | ||
56 | 58 | ||
57 | 59 | func getValueItemPrice (item) = getNumberByKey(getKeyItemPrice(item)) | |
58 | 60 | ||
59 | 61 | ||
60 | 62 | func getKeyUserItemCounter (user,item) = (((item + "_") + user) + "_cnt") | |
61 | 63 | ||
62 | 64 | ||
63 | 65 | func getValueUserItemCounter (user,item) = getNumberByKey(getKeyUserItemCounter(user, item)) | |
64 | 66 | ||
65 | 67 | ||
66 | 68 | func getKeyItem (supplier,title) = ("item_" + toBase58String(sha256(toBytes((supplier + title))))) | |
67 | 69 | ||
68 | 70 | ||
69 | 71 | func getKeyItemData (item) = (item + "_data") | |
70 | 72 | ||
71 | 73 | ||
72 | 74 | func getKeyItemSupplier (item) = (item + "_owner") | |
73 | 75 | ||
74 | 76 | ||
75 | 77 | func getValueItemSupplier (item) = getStrByKey(getKeyItemSupplier(item)) | |
76 | 78 | ||
77 | 79 | ||
78 | 80 | func getKeyBalanceSupplier (account) = (account + "_balance") | |
79 | 81 | ||
80 | 82 | ||
81 | 83 | func getValueBalanceSupplier (account) = getNumberByKey(getKeyBalanceSupplier(account)) | |
82 | 84 | ||
83 | 85 | ||
84 | 86 | func getKeyCommit (item,user) = (((item + "_") + user) + "_commit") | |
85 | 87 | ||
86 | 88 | ||
87 | 89 | func getValueCommit (item,user) = getStrByKey(getKeyCommit(item, user)) | |
88 | 90 | ||
89 | 91 | ||
90 | 92 | func getKeyCommitsCount (item) = (item + "_comcnt") | |
91 | 93 | ||
92 | 94 | ||
93 | 95 | func getValueCommitsCount (item) = getNumberByKey(getKeyCommitsCount(item)) | |
94 | 96 | ||
95 | 97 | ||
96 | 98 | func getKeyReveal (item,user) = (((item + "_") + user) + "_reveal") | |
97 | 99 | ||
98 | 100 | ||
99 | 101 | func getValueReveal (item,user) = getStrByKey(getKeyReveal(item, user)) | |
100 | 102 | ||
101 | 103 | ||
102 | 104 | func getKeyItemStatus (item) = (item + "_status") | |
103 | 105 | ||
104 | 106 | ||
105 | 107 | func getValueItemStatus (item) = getStrByKey(getKeyItemStatus(item)) | |
106 | 108 | ||
107 | 109 | ||
108 | 110 | func getKeyVoteCount (item,voute) = ((item + "_res:") + voute) | |
109 | 111 | ||
110 | 112 | ||
111 | 113 | func getValueVouteCount (item,voute) = getNumberByKey(getKeyVoteCount(item, voute)) | |
114 | + | ||
115 | + | ||
116 | + | @Callable(i) | |
117 | + | func startAuction (duration,startPrice,priceAssetId) = { | |
118 | + | let auctionId = toBase58String(i.transactionId) | |
119 | + | let endHeight = (lastBlock.height + duration) | |
120 | + | let pmt = extract(i.payment) | |
121 | + | if ((duration > maxAuctionDuration)) | |
122 | + | then throw(("Duration is too long. Must be less than " + toString(maxAuctionDuration))) | |
123 | + | else WriteSet([DataEntry(auctionId, endHeight), DataEntry((auctionId + "_organizer"), toBase58String(i.caller.bytes)), DataEntry((auctionId + "_lot_assetId"), if (isDefined(pmt.assetId)) | |
124 | + | then toBase58String(value(pmt.assetId)) | |
125 | + | else "WAVES"), DataEntry((auctionId + "_lot_amount"), pmt.amount), DataEntry((auctionId + "_startPrice"), startPrice), DataEntry((auctionId + "_priceAssetId"), priceAssetId)]) | |
126 | + | } | |
127 | + | ||
112 | 128 | ||
113 | 129 | ||
114 | 130 | @Callable(i) | |
115 | 131 | func purchase (item) = { | |
116 | 132 | let pmt = extract(i.payment) | |
117 | 133 | if (isDefined(pmt.assetId)) | |
118 | 134 | then throw("can use Waves only at the moment") | |
119 | 135 | else { | |
120 | 136 | let userAddress = toBase58String(i.caller.bytes) | |
121 | 137 | let price = getValueItemPrice(item) | |
122 | 138 | let supplierAddress = getValueItemSupplier(item) | |
123 | 139 | if ((price > pmt.amount)) | |
124 | 140 | then throw("purchase amount cannot be less than item price") | |
125 | 141 | else if ((pmt.amount > price)) | |
126 | 142 | then throw("purchase amount cannot be higher than item price") | |
127 | 143 | else if ((supplierAddress == NONE)) | |
128 | 144 | then throw("supplier is not exist") | |
129 | 145 | else WriteSet([DataEntry(getKeyUserItemCounter(userAddress, item), (getValueUserItemCounter(userAddress, item) + 1)), DataEntry(getKeyBalanceSupplier(supplierAddress), (getValueBalanceSupplier(supplierAddress) + pmt.amount))]) | |
130 | 146 | } | |
131 | 147 | } | |
132 | 148 | ||
133 | 149 | ||
134 | 150 | ||
135 | 151 | @Callable(i) | |
136 | 152 | func addItem (title,price,data) = { | |
137 | 153 | let supplierAddress = toBase58String(i.caller.bytes) | |
138 | 154 | let item = getKeyItem(supplierAddress, title) | |
139 | 155 | if ((0 >= price)) | |
140 | 156 | then throw("purchase amount cannot be less than item price") | |
141 | 157 | else if ((getValueItemSupplier(item) != NONE)) | |
142 | 158 | then throw("An item is allready exist") | |
143 | 159 | else if ((supplierAddress == BLACKLISTED)) | |
144 | 160 | then throw("supplier's account has been blacklist") | |
145 | 161 | else WriteSet([DataEntry(getKeyItemSupplier(item), supplierAddress), DataEntry(getKeyItemPrice(item), price), DataEntry(getKeyItemData(item), data)]) | |
146 | 162 | } | |
147 | 163 | ||
148 | 164 | ||
149 | 165 | ||
150 | 166 | @Callable(i) | |
151 | 167 | func deposit () = { | |
152 | 168 | let pmt = extract(i.payment) | |
153 | 169 | let supplierAddress = toBase58String(i.caller.bytes) | |
154 | 170 | let balance = getValueBalanceSupplier(supplierAddress) | |
155 | 171 | let newBalance = (balance + pmt.amount) | |
156 | 172 | if (isDefined(pmt.assetId)) | |
157 | 173 | then throw("can hodl waves only at the moment") | |
158 | 174 | else if ((0 > pmt.amount)) | |
159 | 175 | then throw("Can not deposit negative amount") | |
160 | 176 | else WriteSet([DataEntry(getKeyBalanceSupplier(supplierAddress), newBalance)]) | |
161 | 177 | } | |
162 | 178 | ||
163 | 179 | ||
164 | 180 | ||
165 | 181 | @Callable(i) | |
166 | 182 | func withdraw (amount) = { | |
167 | 183 | let supplierAddress = toBase58String(i.caller.bytes) | |
168 | 184 | let balance = getValueBalanceSupplier(supplierAddress) | |
169 | 185 | let newBalance = (balance - amount) | |
170 | 186 | if ((0 > amount)) | |
171 | 187 | then throw("Can not withdraw negative amount") | |
172 | 188 | else if ((0 > newBalance)) | |
173 | 189 | then throw("not enough balance") | |
174 | 190 | else if ((0 >= balance)) | |
175 | 191 | then throw("insufficient balance") | |
176 | 192 | else ScriptResult(WriteSet([DataEntry(getKeyBalanceSupplier(supplierAddress), newBalance)]), TransferSet([ScriptTransfer(addressFromStringValue(supplierAddress), amount, unit)])) | |
177 | 193 | } | |
178 | 194 | ||
179 | 195 | ||
180 | 196 | ||
181 | 197 | @Callable(i) | |
182 | 198 | func voteCommit (item,hash) = { | |
183 | 199 | let user = toBase58String(i.caller.bytes) | |
184 | 200 | let commits = getValueCommitsCount(item) | |
185 | 201 | let status = getValueItemStatus(item) | |
186 | 202 | if ((commits >= VOTERS)) | |
187 | 203 | then throw("reached max num of vouters") | |
188 | 204 | else if ((getValueCommit(item, user) != NONE)) | |
189 | 205 | then throw("user has allready participated") | |
190 | 206 | else if ((getKeyItemSupplier(item) == NONE)) | |
191 | 207 | then throw("item dose not exist") | |
192 | 208 | else if (if ((status != NONE)) | |
193 | 209 | then (status != VOTING) | |
194 | 210 | else false) | |
195 | 211 | then throw("vouting is not posible") | |
196 | 212 | else WriteSet([DataEntry(getKeyCommit(item, user), hash), DataEntry(getKeyCommitsCount(item), (commits + 1)), DataEntry(getKeyItemStatus(item), if ((commits == VOTERS)) | |
197 | 213 | then REVEAL | |
198 | 214 | else VOTING)]) | |
199 | 215 | } | |
200 | 216 | ||
201 | 217 | ||
202 | 218 | ||
203 | 219 | @Callable(i) | |
204 | 220 | func voteReveal (item,vote,salt) = { | |
205 | 221 | let user = toBase58String(i.caller.bytes) | |
206 | 222 | let status = getValueItemStatus(item) | |
207 | 223 | let newVoteCount = getValueVouteCount(item, vote) | |
208 | 224 | if ((toBase58String(sha256(toBytes((vote + salt)))) != getValueCommit(item, user))) | |
209 | 225 | then throw("reveal data is not valid") | |
210 | 226 | else if ((VOTERS > getValueCommitsCount(item))) | |
211 | 227 | then throw("max num of hasn't reached yet") | |
212 | 228 | else if ((getValueReveal(item, user) != NONE)) | |
213 | 229 | then throw("user has already participated") | |
214 | 230 | else if (if ((status != VOTING)) | |
215 | 231 | then (status != REVEAL) | |
216 | 232 | else false) | |
217 | 233 | then throw("wrong status") | |
218 | 234 | else if (if ((vote != FEATURED)) | |
219 | 235 | then (vote != DELISTED) | |
220 | 236 | else false) | |
221 | 237 | then throw("wrong vote") | |
222 | 238 | else if (if ((status == FEATURED)) | |
223 | 239 | then true | |
224 | 240 | else (status == DELISTED)) | |
225 | 241 | then throw("vote has finished") | |
226 | 242 | else WriteSet([DataEntry(getKeyReveal(item, user), vote), DataEntry(getKeyVoteCount(item, vote), newVoteCount), DataEntry(getKeyItemStatus(item), if ((newVoteCount >= QUORUM)) | |
227 | 243 | then vote | |
228 | 244 | else REVEAL)]) | |
229 | 245 | } | |
230 | 246 | ||
231 | 247 | ||
232 | 248 | @Verifier(tx) | |
233 | 249 | func verify () = { | |
234 | 250 | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], allicePubkey) | |
235 | 251 | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], allicePubkey) | |
236 | 252 | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], allicePubkey) | |
237 | 253 | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPubkey) | |
238 | 254 | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPubkey) | |
239 | 255 | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPubkey) | |
240 | 256 | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubkey) | |
241 | 257 | let copper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubkey) | |
242 | 258 | let copper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubkey) | |
243 | 259 | let alliceAndBob = if (if (if (if (if (if (alice1) | |
244 | 260 | then bob2 | |
245 | 261 | else false) | |
246 | 262 | then true | |
247 | 263 | else if (alice1) | |
248 | 264 | then bob3 | |
249 | 265 | else false) | |
250 | 266 | then true | |
251 | 267 | else if (alice2) | |
252 | 268 | then bob1 | |
253 | 269 | else false) | |
254 | 270 | then true | |
255 | 271 | else if (alice2) | |
256 | 272 | then bob3 | |
257 | 273 | else false) | |
258 | 274 | then true | |
259 | 275 | else if (alice3) | |
260 | 276 | then bob1 | |
261 | 277 | else false) | |
262 | 278 | then true | |
263 | 279 | else if (alice3) | |
264 | 280 | then bob2 | |
265 | 281 | else false | |
266 | 282 | let alliceAndCooper = if (if (if (if (if (if (alice1) | |
267 | 283 | then copper2 | |
268 | 284 | else false) | |
269 | 285 | then true | |
270 | 286 | else if (alice1) | |
271 | 287 | then copper3 | |
272 | 288 | else false) | |
273 | 289 | then true | |
274 | 290 | else if (alice2) | |
275 | 291 | then cooper1 | |
276 | 292 | else false) | |
277 | 293 | then true | |
278 | 294 | else if (alice2) | |
279 | 295 | then copper3 | |
280 | 296 | else false) | |
281 | 297 | then true | |
282 | 298 | else if (alice3) | |
283 | 299 | then cooper1 | |
284 | 300 | else false) | |
285 | 301 | then true | |
286 | 302 | else if (alice3) | |
287 | 303 | then copper2 | |
288 | 304 | else false | |
289 | 305 | let bobeAndCooper = if (if (if (if (if (if (cooper1) | |
290 | 306 | then bob2 | |
291 | 307 | else false) | |
292 | 308 | then true | |
293 | 309 | else if (cooper1) | |
294 | 310 | then bob3 | |
295 | 311 | else false) | |
296 | 312 | then true | |
297 | 313 | else if (copper2) | |
298 | 314 | then bob1 | |
299 | 315 | else false) | |
300 | 316 | then true | |
301 | 317 | else if (copper2) | |
302 | 318 | then bob3 | |
303 | 319 | else false) | |
304 | 320 | then true | |
305 | 321 | else if (copper3) | |
306 | 322 | then bob1 | |
307 | 323 | else false) | |
308 | 324 | then true | |
309 | 325 | else if (copper3) | |
310 | 326 | then bob2 | |
311 | 327 | else false | |
312 | 328 | match tx { | |
313 | 329 | case d: SetScriptTransaction => | |
314 | 330 | sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublickey) | |
315 | 331 | case d: DataTransaction => | |
316 | 332 | true | |
317 | 333 | case _ => | |
318 | 334 | if (if (alliceAndBob) | |
319 | 335 | then true | |
320 | 336 | else alliceAndCooper) | |
321 | 337 | then true | |
322 | 338 | else bobeAndCooper | |
323 | 339 | } | |
324 | 340 | } | |
325 | 341 |
github/deemru/w8io/169f3d6 47.91 ms ◑