tx · 3oV4wXKCwxuW1kR5eYLfbrUv2FDdBkJcYNS3xhEZnSCy 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2020.02.08 14:37 [890216] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "3oV4wXKCwxuW1kR5eYLfbrUv2FDdBkJcYNS3xhEZnSCy", "fee": 1400000, "feeAssetId": null, "timestamp": 1581161853732, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "1sGfDetWntf1bUmrfF1WDxtuenLm1q9qaveCk2ExQTPr7ELqBAGV6amnHeVN9ok4GqH8gKi49ia1qN9TjYR4KCc" ], "script": "base64:AAIDAAAAAAAAAB4IARIGCgQICAgIEgUKAwgICBIFCgMICAgSBAoCCAgAAAALAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAQAAAApjaGVja0VudHJ5AAAAAgAAAAZwcmVmaXgAAAAEdXVpZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABnByZWZpeAUAAAAEdXVpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FAQAAAAljaGVja1VVSUQAAAABAAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAA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AAAAGc2lnbmVyAgAAAARfTUFfBQAAAAthZ3JlZW1lbnRJZAkAASwAAAACAgAAAAdTSUdORURfCQACWAAAAAEFAAAAAmlkBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAZzaWduZXIAAAAAAAAHoSAFAAAABHVuaXQFAAAAA25pbAAAAAAr8sZt", "chainId": 84, "height": 890216, "spentComplexity": 0 } View: original | compacted Prev: 4QparfGcsQhcQ2AbW7zTB1DsPT4Xrmd78gxHCAx4LRQZ Next: 7CuBqMEVx8WtnTjkaoZbSpCnZJ7HJ9MB1yzvkZ3Ne8my Diff:
Old | New | Differences | |
---|---|---|---|
186 | 186 | let globalDataTitle = DataEntry(("title_MA_" + toBase58String(id)), title) | |
187 | 187 | let globalDataHash = DataEntry(("hash_MA_" + toBase58String(id)), hash) | |
188 | 188 | let globalDataJson = DataEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), addresses) | |
189 | - | let globalDataOwner = DataEntry | |
189 | + | let globalDataOwner = DataEntry(((callerAddress + "_MA_") + toBase58String(id)), ("SIGNED_" + toBase58String(id))) | |
190 | 190 | let dataWhiteListed = DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)) | |
191 | - | if ((totalAddresses == | |
191 | + | if ((totalAddresses == 1)) | |
192 | 192 | then if ((callerIsWhiteListedNum > 0)) | |
193 | 193 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
194 | 194 | then throw("You don't have enough certification credit") | |
195 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING") | |
195 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)])) | |
196 | 196 | else { | |
197 | 197 | let payment = extract(invoke.payment) | |
198 | 198 | let amount = if (isDefined(payment.amount)) | |
204 | 204 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
205 | 205 | if (((currentPrice * totalAddresses) > amount)) | |
206 | 206 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
207 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING") | |
207 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)])) | |
208 | 208 | } | |
209 | - | else if ((totalAddresses == | |
209 | + | else if ((totalAddresses == 2)) | |
210 | 210 | then if ((callerIsWhiteListedNum > 0)) | |
211 | 211 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
212 | 212 | then throw("You don't have enough certification credit") | |
213 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING") | |
213 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)])) | |
214 | 214 | else { | |
215 | 215 | let payment = extract(invoke.payment) | |
216 | 216 | let amount = if (isDefined(payment.amount)) | |
222 | 222 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
223 | 223 | if (((currentPrice * totalAddresses) > amount)) | |
224 | 224 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
225 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING") | |
225 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)])) | |
226 | 226 | } | |
227 | - | else if ((totalAddresses == | |
227 | + | else if ((totalAddresses == 3)) | |
228 | 228 | then if ((callerIsWhiteListedNum > 0)) | |
229 | 229 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
230 | 230 | then throw("You don't have enough certification credit") | |
231 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING") | |
231 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)])) | |
232 | 232 | else { | |
233 | 233 | let payment = extract(invoke.payment) | |
234 | 234 | let amount = if (isDefined(payment.amount)) | |
240 | 240 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
241 | 241 | if (((currentPrice * totalAddresses) > amount)) | |
242 | 242 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
243 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING") | |
243 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)])) | |
244 | 244 | } | |
245 | - | else if ((totalAddresses == | |
245 | + | else if ((totalAddresses == 4)) | |
246 | 246 | then if ((callerIsWhiteListedNum > 0)) | |
247 | 247 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
248 | 248 | then throw("You don't have enough certification credit") | |
249 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING") | |
249 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)])) | |
250 | 250 | else { | |
251 | 251 | let payment = extract(invoke.payment) | |
252 | 252 | let amount = if (isDefined(payment.amount)) | |
258 | 258 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
259 | 259 | if (((currentPrice * totalAddresses) > amount)) | |
260 | 260 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
261 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING") | |
261 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)])) | |
262 | 262 | } | |
263 | - | else if ((totalAddresses == | |
263 | + | else if ((totalAddresses == 5)) | |
264 | 264 | then if ((callerIsWhiteListedNum > 0)) | |
265 | 265 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
266 | 266 | then throw("You don't have enough certification credit") | |
267 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING") | |
267 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)])) | |
268 | 268 | else { | |
269 | 269 | let payment = extract(invoke.payment) | |
270 | 270 | let amount = if (isDefined(payment.amount)) | |
276 | 276 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
277 | 277 | if (((currentPrice * totalAddresses) > amount)) | |
278 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
279 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING") | |
279 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)])) | |
280 | 280 | } | |
281 | - | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
281 | + | else if ((totalAddresses == 6)) | |
282 | + | then if ((callerIsWhiteListedNum > 0)) | |
283 | + | then if ((totalAddresses > callerIsWhiteListedNum)) | |
284 | + | then throw("You don't have enough certification credit") | |
285 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)])) | |
286 | + | else { | |
287 | + | let payment = extract(invoke.payment) | |
288 | + | let amount = if (isDefined(payment.amount)) | |
289 | + | then extract(payment.amount) | |
290 | + | else 0 | |
291 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
292 | + | then extract(payment.assetId) | |
293 | + | else acceptedToken | |
294 | + | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
295 | + | if (((currentPrice * totalAddresses) > amount)) | |
296 | + | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
297 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)])) | |
298 | + | } | |
299 | + | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
282 | 300 | } | |
283 | 301 | ||
284 | 302 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let verifier = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) { | |
11 | 11 | case a: String => | |
12 | 12 | a | |
13 | 13 | case _ => | |
14 | 14 | "NONE" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func checkUUID (uuid) = match getString(this, uuid) { | |
19 | 19 | case a: String => | |
20 | 20 | a | |
21 | 21 | case _ => | |
22 | 22 | "NONE" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) { | |
27 | 27 | case a: Int => | |
28 | 28 | a | |
29 | 29 | case _ => | |
30 | 30 | 0 | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func isAdress (addr) = if (if ((size(addr) == 35)) | |
35 | 35 | then (take(addr, 2) == "3N") | |
36 | 36 | else false) | |
37 | 37 | then true | |
38 | 38 | else (take(addr, 2) == "3M") | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
42 | 42 | then (accumulator + 1) | |
43 | 43 | else (accumulator + 0) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func checkIfPendingToSign (key) = match getString(this, key) { | |
47 | 47 | case a: String => | |
48 | 48 | if ((a == "PENDING")) | |
49 | 49 | then true | |
50 | 50 | else false | |
51 | 51 | case _ => | |
52 | 52 | false | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\""))) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getValue (json,key) = { | |
60 | 60 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
61 | 61 | let data = drop(json, ((keyIndex + size(key)) + 3)) | |
62 | 62 | let jsonValue = getValueString(data) | |
63 | 63 | jsonValue | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | @Callable(invoke) | |
68 | 68 | func fileCertification (hash,title,uuid,data) = { | |
69 | 69 | let id = extract(invoke.transactionId) | |
70 | 70 | let entryExist = checkEntry(hash, uuid) | |
71 | 71 | let uuidExist = checkUUID(uuid) | |
72 | 72 | let callerAddress = toBase58String(invoke.caller.bytes) | |
73 | 73 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
74 | 74 | if ((entryExist != "NONE")) | |
75 | 75 | then throw("This entry already exist") | |
76 | 76 | else if ((uuidExist != "NONE")) | |
77 | 77 | then throw("This uuid already exist") | |
78 | 78 | else if ((size(uuid) > 36)) | |
79 | 79 | then throw("Uuid is too long") | |
80 | 80 | else if ((size(hash) > 64)) | |
81 | 81 | then throw("Hash is too long") | |
82 | 82 | else if ((size(title) > 64)) | |
83 | 83 | then throw("Title is too long") | |
84 | 84 | else if ((callerIsWhiteListedNum > 0)) | |
85 | 85 | then ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((hash + uuid), toBase58String(id)), DataEntry((title + uuid), toBase58String(id)), DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(invoke.caller, 500000, unit)])) | |
86 | 86 | else { | |
87 | 87 | let payment = extract(invoke.payment) | |
88 | 88 | let amount = extract(payment.amount) | |
89 | 89 | let paymentAssetId = if (isDefined(payment.assetId)) | |
90 | 90 | then extract(payment.assetId) | |
91 | 91 | else throw("Waves is not accepted as payment") | |
92 | 92 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
93 | 93 | if ((acceptedToken != paymentAssetId)) | |
94 | 94 | then throw("This token is not accepted at the moment") | |
95 | 95 | else if (if ((amount != currentPrice)) | |
96 | 96 | then (0 >= callerIsWhiteListedNum) | |
97 | 97 | else false) | |
98 | 98 | then throw("The price is wrong") | |
99 | 99 | else ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((hash + uuid), toBase58String(id)), DataEntry((title + uuid), toBase58String(id)), DataEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)])) | |
100 | 100 | } | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | ||
105 | 105 | @Callable(invoke) | |
106 | 106 | func emailCertification (messageid,uuid,data) = { | |
107 | 107 | let id = extract(invoke.transactionId) | |
108 | 108 | let entryExist = checkEntry(messageid, uuid) | |
109 | 109 | let uuidExist = checkUUID(uuid) | |
110 | 110 | let callerAddress = toBase58String(invoke.caller.bytes) | |
111 | 111 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
112 | 112 | if ((entryExist != "NONE")) | |
113 | 113 | then throw("This entry already exist") | |
114 | 114 | else if ((uuidExist != "NONE")) | |
115 | 115 | then throw("This uuid already exist") | |
116 | 116 | else if ((size(uuid) > 36)) | |
117 | 117 | then throw("Uuid is too long") | |
118 | 118 | else if ((callerIsWhiteListedNum > 0)) | |
119 | 119 | then ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((messageid + uuid), toBase58String(id)), DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(invoke.caller, 500000, unit)])) | |
120 | 120 | else { | |
121 | 121 | let payment = extract(invoke.payment) | |
122 | 122 | let amount = extract(payment.amount) | |
123 | 123 | let paymentAssetId = if (isDefined(payment.assetId)) | |
124 | 124 | then extract(payment.assetId) | |
125 | 125 | else throw("Waves is not accepted as payment") | |
126 | 126 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
127 | 127 | if ((acceptedToken != paymentAssetId)) | |
128 | 128 | then throw("This token is not accepted at the moment") | |
129 | 129 | else if (if ((amount != currentPrice)) | |
130 | 130 | then (0 >= callerIsWhiteListedNum) | |
131 | 131 | else false) | |
132 | 132 | then throw("The price is wrong") | |
133 | 133 | else ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((messageid + uuid), toBase58String(id)), DataEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)])) | |
134 | 134 | } | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(invoke) | |
140 | 140 | func createAgreement (hash,title,addresses) = { | |
141 | 141 | let id = extract(invoke.transactionId) | |
142 | 142 | let callerAddress = toBase58String(invoke.caller.bytes) | |
143 | 143 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
144 | 144 | let addressesArray = [getValue(addresses, "address1"), getValue(addresses, "address2"), getValue(addresses, "address3"), getValue(addresses, "address4"), getValue(addresses, "address5"), getValue(addresses, "address6")] | |
145 | 145 | let totalAddresses = { | |
146 | 146 | let $list70367076 = addressesArray | |
147 | 147 | let $size70367076 = size($list70367076) | |
148 | 148 | let $acc070367076 = 0 | |
149 | 149 | if (($size70367076 == 0)) | |
150 | 150 | then $acc070367076 | |
151 | 151 | else { | |
152 | 152 | let $acc170367076 = countParties($acc070367076, $list70367076[0]) | |
153 | 153 | if (($size70367076 == 1)) | |
154 | 154 | then $acc170367076 | |
155 | 155 | else { | |
156 | 156 | let $acc270367076 = countParties($acc170367076, $list70367076[1]) | |
157 | 157 | if (($size70367076 == 2)) | |
158 | 158 | then $acc270367076 | |
159 | 159 | else { | |
160 | 160 | let $acc370367076 = countParties($acc270367076, $list70367076[2]) | |
161 | 161 | if (($size70367076 == 3)) | |
162 | 162 | then $acc370367076 | |
163 | 163 | else { | |
164 | 164 | let $acc470367076 = countParties($acc370367076, $list70367076[3]) | |
165 | 165 | if (($size70367076 == 4)) | |
166 | 166 | then $acc470367076 | |
167 | 167 | else { | |
168 | 168 | let $acc570367076 = countParties($acc470367076, $list70367076[4]) | |
169 | 169 | if (($size70367076 == 5)) | |
170 | 170 | then $acc570367076 | |
171 | 171 | else { | |
172 | 172 | let $acc670367076 = countParties($acc570367076, $list70367076[5]) | |
173 | 173 | if (($size70367076 == 6)) | |
174 | 174 | then $acc670367076 | |
175 | 175 | else { | |
176 | 176 | let $acc770367076 = countParties($acc670367076, $list70367076[6]) | |
177 | 177 | throw("List size exceed 6") | |
178 | 178 | } | |
179 | 179 | } | |
180 | 180 | } | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 | } | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | let globalDataTitle = DataEntry(("title_MA_" + toBase58String(id)), title) | |
187 | 187 | let globalDataHash = DataEntry(("hash_MA_" + toBase58String(id)), hash) | |
188 | 188 | let globalDataJson = DataEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), addresses) | |
189 | - | let globalDataOwner = DataEntry | |
189 | + | let globalDataOwner = DataEntry(((callerAddress + "_MA_") + toBase58String(id)), ("SIGNED_" + toBase58String(id))) | |
190 | 190 | let dataWhiteListed = DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)) | |
191 | - | if ((totalAddresses == | |
191 | + | if ((totalAddresses == 1)) | |
192 | 192 | then if ((callerIsWhiteListedNum > 0)) | |
193 | 193 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
194 | 194 | then throw("You don't have enough certification credit") | |
195 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING") | |
195 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)])) | |
196 | 196 | else { | |
197 | 197 | let payment = extract(invoke.payment) | |
198 | 198 | let amount = if (isDefined(payment.amount)) | |
199 | 199 | then extract(payment.amount) | |
200 | 200 | else 0 | |
201 | 201 | let paymentAssetId = if (isDefined(payment.assetId)) | |
202 | 202 | then extract(payment.assetId) | |
203 | 203 | else acceptedToken | |
204 | 204 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
205 | 205 | if (((currentPrice * totalAddresses) > amount)) | |
206 | 206 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
207 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING") | |
207 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)])) | |
208 | 208 | } | |
209 | - | else if ((totalAddresses == | |
209 | + | else if ((totalAddresses == 2)) | |
210 | 210 | then if ((callerIsWhiteListedNum > 0)) | |
211 | 211 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
212 | 212 | then throw("You don't have enough certification credit") | |
213 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING") | |
213 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)])) | |
214 | 214 | else { | |
215 | 215 | let payment = extract(invoke.payment) | |
216 | 216 | let amount = if (isDefined(payment.amount)) | |
217 | 217 | then extract(payment.amount) | |
218 | 218 | else 0 | |
219 | 219 | let paymentAssetId = if (isDefined(payment.assetId)) | |
220 | 220 | then extract(payment.assetId) | |
221 | 221 | else acceptedToken | |
222 | 222 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
223 | 223 | if (((currentPrice * totalAddresses) > amount)) | |
224 | 224 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
225 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING") | |
225 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)])) | |
226 | 226 | } | |
227 | - | else if ((totalAddresses == | |
227 | + | else if ((totalAddresses == 3)) | |
228 | 228 | then if ((callerIsWhiteListedNum > 0)) | |
229 | 229 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
230 | 230 | then throw("You don't have enough certification credit") | |
231 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING") | |
231 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)])) | |
232 | 232 | else { | |
233 | 233 | let payment = extract(invoke.payment) | |
234 | 234 | let amount = if (isDefined(payment.amount)) | |
235 | 235 | then extract(payment.amount) | |
236 | 236 | else 0 | |
237 | 237 | let paymentAssetId = if (isDefined(payment.assetId)) | |
238 | 238 | then extract(payment.assetId) | |
239 | 239 | else acceptedToken | |
240 | 240 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
241 | 241 | if (((currentPrice * totalAddresses) > amount)) | |
242 | 242 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
243 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING") | |
243 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)])) | |
244 | 244 | } | |
245 | - | else if ((totalAddresses == | |
245 | + | else if ((totalAddresses == 4)) | |
246 | 246 | then if ((callerIsWhiteListedNum > 0)) | |
247 | 247 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
248 | 248 | then throw("You don't have enough certification credit") | |
249 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING") | |
249 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)])) | |
250 | 250 | else { | |
251 | 251 | let payment = extract(invoke.payment) | |
252 | 252 | let amount = if (isDefined(payment.amount)) | |
253 | 253 | then extract(payment.amount) | |
254 | 254 | else 0 | |
255 | 255 | let paymentAssetId = if (isDefined(payment.assetId)) | |
256 | 256 | then extract(payment.assetId) | |
257 | 257 | else acceptedToken | |
258 | 258 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
259 | 259 | if (((currentPrice * totalAddresses) > amount)) | |
260 | 260 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
261 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING") | |
261 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)])) | |
262 | 262 | } | |
263 | - | else if ((totalAddresses == | |
263 | + | else if ((totalAddresses == 5)) | |
264 | 264 | then if ((callerIsWhiteListedNum > 0)) | |
265 | 265 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
266 | 266 | then throw("You don't have enough certification credit") | |
267 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING") | |
267 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)])) | |
268 | 268 | else { | |
269 | 269 | let payment = extract(invoke.payment) | |
270 | 270 | let amount = if (isDefined(payment.amount)) | |
271 | 271 | then extract(payment.amount) | |
272 | 272 | else 0 | |
273 | 273 | let paymentAssetId = if (isDefined(payment.assetId)) | |
274 | 274 | then extract(payment.assetId) | |
275 | 275 | else acceptedToken | |
276 | 276 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
277 | 277 | if (((currentPrice * totalAddresses) > amount)) | |
278 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
279 | - | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING") | |
279 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)])) | |
280 | 280 | } | |
281 | - | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
281 | + | else if ((totalAddresses == 6)) | |
282 | + | then if ((callerIsWhiteListedNum > 0)) | |
283 | + | then if ((totalAddresses > callerIsWhiteListedNum)) | |
284 | + | then throw("You don't have enough certification credit") | |
285 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)])) | |
286 | + | else { | |
287 | + | let payment = extract(invoke.payment) | |
288 | + | let amount = if (isDefined(payment.amount)) | |
289 | + | then extract(payment.amount) | |
290 | + | else 0 | |
291 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
292 | + | then extract(payment.assetId) | |
293 | + | else acceptedToken | |
294 | + | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
295 | + | if (((currentPrice * totalAddresses) > amount)) | |
296 | + | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
297 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)])) | |
298 | + | } | |
299 | + | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
282 | 300 | } | |
283 | 301 | ||
284 | 302 | ||
285 | 303 | ||
286 | 304 | @Callable(invoke) | |
287 | 305 | func signAgreement (hash,agreementId) = { | |
288 | 306 | let payment = extract(invoke.payment) | |
289 | 307 | let amount = extract(payment.amount) | |
290 | 308 | let id = extract(invoke.transactionId) | |
291 | 309 | let signer = toBase58String(invoke.caller.bytes) | |
292 | 310 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
293 | 311 | if (!(signingRequestExist)) | |
294 | 312 | then throw("Sorry there is no pending signature") | |
295 | 313 | else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id)))]), TransferSet([ScriptTransfer(addressFromStringValue(signer), 500000, unit)])) | |
296 | 314 | } | |
297 | 315 | ||
298 | 316 |
github/deemru/w8io/026f985 115.26 ms ◑