tx · 6Pwbo6XCYEVXHwQFSgd52y96HPwXGJzgNyPmunPoTepz

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2020.01.31 17:15 [878651] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "6Pwbo6XCYEVXHwQFSgd52y96HPwXGJzgNyPmunPoTepz", "fee": 1400000, "feeAssetId": null, "timestamp": 1580480217499, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "2TDs68sV28u8MSk8azWRjjdaiHikxST1wuCCx2ZgVH6s1nNGXUJfitaXZpfdoUfKpNmQW3U29nsEpmnS9TAPodFS" ], "script": "base64:AAIDAAAAAAAAAB4IARIGCgQICAgIEgUKAwgICBIFCgMICAgSBAoCCAgAAAAKAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIBAAAACmNoZWNrRW50cnkAAAACAAAABnByZWZpeAAAAAR1dWlkBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAGcHJlZml4BQAAAAR1dWlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUBAAAACWNoZWNrVVVJRAAAAAEAAAAEdXVpZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAAR1dWlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAA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AAARfTUFfBQAAAAthZ3JlZW1lbnRJZAMJAQAAAAEhAAAAAQUAAAATc2lnbmluZ1JlcXVlc3RFeGlzdAkAAAIAAAABAgAAACNTb3JyeSB0aGVyZSBpcyBubyBwZW5kaW5nIHNpZ25hdHVyZQkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAZzaWduZXICAAAABF9NQV8FAAAAC2FncmVlbWVudElkCQABLAAAAAICAAAAB1NJR05FRF8JAAJYAAAAAQUAAAACaWQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAABnNpZ25lcgAAAAAAAAehIAUAAAAEdW5pdAUAAAADbmlsAAAAAB2efa0=", "chainId": 84, "height": 878651, "spentComplexity": 0 } View: original | compacted Prev: 6Un94hdcteHYjTYtM4MuNwwNWvJVevqBRfrDZ8jSZXCQ Next: 5qMD6qYEK8HYE1JrSKTKToHTa1XNUquTPVNFiHniikN1 Diff:
OldNewDifferences
2727 case _ =>
2828 0
2929 }
30+
31+
32+func isAdress (addr) = if (if ((size(addr) == 35))
33+ then (take(addr, 2) == "3N")
34+ else false)
35+ then true
36+ else (take(addr, 2) == "3M")
37+
38+
39+func countParties (accumulator,addr) = if ((size(addr) > 0))
40+ then (accumulator + 1)
41+ else (accumulator + 0)
42+
43+
44+func checkIfPendingToSign (key) = match getString(this, key) {
45+ case a: String =>
46+ if ((a == "PENDING"))
47+ then true
48+ else false
49+ case _ =>
50+ false
51+}
52+
53+
54+func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
55+
56+
57+func getValue (json,key) = {
58+ let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
59+ let data = drop(json, ((keyIndex + size(key)) + 3))
60+ let jsonValue = getValueString(data)
61+ jsonValue
62+ }
3063
3164
3265 @Callable(invoke)
112145 }
113146
114147
148+
149+@Callable(invoke)
150+func createAgreement (hash,title,addresses) = {
151+ let payment = extract(invoke.payment)
152+ let amount = extract(payment.amount)
153+ let id = extract(invoke.transactionId)
154+ let addressesArray = [getValue(addresses, "address1"), getValue(addresses, "address2"), getValue(addresses, "address3"), getValue(addresses, "address4"), getValue(addresses, "address5"), getValue(addresses, "address6")]
155+ let totalAddresses = {
156+ let $list74257465 = addressesArray
157+ let $size74257465 = size($list74257465)
158+ let $acc074257465 = 0
159+ if (($size74257465 == 0))
160+ then $acc074257465
161+ else {
162+ let $acc174257465 = countParties($acc074257465, $list74257465[0])
163+ if (($size74257465 == 1))
164+ then $acc174257465
165+ else {
166+ let $acc274257465 = countParties($acc174257465, $list74257465[1])
167+ if (($size74257465 == 2))
168+ then $acc274257465
169+ else {
170+ let $acc374257465 = countParties($acc274257465, $list74257465[2])
171+ if (($size74257465 == 3))
172+ then $acc374257465
173+ else {
174+ let $acc474257465 = countParties($acc374257465, $list74257465[3])
175+ if (($size74257465 == 4))
176+ then $acc474257465
177+ else {
178+ let $acc574257465 = countParties($acc474257465, $list74257465[4])
179+ if (($size74257465 == 5))
180+ then $acc574257465
181+ else {
182+ let $acc674257465 = countParties($acc574257465, $list74257465[5])
183+ if (($size74257465 == 6))
184+ then $acc674257465
185+ else {
186+ let $acc774257465 = countParties($acc674257465, $list74257465[6])
187+ throw("List size exceed 6")
188+ }
189+ }
190+ }
191+ }
192+ }
193+ }
194+ }
195+ }
196+ let paymentAssetId = if (isDefined(payment.assetId))
197+ then extract(payment.assetId)
198+ else throw("Waves is not accepted as payment")
199+ let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
200+ case a: String =>
201+ a
202+ case _ =>
203+ throw("This token is not accepted at the moment")
204+ }
205+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
206+ if ((acceptedToken != "WHITELISTED"))
207+ then throw("Only payments in SIGN are allowed at the moment")
208+ else if (((currentPrice * totalAddresses) > amount))
209+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
210+ else if ((totalAddresses == 2))
211+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId)]))
212+ else if ((totalAddresses == 3))
213+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId)]))
214+ else if ((totalAddresses == 4))
215+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId)]))
216+ else if ((totalAddresses == 5))
217+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, paymentAssetId)]))
218+ else if ((totalAddresses == 6))
219+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, paymentAssetId)]))
220+ else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses)))
221+ }
222+
223+
224+
225+@Callable(invoke)
226+func signAgreement (hash,agreementId) = {
227+ let payment = extract(invoke.payment)
228+ let amount = extract(payment.amount)
229+ let id = extract(invoke.transactionId)
230+ let signer = toBase58String(invoke.caller.bytes)
231+ let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId))
232+ if (!(signingRequestExist))
233+ then throw("Sorry there is no pending signature")
234+ else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id)))]), TransferSet([ScriptTransfer(addressFromStringValue(signer), 500000, unit)]))
235+ }
236+
237+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let verifier = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
77
88 func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) {
99 case a: String =>
1010 a
1111 case _ =>
1212 "NONE"
1313 }
1414
1515
1616 func checkUUID (uuid) = match getString(this, uuid) {
1717 case a: String =>
1818 a
1919 case _ =>
2020 "NONE"
2121 }
2222
2323
2424 func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) {
2525 case a: Int =>
2626 a
2727 case _ =>
2828 0
2929 }
30+
31+
32+func isAdress (addr) = if (if ((size(addr) == 35))
33+ then (take(addr, 2) == "3N")
34+ else false)
35+ then true
36+ else (take(addr, 2) == "3M")
37+
38+
39+func countParties (accumulator,addr) = if ((size(addr) > 0))
40+ then (accumulator + 1)
41+ else (accumulator + 0)
42+
43+
44+func checkIfPendingToSign (key) = match getString(this, key) {
45+ case a: String =>
46+ if ((a == "PENDING"))
47+ then true
48+ else false
49+ case _ =>
50+ false
51+}
52+
53+
54+func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
55+
56+
57+func getValue (json,key) = {
58+ let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
59+ let data = drop(json, ((keyIndex + size(key)) + 3))
60+ let jsonValue = getValueString(data)
61+ jsonValue
62+ }
3063
3164
3265 @Callable(invoke)
3366 func fileCertification (hash,title,uuid,data) = {
3467 let id = extract(invoke.transactionId)
3568 let entryExist = checkEntry(hash, uuid)
3669 let uuidExist = checkUUID(uuid)
3770 let callerAddress = toBase58String(invoke.caller.bytes)
3871 let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
3972 if ((entryExist != "NONE"))
4073 then throw("This entry already exist")
4174 else if ((uuidExist != "NONE"))
4275 then throw("This uuid already exist")
4376 else if ((size(uuid) > 36))
4477 then throw("Uuid is too long")
4578 else if ((size(hash) > 64))
4679 then throw("Hash is too long")
4780 else if ((size(title) > 64))
4881 then throw("Title is too long")
4982 else if ((callerIsWhiteListedNum > 0))
5083 then ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((hash + uuid), toBase58String(id)), DataEntry((title + uuid), toBase58String(id)), DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(invoke.caller, 500000, unit)]))
5184 else {
5285 let payment = extract(invoke.payment)
5386 let amount = extract(payment.amount)
5487 let paymentAssetId = if (isDefined(payment.assetId))
5588 then extract(payment.assetId)
5689 else throw("Waves is not accepted as payment")
5790 let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
5891 case a: String =>
5992 a
6093 case _ =>
6194 throw("This token is not accepted at the moment")
6295 }
6396 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
6497 if ((acceptedToken != "WHITELISTED"))
6598 then throw("This token is not accepted at the moment")
6699 else if (if ((amount != currentPrice))
67100 then (0 >= callerIsWhiteListedNum)
68101 else false)
69102 then throw("The price is wrong")
70103 else ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((hash + uuid), toBase58String(id)), DataEntry((title + uuid), toBase58String(id)), DataEntry(((("data_fc_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)]))
71104 }
72105 }
73106
74107
75108
76109 @Callable(invoke)
77110 func emailCertification (messageid,uuid,data) = {
78111 let id = extract(invoke.transactionId)
79112 let entryExist = checkEntry(messageid, uuid)
80113 let uuidExist = checkUUID(uuid)
81114 let callerAddress = toBase58String(invoke.caller.bytes)
82115 let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
83116 if ((entryExist != "NONE"))
84117 then throw("This entry already exist")
85118 else if ((uuidExist != "NONE"))
86119 then throw("This uuid already exist")
87120 else if ((size(uuid) > 36))
88121 then throw("Uuid is too long")
89122 else if ((callerIsWhiteListedNum > 0))
90123 then ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((messageid + uuid), toBase58String(id)), DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(invoke.caller, 500000, unit)]))
91124 else {
92125 let payment = extract(invoke.payment)
93126 let amount = extract(payment.amount)
94127 let paymentAssetId = if (isDefined(payment.assetId))
95128 then extract(payment.assetId)
96129 else throw("Waves is not accepted as payment")
97130 let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
98131 case a: String =>
99132 a
100133 case _ =>
101134 throw("This token is not accepted at the moment")
102135 }
103136 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
104137 if ((acceptedToken != "WHITELISTED"))
105138 then throw("This token is not accepted at the moment")
106139 else if (if ((amount != currentPrice))
107140 then (0 >= callerIsWhiteListedNum)
108141 else false)
109142 then throw("The price is wrong")
110143 else ScriptResult(WriteSet([DataEntry(uuid, toBase58String(id)), DataEntry((messageid + uuid), toBase58String(id)), DataEntry(((("data_ec_" + toBase58String(id)) + "_") + callerAddress), data)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)]))
111144 }
112145 }
113146
114147
148+
149+@Callable(invoke)
150+func createAgreement (hash,title,addresses) = {
151+ let payment = extract(invoke.payment)
152+ let amount = extract(payment.amount)
153+ let id = extract(invoke.transactionId)
154+ let addressesArray = [getValue(addresses, "address1"), getValue(addresses, "address2"), getValue(addresses, "address3"), getValue(addresses, "address4"), getValue(addresses, "address5"), getValue(addresses, "address6")]
155+ let totalAddresses = {
156+ let $list74257465 = addressesArray
157+ let $size74257465 = size($list74257465)
158+ let $acc074257465 = 0
159+ if (($size74257465 == 0))
160+ then $acc074257465
161+ else {
162+ let $acc174257465 = countParties($acc074257465, $list74257465[0])
163+ if (($size74257465 == 1))
164+ then $acc174257465
165+ else {
166+ let $acc274257465 = countParties($acc174257465, $list74257465[1])
167+ if (($size74257465 == 2))
168+ then $acc274257465
169+ else {
170+ let $acc374257465 = countParties($acc274257465, $list74257465[2])
171+ if (($size74257465 == 3))
172+ then $acc374257465
173+ else {
174+ let $acc474257465 = countParties($acc374257465, $list74257465[3])
175+ if (($size74257465 == 4))
176+ then $acc474257465
177+ else {
178+ let $acc574257465 = countParties($acc474257465, $list74257465[4])
179+ if (($size74257465 == 5))
180+ then $acc574257465
181+ else {
182+ let $acc674257465 = countParties($acc574257465, $list74257465[5])
183+ if (($size74257465 == 6))
184+ then $acc674257465
185+ else {
186+ let $acc774257465 = countParties($acc674257465, $list74257465[6])
187+ throw("List size exceed 6")
188+ }
189+ }
190+ }
191+ }
192+ }
193+ }
194+ }
195+ }
196+ let paymentAssetId = if (isDefined(payment.assetId))
197+ then extract(payment.assetId)
198+ else throw("Waves is not accepted as payment")
199+ let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
200+ case a: String =>
201+ a
202+ case _ =>
203+ throw("This token is not accepted at the moment")
204+ }
205+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
206+ if ((acceptedToken != "WHITELISTED"))
207+ then throw("Only payments in SIGN are allowed at the moment")
208+ else if (((currentPrice * totalAddresses) > amount))
209+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
210+ else if ((totalAddresses == 2))
211+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId)]))
212+ else if ((totalAddresses == 3))
213+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId)]))
214+ else if ((totalAddresses == 4))
215+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId)]))
216+ else if ((totalAddresses == 5))
217+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, paymentAssetId)]))
218+ else if ((totalAddresses == 6))
219+ then ScriptResult(WriteSet([DataEntry(("title_MA_" + toBase58String(id)), title), DataEntry(("hash_MA_" + toBase58String(id)), hash), DataEntry(("data_MA_" + toBase58String(id)), addresses), DataEntry(((addressesArray[0] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[1] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[2] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[3] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[4] + "_MA_") + toBase58String(id)), "PENDING"), DataEntry(((addressesArray[5] + "_MA_") + toBase58String(id)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, paymentAssetId), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, paymentAssetId)]))
220+ else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses)))
221+ }
222+
223+
224+
225+@Callable(invoke)
226+func signAgreement (hash,agreementId) = {
227+ let payment = extract(invoke.payment)
228+ let amount = extract(payment.amount)
229+ let id = extract(invoke.transactionId)
230+ let signer = toBase58String(invoke.caller.bytes)
231+ let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId))
232+ if (!(signingRequestExist))
233+ then throw("Sorry there is no pending signature")
234+ else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id)))]), TransferSet([ScriptTransfer(addressFromStringValue(signer), 500000, unit)]))
235+ }
236+
237+

github/deemru/w8io/026f985 
43.04 ms