tx · HxpZHPZPPdaanghD6VMp5ox1beM1mQrdgPPJ9TvWZR53 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2020.02.02 11:48 [881311] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "HxpZHPZPPdaanghD6VMp5ox1beM1mQrdgPPJ9TvWZR53", "fee": 1400000, "feeAssetId": null, "timestamp": 1580633408082, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "61es1RVnzrv1oe2guDf5oXr9QvCGb6xGjwnU6U8H94xVrxU531Dc267HL3G7MJcerYJP4dfm7B9EohuPvrKJ3NCy" ], "script": "base64:AAIDAAAAAAAAAB4IARIGCgQICAgIEgUKAwgICBIFCgMICAgSBAoCCAgAAAALAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAQAAAApjaGVja0VudHJ5AAAAAgAAAAZwcmVmaXgAAAAEdXVpZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABnByZWZpeAUAAAAEdXVpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FAQAAAAljaGVja1VVSUQAAAABAAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcw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FeGlzdAkBAAAAFGNoZWNrSWZQZW5kaW5nVG9TaWduAAAAAQkAASwAAAACCQABLAAAAAIFAAAABnNpZ25lcgIAAAAEX01BXwUAAAALYWdyZWVtZW50SWQDCQEAAAABIQAAAAEFAAAAE3NpZ25pbmdSZXF1ZXN0RXhpc3QJAAACAAAAAQIAAAAjU29ycnkgdGhlcmUgaXMgbm8gcGVuZGluZyBzaWduYXR1cmUJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAGc2lnbmVyAgAAAARfTUFfBQAAAAthZ3JlZW1lbnRJZAkAASwAAAACAgAAAAdTSUdORURfCQACWAAAAAEFAAAAAmlkBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAZzaWduZXIAAAAAAAAHoSAFAAAABHVuaXQFAAAAA25pbAAAAAA5g0bC", "chainId": 84, "height": 881311, "spentComplexity": 0 } View: original | compacted Prev: Dyi369DU53krXfcWLQWgrbvmhecpBd3WxBMXEXQqFBcc Next: vkHFrEZyDDHUnmTE5cJafghBGupSwtkNuQVuhofFAsE Diff:
Old | New | Differences | |
---|---|---|---|
143 | 143 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
144 | 144 | let addressesArray = [getValue(addresses, "address1"), getValue(addresses, "address2"), getValue(addresses, "address3"), getValue(addresses, "address4"), getValue(addresses, "address5"), getValue(addresses, "address6")] | |
145 | 145 | let totalAddresses = { | |
146 | - | let $ | |
147 | - | let $ | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
146 | + | let $list70377077 = addressesArray | |
147 | + | let $size70377077 = size($list70377077) | |
148 | + | let $acc070377077 = 0 | |
149 | + | if (($size70377077 == 0)) | |
150 | + | then $acc070377077 | |
151 | 151 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
152 | + | let $acc170377077 = countParties($acc070377077, $list70377077[0]) | |
153 | + | if (($size70377077 == 1)) | |
154 | + | then $acc170377077 | |
155 | 155 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
156 | + | let $acc270377077 = countParties($acc170377077, $list70377077[1]) | |
157 | + | if (($size70377077 == 2)) | |
158 | + | then $acc270377077 | |
159 | 159 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
160 | + | let $acc370377077 = countParties($acc270377077, $list70377077[2]) | |
161 | + | if (($size70377077 == 3)) | |
162 | + | then $acc370377077 | |
163 | 163 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
164 | + | let $acc470377077 = countParties($acc370377077, $list70377077[3]) | |
165 | + | if (($size70377077 == 4)) | |
166 | + | then $acc470377077 | |
167 | 167 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
168 | + | let $acc570377077 = countParties($acc470377077, $list70377077[4]) | |
169 | + | if (($size70377077 == 5)) | |
170 | + | then $acc570377077 | |
171 | 171 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
172 | + | let $acc670377077 = countParties($acc570377077, $list70377077[5]) | |
173 | + | if (($size70377077 == 6)) | |
174 | + | then $acc670377077 | |
175 | 175 | else { | |
176 | - | let $ | |
176 | + | let $acc770377077 = countParties($acc670377077, $list70377077[6]) | |
177 | 177 | throw("List size exceed 6") | |
178 | 178 | } | |
179 | 179 | } | |
183 | 183 | } | |
184 | 184 | } | |
185 | 185 | } | |
186 | + | let globalDataTitle = DataEntry(("title_MA_" + toBase58String(id)), title) | |
187 | + | let globalDataHash = DataEntry(("hash_MA_" + toBase58String(id)), hash) | |
188 | + | let globalDataJson = DataEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), addresses) | |
189 | + | let globalDataOwner = DataEntry((((callerAddress + "_MA_") + toBase58String(id)) + "_owner"), callerAddress) | |
190 | + | let dataWhiteListed = DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)) | |
186 | 191 | if ((totalAddresses == 2)) | |
187 | 192 | then if ((callerIsWhiteListedNum > 0)) | |
188 | 193 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
189 | 194 | then throw("You don't have enough certification credit") | |
190 | - | else ScriptResult(WriteSet([ | |
195 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
191 | 196 | else { | |
192 | 197 | let payment = extract(invoke.payment) | |
193 | 198 | let amount = extract(payment.amount) | |
199 | 204 | then throw("Only payments in SIGN are allowed at the moment") | |
200 | 205 | else if (((currentPrice * totalAddresses) > amount)) | |
201 | 206 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
202 | - | else ScriptResult(WriteSet([ | |
207 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
203 | 208 | } | |
204 | 209 | else if ((totalAddresses == 3)) | |
205 | 210 | then if ((callerIsWhiteListedNum > 0)) | |
206 | 211 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
207 | 212 | then throw("You don't have enough certification credit") | |
208 | - | else ScriptResult(WriteSet([ | |
213 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
209 | 214 | else { | |
210 | 215 | let payment = extract(invoke.payment) | |
211 | 216 | let amount = extract(payment.amount) | |
217 | 222 | then throw("Only payments in SIGN are allowed at the moment") | |
218 | 223 | else if (((currentPrice * totalAddresses) > amount)) | |
219 | 224 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
220 | - | else ScriptResult(WriteSet([ | |
225 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
221 | 226 | } | |
222 | 227 | else if ((totalAddresses == 4)) | |
223 | 228 | then if ((callerIsWhiteListedNum > 0)) | |
224 | 229 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
225 | 230 | then throw("You don't have enough certification credit") | |
226 | - | else ScriptResult(WriteSet([ | |
231 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
227 | 232 | else { | |
228 | 233 | let payment = extract(invoke.payment) | |
229 | 234 | let amount = extract(payment.amount) | |
235 | 240 | then throw("Only payments in SIGN are allowed at the moment") | |
236 | 241 | else if (((currentPrice * totalAddresses) > amount)) | |
237 | 242 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
238 | - | else ScriptResult(WriteSet([ | |
243 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
239 | 244 | } | |
240 | 245 | else if ((totalAddresses == 5)) | |
241 | 246 | then if ((callerIsWhiteListedNum > 0)) | |
242 | 247 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
243 | 248 | then throw("You don't have enough certification credit") | |
244 | - | else ScriptResult(WriteSet([ | |
249 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
245 | 250 | else { | |
246 | 251 | let payment = extract(invoke.payment) | |
247 | 252 | let amount = extract(payment.amount) | |
253 | 258 | then throw("Only payments in SIGN are allowed at the moment") | |
254 | 259 | else if (((currentPrice * totalAddresses) > amount)) | |
255 | 260 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
256 | - | else ScriptResult(WriteSet([ | |
261 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
257 | 262 | } | |
258 | 263 | else if ((totalAddresses == 6)) | |
259 | 264 | then if ((callerIsWhiteListedNum > 0)) | |
260 | 265 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
261 | 266 | then throw("You don't have enough certification credit") | |
262 | - | else ScriptResult(WriteSet([ | |
267 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
263 | 268 | else { | |
264 | 269 | let payment = extract(invoke.payment) | |
265 | 270 | let amount = extract(payment.amount) | |
271 | 276 | then throw("Only payments in SIGN are allowed at the moment") | |
272 | 277 | else if (((currentPrice * totalAddresses) > amount)) | |
273 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
274 | - | else ScriptResult(WriteSet([ | |
279 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
275 | 280 | } | |
276 | 281 | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
277 | 282 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let verifier = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let bank = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) { | |
11 | 11 | case a: String => | |
12 | 12 | a | |
13 | 13 | case _ => | |
14 | 14 | "NONE" | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func checkUUID (uuid) = match getString(this, uuid) { | |
19 | 19 | case a: String => | |
20 | 20 | a | |
21 | 21 | case _ => | |
22 | 22 | "NONE" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) { | |
27 | 27 | case a: Int => | |
28 | 28 | a | |
29 | 29 | case _ => | |
30 | 30 | 0 | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func isAdress (addr) = if (if ((size(addr) == 35)) | |
35 | 35 | then (take(addr, 2) == "3N") | |
36 | 36 | else false) | |
37 | 37 | then true | |
38 | 38 | else (take(addr, 2) == "3M") | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
42 | 42 | then (accumulator + 1) | |
43 | 43 | else (accumulator + 0) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func checkIfPendingToSign (key) = match getString(this, key) { | |
47 | 47 | case a: String => | |
48 | 48 | if ((a == "PENDING")) | |
49 | 49 | then true | |
50 | 50 | else false | |
51 | 51 | case _ => | |
52 | 52 | false | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\""))) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getValue (json,key) = { | |
60 | 60 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
61 | 61 | let data = drop(json, ((keyIndex + size(key)) + 3)) | |
62 | 62 | let jsonValue = getValueString(data) | |
63 | 63 | jsonValue | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | @Callable(invoke) | |
68 | 68 | func fileCertification (hash,title,uuid,data) = { | |
69 | 69 | let id = extract(invoke.transactionId) | |
70 | 70 | let entryExist = checkEntry(hash, uuid) | |
71 | 71 | let uuidExist = checkUUID(uuid) | |
72 | 72 | let callerAddress = toBase58String(invoke.caller.bytes) | |
73 | 73 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
74 | 74 | if ((entryExist != "NONE")) | |
75 | 75 | then throw("This entry already exist") | |
76 | 76 | else if ((uuidExist != "NONE")) | |
77 | 77 | then throw("This uuid already exist") | |
78 | 78 | else if ((size(uuid) > 36)) | |
79 | 79 | then throw("Uuid is too long") | |
80 | 80 | else if ((size(hash) > 64)) | |
81 | 81 | then throw("Hash is too long") | |
82 | 82 | else if ((size(title) > 64)) | |
83 | 83 | then throw("Title is too long") | |
84 | 84 | else if ((callerIsWhiteListedNum > 0)) | |
85 | 85 | 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)])) | |
86 | 86 | else { | |
87 | 87 | let payment = extract(invoke.payment) | |
88 | 88 | let amount = extract(payment.amount) | |
89 | 89 | let paymentAssetId = if (isDefined(payment.assetId)) | |
90 | 90 | then extract(payment.assetId) | |
91 | 91 | else throw("Waves is not accepted as payment") | |
92 | 92 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
93 | 93 | if ((acceptedToken != paymentAssetId)) | |
94 | 94 | then throw("This token is not accepted at the moment") | |
95 | 95 | else if (if ((amount != currentPrice)) | |
96 | 96 | then (0 >= callerIsWhiteListedNum) | |
97 | 97 | else false) | |
98 | 98 | then throw("The price is wrong") | |
99 | 99 | 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)])) | |
100 | 100 | } | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | ||
105 | 105 | @Callable(invoke) | |
106 | 106 | func emailCertification (messageid,uuid,data) = { | |
107 | 107 | let id = extract(invoke.transactionId) | |
108 | 108 | let entryExist = checkEntry(messageid, uuid) | |
109 | 109 | let uuidExist = checkUUID(uuid) | |
110 | 110 | let callerAddress = toBase58String(invoke.caller.bytes) | |
111 | 111 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
112 | 112 | if ((entryExist != "NONE")) | |
113 | 113 | then throw("This entry already exist") | |
114 | 114 | else if ((uuidExist != "NONE")) | |
115 | 115 | then throw("This uuid already exist") | |
116 | 116 | else if ((size(uuid) > 36)) | |
117 | 117 | then throw("Uuid is too long") | |
118 | 118 | else if ((callerIsWhiteListedNum > 0)) | |
119 | 119 | 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)])) | |
120 | 120 | else { | |
121 | 121 | let payment = extract(invoke.payment) | |
122 | 122 | let amount = extract(payment.amount) | |
123 | 123 | let paymentAssetId = if (isDefined(payment.assetId)) | |
124 | 124 | then extract(payment.assetId) | |
125 | 125 | else throw("Waves is not accepted as payment") | |
126 | 126 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
127 | 127 | if ((acceptedToken != paymentAssetId)) | |
128 | 128 | then throw("This token is not accepted at the moment") | |
129 | 129 | else if (if ((amount != currentPrice)) | |
130 | 130 | then (0 >= callerIsWhiteListedNum) | |
131 | 131 | else false) | |
132 | 132 | then throw("The price is wrong") | |
133 | 133 | 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)])) | |
134 | 134 | } | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(invoke) | |
140 | 140 | func createAgreement (hash,title,addresses) = { | |
141 | 141 | let id = extract(invoke.transactionId) | |
142 | 142 | let callerAddress = toBase58String(invoke.caller.bytes) | |
143 | 143 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
144 | 144 | let addressesArray = [getValue(addresses, "address1"), getValue(addresses, "address2"), getValue(addresses, "address3"), getValue(addresses, "address4"), getValue(addresses, "address5"), getValue(addresses, "address6")] | |
145 | 145 | let totalAddresses = { | |
146 | - | let $ | |
147 | - | let $ | |
148 | - | let $ | |
149 | - | if (($ | |
150 | - | then $ | |
146 | + | let $list70377077 = addressesArray | |
147 | + | let $size70377077 = size($list70377077) | |
148 | + | let $acc070377077 = 0 | |
149 | + | if (($size70377077 == 0)) | |
150 | + | then $acc070377077 | |
151 | 151 | else { | |
152 | - | let $ | |
153 | - | if (($ | |
154 | - | then $ | |
152 | + | let $acc170377077 = countParties($acc070377077, $list70377077[0]) | |
153 | + | if (($size70377077 == 1)) | |
154 | + | then $acc170377077 | |
155 | 155 | else { | |
156 | - | let $ | |
157 | - | if (($ | |
158 | - | then $ | |
156 | + | let $acc270377077 = countParties($acc170377077, $list70377077[1]) | |
157 | + | if (($size70377077 == 2)) | |
158 | + | then $acc270377077 | |
159 | 159 | else { | |
160 | - | let $ | |
161 | - | if (($ | |
162 | - | then $ | |
160 | + | let $acc370377077 = countParties($acc270377077, $list70377077[2]) | |
161 | + | if (($size70377077 == 3)) | |
162 | + | then $acc370377077 | |
163 | 163 | else { | |
164 | - | let $ | |
165 | - | if (($ | |
166 | - | then $ | |
164 | + | let $acc470377077 = countParties($acc370377077, $list70377077[3]) | |
165 | + | if (($size70377077 == 4)) | |
166 | + | then $acc470377077 | |
167 | 167 | else { | |
168 | - | let $ | |
169 | - | if (($ | |
170 | - | then $ | |
168 | + | let $acc570377077 = countParties($acc470377077, $list70377077[4]) | |
169 | + | if (($size70377077 == 5)) | |
170 | + | then $acc570377077 | |
171 | 171 | else { | |
172 | - | let $ | |
173 | - | if (($ | |
174 | - | then $ | |
172 | + | let $acc670377077 = countParties($acc570377077, $list70377077[5]) | |
173 | + | if (($size70377077 == 6)) | |
174 | + | then $acc670377077 | |
175 | 175 | else { | |
176 | - | let $ | |
176 | + | let $acc770377077 = countParties($acc670377077, $list70377077[6]) | |
177 | 177 | throw("List size exceed 6") | |
178 | 178 | } | |
179 | 179 | } | |
180 | 180 | } | |
181 | 181 | } | |
182 | 182 | } | |
183 | 183 | } | |
184 | 184 | } | |
185 | 185 | } | |
186 | + | let globalDataTitle = DataEntry(("title_MA_" + toBase58String(id)), title) | |
187 | + | let globalDataHash = DataEntry(("hash_MA_" + toBase58String(id)), hash) | |
188 | + | let globalDataJson = DataEntry(((("data_MA_" + toBase58String(id)) + "_") + callerAddress), addresses) | |
189 | + | let globalDataOwner = DataEntry((((callerAddress + "_MA_") + toBase58String(id)) + "_owner"), callerAddress) | |
190 | + | let dataWhiteListed = DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - totalAddresses)) | |
186 | 191 | if ((totalAddresses == 2)) | |
187 | 192 | then if ((callerIsWhiteListedNum > 0)) | |
188 | 193 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
189 | 194 | then throw("You don't have enough certification credit") | |
190 | - | else ScriptResult(WriteSet([ | |
195 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
191 | 196 | else { | |
192 | 197 | let payment = extract(invoke.payment) | |
193 | 198 | let amount = extract(payment.amount) | |
194 | 199 | let paymentAssetId = if (isDefined(payment.assetId)) | |
195 | 200 | then extract(payment.assetId) | |
196 | 201 | else throw("Waves is not accepted as payment") | |
197 | 202 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
198 | 203 | if ((acceptedToken != paymentAssetId)) | |
199 | 204 | then throw("Only payments in SIGN are allowed at the moment") | |
200 | 205 | else if (((currentPrice * totalAddresses) > amount)) | |
201 | 206 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
202 | - | else ScriptResult(WriteSet([ | |
207 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
203 | 208 | } | |
204 | 209 | else if ((totalAddresses == 3)) | |
205 | 210 | then if ((callerIsWhiteListedNum > 0)) | |
206 | 211 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
207 | 212 | then throw("You don't have enough certification credit") | |
208 | - | else ScriptResult(WriteSet([ | |
213 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
209 | 214 | else { | |
210 | 215 | let payment = extract(invoke.payment) | |
211 | 216 | let amount = extract(payment.amount) | |
212 | 217 | let paymentAssetId = if (isDefined(payment.assetId)) | |
213 | 218 | then extract(payment.assetId) | |
214 | 219 | else throw("Waves is not accepted as payment") | |
215 | 220 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
216 | 221 | if ((acceptedToken != paymentAssetId)) | |
217 | 222 | then throw("Only payments in SIGN are allowed at the moment") | |
218 | 223 | else if (((currentPrice * totalAddresses) > amount)) | |
219 | 224 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
220 | - | else ScriptResult(WriteSet([ | |
225 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
221 | 226 | } | |
222 | 227 | else if ((totalAddresses == 4)) | |
223 | 228 | then if ((callerIsWhiteListedNum > 0)) | |
224 | 229 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
225 | 230 | then throw("You don't have enough certification credit") | |
226 | - | else ScriptResult(WriteSet([ | |
231 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
227 | 232 | else { | |
228 | 233 | let payment = extract(invoke.payment) | |
229 | 234 | let amount = extract(payment.amount) | |
230 | 235 | let paymentAssetId = if (isDefined(payment.assetId)) | |
231 | 236 | then extract(payment.assetId) | |
232 | 237 | else throw("Waves is not accepted as payment") | |
233 | 238 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
234 | 239 | if ((acceptedToken != paymentAssetId)) | |
235 | 240 | then throw("Only payments in SIGN are allowed at the moment") | |
236 | 241 | else if (((currentPrice * totalAddresses) > amount)) | |
237 | 242 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
238 | - | else ScriptResult(WriteSet([ | |
243 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
239 | 244 | } | |
240 | 245 | else if ((totalAddresses == 5)) | |
241 | 246 | then if ((callerIsWhiteListedNum > 0)) | |
242 | 247 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
243 | 248 | then throw("You don't have enough certification credit") | |
244 | - | else ScriptResult(WriteSet([ | |
249 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
245 | 250 | else { | |
246 | 251 | let payment = extract(invoke.payment) | |
247 | 252 | let amount = extract(payment.amount) | |
248 | 253 | let paymentAssetId = if (isDefined(payment.assetId)) | |
249 | 254 | then extract(payment.assetId) | |
250 | 255 | else throw("Waves is not accepted as payment") | |
251 | 256 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
252 | 257 | if ((acceptedToken != paymentAssetId)) | |
253 | 258 | then throw("Only payments in SIGN are allowed at the moment") | |
254 | 259 | else if (((currentPrice * totalAddresses) > amount)) | |
255 | 260 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
256 | - | else ScriptResult(WriteSet([ | |
261 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
257 | 262 | } | |
258 | 263 | else if ((totalAddresses == 6)) | |
259 | 264 | then if ((callerIsWhiteListedNum > 0)) | |
260 | 265 | then if ((totalAddresses > callerIsWhiteListedNum)) | |
261 | 266 | then throw("You don't have enough certification credit") | |
262 | - | else ScriptResult(WriteSet([ | |
267 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, 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)])) | |
263 | 268 | else { | |
264 | 269 | let payment = extract(invoke.payment) | |
265 | 270 | let amount = extract(payment.amount) | |
266 | 271 | let paymentAssetId = if (isDefined(payment.assetId)) | |
267 | 272 | then extract(payment.assetId) | |
268 | 273 | else throw("Waves is not accepted as payment") | |
269 | 274 | let currentPrice = getIntegerValue(verifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
270 | 275 | if ((acceptedToken != paymentAssetId)) | |
271 | 276 | then throw("Only payments in SIGN are allowed at the moment") | |
272 | 277 | else if (((currentPrice * totalAddresses) > amount)) | |
273 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * totalAddresses)))) | |
274 | - | else ScriptResult(WriteSet([ | |
279 | + | else ScriptResult(WriteSet([globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, 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)])) | |
275 | 280 | } | |
276 | 281 | else throw(("Needs 2 to 6 parties addresses" + toString(totalAddresses))) | |
277 | 282 | } | |
278 | 283 | ||
279 | 284 | ||
280 | 285 | ||
281 | 286 | @Callable(invoke) | |
282 | 287 | func signAgreement (hash,agreementId) = { | |
283 | 288 | let payment = extract(invoke.payment) | |
284 | 289 | let amount = extract(payment.amount) | |
285 | 290 | let id = extract(invoke.transactionId) | |
286 | 291 | let signer = toBase58String(invoke.caller.bytes) | |
287 | 292 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
288 | 293 | if (!(signingRequestExist)) | |
289 | 294 | then throw("Sorry there is no pending signature") | |
290 | 295 | else ScriptResult(WriteSet([DataEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + toBase58String(id)))]), TransferSet([ScriptTransfer(addressFromStringValue(signer), 500000, unit)])) | |
291 | 296 | } | |
292 | 297 | ||
293 | 298 |
github/deemru/w8io/026f985 139.58 ms ◑