tx · N8eGmqJ1ZWS62uimfFo3hCui5Hxrb9WwG2uGhnoqw92 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2020.09.01 10:59 [1158041] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "N8eGmqJ1ZWS62uimfFo3hCui5Hxrb9WwG2uGhnoqw92", "fee": 1400000, "feeAssetId": null, "timestamp": 1598947179945, "version": 2, "chainId": 84, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "4wiXqWC3YHEWgs9v29BUxwQTu73E2gmAXnmvSAuhf5t6Z4scuGwZmwEcVLNpfScaLCXLdN2bYVy1vfagbLveUto8" ], "script": "base64:AAIEAAAAAAAAAC0IAhIHCgUICAgICBIECgIICBIHCgUICAgICBIICgYICAgICAgSBQoDCAgIEgAAAAAOAAAAAA9zdG9yYWdlVmVyaWZpZXIJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAAC2ZlZVJlY2VpdmVyAgAAACMzTjFFNnRYZGRSb1ZhUmZROWRRM3ZnNUxhVzJmc2Q4SEt1YgAAAAANYWNjZXB0ZWRUb2tlbgEAAAAg6KVqvMp3QvJwYTI1Sk9Fg7m5HuWZZxfDcerZC6EEresAAAAABnVzZG5JRAIAAAAsM0tGWEJHR0xDakE1WjJEdVc0RHE5ZkREckhqSkpQMVpFa2FvYWpTenVLc0MBAAAACmNoZWNrRW50cnkAAAACAAAABnByZWZpeAAAAAR1dWlkBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAGcHJlZml4BQAAAAR1dWlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEF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ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlS2NSm", "height": 1158041, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Bi2cKgGE41WAHe5dUezas4EgmFi3hJx9ESfjUZD3E177 Next: CE82ZmoP8evGYsbAPjoYMymFiYSQLz1tqhajKVK6HPPw Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let storageVerifier = | |
4 | + | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | - | let | |
6 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | - | ||
43 | - | ||
44 | - | func isAdress (addr) = if (if (if ((size(addr) == 35)) | |
45 | - | then (take(addr, 2) == "3P") | |
46 | - | else false) | |
47 | - | then true | |
48 | - | else (take(addr, 2) == "3N")) | |
49 | - | then true | |
50 | - | else (take(addr, 2) == "3M") | |
51 | - | ||
52 | - | ||
53 | - | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
54 | - | then (accumulator + 1) | |
55 | - | else (accumulator + 0) | |
56 | 42 | ||
57 | 43 | ||
58 | 44 | func checkIfPendingToSign (key) = match getString(this, key) { | |
100 | 86 | ||
101 | 87 | @Callable(invoke) | |
102 | 88 | func fileCertification (hash,title,uuid,data,signerPubKey) = { | |
103 | - | let id = | |
89 | + | let id = toBase58String(invoke.transactionId) | |
104 | 90 | let entryExist = checkEntry(hash, uuid) | |
105 | 91 | let uuidExist = checkUUID(uuid) | |
106 | 92 | let callerIsDapp = (this == invoke.caller) | |
119 | 105 | else if ((size(title) > 64)) | |
120 | 106 | then throw("Title is too long, 64 characters max.") | |
121 | 107 | else if ((callerIsWhiteListedNum > 0)) | |
122 | - | then | |
108 | + | then [StringEntry(uuid, id), StringEntry((hash + uuid), id), StringEntry((title + uuid), id), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
123 | 109 | else if (!(callerIsDapp)) | |
124 | 110 | then { | |
125 | - | let payment = | |
126 | - | let amount = | |
111 | + | let payment = value(invoke.payments[0]) | |
112 | + | let amount = payment.amount | |
127 | 113 | let paymentAssetId = if (isDefined(payment.assetId)) | |
128 | - | then | |
114 | + | then payment.assetId | |
129 | 115 | else throw("Waves is not accepted as payment") | |
130 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
116 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
131 | 117 | if ((acceptedToken != paymentAssetId)) | |
132 | 118 | then throw("This token is not accepted at the moment") | |
133 | 119 | else if (if ((amount != currentPrice)) | |
134 | 120 | then (0 >= callerIsWhiteListedNum) | |
135 | 121 | else false) | |
136 | 122 | then throw("The price is wrong") | |
137 | - | else | |
123 | + | else [StringEntry(uuid, id), StringEntry((hash + uuid), id), StringEntry((title + uuid), id), StringEntry(((("data_fc_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
138 | 124 | } | |
139 | 125 | else throw("You are not allowed to do that") | |
140 | 126 | } | |
143 | 129 | ||
144 | 130 | @Callable(invoke) | |
145 | 131 | func revokeCertification (certificationId,signerPubKey) = { | |
146 | - | let id = | |
132 | + | let id = toBase58String(invoke.transactionId) | |
147 | 133 | let callerIsDapp = (this == invoke.caller) | |
148 | 134 | let callerAddress = if (callerIsDapp) | |
149 | 135 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
161 | 147 | "NONE" | |
162 | 148 | } | |
163 | 149 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
164 | - | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}") | |
165 | 150 | if ((isRevoked != "NONE")) | |
166 | 151 | then throw("This certification have already been revoked.") | |
167 | 152 | else if ((entryExist == "NONE")) | |
168 | 153 | then throw("You cannot change the status of this certification.") | |
169 | - | else if ((callerIsWhiteListedNum > 0)) | |
170 | - | then WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), DataEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)]) | |
171 | - | else if (!(callerIsDapp)) | |
172 | - | then { | |
173 | - | let payment = extract(invoke.payment) | |
174 | - | let amount = extract(payment.amount) | |
175 | - | let paymentAssetId = if (isDefined(payment.assetId)) | |
176 | - | then extract(payment.assetId) | |
177 | - | else throw("Waves is not accepted as payment") | |
178 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
179 | - | if ((acceptedToken != paymentAssetId)) | |
180 | - | then throw("This token is not accepted at the moment") | |
181 | - | else if (if ((amount != currentPrice)) | |
182 | - | then (0 >= callerIsWhiteListedNum) | |
183 | - | else false) | |
184 | - | then throw("The price is wrong") | |
185 | - | else ScriptResult(WriteSet([DataEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), DataEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)])) | |
186 | - | } | |
187 | - | else throw("You are not allowed to do that") | |
154 | + | else { | |
155 | + | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + id) + "\"}") | |
156 | + | if ((callerIsWhiteListedNum > 0)) | |
157 | + | then [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + id)), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)] | |
158 | + | else if (!(callerIsDapp)) | |
159 | + | then { | |
160 | + | let payment = value(invoke.payments[0]) | |
161 | + | let amount = payment.amount | |
162 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
163 | + | then payment.assetId | |
164 | + | else throw("Waves is not accepted as payment") | |
165 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
166 | + | if ((acceptedToken != paymentAssetId)) | |
167 | + | then throw("This token is not accepted at the moment") | |
168 | + | else if (if ((amount != currentPrice)) | |
169 | + | then (0 >= callerIsWhiteListedNum) | |
170 | + | else false) | |
171 | + | then throw("The price is wrong") | |
172 | + | else [StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + id)), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
173 | + | } | |
174 | + | else throw("You are not allowed to do that") | |
175 | + | } | |
188 | 176 | } | |
189 | 177 | ||
190 | 178 | ||
191 | 179 | ||
192 | 180 | @Callable(invoke) | |
193 | - | func emailCertification (domain, | |
194 | - | let id = | |
181 | + | func emailCertification (domain,uuid,data,title,signerPubKey) = { | |
182 | + | let id = toBase58String(invoke.transactionId) | |
195 | 183 | let entryExist = checkEntryEmail(domain, uuid) | |
196 | 184 | let uuidExist = checkUUID(uuid) | |
197 | 185 | let callerIsDapp = (this == invoke.caller) | |
210 | 198 | else if ((size(title) > 64)) | |
211 | 199 | then throw("Title is too long, 64 characters max.") | |
212 | 200 | else if ((callerIsWhiteListedNum > 0)) | |
213 | - | then | |
201 | + | then [StringEntry(uuid, id), StringEntry(((uuid + "@") + domain), id), StringEntry((title + uuid), id), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_ec_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
214 | 202 | else if (!(callerIsDapp)) | |
215 | 203 | then { | |
216 | - | let payment = | |
217 | - | let amount = | |
204 | + | let payment = value(invoke.payments[0]) | |
205 | + | let amount = payment.amount | |
218 | 206 | let paymentAssetId = if (isDefined(payment.assetId)) | |
219 | - | then | |
207 | + | then payment.assetId | |
220 | 208 | else throw("Waves is not accepted as payment") | |
221 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
209 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
222 | 210 | if ((acceptedToken != paymentAssetId)) | |
223 | 211 | then throw("This token is not accepted at the moment") | |
224 | 212 | else if (if ((amount != currentPrice)) | |
225 | 213 | then (0 >= callerIsWhiteListedNum) | |
226 | 214 | else false) | |
227 | 215 | then throw("The price is wrong") | |
228 | - | else | |
216 | + | else [StringEntry(uuid, id), StringEntry(((uuid + "@") + domain), id), StringEntry((title + uuid), id), StringEntry(((("data_ec_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
229 | 217 | } | |
230 | 218 | else throw("You are not allowed to do that") | |
231 | 219 | } | |
234 | 222 | ||
235 | 223 | @Callable(invoke) | |
236 | 224 | func createAgreement (hash,title,stringifiedJSON,counterParts,signerPubKey,uuid) = { | |
237 | - | let id = | |
225 | + | let id = toBase58String(invoke.transactionId) | |
238 | 226 | let entryExist = checkEntry(hash, uuid) | |
239 | 227 | let uuidExist = checkUUID(uuid) | |
240 | 228 | let callerIsDapp = (this == invoke.caller) | |
245 | 233 | let JSON = ((((getJsonBeforeValue(stringifiedJSON, "creator") + "\"") + callerAddress) + "\"") + getJsonAfterValue(stringifiedJSON, "creator")) | |
246 | 234 | let addressesArray = split(counterParts, ",") | |
247 | 235 | let totalAddresses = size(addressesArray) | |
248 | - | let globalDataTitle = | |
249 | - | let globalDataHash = | |
250 | - | let globalDataJson = | |
251 | - | let globalDataOwner = | |
252 | - | let dataWhiteListed = | |
236 | + | let globalDataTitle = StringEntry((title + uuid), id) | |
237 | + | let globalDataHash = StringEntry((hash + uuid), id) | |
238 | + | let globalDataJson = StringEntry(((("data_MA_" + id) + "_") + callerAddress), JSON) | |
239 | + | let globalDataOwner = StringEntry(((callerAddress + "_MA_") + id), ("SIGNED_" + id)) | |
240 | + | let dataWhiteListed = IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - (totalAddresses + 1))) | |
253 | 241 | if ((entryExist != "NONE")) | |
254 | 242 | then throw("This entry already exist") | |
255 | 243 | else if ((uuidExist != "NONE")) | |
264 | 252 | then if (((totalAddresses + 1) > callerIsWhiteListedNum)) | |
265 | 253 | then throw("You don't have enough certification credit") | |
266 | 254 | else if ((totalAddresses == 6)) | |
267 | - | then | |
255 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
268 | 256 | else if ((totalAddresses == 5)) | |
269 | - | then | |
257 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
270 | 258 | else if ((totalAddresses == 4)) | |
271 | - | then | |
259 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
272 | 260 | else if ((totalAddresses == 3)) | |
273 | - | then | |
261 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
274 | 262 | else if ((totalAddresses == 2)) | |
275 | - | then | |
263 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
276 | 264 | else if ((totalAddresses == 1)) | |
277 | - | then | |
265 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
278 | 266 | else throw("Wrong number of participants") | |
279 | 267 | else if (!(callerIsDapp)) | |
280 | 268 | then { | |
281 | - | let payment = | |
269 | + | let payment = value(invoke.payments[0]) | |
282 | 270 | let amount = if (isDefined(payment.amount)) | |
283 | - | then | |
271 | + | then payment.amount | |
284 | 272 | else 0 | |
285 | 273 | let paymentAssetId = if (isDefined(payment.assetId)) | |
286 | - | then | |
274 | + | then payment.assetId | |
287 | 275 | else acceptedToken | |
288 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
276 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
289 | 277 | if (((currentPrice * (totalAddresses + 1)) > amount)) | |
290 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * (totalAddresses + 1))))) | |
291 | 279 | else if ((totalAddresses == 6)) | |
292 | - | then | |
280 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
293 | 281 | else if ((totalAddresses == 5)) | |
294 | - | then | |
282 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
295 | 283 | else if ((totalAddresses == 4)) | |
296 | - | then | |
284 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
297 | 285 | else if ((totalAddresses == 3)) | |
298 | - | then | |
286 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
299 | 287 | else if ((totalAddresses == 2)) | |
300 | - | then | |
288 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
301 | 289 | else if ((totalAddresses == 1)) | |
302 | - | then | |
290 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
303 | 291 | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(totalAddresses))) | |
304 | 292 | } | |
305 | 293 | else throw("You are not allowed to do that") | |
309 | 297 | ||
310 | 298 | @Callable(invoke) | |
311 | 299 | func signAgreement (hash,agreementId,signerPubKey) = { | |
312 | - | let payment = | |
313 | - | let amount = | |
314 | - | let id = | |
300 | + | let payment = value(invoke.payments[0]) | |
301 | + | let amount = payment.amount | |
302 | + | let id = toBase58String(invoke.transactionId) | |
315 | 303 | let callerIsDapp = (this == invoke.caller) | |
316 | 304 | let signer = if (callerIsDapp) | |
317 | 305 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
319 | 307 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
320 | 308 | if (!(signingRequestExist)) | |
321 | 309 | then throw("Sorry there is no pending signature") | |
322 | - | else | |
310 | + | else [StringEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + id)), ScriptTransfer(addressFromStringValue(signer), 0, acceptedToken)] | |
323 | 311 | } | |
324 | 312 | ||
325 | 313 | ||
326 | 314 | ||
327 | 315 | @Callable(invoke) | |
328 | 316 | func usdnSignCredits () = { | |
329 | - | let payment = | |
317 | + | let payment = value(invoke.payments[0]) | |
330 | 318 | let callerAddress = toBase58String(invoke.caller.bytes) | |
331 | - | let tokenId = | |
332 | - | let amount = | |
319 | + | let tokenId = payment.assetId | |
320 | + | let amount = payment.amount | |
333 | 321 | let numberOfCredits = ((amount * 2) / 1000000) | |
334 | 322 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
335 | - | if ((toBase58String(tokenId) != usdnID)) | |
323 | + | if ((toBase58String(value(tokenId)) != usdnID)) | |
336 | 324 | then throw("Only USDN can be exchanged") | |
337 | 325 | else if (if (((amount % 1000000) != 0)) | |
338 | 326 | then ((amount % 1000000) != 500000) | |
339 | 327 | else false) | |
340 | 328 | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(amount), 6)) + ".") + takeRight(toString(amount), 6))) | |
341 | - | else | |
329 | + | else [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum + numberOfCredits)), ScriptTransfer(addressFromStringValue(feeReceiver), amount, tokenId)] | |
342 | 330 | } | |
343 | 331 | ||
344 | 332 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let storageVerifier = | |
4 | + | let storageVerifier = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | - | let | |
6 | + | let feeReceiver = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let acceptedToken = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | let usdnID = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
11 | 11 | ||
12 | 12 | func checkEntry (prefix,uuid) = match getString(this, (prefix + uuid)) { | |
13 | 13 | case a: String => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | "NONE" | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func checkEntryEmail (uuid,domain) = match getString(this, ((uuid + "@") + domain)) { | |
21 | 21 | case a: String => | |
22 | 22 | a | |
23 | 23 | case _ => | |
24 | 24 | "NONE" | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func checkUUID (uuid) = match getString(this, uuid) { | |
29 | 29 | case a: String => | |
30 | 30 | a | |
31 | 31 | case _ => | |
32 | 32 | "NONE" | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func checkIfWhiteListed (callerAddress) = match getInteger(this, ("addr_WHITELISTED_" + callerAddress)) { | |
37 | 37 | case a: Int => | |
38 | 38 | a | |
39 | 39 | case _ => | |
40 | 40 | 0 | |
41 | 41 | } | |
42 | - | ||
43 | - | ||
44 | - | func isAdress (addr) = if (if (if ((size(addr) == 35)) | |
45 | - | then (take(addr, 2) == "3P") | |
46 | - | else false) | |
47 | - | then true | |
48 | - | else (take(addr, 2) == "3N")) | |
49 | - | then true | |
50 | - | else (take(addr, 2) == "3M") | |
51 | - | ||
52 | - | ||
53 | - | func countParties (accumulator,addr) = if ((size(addr) > 0)) | |
54 | - | then (accumulator + 1) | |
55 | - | else (accumulator + 0) | |
56 | 42 | ||
57 | 43 | ||
58 | 44 | func checkIfPendingToSign (key) = match getString(this, key) { | |
59 | 45 | case a: String => | |
60 | 46 | if ((a == "PENDING")) | |
61 | 47 | then true | |
62 | 48 | else false | |
63 | 49 | case _ => | |
64 | 50 | false | |
65 | 51 | } | |
66 | 52 | ||
67 | 53 | ||
68 | 54 | func getValueString (json) = take(drop(json, 1), value(indexOf(drop(json, 1), "\""))) | |
69 | 55 | ||
70 | 56 | ||
71 | 57 | func getValue (json,key) = { | |
72 | 58 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
73 | 59 | let data = drop(json, ((keyIndex + size(key)) + 3)) | |
74 | 60 | let jsonValue = getValueString(data) | |
75 | 61 | jsonValue | |
76 | 62 | } | |
77 | 63 | ||
78 | 64 | ||
79 | 65 | func getJsonBeforeValue (json,key) = { | |
80 | 66 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
81 | 67 | let data = take(json, ((keyIndex + size(key)) + 3)) | |
82 | 68 | data | |
83 | 69 | } | |
84 | 70 | ||
85 | 71 | ||
86 | 72 | func getJsonAfterValue (json,key) = { | |
87 | 73 | let keyIndex = value(indexOf(json, (("\"" + key) + "\":"))) | |
88 | 74 | let data = takeRight(json, (size(json) - ((((keyIndex + size(key)) + 3) + 0) + 2))) | |
89 | 75 | data | |
90 | 76 | } | |
91 | 77 | ||
92 | 78 | ||
93 | 79 | func asString (bv) = match bv { | |
94 | 80 | case bv0: String => | |
95 | 81 | bv0 | |
96 | 82 | case _ => | |
97 | 83 | throw("Sponsored Public Key String expected") | |
98 | 84 | } | |
99 | 85 | ||
100 | 86 | ||
101 | 87 | @Callable(invoke) | |
102 | 88 | func fileCertification (hash,title,uuid,data,signerPubKey) = { | |
103 | - | let id = | |
89 | + | let id = toBase58String(invoke.transactionId) | |
104 | 90 | let entryExist = checkEntry(hash, uuid) | |
105 | 91 | let uuidExist = checkUUID(uuid) | |
106 | 92 | let callerIsDapp = (this == invoke.caller) | |
107 | 93 | let callerAddress = if (callerIsDapp) | |
108 | 94 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
109 | 95 | else toBase58String(invoke.caller.bytes) | |
110 | 96 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
111 | 97 | if ((entryExist != "NONE")) | |
112 | 98 | then throw("This entry already exist") | |
113 | 99 | else if ((uuidExist != "NONE")) | |
114 | 100 | then throw("This uuid already exist") | |
115 | 101 | else if ((size(uuid) > 36)) | |
116 | 102 | then throw("Uuid is too long, 36 characters max.") | |
117 | 103 | else if ((size(hash) > 64)) | |
118 | 104 | then throw("Hash is too long, 64 characters max.") | |
119 | 105 | else if ((size(title) > 64)) | |
120 | 106 | then throw("Title is too long, 64 characters max.") | |
121 | 107 | else if ((callerIsWhiteListedNum > 0)) | |
122 | - | then | |
108 | + | then [StringEntry(uuid, id), StringEntry((hash + uuid), id), StringEntry((title + uuid), id), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_fc_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
123 | 109 | else if (!(callerIsDapp)) | |
124 | 110 | then { | |
125 | - | let payment = | |
126 | - | let amount = | |
111 | + | let payment = value(invoke.payments[0]) | |
112 | + | let amount = payment.amount | |
127 | 113 | let paymentAssetId = if (isDefined(payment.assetId)) | |
128 | - | then | |
114 | + | then payment.assetId | |
129 | 115 | else throw("Waves is not accepted as payment") | |
130 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
116 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
131 | 117 | if ((acceptedToken != paymentAssetId)) | |
132 | 118 | then throw("This token is not accepted at the moment") | |
133 | 119 | else if (if ((amount != currentPrice)) | |
134 | 120 | then (0 >= callerIsWhiteListedNum) | |
135 | 121 | else false) | |
136 | 122 | then throw("The price is wrong") | |
137 | - | else | |
123 | + | else [StringEntry(uuid, id), StringEntry((hash + uuid), id), StringEntry((title + uuid), id), StringEntry(((("data_fc_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
138 | 124 | } | |
139 | 125 | else throw("You are not allowed to do that") | |
140 | 126 | } | |
141 | 127 | ||
142 | 128 | ||
143 | 129 | ||
144 | 130 | @Callable(invoke) | |
145 | 131 | func revokeCertification (certificationId,signerPubKey) = { | |
146 | - | let id = | |
132 | + | let id = toBase58String(invoke.transactionId) | |
147 | 133 | let callerIsDapp = (this == invoke.caller) | |
148 | 134 | let callerAddress = if (callerIsDapp) | |
149 | 135 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
150 | 136 | else toBase58String(invoke.caller.bytes) | |
151 | 137 | let entryExist = match getString(this, ((("data_fc_" + certificationId) + "_") + callerAddress)) { | |
152 | 138 | case a: String => | |
153 | 139 | a | |
154 | 140 | case _ => | |
155 | 141 | "NONE" | |
156 | 142 | } | |
157 | 143 | let isRevoked = match getString(this, ("STATUS_FC_" + certificationId)) { | |
158 | 144 | case a: String => | |
159 | 145 | a | |
160 | 146 | case _ => | |
161 | 147 | "NONE" | |
162 | 148 | } | |
163 | 149 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
164 | - | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + toBase58String(id)) + "\"}") | |
165 | 150 | if ((isRevoked != "NONE")) | |
166 | 151 | then throw("This certification have already been revoked.") | |
167 | 152 | else if ((entryExist == "NONE")) | |
168 | 153 | then throw("You cannot change the status of this certification.") | |
169 | - | else if ((callerIsWhiteListedNum > 0)) | |
170 | - | then WriteSet([DataEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), DataEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), DataEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)]) | |
171 | - | else if (!(callerIsDapp)) | |
172 | - | then { | |
173 | - | let payment = extract(invoke.payment) | |
174 | - | let amount = extract(payment.amount) | |
175 | - | let paymentAssetId = if (isDefined(payment.assetId)) | |
176 | - | then extract(payment.assetId) | |
177 | - | else throw("Waves is not accepted as payment") | |
178 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(extract(paymentAssetId)))) | |
179 | - | if ((acceptedToken != paymentAssetId)) | |
180 | - | then throw("This token is not accepted at the moment") | |
181 | - | else if (if ((amount != currentPrice)) | |
182 | - | then (0 >= callerIsWhiteListedNum) | |
183 | - | else false) | |
184 | - | then throw("The price is wrong") | |
185 | - | else ScriptResult(WriteSet([DataEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + toBase58String(id))), DataEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)]), TransferSet([ScriptTransfer(addressFromStringValue(bank), amount, payment.assetId)])) | |
186 | - | } | |
187 | - | else throw("You are not allowed to do that") | |
154 | + | else { | |
155 | + | let newJson = (((dropRight(entryExist, 1) + ",\"status\":\"REVOKED_") + id) + "\"}") | |
156 | + | if ((callerIsWhiteListedNum > 0)) | |
157 | + | then [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + id)), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson)] | |
158 | + | else if (!(callerIsDapp)) | |
159 | + | then { | |
160 | + | let payment = value(invoke.payments[0]) | |
161 | + | let amount = payment.amount | |
162 | + | let paymentAssetId = if (isDefined(payment.assetId)) | |
163 | + | then payment.assetId | |
164 | + | else throw("Waves is not accepted as payment") | |
165 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
166 | + | if ((acceptedToken != paymentAssetId)) | |
167 | + | then throw("This token is not accepted at the moment") | |
168 | + | else if (if ((amount != currentPrice)) | |
169 | + | then (0 >= callerIsWhiteListedNum) | |
170 | + | else false) | |
171 | + | then throw("The price is wrong") | |
172 | + | else [StringEntry(("STATUS_FC_" + certificationId), ("REVOKED_" + id)), StringEntry(((("data_fc_" + certificationId) + "_") + callerAddress), newJson), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
173 | + | } | |
174 | + | else throw("You are not allowed to do that") | |
175 | + | } | |
188 | 176 | } | |
189 | 177 | ||
190 | 178 | ||
191 | 179 | ||
192 | 180 | @Callable(invoke) | |
193 | - | func emailCertification (domain, | |
194 | - | let id = | |
181 | + | func emailCertification (domain,uuid,data,title,signerPubKey) = { | |
182 | + | let id = toBase58String(invoke.transactionId) | |
195 | 183 | let entryExist = checkEntryEmail(domain, uuid) | |
196 | 184 | let uuidExist = checkUUID(uuid) | |
197 | 185 | let callerIsDapp = (this == invoke.caller) | |
198 | 186 | let callerAddress = if (callerIsDapp) | |
199 | 187 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
200 | 188 | else toBase58String(invoke.caller.bytes) | |
201 | 189 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
202 | 190 | if ((entryExist != "NONE")) | |
203 | 191 | then throw("This entry already exist") | |
204 | 192 | else if ((uuidExist != "NONE")) | |
205 | 193 | then throw("This uuid already exist") | |
206 | 194 | else if ((size(uuid) > 36)) | |
207 | 195 | then throw("Uuid is too long, 36 characters max.") | |
208 | 196 | else if ((size(domain) > 64)) | |
209 | 197 | then throw("Domain is too long, 64 characters max.") | |
210 | 198 | else if ((size(title) > 64)) | |
211 | 199 | then throw("Title is too long, 64 characters max.") | |
212 | 200 | else if ((callerIsWhiteListedNum > 0)) | |
213 | - | then | |
201 | + | then [StringEntry(uuid, id), StringEntry(((uuid + "@") + domain), id), StringEntry((title + uuid), id), IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - 1)), StringEntry(((("data_ec_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken)] | |
214 | 202 | else if (!(callerIsDapp)) | |
215 | 203 | then { | |
216 | - | let payment = | |
217 | - | let amount = | |
204 | + | let payment = value(invoke.payments[0]) | |
205 | + | let amount = payment.amount | |
218 | 206 | let paymentAssetId = if (isDefined(payment.assetId)) | |
219 | - | then | |
207 | + | then payment.assetId | |
220 | 208 | else throw("Waves is not accepted as payment") | |
221 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
209 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
222 | 210 | if ((acceptedToken != paymentAssetId)) | |
223 | 211 | then throw("This token is not accepted at the moment") | |
224 | 212 | else if (if ((amount != currentPrice)) | |
225 | 213 | then (0 >= callerIsWhiteListedNum) | |
226 | 214 | else false) | |
227 | 215 | then throw("The price is wrong") | |
228 | - | else | |
216 | + | else [StringEntry(uuid, id), StringEntry(((uuid + "@") + domain), id), StringEntry((title + uuid), id), StringEntry(((("data_ec_" + id) + "_") + callerAddress), data), ScriptTransfer(addressFromStringValue(feeReceiver), amount, payment.assetId)] | |
229 | 217 | } | |
230 | 218 | else throw("You are not allowed to do that") | |
231 | 219 | } | |
232 | 220 | ||
233 | 221 | ||
234 | 222 | ||
235 | 223 | @Callable(invoke) | |
236 | 224 | func createAgreement (hash,title,stringifiedJSON,counterParts,signerPubKey,uuid) = { | |
237 | - | let id = | |
225 | + | let id = toBase58String(invoke.transactionId) | |
238 | 226 | let entryExist = checkEntry(hash, uuid) | |
239 | 227 | let uuidExist = checkUUID(uuid) | |
240 | 228 | let callerIsDapp = (this == invoke.caller) | |
241 | 229 | let callerAddress = if (callerIsDapp) | |
242 | 230 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
243 | 231 | else toBase58String(invoke.caller.bytes) | |
244 | 232 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
245 | 233 | let JSON = ((((getJsonBeforeValue(stringifiedJSON, "creator") + "\"") + callerAddress) + "\"") + getJsonAfterValue(stringifiedJSON, "creator")) | |
246 | 234 | let addressesArray = split(counterParts, ",") | |
247 | 235 | let totalAddresses = size(addressesArray) | |
248 | - | let globalDataTitle = | |
249 | - | let globalDataHash = | |
250 | - | let globalDataJson = | |
251 | - | let globalDataOwner = | |
252 | - | let dataWhiteListed = | |
236 | + | let globalDataTitle = StringEntry((title + uuid), id) | |
237 | + | let globalDataHash = StringEntry((hash + uuid), id) | |
238 | + | let globalDataJson = StringEntry(((("data_MA_" + id) + "_") + callerAddress), JSON) | |
239 | + | let globalDataOwner = StringEntry(((callerAddress + "_MA_") + id), ("SIGNED_" + id)) | |
240 | + | let dataWhiteListed = IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum - (totalAddresses + 1))) | |
253 | 241 | if ((entryExist != "NONE")) | |
254 | 242 | then throw("This entry already exist") | |
255 | 243 | else if ((uuidExist != "NONE")) | |
256 | 244 | then throw("This uuid already exist") | |
257 | 245 | else if ((size(uuid) > 36)) | |
258 | 246 | then throw("Uuid is too long, 36 characters max.") | |
259 | 247 | else if ((size(hash) > 64)) | |
260 | 248 | then throw("Message-id is too long, 64 characters max.") | |
261 | 249 | else if ((size(title) > 64)) | |
262 | 250 | then throw("Title is too long, 64 characters max.") | |
263 | 251 | else if ((callerIsWhiteListedNum > 0)) | |
264 | 252 | then if (((totalAddresses + 1) > callerIsWhiteListedNum)) | |
265 | 253 | then throw("You don't have enough certification credit") | |
266 | 254 | else if ((totalAddresses == 6)) | |
267 | - | then | |
255 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
268 | 256 | else if ((totalAddresses == 5)) | |
269 | - | then | |
257 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
270 | 258 | else if ((totalAddresses == 4)) | |
271 | - | then | |
259 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, 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)] | |
272 | 260 | else if ((totalAddresses == 3)) | |
273 | - | then | |
261 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
274 | 262 | else if ((totalAddresses == 2)) | |
275 | - | then | |
263 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
276 | 264 | else if ((totalAddresses == 1)) | |
277 | - | then | |
265 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, dataWhiteListed, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(callerAddress), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
278 | 266 | else throw("Wrong number of participants") | |
279 | 267 | else if (!(callerIsDapp)) | |
280 | 268 | then { | |
281 | - | let payment = | |
269 | + | let payment = value(invoke.payments[0]) | |
282 | 270 | let amount = if (isDefined(payment.amount)) | |
283 | - | then | |
271 | + | then payment.amount | |
284 | 272 | else 0 | |
285 | 273 | let paymentAssetId = if (isDefined(payment.assetId)) | |
286 | - | then | |
274 | + | then payment.assetId | |
287 | 275 | else acceptedToken | |
288 | - | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String( | |
276 | + | let currentPrice = getIntegerValue(storageVerifier, ("certification_fee_" + toBase58String(value(paymentAssetId)))) | |
289 | 277 | if (((currentPrice * (totalAddresses + 1)) > amount)) | |
290 | 278 | then throw(("The price is wrong, it should be " + toString((currentPrice * (totalAddresses + 1))))) | |
291 | 279 | else if ((totalAddresses == 6)) | |
292 | - | then | |
280 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[5] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
293 | 281 | else if ((totalAddresses == 5)) | |
294 | - | then | |
282 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[4] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
295 | 283 | else if ((totalAddresses == 4)) | |
296 | - | then | |
284 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[3] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), 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)] | |
297 | 285 | else if ((totalAddresses == 3)) | |
298 | - | then | |
286 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[2] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[2]), 0, acceptedToken)] | |
299 | 287 | else if ((totalAddresses == 2)) | |
300 | - | then | |
288 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), StringEntry(((addressesArray[1] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[1]), 0, acceptedToken)] | |
301 | 289 | else if ((totalAddresses == 1)) | |
302 | - | then | |
290 | + | then [globalDataTitle, globalDataHash, globalDataJson, globalDataOwner, StringEntry(((addressesArray[0] + "_MA_") + id), "PENDING"), ScriptTransfer(addressFromStringValue(feeReceiver), amount, acceptedToken), ScriptTransfer(addressFromStringValue(addressesArray[0]), 0, acceptedToken)] | |
303 | 291 | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(totalAddresses))) | |
304 | 292 | } | |
305 | 293 | else throw("You are not allowed to do that") | |
306 | 294 | } | |
307 | 295 | ||
308 | 296 | ||
309 | 297 | ||
310 | 298 | @Callable(invoke) | |
311 | 299 | func signAgreement (hash,agreementId,signerPubKey) = { | |
312 | - | let payment = | |
313 | - | let amount = | |
314 | - | let id = | |
300 | + | let payment = value(invoke.payments[0]) | |
301 | + | let amount = payment.amount | |
302 | + | let id = toBase58String(invoke.transactionId) | |
315 | 303 | let callerIsDapp = (this == invoke.caller) | |
316 | 304 | let signer = if (callerIsDapp) | |
317 | 305 | then toString(addressFromPublicKey(fromBase58String(signerPubKey))) | |
318 | 306 | else toBase58String(invoke.caller.bytes) | |
319 | 307 | let signingRequestExist = checkIfPendingToSign(((signer + "_MA_") + agreementId)) | |
320 | 308 | if (!(signingRequestExist)) | |
321 | 309 | then throw("Sorry there is no pending signature") | |
322 | - | else | |
310 | + | else [StringEntry(((signer + "_MA_") + agreementId), ("SIGNED_" + id)), ScriptTransfer(addressFromStringValue(signer), 0, acceptedToken)] | |
323 | 311 | } | |
324 | 312 | ||
325 | 313 | ||
326 | 314 | ||
327 | 315 | @Callable(invoke) | |
328 | 316 | func usdnSignCredits () = { | |
329 | - | let payment = | |
317 | + | let payment = value(invoke.payments[0]) | |
330 | 318 | let callerAddress = toBase58String(invoke.caller.bytes) | |
331 | - | let tokenId = | |
332 | - | let amount = | |
319 | + | let tokenId = payment.assetId | |
320 | + | let amount = payment.amount | |
333 | 321 | let numberOfCredits = ((amount * 2) / 1000000) | |
334 | 322 | let callerIsWhiteListedNum = checkIfWhiteListed(callerAddress) | |
335 | - | if ((toBase58String(tokenId) != usdnID)) | |
323 | + | if ((toBase58String(value(tokenId)) != usdnID)) | |
336 | 324 | then throw("Only USDN can be exchanged") | |
337 | 325 | else if (if (((amount % 1000000) != 0)) | |
338 | 326 | then ((amount % 1000000) != 500000) | |
339 | 327 | else false) | |
340 | 328 | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(amount), 6)) + ".") + takeRight(toString(amount), 6))) | |
341 | - | else | |
329 | + | else [IntegerEntry(("addr_WHITELISTED_" + callerAddress), (callerIsWhiteListedNum + numberOfCredits)), ScriptTransfer(addressFromStringValue(feeReceiver), amount, tokenId)] | |
342 | 330 | } | |
343 | 331 | ||
344 | 332 | ||
345 | 333 | @Verifier(tx) | |
346 | 334 | func verifier () = match tx { | |
347 | 335 | case inv: InvokeScriptTransaction => | |
348 | 336 | if (if (if ((inv.function == "fileCertification")) | |
349 | 337 | then true | |
350 | 338 | else (inv.function == "emailCertification")) | |
351 | 339 | then true | |
352 | 340 | else (inv.function == "createAgreement")) | |
353 | 341 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[4]))) | |
354 | 342 | else if ((inv.function == "signAgreement")) | |
355 | 343 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[2]))) | |
356 | 344 | else if ((inv.function == "revokeCertification")) | |
357 | 345 | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[1]))) | |
358 | 346 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
359 | 347 | case _ => | |
360 | 348 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
361 | 349 | } | |
362 | 350 |
github/deemru/w8io/169f3d6 187.49 ms ◑