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