tx · 4o22a1WzoUK8FBRQE6yyjB3PhHex7XUqimZ9DKVHBzAQ

3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL:  -0.01400000 Waves

2020.01.31 08:37 [878119] smart account 3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL > SELF 0.00000000 Waves

{ "type": 13, "id": "4o22a1WzoUK8FBRQE6yyjB3PhHex7XUqimZ9DKVHBzAQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1580449107808, "version": 1, "sender": "3MrYoV4W5mu5ZP8rPspCXveMXusGstSPTjL", "senderPublicKey": "f1NbgbpkRpbigsrHaDkWZAkPgcqd8GM5G5eNmqnTD6z", "proofs": [ "3TSKbTGzevjPuA62kYyFqvAEhefekeYzP1QDDLhgvg74uYoE5xSZSVBbnSRgeECtMLAFQuD9Ma9aKeCM7JRFiQUb" ], "script": "base64:AAIDAAAAAAAAABQIARIKCggICAgICAgICBIECgIICAAAAAQAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAAAAAAxjdXJyZW50UHJpY2UAAAAAAA7msoAAAAAABGJhbmsCAAAAIzNNellMa1E2cUN3dGJ4YVlRMnlrMWtkVXVkemJOZzRKaVRHAQAAAAxjb3VudFBhcnRpZXMAAAACAAAAC2FjY3VtdWxhdG9yAAAABGFkZHIDCQAAZgAAAAIJAAExAAAAAQUAAAAEYWRkcgAAAAAAAAAAAAkAAGQAAAACBQAAAAthY2N1bXVsYXRvcgAAAAAAAAAAAQkAAGQAAAACBQAAAAthY2N1bXVsYXRvcgAAAAAAAAAAAAAAAAIAAAAGaW52b2tlAQAAAA9jcmVhdGVBZ3JlZW1lbnQAAAAIAAAABGhhc2gAAAAFdGl0bGUAAAAIYWRkcmVzczEAAAAIYWRkcmVzczIAAAAIYWRkcmVzczMAAAAIYWRkcmVzczQAAAAIYWRkcmVzczUAAAAIYWRkcmVzczYEAAAAB3BheW1lbnQJAQAAAAdleHRy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AIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZzaWduZXICAAAABF9NQV8JAAJYAAAAAQUAAAACaWQCAAAABlNJR05FRAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50BQAAAA1hY2NlcHRlZFRva2VuBQAAAANuaWwAAAAALRVQ7w==", "chainId": 84, "height": 878119, "spentComplexity": 0 } View: original | compacted Prev: B3e53Jcbpd1Us5aDJREbyFVehKQ9ovYgX4jhWxTsigYY Next: A9ZhVj6KH3duv6BgPGtkGzUhkRpd4CumJ9PFHm9Ktz1x Diff:
OldNewDifferences
5959 }
6060 }
6161 }
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- }
62+ let E = "{id: \"+id+\", title: \"+title+\" hash: \"+hash+\", address1: \"+address1+\", address2: \"+address2+\", address3: \"+address3+\", address4: \"+address4+\", address5: \"+address5+\", address6: \"+address6+\"}"
63+ let F = if (isDefined(p.assetId))
64+ then extract(p.assetId)
65+ else throw("Waves is not accepted as payment")
66+ if ((F != a))
67+ then throw("Only payments in SIGN are allowed at the moment")
68+ else if ((q != b))
69+ then throw("The price is wrong")
70+ else if ((t == 6))
71+ 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)]))
72+ else if ((t == 5))
73+ 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)]))
74+ else if ((t == 4))
75+ 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)]))
76+ else if ((t == 3))
77+ 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)]))
78+ else if ((t == 2))
79+ 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)]))
80+ else throw("Needs 2 to 6 parties addresses")
11581 }
11682
11783
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
1010 func d (e,f) = if ((size(f) > 0))
1111 then (e + 1)
1212 else (e + 0)
1313
1414
1515 @Callable(g)
1616 func createAgreement (h,i,j,k,l,m,n,o) = {
1717 let p = extract(g.payment)
1818 let q = extract(p.amount)
1919 let r = extract(g.transactionId)
2020 let s = [j, k, l, m, n, o]
2121 let t = {
2222 let u = s
2323 let v = size(u)
2424 let w = 0
2525 if ((v == 0))
2626 then w
2727 else {
2828 let x = d(w, u[0])
2929 if ((v == 1))
3030 then x
3131 else {
3232 let y = d(x, u[1])
3333 if ((v == 2))
3434 then y
3535 else {
3636 let z = d(y, u[2])
3737 if ((v == 3))
3838 then z
3939 else {
4040 let A = d(z, u[3])
4141 if ((v == 4))
4242 then A
4343 else {
4444 let B = d(A, u[4])
4545 if ((v == 5))
4646 then B
4747 else {
4848 let C = d(B, u[5])
4949 if ((v == 6))
5050 then C
5151 else {
5252 let D = d(C, u[6])
5353 throw("List size exceed 6")
5454 }
5555 }
5656 }
5757 }
5858 }
5959 }
6060 }
6161 }
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- }
62+ let E = "{id: \"+id+\", title: \"+title+\" hash: \"+hash+\", address1: \"+address1+\", address2: \"+address2+\", address3: \"+address3+\", address4: \"+address4+\", address5: \"+address5+\", address6: \"+address6+\"}"
63+ let F = if (isDefined(p.assetId))
64+ then extract(p.assetId)
65+ else throw("Waves is not accepted as payment")
66+ if ((F != a))
67+ then throw("Only payments in SIGN are allowed at the moment")
68+ else if ((q != b))
69+ then throw("The price is wrong")
70+ else if ((t == 6))
71+ 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)]))
72+ else if ((t == 5))
73+ 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)]))
74+ else if ((t == 4))
75+ 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)]))
76+ else if ((t == 3))
77+ 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)]))
78+ else if ((t == 2))
79+ 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)]))
80+ else throw("Needs 2 to 6 parties addresses")
11581 }
11682
11783
11884
11985 @Callable(g)
12086 func signAgreement (h,G) = {
12187 let p = extract(g.payment)
12288 let q = extract(p.amount)
12389 let r = extract(g.transactionId)
12490 let H = toBase58String(g.caller.bytes)
12591 let F = if (isDefined(p.assetId))
12692 then extract(p.assetId)
12793 else throw("Waves is not accepted as payment")
12894 if ((F != a))
12995 then throw("Only payments in SIGN are allowed at the moment")
13096 else if ((q != b))
13197 then throw("The price is wrong")
13298 else ScriptResult(WriteSet([DataEntry(((H + "_MA_") + toBase58String(r)), "SIGNED")]), TransferSet([ScriptTransfer(addressFromStringValue(c), q, a)]))
13399 }
134100
135101

github/deemru/w8io/169f3d6 
46.62 ms