tx · B3e53Jcbpd1Us5aDJREbyFVehKQ9ovYgX4jhWxTsigYY 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL: -0.01400000 Waves 2020.01.31 08:34 [878117] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves
{ "type": 13, "id": "B3e53Jcbpd1Us5aDJREbyFVehKQ9ovYgX4jhWxTsigYY", "fee": 1400000, "feeAssetId": null, "timestamp": 1580448953885, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "2x22CjDHF3zZaN5S5YWYVoQmuMuzt9FFi1sMTLG1kymE1wGHUJESfCp9KLkvnXaZemhrMqYBQuTthGXYJeLJP1Nc" ], "script": "base64:AAIDAAAAAAAAABQIARIKCggICAgICAgICBIECgIICAAAAAQAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAxjdXJyZW50UHJpY2UAAAAAAA7msoAAAAAABGJhbmsCAAAAIzNNellMa1E2cUN3dGJ4YVlRMnlrMWtkVXVkemJOZzRKaVRHAQAAAAxjb3VudFBhcnRpZXMAAAACAAAAC2FjY3VtdWxhdG9yAAAABGFkZHIDCQAAZgAAAAIJAAExAAAAAQUAAAAEYWRkcgAAAAAAAAAAAAkAAGQAAAACBQAAAAthY2N1bXVsYXRvcgAAAAAAAAAAAQkAAGQAAAACBQAAAAthY2N1bXVsYXRvcgAAAAAAAAAAAAAAAAIAAAAGaW52b2tlAQAAAA9jcmVhdGVBZ3JlZW1lbnQAAAAIAAAABGhhc2gAAAAFdGl0bGUAAAAIYWRkcmVzczEAAAAIYWRkcmVzczIAAAAIYWRkcmVzczMAAAAIYWRkcmVzczQAAAAIYWRkcmVzczUAAAAIYWRkcmVzczYEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN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AAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAAYbkW5w==", "chainId": 84, "height": 878117, "spentComplexity": 0 } View: original | compacted Prev: 9EBTMrHWCDs9eHBTy6f9g2Ym3a4QHuoAZxZaE3dX4ErU Next: 4o22a1WzoUK8FBRQE6yyjB3PhHex7XUqimZ9DKVHBzAQ Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | - | @Callable(d) | |
11 | - | func createAgreement (e,f,g,h,i,j,k,l) = { | |
12 | - | let m = extract(d.payment) | |
13 | - | let n = extract(m.amount) | |
14 | - | let o = extract(d.transactionId) | |
15 | - | let p = if (isDefined(m.assetId)) | |
16 | - | then extract(m.assetId) | |
10 | + | func d (e,f) = if ((size(f) > 0)) | |
11 | + | then (e + 1) | |
12 | + | else (e + 0) | |
13 | + | ||
14 | + | ||
15 | + | @Callable(g) | |
16 | + | func createAgreement (h,i,j,k,l,m,n,o) = { | |
17 | + | let p = extract(g.payment) | |
18 | + | let q = extract(p.amount) | |
19 | + | let r = extract(g.transactionId) | |
20 | + | let s = [j, k, l, m, n, o] | |
21 | + | let t = { | |
22 | + | let u = s | |
23 | + | let v = size(u) | |
24 | + | let w = 0 | |
25 | + | if ((v == 0)) | |
26 | + | then w | |
27 | + | else { | |
28 | + | let x = d(w, u[0]) | |
29 | + | if ((v == 1)) | |
30 | + | then x | |
31 | + | else { | |
32 | + | let y = d(x, u[1]) | |
33 | + | if ((v == 2)) | |
34 | + | then y | |
35 | + | else { | |
36 | + | let z = d(y, u[2]) | |
37 | + | if ((v == 3)) | |
38 | + | then z | |
39 | + | else { | |
40 | + | let A = d(z, u[3]) | |
41 | + | if ((v == 4)) | |
42 | + | then A | |
43 | + | else { | |
44 | + | let B = d(A, u[4]) | |
45 | + | if ((v == 5)) | |
46 | + | then B | |
47 | + | else { | |
48 | + | let C = d(B, u[5]) | |
49 | + | if ((v == 6)) | |
50 | + | then C | |
51 | + | else { | |
52 | + | let D = d(C, u[6]) | |
53 | + | throw("List size exceed 6") | |
54 | + | } | |
55 | + | } | |
56 | + | } | |
57 | + | } | |
58 | + | } | |
59 | + | } | |
60 | + | } | |
61 | + | } | |
62 | + | if ((t > 0)) | |
63 | + | then throw(("Nombre daddress = " + toString(t))) | |
64 | + | else { | |
65 | + | let E = "{id: \"+id+\", title: \"+title+\" hash: \"+hash+\", address1: \"+address1+\", address2: \"+address2+\", address3: \"+address3+\", address4: \"+address4+\", address5: \"+address5+\", address6: \"+address6+\"}" | |
66 | + | let F = if (isDefined(p.assetId)) | |
67 | + | then extract(p.assetId) | |
68 | + | else throw("Waves is not accepted as payment") | |
69 | + | if ((F != a)) | |
70 | + | then throw("Only payments in SIGN are allowed at the moment") | |
71 | + | else if ((q != b)) | |
72 | + | then throw("The price is wrong") | |
73 | + | else if (if (if (if (if (if ((size(j) > 0)) | |
74 | + | then (size(k) > 0) | |
75 | + | else false) | |
76 | + | then (size(l) > 0) | |
77 | + | else false) | |
78 | + | then (size(m) > 0) | |
79 | + | else false) | |
80 | + | then (size(n) > 0) | |
81 | + | else false) | |
82 | + | then (size(o) > 0) | |
83 | + | else false) | |
84 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((n + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((o + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a), ScriptTransfer(addressFromStringValue(n), 0, a), ScriptTransfer(addressFromStringValue(o), 0, a)])) | |
85 | + | else if (if (if (if (if ((size(j) > 0)) | |
86 | + | then (size(k) > 0) | |
87 | + | else false) | |
88 | + | then (size(l) > 0) | |
89 | + | else false) | |
90 | + | then (size(m) > 0) | |
91 | + | else false) | |
92 | + | then (size(n) > 0) | |
93 | + | else false) | |
94 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((n + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a), ScriptTransfer(addressFromStringValue(n), 0, a)])) | |
95 | + | else if (if (if (if ((size(j) > 0)) | |
96 | + | then (size(k) > 0) | |
97 | + | else false) | |
98 | + | then (size(l) > 0) | |
99 | + | else false) | |
100 | + | then (size(m) > 0) | |
101 | + | else false) | |
102 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a)])) | |
103 | + | else if (if (if ((size(j) > 0)) | |
104 | + | then (size(k) > 0) | |
105 | + | else false) | |
106 | + | then (size(l) > 0) | |
107 | + | else false) | |
108 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a)])) | |
109 | + | else if (if ((size(j) > 0)) | |
110 | + | then (size(k) > 0) | |
111 | + | else false) | |
112 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a)])) | |
113 | + | else throw("Sorry maximum 6 parties at the moment") | |
114 | + | } | |
115 | + | } | |
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | @Callable(g) | |
120 | + | func signAgreement (h,G) = { | |
121 | + | let p = extract(g.payment) | |
122 | + | let q = extract(p.amount) | |
123 | + | let r = extract(g.transactionId) | |
124 | + | let H = toBase58String(g.caller.bytes) | |
125 | + | let F = if (isDefined(p.assetId)) | |
126 | + | then extract(p.assetId) | |
17 | 127 | else throw("Waves is not accepted as payment") | |
18 | - | if (( | |
128 | + | if ((F != a)) | |
19 | 129 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | - | else if (( | |
130 | + | else if ((q != b)) | |
21 | 131 | then throw("The price is wrong") | |
22 | - | else if (if (if (if (if (if ((size(g) > 0)) | |
23 | - | then (size(h) > 0) | |
24 | - | else false) | |
25 | - | then (size(i) > 0) | |
26 | - | else false) | |
27 | - | then (size(j) > 0) | |
28 | - | else false) | |
29 | - | then (size(k) > 0) | |
30 | - | else false) | |
31 | - | then (size(l) > 0) | |
32 | - | else false) | |
33 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(o)), k), DataEntry(("status_counterpart_5_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(o)), l), DataEntry(("status_counterpart_6_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a)])) | |
34 | - | else if (if (if (if (if ((size(g) > 0)) | |
35 | - | then (size(h) > 0) | |
36 | - | else false) | |
37 | - | then (size(i) > 0) | |
38 | - | else false) | |
39 | - | then (size(j) > 0) | |
40 | - | else false) | |
41 | - | then (size(k) > 0) | |
42 | - | else false) | |
43 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(o)), k), DataEntry(("status_counterpart_5_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a)])) | |
44 | - | else if (if (if (if ((size(g) > 0)) | |
45 | - | then (size(h) > 0) | |
46 | - | else false) | |
47 | - | then (size(i) > 0) | |
48 | - | else false) | |
49 | - | then (size(j) > 0) | |
50 | - | else false) | |
51 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a)])) | |
52 | - | else if (if (if ((size(g) > 0)) | |
53 | - | then (size(h) > 0) | |
54 | - | else false) | |
55 | - | then (size(i) > 0) | |
56 | - | else false) | |
57 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a)])) | |
58 | - | else if (if ((size(g) > 0)) | |
59 | - | then (size(h) > 0) | |
60 | - | else false) | |
61 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a)])) | |
62 | - | else throw("Sorry maximum 3 parties at the moment") | |
132 | + | else ScriptResult(WriteSet([DataEntry(((H + "_MA_") + toBase58String(r)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a)])) | |
63 | 133 | } | |
64 | 134 | ||
65 | 135 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
5 | 5 | ||
6 | 6 | let b = 250000000 | |
7 | 7 | ||
8 | 8 | let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG" | |
9 | 9 | ||
10 | - | @Callable(d) | |
11 | - | func createAgreement (e,f,g,h,i,j,k,l) = { | |
12 | - | let m = extract(d.payment) | |
13 | - | let n = extract(m.amount) | |
14 | - | let o = extract(d.transactionId) | |
15 | - | let p = if (isDefined(m.assetId)) | |
16 | - | then extract(m.assetId) | |
10 | + | func d (e,f) = if ((size(f) > 0)) | |
11 | + | then (e + 1) | |
12 | + | else (e + 0) | |
13 | + | ||
14 | + | ||
15 | + | @Callable(g) | |
16 | + | func createAgreement (h,i,j,k,l,m,n,o) = { | |
17 | + | let p = extract(g.payment) | |
18 | + | let q = extract(p.amount) | |
19 | + | let r = extract(g.transactionId) | |
20 | + | let s = [j, k, l, m, n, o] | |
21 | + | let t = { | |
22 | + | let u = s | |
23 | + | let v = size(u) | |
24 | + | let w = 0 | |
25 | + | if ((v == 0)) | |
26 | + | then w | |
27 | + | else { | |
28 | + | let x = d(w, u[0]) | |
29 | + | if ((v == 1)) | |
30 | + | then x | |
31 | + | else { | |
32 | + | let y = d(x, u[1]) | |
33 | + | if ((v == 2)) | |
34 | + | then y | |
35 | + | else { | |
36 | + | let z = d(y, u[2]) | |
37 | + | if ((v == 3)) | |
38 | + | then z | |
39 | + | else { | |
40 | + | let A = d(z, u[3]) | |
41 | + | if ((v == 4)) | |
42 | + | then A | |
43 | + | else { | |
44 | + | let B = d(A, u[4]) | |
45 | + | if ((v == 5)) | |
46 | + | then B | |
47 | + | else { | |
48 | + | let C = d(B, u[5]) | |
49 | + | if ((v == 6)) | |
50 | + | then C | |
51 | + | else { | |
52 | + | let D = d(C, u[6]) | |
53 | + | throw("List size exceed 6") | |
54 | + | } | |
55 | + | } | |
56 | + | } | |
57 | + | } | |
58 | + | } | |
59 | + | } | |
60 | + | } | |
61 | + | } | |
62 | + | if ((t > 0)) | |
63 | + | then throw(("Nombre daddress = " + toString(t))) | |
64 | + | else { | |
65 | + | let E = "{id: \"+id+\", title: \"+title+\" hash: \"+hash+\", address1: \"+address1+\", address2: \"+address2+\", address3: \"+address3+\", address4: \"+address4+\", address5: \"+address5+\", address6: \"+address6+\"}" | |
66 | + | let F = if (isDefined(p.assetId)) | |
67 | + | then extract(p.assetId) | |
68 | + | else throw("Waves is not accepted as payment") | |
69 | + | if ((F != a)) | |
70 | + | then throw("Only payments in SIGN are allowed at the moment") | |
71 | + | else if ((q != b)) | |
72 | + | then throw("The price is wrong") | |
73 | + | else if (if (if (if (if (if ((size(j) > 0)) | |
74 | + | then (size(k) > 0) | |
75 | + | else false) | |
76 | + | then (size(l) > 0) | |
77 | + | else false) | |
78 | + | then (size(m) > 0) | |
79 | + | else false) | |
80 | + | then (size(n) > 0) | |
81 | + | else false) | |
82 | + | then (size(o) > 0) | |
83 | + | else false) | |
84 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((n + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((o + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a), ScriptTransfer(addressFromStringValue(n), 0, a), ScriptTransfer(addressFromStringValue(o), 0, a)])) | |
85 | + | else if (if (if (if (if ((size(j) > 0)) | |
86 | + | then (size(k) > 0) | |
87 | + | else false) | |
88 | + | then (size(l) > 0) | |
89 | + | else false) | |
90 | + | then (size(m) > 0) | |
91 | + | else false) | |
92 | + | then (size(n) > 0) | |
93 | + | else false) | |
94 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((n + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a), ScriptTransfer(addressFromStringValue(n), 0, a)])) | |
95 | + | else if (if (if (if ((size(j) > 0)) | |
96 | + | then (size(k) > 0) | |
97 | + | else false) | |
98 | + | then (size(l) > 0) | |
99 | + | else false) | |
100 | + | then (size(m) > 0) | |
101 | + | else false) | |
102 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((m + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a), ScriptTransfer(addressFromStringValue(m), 0, a)])) | |
103 | + | else if (if (if ((size(j) > 0)) | |
104 | + | then (size(k) > 0) | |
105 | + | else false) | |
106 | + | then (size(l) > 0) | |
107 | + | else false) | |
108 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((l + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a)])) | |
109 | + | else if (if ((size(j) > 0)) | |
110 | + | then (size(k) > 0) | |
111 | + | else false) | |
112 | + | then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(r)), i), DataEntry(("hash_MA_" + toBase58String(r)), h), DataEntry(("data_MA_" + toBase58String(r)), E), DataEntry(((j + "_MA_") + toBase58String(r)), "PENDING"), DataEntry(((k + "_MA_") + toBase58String(r)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a)])) | |
113 | + | else throw("Sorry maximum 6 parties at the moment") | |
114 | + | } | |
115 | + | } | |
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | @Callable(g) | |
120 | + | func signAgreement (h,G) = { | |
121 | + | let p = extract(g.payment) | |
122 | + | let q = extract(p.amount) | |
123 | + | let r = extract(g.transactionId) | |
124 | + | let H = toBase58String(g.caller.bytes) | |
125 | + | let F = if (isDefined(p.assetId)) | |
126 | + | then extract(p.assetId) | |
17 | 127 | else throw("Waves is not accepted as payment") | |
18 | - | if (( | |
128 | + | if ((F != a)) | |
19 | 129 | then throw("Only payments in SIGN are allowed at the moment") | |
20 | - | else if (( | |
130 | + | else if ((q != b)) | |
21 | 131 | then throw("The price is wrong") | |
22 | - | else if (if (if (if (if (if ((size(g) > 0)) | |
23 | - | then (size(h) > 0) | |
24 | - | else false) | |
25 | - | then (size(i) > 0) | |
26 | - | else false) | |
27 | - | then (size(j) > 0) | |
28 | - | else false) | |
29 | - | then (size(k) > 0) | |
30 | - | else false) | |
31 | - | then (size(l) > 0) | |
32 | - | else false) | |
33 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(o)), k), DataEntry(("status_counterpart_5_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_6_" + toBase58String(o)), l), DataEntry(("status_counterpart_6_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a), ScriptTransfer(addressFromStringValue(l), 0, a)])) | |
34 | - | else if (if (if (if (if ((size(g) > 0)) | |
35 | - | then (size(h) > 0) | |
36 | - | else false) | |
37 | - | then (size(i) > 0) | |
38 | - | else false) | |
39 | - | then (size(j) > 0) | |
40 | - | else false) | |
41 | - | then (size(k) > 0) | |
42 | - | else false) | |
43 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_5_" + toBase58String(o)), k), DataEntry(("status_counterpart_5_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a), ScriptTransfer(addressFromStringValue(k), 0, a)])) | |
44 | - | else if (if (if (if ((size(g) > 0)) | |
45 | - | then (size(h) > 0) | |
46 | - | else false) | |
47 | - | then (size(i) > 0) | |
48 | - | else false) | |
49 | - | then (size(j) > 0) | |
50 | - | else false) | |
51 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_4_" + toBase58String(o)), j), DataEntry(("status_counterpart_4_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a), ScriptTransfer(addressFromStringValue(j), 0, a)])) | |
52 | - | else if (if (if ((size(g) > 0)) | |
53 | - | then (size(h) > 0) | |
54 | - | else false) | |
55 | - | then (size(i) > 0) | |
56 | - | else false) | |
57 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_3_" + toBase58String(o)), i), DataEntry(("status_counterpart_3_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a), ScriptTransfer(addressFromStringValue(i), 0, a)])) | |
58 | - | else if (if ((size(g) > 0)) | |
59 | - | then (size(h) > 0) | |
60 | - | else false) | |
61 | - | then ScriptResult(WriteSet([DataEntry(("title_" + toBase58String(o)), f), DataEntry(("hash_" + toBase58String(o)), e), DataEntry(("id_" + toBase58String(o)), o), DataEntry(("counterpart_1_" + toBase58String(o)), g), DataEntry(("status_counterpart_1_" + toBase58String(o)), "PENDING"), DataEntry(("counterpart_2_" + toBase58String(o)), h), DataEntry(("status_counterpart_2_" + toBase58String(o)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), n, a), ScriptTransfer(addressFromStringValue(g), 0, a), ScriptTransfer(addressFromStringValue(h), 0, a)])) | |
62 | - | else throw("Sorry maximum 3 parties at the moment") | |
132 | + | else ScriptResult(WriteSet([DataEntry(((H + "_MA_") + toBase58String(r)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a)])) | |
63 | 133 | } | |
64 | 134 | ||
65 | 135 |
github/deemru/w8io/169f3d6 49.58 ms ◑