tx · 36aRYprwKfejbJJ4cE3i6Skmida92CxJUYGp6LD2HQyU 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL: -0.01400000 Waves 2019.09.14 20:22 [676177] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves
{ "type": 13, "id": "36aRYprwKfejbJJ4cE3i6Skmida92CxJUYGp6LD2HQyU", "fee": 1400000, "feeAssetId": null, "timestamp": 1568481729788, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "5fZejafFUgd8x7XKLSyYqcdKEQwHi2kjYhiDbphjF4MZ6zmpeYfNWLHFdbdm3jLiK4d442y5qPHYiv8sxJQ6q2gV" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAO5rKAAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwAAAAEAAAAGaW52b2tlAQAAABljcmVhdGVBZ3JlZW1lbnRUd29QYXJ0aWVzAAAACAAAAARoYXNoAAAABXRpdGxlAAAACGFkZHJlc3MxAAAACGFkZHJlc3MyAAAACGFkZHJlc3MzAAAACGFkZHJlc3M0AAAACGFkZHJlc3M1AAAACGFkZHJlc3M2BAAAAAdwYXltZW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAZpbnZva2UAAAAHcGF5bWVudAQAAAAGYW1vdW50CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAdwYXltZW50AAAABmFtb3VudAQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAA5wYXltZW50QXNzZXRJZAMJAQAAAAlpc0RlZm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AAAAOY291bnRlcnBhcnRfMl8JAAJYAAAAAQUAAAACaWQFAAAACGFkZHJlc3MyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAFXN0YXR1c19jb3VudGVycGFydF8yXwkAAlgAAAABBQAAAAJpZAIAAAAHUEVORElORwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAIYWRkcmVzczEAAAAAAAAAAAAFAAAADWFjY2VwdGVkVG9rZW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAhhZGRyZXNzMgAAAAAAAAAAAAUAAAANYWNjZXB0ZWRUb2tlbgUAAAADbmlsCQAAAgAAAAECAAAAJVNvcnJ5IG1heGltdW0gMyBwYXJ0aWVzIGF0IHRoZSBtb21lbnQAAAAAsQ39Tw==", "chainId": 84, "height": 676177, "spentComplexity": 0 } View: original | compacted Prev: BKwWkmYktgKjdpuz5pHBtQ9pRp91sBJh3MxrraKd6L5b Next: 9EBTMrHWCDs9eHBTy6f9g2Ym3a4QHuoAZxZaE3dX4ErU Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | 20 | else if ((amount != currentPrice)) | |
21 | 21 | then throw("The price is wrong") | |
22 | - | else if (if ((size(address1) > 0)) | |
22 | + | else if (if (if (if (if (if ((size(address1) > 0)) | |
23 | 23 | then (size(address2) > 0) | |
24 | 24 | else false) | |
25 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken)])) | |
26 | - | else if (if (if ((size(address1) > 0)) | |
25 | + | then (size(address3) > 0) | |
26 | + | else false) | |
27 | + | then (size(address4) > 0) | |
28 | + | else false) | |
29 | + | then (size(address5) > 0) | |
30 | + | else false) | |
31 | + | then (size(address6) > 0) | |
32 | + | else false) | |
33 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(id)), address6), DataEntry(("status_counterpart_6_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address6), 0, acceptedToken)])) | |
34 | + | else if (if (if (if (if ((size(address1) > 0)) | |
27 | 35 | then (size(address2) > 0) | |
28 | 36 | else false) | |
29 | 37 | then (size(address3) > 0) | |
30 | 38 | else false) | |
31 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken)])) | |
39 | + | then (size(address4) > 0) | |
40 | + | else false) | |
41 | + | then (size(address5) > 0) | |
42 | + | else false) | |
43 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken)])) | |
32 | 44 | else if (if (if (if ((size(address1) > 0)) | |
33 | 45 | then (size(address2) > 0) | |
34 | 46 | else false) | |
37 | 49 | then (size(address4) > 0) | |
38 | 50 | else false) | |
39 | 51 | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken)])) | |
40 | - | else if (if (if ( | |
52 | + | else if (if (if ((size(address1) > 0)) | |
41 | 53 | then (size(address2) > 0) | |
42 | 54 | else false) | |
43 | 55 | then (size(address3) > 0) | |
44 | 56 | else false) | |
45 | - | then (size(address4) > 0) | |
46 | - | else false) | |
47 | - | then (size(address5) > 0) | |
48 | - | else false) | |
49 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken)])) | |
50 | - | else if (if (if (if (if (if ((size(address1) > 0)) | |
57 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken)])) | |
58 | + | else if (if ((size(address1) > 0)) | |
51 | 59 | then (size(address2) > 0) | |
52 | 60 | else false) | |
53 | - | then (size(address3) > 0) | |
54 | - | else false) | |
55 | - | then (size(address4) > 0) | |
56 | - | else false) | |
57 | - | then (size(address5) > 0) | |
58 | - | else false) | |
59 | - | then (size(address6) > 0) | |
60 | - | else false) | |
61 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(id)), address6), DataEntry(("status_counterpart_6_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address6), 0, acceptedToken)])) | |
61 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken)])) | |
62 | 62 | else throw("Sorry maximum 3 parties at the moment") | |
63 | 63 | } | |
64 | 64 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
5 | 5 | ||
6 | 6 | let currentPrice = 250000000 | |
7 | 7 | ||
8 | 8 | let bank = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | 10 | @Callable(invoke) | |
11 | 11 | func createAgreementTwoParties (hash,title,address1,address2,address3,address4,address5,address6) = { | |
12 | 12 | let payment = extract(invoke.payment) | |
13 | 13 | let amount = extract(payment.amount) | |
14 | 14 | let id = extract(invoke.transactionId) | |
15 | 15 | let paymentAssetId = if (isDefined(payment.assetId)) | |
16 | 16 | then extract(payment.assetId) | |
17 | 17 | else throw("Waves is not accepted as payment") | |
18 | 18 | if ((paymentAssetId != acceptedToken)) | |
19 | 19 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | 20 | else if ((amount != currentPrice)) | |
21 | 21 | then throw("The price is wrong") | |
22 | - | else if (if ((size(address1) > 0)) | |
22 | + | else if (if (if (if (if (if ((size(address1) > 0)) | |
23 | 23 | then (size(address2) > 0) | |
24 | 24 | else false) | |
25 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken)])) | |
26 | - | else if (if (if ((size(address1) > 0)) | |
25 | + | then (size(address3) > 0) | |
26 | + | else false) | |
27 | + | then (size(address4) > 0) | |
28 | + | else false) | |
29 | + | then (size(address5) > 0) | |
30 | + | else false) | |
31 | + | then (size(address6) > 0) | |
32 | + | else false) | |
33 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(id)), address6), DataEntry(("status_counterpart_6_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address6), 0, acceptedToken)])) | |
34 | + | else if (if (if (if (if ((size(address1) > 0)) | |
27 | 35 | then (size(address2) > 0) | |
28 | 36 | else false) | |
29 | 37 | then (size(address3) > 0) | |
30 | 38 | else false) | |
31 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken)])) | |
39 | + | then (size(address4) > 0) | |
40 | + | else false) | |
41 | + | then (size(address5) > 0) | |
42 | + | else false) | |
43 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken)])) | |
32 | 44 | else if (if (if (if ((size(address1) > 0)) | |
33 | 45 | then (size(address2) > 0) | |
34 | 46 | else false) | |
35 | 47 | then (size(address3) > 0) | |
36 | 48 | else false) | |
37 | 49 | then (size(address4) > 0) | |
38 | 50 | else false) | |
39 | 51 | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken)])) | |
40 | - | else if (if (if ( | |
52 | + | else if (if (if ((size(address1) > 0)) | |
41 | 53 | then (size(address2) > 0) | |
42 | 54 | else false) | |
43 | 55 | then (size(address3) > 0) | |
44 | 56 | else false) | |
45 | - | then (size(address4) > 0) | |
46 | - | else false) | |
47 | - | then (size(address5) > 0) | |
48 | - | else false) | |
49 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken)])) | |
50 | - | else if (if (if (if (if (if ((size(address1) > 0)) | |
57 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken)])) | |
58 | + | else if (if ((size(address1) > 0)) | |
51 | 59 | then (size(address2) > 0) | |
52 | 60 | else false) | |
53 | - | then (size(address3) > 0) | |
54 | - | else false) | |
55 | - | then (size(address4) > 0) | |
56 | - | else false) | |
57 | - | then (size(address5) > 0) | |
58 | - | else false) | |
59 | - | then (size(address6) > 0) | |
60 | - | else false) | |
61 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(id)), address3), DataEntry(("status_counterpart_3_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(id)), address4), DataEntry(("status_counterpart_4_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(id)), address5), DataEntry(("status_counterpart_5_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(id)), address6), DataEntry(("status_counterpart_6_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address3), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address4), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address5), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address6), 0, acceptedToken)])) | |
61 | + | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(id)), title), DataEntry(("hash_" + toBase58String(id)), hash), DataEntry(("id_" + toBase58String(id)), id), DataEntry(("counterpart_1_" + toBase58String(id)), address1), DataEntry(("status_counterpart_1_" + toBase58String(id)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(id)), address2), DataEntry(("status_counterpart_2_" + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, acceptedToken), ScriptTransfer(addressFromStringValue(address1), 0, acceptedToken), ScriptTransfer(addressFromStringValue(address2), 0, acceptedToken)])) | |
62 | 62 | else throw("Sorry maximum 3 parties at the moment") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 |
github/deemru/w8io/169f3d6 46.36 ms ◑