tx · 5qMD6qYEK8HYE1JrSKTKToHTa1XNUquTPVNFiHniikN1

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2020.02.01 14:46 [880003] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "5qMD6qYEK8HYE1JrSKTKToHTa1XNUquTPVNFiHniikN1", "fee": 1400000, "feeAssetId": null, "timestamp": 1580557598257, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "5EGBreygNfBpJxBSQB8KatYvmcWBD7uYrWq77ePF4GxK16RGju4fYdcNC698H2DjSvFSzGwgCbgAdnL2NpTYhwD6" ], "script": "base64:AAIDAAAAAAAAAB4IARIGCgQICAgIEgUKAwgICBIFCgMICAgSBAoCCAgAAAAKAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIIPHkq+4VK8OAjXLmW+XWyWkxkt+QINXbtevPAOr6hEdAQAAAApjaGVja0VudHJ5AAAAAgAAAAZwcmVmaXgAAAAEdXVpZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABnByZWZpeAUAAAAEdXVpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FAQAAAAljaGVja1VVSUQAAAABAAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpc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AHoSAFAAAABHVuaXQFAAAAA25pbAAAAADTNS3o", "chainId": 84, "height": 880003, "spentComplexity": 0 } View: original | compacted Prev: 6Pwbo6XCYEVXHwQFSgd52y96HPwXGJzgNyPmunPoTepz Next: AnbPcqbgFTqEbNYaxA2Z1MrHKgwYHuk25t1ZLmWWXfJu Diff:
OldNewDifferences
44 let verifier = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
7+
8+let acceptedToken = base58'9sQutD5HnRvjM1uui5cVC4w9xkMPAfYEV8ymug3Mon2Y'
79
810 func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) {
911 case a: String =>
3436 else false)
3537 then true
3638 else (take(addr, 2) == "3M")
37-
38-
39-func countParties (accumulator,addr) = if ((size(addr) > 0))
40- then (accumulator + 1)
41- else (accumulator + 0)
4239
4340
4441 func checkIfPendingToSign (key) = match getString(this, key) {
8784 let paymentAssetId = if (isDefined(payment.assetId))
8885 then extract(payment.assetId)
8986 else throw("Waves is not accepted as payment")
90- let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
91- case a: String =>
92- a
93- case _ =>
94- throw("This token is not accepted at the moment")
95- }
9687 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
97- if ((acceptedToken != "WHITELISTED"))
88+ if ((acceptedToken != paymentAssetId))
9889 then throw("This token is not accepted at the moment")
9990 else if (if ((amount != currentPrice))
10091 then (0 >= callerIsWhiteListedNum)
127118 let paymentAssetId = if (isDefined(payment.assetId))
128119 then extract(payment.assetId)
129120 else throw("Waves is not accepted as payment")
130- let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
131- case a: String =>
132- a
133- case _ =>
134- throw("This token is not accepted at the moment")
135- }
136121 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
137- if ((acceptedToken != "WHITELISTED"))
122+ if ((acceptedToken != paymentAssetId))
138123 then throw("This token is not accepted at the moment")
139124 else if (if ((amount != currentPrice))
140125 then (0 >= callerIsWhiteListedNum)
148133
149134 @Callable(invoke)
150135 func createAgreement (hash,title,addresses) = {
151- let payment = extract(invoke.payment)
152- let amount = extract(payment.amount)
153136 let id = extract(invoke.transactionId)
137+ let callerAddress = toBase58String(invoke.caller.bytes)
138+ let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
154139 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
140+ let address1 = if ((size(addressesArray[0]) > 0))
141+ then 1
142+ else 0
143+ let address2 = if ((size(addressesArray[1]) > 0))
144+ then 1
145+ else 0
146+ let address3 = if ((size(addressesArray[2]) > 0))
147+ then 1
148+ else 0
149+ let address4 = if ((size(addressesArray[3]) > 0))
150+ then 1
151+ else 0
152+ let address5 = if ((size(addressesArray[4]) > 0))
153+ then 1
154+ else 0
155+ let address6 = if ((size(addressesArray[5]) > 0))
156+ then 1
157+ else 0
158+ let totalAddresses = (((((address1 + address2) + address3) + address4) + address5) + address6)
159+ if ((totalAddresses == 2))
160+ then if ((callerIsWhiteListedNum > 0))
161+ then if ((totalAddresses > callerIsWhiteListedNum))
162+ then throw("You don't have enough certification credit")
163+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)]))
161164 else {
162- let $acc174257465 = countParties($acc074257465, $list74257465[0])
163- if (($size74257465 == 1))
164- then $acc174257465
165+ let payment = extract(invoke.payment)
166+ let amount = extract(payment.amount)
167+ let paymentAssetId = if (isDefined(payment.assetId))
168+ then extract(payment.assetId)
169+ else throw("Waves is not accepted as payment")
170+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
171+ if ((acceptedToken != paymentAssetId))
172+ then throw("Only payments in SIGN are allowed at the moment")
173+ else if (((currentPrice * totalAddresses) > amount))
174+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
175+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)]))
176+ }
177+ else if ((totalAddresses == 3))
178+ then if ((callerIsWhiteListedNum > 0))
179+ then if ((totalAddresses > callerIsWhiteListedNum))
180+ then throw("You don't have enough certification credit")
181+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)]))
182+ else {
183+ let payment = extract(invoke.payment)
184+ let amount = extract(payment.amount)
185+ let paymentAssetId = if (isDefined(payment.assetId))
186+ then extract(payment.assetId)
187+ else throw("Waves is not accepted as payment")
188+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
189+ if ((acceptedToken != paymentAssetId))
190+ then throw("Only payments in SIGN are allowed at the moment")
191+ else if (((currentPrice * totalAddresses) > amount))
192+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
193+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)]))
194+ }
195+ else if ((totalAddresses == 4))
196+ then if ((callerIsWhiteListedNum > 0))
197+ then if ((totalAddresses > callerIsWhiteListedNum))
198+ then throw("You don't have enough certification credit")
199+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)]))
165200 else {
166- let $acc274257465 = countParties($acc174257465, $list74257465[1])
167- if (($size74257465 == 2))
168- then $acc274257465
201+ let payment = extract(invoke.payment)
202+ let amount = extract(payment.amount)
203+ let paymentAssetId = if (isDefined(payment.assetId))
204+ then extract(payment.assetId)
205+ else throw("Waves is not accepted as payment")
206+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
207+ if ((acceptedToken != paymentAssetId))
208+ then throw("Only payments in SIGN are allowed at the moment")
209+ else if (((currentPrice * totalAddresses) > amount))
210+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
211+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)]))
212+ }
213+ else if ((totalAddresses == 5))
214+ then if ((callerIsWhiteListedNum > 0))
215+ then if ((totalAddresses > callerIsWhiteListedNum))
216+ then throw("You don't have enough certification credit")
217+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)]))
218+ else {
219+ let payment = extract(invoke.payment)
220+ let amount = extract(payment.amount)
221+ let paymentAssetId = if (isDefined(payment.assetId))
222+ then extract(payment.assetId)
223+ else throw("Waves is not accepted as payment")
224+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
225+ if ((acceptedToken != paymentAssetId))
226+ then throw("Only payments in SIGN are allowed at the moment")
227+ else if (((currentPrice * totalAddresses) > amount))
228+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
229+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)]))
230+ }
231+ else if ((totalAddresses == 6))
232+ then if ((callerIsWhiteListedNum > 0))
233+ then if ((totalAddresses > callerIsWhiteListedNum))
234+ then throw("You don't have enough certification credit")
235+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)]))
169236 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- }
237+ let payment = extract(invoke.payment)
238+ let amount = extract(payment.amount)
239+ let paymentAssetId = if (isDefined(payment.assetId))
240+ then extract(payment.assetId)
241+ else throw("Waves is not accepted as payment")
242+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
243+ if ((acceptedToken != paymentAssetId))
244+ then throw("Only payments in SIGN are allowed at the moment")
245+ else if (((currentPrice * totalAddresses) > amount))
246+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
247+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)]))
192248 }
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)))
249+ else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses)))
221250 }
222251
223252
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"
7+
8+let acceptedToken = base58'9sQutD5HnRvjM1uui5cVC4w9xkMPAfYEV8ymug3Mon2Y'
79
810 func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) {
911 case a: String =>
1012 a
1113 case _ =>
1214 "NONE"
1315 }
1416
1517
1618 func checkUUID (uuid) = match getString(this, uuid) {
1719 case a: String =>
1820 a
1921 case _ =>
2022 "NONE"
2123 }
2224
2325
2426 func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) {
2527 case a: Int =>
2628 a
2729 case _ =>
2830 0
2931 }
3032
3133
3234 func isAdress (addr) = if (if ((size(addr) == 35))
3335 then (take(addr, 2) == "3N")
3436 else false)
3537 then true
3638 else (take(addr, 2) == "3M")
37-
38-
39-func countParties (accumulator,addr) = if ((size(addr) > 0))
40- then (accumulator + 1)
41- else (accumulator + 0)
4239
4340
4441 func checkIfPendingToSign (key) = match getString(this, key) {
4542 case a: String =>
4643 if ((a == "PENDING"))
4744 then true
4845 else false
4946 case _ =>
5047 false
5148 }
5249
5350
5451 func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\"")))
5552
5653
5754 func getValue (json,key) = {
5855 let keyIndex = value(indexOf(json, (("\"" + key) + "\":")))
5956 let data = drop(json, ((keyIndex + size(key)) + 3))
6057 let jsonValue = getValueString(data)
6158 jsonValue
6259 }
6360
6461
6562 @Callable(invoke)
6663 func fileCertification (hash,title,uuid,data) = {
6764 let id = extract(invoke.transactionId)
6865 let entryExist = checkEntry(hash, uuid)
6966 let uuidExist = checkUUID(uuid)
7067 let callerAddress = toBase58String(invoke.caller.bytes)
7168 let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
7269 if ((entryExist != "NONE"))
7370 then throw("This entry already exist")
7471 else if ((uuidExist != "NONE"))
7572 then throw("This uuid already exist")
7673 else if ((size(uuid) > 36))
7774 then throw("Uuid is too long")
7875 else if ((size(hash) > 64))
7976 then throw("Hash is too long")
8077 else if ((size(title) > 64))
8178 then throw("Title is too long")
8279 else if ((callerIsWhiteListedNum > 0))
8380 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)]))
8481 else {
8582 let payment = extract(invoke.payment)
8683 let amount = extract(payment.amount)
8784 let paymentAssetId = if (isDefined(payment.assetId))
8885 then extract(payment.assetId)
8986 else throw("Waves is not accepted as payment")
90- let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
91- case a: String =>
92- a
93- case _ =>
94- throw("This token is not accepted at the moment")
95- }
9687 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
97- if ((acceptedToken != "WHITELISTED"))
88+ if ((acceptedToken != paymentAssetId))
9889 then throw("This token is not accepted at the moment")
9990 else if (if ((amount != currentPrice))
10091 then (0 >= callerIsWhiteListedNum)
10192 else false)
10293 then throw("The price is wrong")
10394 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)]))
10495 }
10596 }
10697
10798
10899
109100 @Callable(invoke)
110101 func emailCertification (messageid,uuid,data) = {
111102 let id = extract(invoke.transactionId)
112103 let entryExist = checkEntry(messageid, uuid)
113104 let uuidExist = checkUUID(uuid)
114105 let callerAddress = toBase58String(invoke.caller.bytes)
115106 let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
116107 if ((entryExist != "NONE"))
117108 then throw("This entry already exist")
118109 else if ((uuidExist != "NONE"))
119110 then throw("This uuid already exist")
120111 else if ((size(uuid) > 36))
121112 then throw("Uuid is too long")
122113 else if ((callerIsWhiteListedNum > 0))
123114 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)]))
124115 else {
125116 let payment = extract(invoke.payment)
126117 let amount = extract(payment.amount)
127118 let paymentAssetId = if (isDefined(payment.assetId))
128119 then extract(payment.assetId)
129120 else throw("Waves is not accepted as payment")
130- let acceptedToken = match getString(verifier, ("white_list_token_" + toBase58String(extract(paymentAssetId)))) {
131- case a: String =>
132- a
133- case _ =>
134- throw("This token is not accepted at the moment")
135- }
136121 let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
137- if ((acceptedToken != "WHITELISTED"))
122+ if ((acceptedToken != paymentAssetId))
138123 then throw("This token is not accepted at the moment")
139124 else if (if ((amount != currentPrice))
140125 then (0 >= callerIsWhiteListedNum)
141126 else false)
142127 then throw("The price is wrong")
143128 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)]))
144129 }
145130 }
146131
147132
148133
149134 @Callable(invoke)
150135 func createAgreement (hash,title,addresses) = {
151- let payment = extract(invoke.payment)
152- let amount = extract(payment.amount)
153136 let id = extract(invoke.transactionId)
137+ let callerAddress = toBase58String(invoke.caller.bytes)
138+ let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress)
154139 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
140+ let address1 = if ((size(addressesArray[0]) > 0))
141+ then 1
142+ else 0
143+ let address2 = if ((size(addressesArray[1]) > 0))
144+ then 1
145+ else 0
146+ let address3 = if ((size(addressesArray[2]) > 0))
147+ then 1
148+ else 0
149+ let address4 = if ((size(addressesArray[3]) > 0))
150+ then 1
151+ else 0
152+ let address5 = if ((size(addressesArray[4]) > 0))
153+ then 1
154+ else 0
155+ let address6 = if ((size(addressesArray[5]) > 0))
156+ then 1
157+ else 0
158+ let totalAddresses = (((((address1 + address2) + address3) + address4) + address5) + address6)
159+ if ((totalAddresses == 2))
160+ then if ((callerIsWhiteListedNum > 0))
161+ then if ((totalAddresses > callerIsWhiteListedNum))
162+ then throw("You don't have enough certification credit")
163+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)]))
161164 else {
162- let $acc174257465 = countParties($acc074257465, $list74257465[0])
163- if (($size74257465 == 1))
164- then $acc174257465
165+ let payment = extract(invoke.payment)
166+ let amount = extract(payment.amount)
167+ let paymentAssetId = if (isDefined(payment.assetId))
168+ then extract(payment.assetId)
169+ else throw("Waves is not accepted as payment")
170+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
171+ if ((acceptedToken != paymentAssetId))
172+ then throw("Only payments in SIGN are allowed at the moment")
173+ else if (((currentPrice * totalAddresses) > amount))
174+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
175+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)]))
176+ }
177+ else if ((totalAddresses == 3))
178+ then if ((callerIsWhiteListedNum > 0))
179+ then if ((totalAddresses > callerIsWhiteListedNum))
180+ then throw("You don't have enough certification credit")
181+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)]))
182+ else {
183+ let payment = extract(invoke.payment)
184+ let amount = extract(payment.amount)
185+ let paymentAssetId = if (isDefined(payment.assetId))
186+ then extract(payment.assetId)
187+ else throw("Waves is not accepted as payment")
188+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
189+ if ((acceptedToken != paymentAssetId))
190+ then throw("Only payments in SIGN are allowed at the moment")
191+ else if (((currentPrice * totalAddresses) > amount))
192+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
193+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)]))
194+ }
195+ else if ((totalAddresses == 4))
196+ then if ((callerIsWhiteListedNum > 0))
197+ then if ((totalAddresses > callerIsWhiteListedNum))
198+ then throw("You don't have enough certification credit")
199+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)]))
165200 else {
166- let $acc274257465 = countParties($acc174257465, $list74257465[1])
167- if (($size74257465 == 2))
168- then $acc274257465
201+ let payment = extract(invoke.payment)
202+ let amount = extract(payment.amount)
203+ let paymentAssetId = if (isDefined(payment.assetId))
204+ then extract(payment.assetId)
205+ else throw("Waves is not accepted as payment")
206+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
207+ if ((acceptedToken != paymentAssetId))
208+ then throw("Only payments in SIGN are allowed at the moment")
209+ else if (((currentPrice * totalAddresses) > amount))
210+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
211+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken)]))
212+ }
213+ else if ((totalAddresses == 5))
214+ then if ((callerIsWhiteListedNum > 0))
215+ then if ((totalAddresses > callerIsWhiteListedNum))
216+ then throw("You don't have enough certification credit")
217+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)]))
218+ else {
219+ let payment = extract(invoke.payment)
220+ let amount = extract(payment.amount)
221+ let paymentAssetId = if (isDefined(payment.assetId))
222+ then extract(payment.assetId)
223+ else throw("Waves is not accepted as payment")
224+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
225+ if ((acceptedToken != paymentAssetId))
226+ then throw("Only payments in SIGN are allowed at the moment")
227+ else if (((currentPrice * totalAddresses) > amount))
228+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
229+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken)]))
230+ }
231+ else if ((totalAddresses == 6))
232+ then if ((callerIsWhiteListedNum > 0))
233+ then if ((totalAddresses > callerIsWhiteListedNum))
234+ then throw("You don't have enough certification credit")
235+ else ScriptResult(WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)), 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(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)]))
169236 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- }
237+ let payment = extract(invoke.payment)
238+ let amount = extract(payment.amount)
239+ let paymentAssetId = if (isDefined(payment.assetId))
240+ then extract(payment.assetId)
241+ else throw("Waves is not accepted as payment")
242+ let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId))))
243+ if ((acceptedToken != paymentAssetId))
244+ then throw("Only payments in SIGN are allowed at the moment")
245+ else if (((currentPrice * totalAddresses) > amount))
246+ then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses))))
247+ else 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, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[3]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[4]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[5]), 0, acceptedToken)]))
192248 }
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)))
249+ else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses)))
221250 }
222251
223252
224253
225254 @Callable(invoke)
226255 func signAgreement (hash,agreementId) = {
227256 let payment = extract(invoke.payment)
228257 let amount = extract(payment.amount)
229258 let id = extract(invoke.transactionId)
230259 let signer = toBase58String(invoke.caller.bytes)
231260 let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId))
232261 if (!(signingRequestExist))
233262 then throw("Sorry there is no pending signature")
234263 else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id)))]), TransferSet([ScriptTransfer(addressFromStringValue(signer), 500000, unit)]))
235264 }
236265
237266

github/deemru/w8io/026f985 
54.69 ms