tx · 3sR8iQMM7K8rw9W1bhMEUjgCNFhaHwseTPiBTtRQnuHr

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2020.01.31 12:00 [878310] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "3sR8iQMM7K8rw9W1bhMEUjgCNFhaHwseTPiBTtRQnuHr", "fee": 1400000, "feeAssetId": null, "timestamp": 1580461219614, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "5gVABDHc82W1HqWuc2QDj7FGvgwqjo11hfC1dZvqk4dJAiY9PuFJzTaMaxD3TMU4gKChojoqvJZvsoZy3ckMwQ38" ], "script": "base64:AAIDAAAAAAAAAA8IARIFCgMICAgSBAoCCAgAAAAGAAAAAA1hY2NlcHRlZFRva2VuAQAAACDopWq8yndC8nBhMjVKT0WDubke5ZlnF8Nx6tkLoQSt6wAAAAAMY3VycmVudFByaWNlAAAAAAAO5rKAAAAAAARiYW5rAgAAACMzTXpZTGtRNnFDd3RieGFZUTJ5azFrZFV1ZHpiTmc0SmlURwEAAAAMY291bnRQYXJ0aWVzAAAAAgAAAAthY2N1bXVsYXRvcgAAAARhZGRyAwMJAAAAAAAAAgkAATEAAAABBQAAAARhZGRyAAAAAAAAAAAjCQAAAAAAAAIJAAEvAAAAAgUAAAAEYWRkcgAAAAAAAAAAAgIAAAACM04HCQAAZAAAAAIFAAAAC2FjY3VtdWxhdG9yAAAAAAAAAAABCQAAZAAAAAIFAAAAC2FjY3VtdWxhdG9yAAAAAAAAAAAAAQAAAA5nZXRWYWx1ZVN0cmluZwAAAAEAAAAEanNvbgkAAS8AAAACCQABMAAAAAIFAAAABGpzb24AAAAAAAAAAAEJAQAAAAV2YWx1ZQAAAAEJAASzAAAAAgkAATAAAAACBQAAAARqc29uAAAAA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AAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZzaWduZXICAAAABF9NQV8JAAJYAAAAAQUAAAACaWQCAAAABlNJR05FRAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAAA86W5A==", "chainId": 84, "height": 878310, "spentComplexity": 0 } View: original | compacted Prev: Mjpu4pTHLnNZizpN82eEAj1SfJ1QxwcirH3NDbJTzag Next: BwtNn43nLxo8Qgtn6Y7QYARb5SvyiNYHtHBN3jCD5q59 Diff:
OldNewDifferences
77
88 let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-func d (e) = if ((size(e) == 35))
11- then (take(e, 2) == "3N")
12- else false
10+func d (e,f) = if (if ((size(f) == 35))
11+ then (take(f, 2) == "3N")
12+ else false)
13+ then (e + 1)
14+ else (e + 0)
1315
1416
15-func f (g,e) = if ((size(e) > 0))
16- then (g + 1)
17- else (g + 0)
17+func g (h) = take(drop(h, 1), value(indexOf(drop(h, 1), "\"")))
1818
1919
20-func h (i) = take(drop(i, 1), value(indexOf(drop(i, 1), "\"")))
21-
22-
23-func j (i,k) = {
24- let l = value(indexOf(i, (("\"" + k) + "\":")))
25- let m = drop(i, ((l + size(k)) + 3))
26- let n = h(m)
27- n
20+func i (h,j) = {
21+ let k = value(indexOf(h, (("\"" + j) + "\":")))
22+ let l = drop(h, ((k + size(j)) + 3))
23+ let m = g(l)
24+ m
2825 }
2926
3027
31-@Callable(o)
32-func createAgreement (p,q,r) = {
33- let s = extract(o.payment)
34- let t = extract(s.amount)
35- let u = extract(o.transactionId)
36- let v = j(r, "address1")
37- let w = j(r, "address2")
38- let x = j(r, "address3")
39- let y = j(r, "address4")
40- let z = j(r, "address5")
41- let A = j(r, "address6")
42- let B = [v, w, x, y, z, A]
43- let C = {
44- let D = B
45- let E = size(D)
46- let F = 0
47- if ((E == 0))
48- then F
28+@Callable(n)
29+func createAgreement (o,p,q) = {
30+ let r = extract(n.payment)
31+ let s = extract(r.amount)
32+ let t = extract(n.transactionId)
33+ let u = i(q, "address1")
34+ let v = i(q, "address2")
35+ let w = i(q, "address3")
36+ let x = i(q, "address4")
37+ let y = i(q, "address5")
38+ let z = i(q, "address6")
39+ let A = [u, v, w, x, y, z]
40+ let B = {
41+ let C = A
42+ let D = size(C)
43+ let E = 0
44+ if ((D == 0))
45+ then E
4946 else {
50- let G = f(F, D[0])
51- if ((E == 1))
52- then G
47+ let F = d(E, C[0])
48+ if ((D == 1))
49+ then F
5350 else {
54- let H = f(G, D[1])
55- if ((E == 2))
56- then H
51+ let G = d(F, C[1])
52+ if ((D == 2))
53+ then G
5754 else {
58- let I = f(H, D[2])
59- if ((E == 3))
60- then I
55+ let H = d(G, C[2])
56+ if ((D == 3))
57+ then H
6158 else {
62- let J = f(I, D[3])
63- if ((E == 4))
64- then J
59+ let I = d(H, C[3])
60+ if ((D == 4))
61+ then I
6562 else {
66- let K = f(J, D[4])
67- if ((E == 5))
68- then K
63+ let J = d(I, C[4])
64+ if ((D == 5))
65+ then J
6966 else {
70- let L = f(K, D[5])
71- if ((E == 6))
72- then L
67+ let K = d(J, C[5])
68+ if ((D == 6))
69+ then K
7370 else {
74- let M = f(L, D[6])
71+ let L = d(K, C[6])
7572 throw("List size exceed 6")
7673 }
7774 }
8178 }
8279 }
8380 }
84- let N = (((((((((((((((((("{id: '" + toBase58String(u)) + "', title: '") + q) + "' hash: '") + p) + "', address1: '") + B[0]) + "', address2: '") + B[1]) + "', address3: '") + B[2]) + "', address4: '") + B[3]) + "', address5: '") + B[4]) + "', address6: '") + B[5]) + "'}")
85- let O = if (isDefined(s.assetId))
86- then extract(s.assetId)
81+ let M = (((((((((((((((((("{id: '" + toBase58String(t)) + "', title: '") + p) + "' hash: '") + o) + "', address1: '") + A[0]) + "', address2: '") + A[1]) + "', address3: '") + A[2]) + "', address4: '") + A[3]) + "', address5: '") + A[4]) + "', address6: '") + A[5]) + "'}")
82+ let N = if (isDefined(r.assetId))
83+ then extract(r.assetId)
8784 else throw("Waves is not accepted as payment")
88- if ((O != a))
85+ if ((N != a))
8986 then throw("Only payments in SIGN are allowed at the moment")
90- else if (((b * C) > t))
91- then throw(("The price is wrong, it should be " + toString((b * C))))
92- else if ((C == 6))
93- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[4] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[5] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a), ScriptTransfer(addressFromStringValue(B[4]), 0, a), ScriptTransfer(addressFromStringValue(B[5]), 0, a)]))
94- else if ((C == 5))
95- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[4] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a), ScriptTransfer(addressFromStringValue(B[4]), 0, a)]))
96- else if ((C == 4))
97- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a)]))
98- else if ((C == 3))
99- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a)]))
100- else if ((C == 2))
101- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a)]))
102- else throw(("Needs 2 to 6 parties addresses" + toString(C)))
87+ else if (((b * B) > s))
88+ then throw(("The price is wrong, it should be " + toString((b * B))))
89+ else if ((B == 6))
90+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[4] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[5] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a), ScriptTransfer(addressFromStringValue(A[4]), 0, a), ScriptTransfer(addressFromStringValue(A[5]), 0, a)]))
91+ else if ((B == 5))
92+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[4] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a), ScriptTransfer(addressFromStringValue(A[4]), 0, a)]))
93+ else if ((B == 4))
94+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a)]))
95+ else if ((B == 3))
96+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a)]))
97+ else if ((B == 2))
98+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a)]))
99+ else throw(("Needs 2 to 6 parties addresses" + toString(B)))
103100 }
104101
105102
106103
107-@Callable(o)
108-func signAgreement (p,P) = {
109- let s = extract(o.payment)
110- let t = extract(s.amount)
111- let u = extract(o.transactionId)
112- let Q = toBase58String(o.caller.bytes)
113- let R = {
114- let S = getString(this, ((Q + "_MA_") + toBase58String(u)))
115- if ($isInstanceOf(S, "String"))
104+@Callable(n)
105+func signAgreement (o,O) = {
106+ let r = extract(n.payment)
107+ let s = extract(r.amount)
108+ let t = extract(n.transactionId)
109+ let P = toBase58String(n.caller.bytes)
110+ let Q = {
111+ let R = getString(this, ((P + "_MA_") + toBase58String(t)))
112+ if ($isInstanceOf(R, "String"))
116113 then {
117- let T = S
118- T
114+ let S = R
115+ S
119116 }
120117 else throw("There is no corresponding signing request")
121118 }
122- let O = if (isDefined(s.assetId))
123- then extract(s.assetId)
119+ let N = if (isDefined(r.assetId))
120+ then extract(r.assetId)
124121 else throw("Waves is not accepted as payment")
125- if ((O != a))
122+ if ((N != a))
126123 then throw("Only payments in SIGN are allowed at the moment")
127- else if ((t != b))
124+ else if ((s != b))
128125 then throw("The price is wrong")
129- else ScriptResult(WriteSet([DataEntry(((Q + "_MA_") + toBase58String(u)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a)]))
126+ else ScriptResult(WriteSet([DataEntry(((P + "_MA_") + toBase58String(t)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a)]))
130127 }
131128
132129
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
55
66 let b = 250000000
77
88 let c = "3MzYLkQ6qCwtbxaYQ2yk1kdUudzbNg4JiTG"
99
10-func d (e) = if ((size(e) == 35))
11- then (take(e, 2) == "3N")
12- else false
10+func d (e,f) = if (if ((size(f) == 35))
11+ then (take(f, 2) == "3N")
12+ else false)
13+ then (e + 1)
14+ else (e + 0)
1315
1416
15-func f (g,e) = if ((size(e) > 0))
16- then (g + 1)
17- else (g + 0)
17+func g (h) = take(drop(h, 1), value(indexOf(drop(h, 1), "\"")))
1818
1919
20-func h (i) = take(drop(i, 1), value(indexOf(drop(i, 1), "\"")))
21-
22-
23-func j (i,k) = {
24- let l = value(indexOf(i, (("\"" + k) + "\":")))
25- let m = drop(i, ((l + size(k)) + 3))
26- let n = h(m)
27- n
20+func i (h,j) = {
21+ let k = value(indexOf(h, (("\"" + j) + "\":")))
22+ let l = drop(h, ((k + size(j)) + 3))
23+ let m = g(l)
24+ m
2825 }
2926
3027
31-@Callable(o)
32-func createAgreement (p,q,r) = {
33- let s = extract(o.payment)
34- let t = extract(s.amount)
35- let u = extract(o.transactionId)
36- let v = j(r, "address1")
37- let w = j(r, "address2")
38- let x = j(r, "address3")
39- let y = j(r, "address4")
40- let z = j(r, "address5")
41- let A = j(r, "address6")
42- let B = [v, w, x, y, z, A]
43- let C = {
44- let D = B
45- let E = size(D)
46- let F = 0
47- if ((E == 0))
48- then F
28+@Callable(n)
29+func createAgreement (o,p,q) = {
30+ let r = extract(n.payment)
31+ let s = extract(r.amount)
32+ let t = extract(n.transactionId)
33+ let u = i(q, "address1")
34+ let v = i(q, "address2")
35+ let w = i(q, "address3")
36+ let x = i(q, "address4")
37+ let y = i(q, "address5")
38+ let z = i(q, "address6")
39+ let A = [u, v, w, x, y, z]
40+ let B = {
41+ let C = A
42+ let D = size(C)
43+ let E = 0
44+ if ((D == 0))
45+ then E
4946 else {
50- let G = f(F, D[0])
51- if ((E == 1))
52- then G
47+ let F = d(E, C[0])
48+ if ((D == 1))
49+ then F
5350 else {
54- let H = f(G, D[1])
55- if ((E == 2))
56- then H
51+ let G = d(F, C[1])
52+ if ((D == 2))
53+ then G
5754 else {
58- let I = f(H, D[2])
59- if ((E == 3))
60- then I
55+ let H = d(G, C[2])
56+ if ((D == 3))
57+ then H
6158 else {
62- let J = f(I, D[3])
63- if ((E == 4))
64- then J
59+ let I = d(H, C[3])
60+ if ((D == 4))
61+ then I
6562 else {
66- let K = f(J, D[4])
67- if ((E == 5))
68- then K
63+ let J = d(I, C[4])
64+ if ((D == 5))
65+ then J
6966 else {
70- let L = f(K, D[5])
71- if ((E == 6))
72- then L
67+ let K = d(J, C[5])
68+ if ((D == 6))
69+ then K
7370 else {
74- let M = f(L, D[6])
71+ let L = d(K, C[6])
7572 throw("List size exceed 6")
7673 }
7774 }
7875 }
7976 }
8077 }
8178 }
8279 }
8380 }
84- let N = (((((((((((((((((("{id: '" + toBase58String(u)) + "', title: '") + q) + "' hash: '") + p) + "', address1: '") + B[0]) + "', address2: '") + B[1]) + "', address3: '") + B[2]) + "', address4: '") + B[3]) + "', address5: '") + B[4]) + "', address6: '") + B[5]) + "'}")
85- let O = if (isDefined(s.assetId))
86- then extract(s.assetId)
81+ let M = (((((((((((((((((("{id: '" + toBase58String(t)) + "', title: '") + p) + "' hash: '") + o) + "', address1: '") + A[0]) + "', address2: '") + A[1]) + "', address3: '") + A[2]) + "', address4: '") + A[3]) + "', address5: '") + A[4]) + "', address6: '") + A[5]) + "'}")
82+ let N = if (isDefined(r.assetId))
83+ then extract(r.assetId)
8784 else throw("Waves is not accepted as payment")
88- if ((O != a))
85+ if ((N != a))
8986 then throw("Only payments in SIGN are allowed at the moment")
90- else if (((b * C) > t))
91- then throw(("The price is wrong, it should be " + toString((b * C))))
92- else if ((C == 6))
93- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[4] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[5] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a), ScriptTransfer(addressFromStringValue(B[4]), 0, a), ScriptTransfer(addressFromStringValue(B[5]), 0, a)]))
94- else if ((C == 5))
95- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[4] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a), ScriptTransfer(addressFromStringValue(B[4]), 0, a)]))
96- else if ((C == 4))
97- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[3] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a), ScriptTransfer(addressFromStringValue(B[3]), 0, a)]))
98- else if ((C == 3))
99- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[2] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a), ScriptTransfer(addressFromStringValue(B[2]), 0, a)]))
100- else if ((C == 2))
101- then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(u)), q), DataEntry(("hash_MA_" + toBase58String(u)), p), DataEntry(("data_MA_" + toBase58String(u)), N), DataEntry(((B[0] + "_MA_") + toBase58String(u)), "PENDING"), DataEntry(((B[1] + "_MA_") + toBase58String(u)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a), ScriptTransfer(addressFromStringValue(B[0]), 0, a), ScriptTransfer(addressFromStringValue(B[1]), 0, a)]))
102- else throw(("Needs 2 to 6 parties addresses" + toString(C)))
87+ else if (((b * B) > s))
88+ then throw(("The price is wrong, it should be " + toString((b * B))))
89+ else if ((B == 6))
90+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[4] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[5] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a), ScriptTransfer(addressFromStringValue(A[4]), 0, a), ScriptTransfer(addressFromStringValue(A[5]), 0, a)]))
91+ else if ((B == 5))
92+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[4] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a), ScriptTransfer(addressFromStringValue(A[4]), 0, a)]))
93+ else if ((B == 4))
94+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[3] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a), ScriptTransfer(addressFromStringValue(A[3]), 0, a)]))
95+ else if ((B == 3))
96+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[2] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a), ScriptTransfer(addressFromStringValue(A[2]), 0, a)]))
97+ else if ((B == 2))
98+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(t)), p), DataEntry(("hash_MA_" + toBase58String(t)), o), DataEntry(("data_MA_" + toBase58String(t)), M), DataEntry(((A[0] + "_MA_") + toBase58String(t)), "PENDING"), DataEntry(((A[1] + "_MA_") + toBase58String(t)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a), ScriptTransfer(addressFromStringValue(A[0]), 0, a), ScriptTransfer(addressFromStringValue(A[1]), 0, a)]))
99+ else throw(("Needs 2 to 6 parties addresses" + toString(B)))
103100 }
104101
105102
106103
107-@Callable(o)
108-func signAgreement (p,P) = {
109- let s = extract(o.payment)
110- let t = extract(s.amount)
111- let u = extract(o.transactionId)
112- let Q = toBase58String(o.caller.bytes)
113- let R = {
114- let S = getString(this, ((Q + "_MA_") + toBase58String(u)))
115- if ($isInstanceOf(S, "String"))
104+@Callable(n)
105+func signAgreement (o,O) = {
106+ let r = extract(n.payment)
107+ let s = extract(r.amount)
108+ let t = extract(n.transactionId)
109+ let P = toBase58String(n.caller.bytes)
110+ let Q = {
111+ let R = getString(this, ((P + "_MA_") + toBase58String(t)))
112+ if ($isInstanceOf(R, "String"))
116113 then {
117- let T = S
118- T
114+ let S = R
115+ S
119116 }
120117 else throw("There is no corresponding signing request")
121118 }
122- let O = if (isDefined(s.assetId))
123- then extract(s.assetId)
119+ let N = if (isDefined(r.assetId))
120+ then extract(r.assetId)
124121 else throw("Waves is not accepted as payment")
125- if ((O != a))
122+ if ((N != a))
126123 then throw("Only payments in SIGN are allowed at the moment")
127- else if ((t != b))
124+ else if ((s != b))
128125 then throw("The price is wrong")
129- else ScriptResult(WriteSet([DataEntry(((Q + "_MA_") + toBase58String(u)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), t, a)]))
126+ else ScriptResult(WriteSet([DataEntry(((P + "_MA_") + toBase58String(t)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), s, a)]))
130127 }
131128
132129

github/deemru/w8io/169f3d6 
124.15 ms