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 a = | |
4 | + | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | - | func o (p) = if (if (if ((size(p) == 35)) | |
57 | - | then (take(p, 2) == "3P") | |
58 | - | else false) | |
59 | - | then true | |
60 | - | else (take(p, 2) == "3N")) | |
61 | - | then true | |
62 | - | else (take(p, 2) == "3M") | |
63 | - | ||
64 | - | ||
65 | - | func q (r,p) = if ((size(p) > 0)) | |
66 | - | then (r + 1) | |
67 | - | else (r + 0) | |
68 | - | ||
69 | - | ||
70 | - | func s (t) = { | |
71 | - | let h = getString(this, t) | |
56 | + | func o (p) = { | |
57 | + | let h = getString(this, p) | |
72 | 58 | if ($isInstanceOf(h, "String")) | |
73 | 59 | then { | |
74 | 60 | let i = h | |
80 | 66 | } | |
81 | 67 | ||
82 | 68 | ||
83 | - | func | |
69 | + | func q (r) = take(drop(r, 1), value(indexOf(drop(r, 1), "\""))) | |
84 | 70 | ||
85 | 71 | ||
86 | - | func | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | | |
72 | + | func s (r,p) = { | |
73 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
74 | + | let u = drop(r, ((t + size(p)) + 3)) | |
75 | + | let v = q(u) | |
76 | + | v | |
91 | 77 | } | |
92 | 78 | ||
93 | 79 | ||
94 | - | func | |
95 | - | let | |
96 | - | let | |
97 | - | | |
80 | + | func w (r,p) = { | |
81 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
82 | + | let u = take(r, ((t + size(p)) + 3)) | |
83 | + | u | |
98 | 84 | } | |
99 | 85 | ||
100 | 86 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | | |
87 | + | func x (r,p) = { | |
88 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
89 | + | let u = takeRight(r, (size(r) - ((((t + size(p)) + 3) + 0) + 2))) | |
90 | + | u | |
105 | 91 | } | |
106 | 92 | ||
107 | 93 | ||
108 | - | func | |
109 | - | let h = | |
94 | + | func y (z) = { | |
95 | + | let h = z | |
110 | 96 | if ($isInstanceOf(h, "String")) | |
111 | 97 | then { | |
112 | - | let | |
113 | - | | |
98 | + | let A = h | |
99 | + | A | |
114 | 100 | } | |
115 | 101 | else throw("Sponsored Public Key String expected") | |
116 | 102 | } | |
117 | 103 | ||
118 | 104 | ||
119 | - | @Callable( | |
120 | - | func fileCertification ( | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | let n = if ( | |
126 | - | then toString(addressFromPublicKey(fromBase58String( | |
127 | - | else toBase58String( | |
128 | - | let | |
129 | - | if (( | |
105 | + | @Callable(B) | |
106 | + | func fileCertification (C,D,g,u,E) = { | |
107 | + | let F = toBase58String(B.transactionId) | |
108 | + | let G = e(C, g) | |
109 | + | let H = l(g) | |
110 | + | let I = (this == B.caller) | |
111 | + | let n = if (I) | |
112 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
113 | + | else toBase58String(B.caller.bytes) | |
114 | + | let J = m(n) | |
115 | + | if ((G != "NONE")) | |
130 | 116 | then throw("This entry already exist") | |
131 | - | else if (( | |
117 | + | else if ((H != "NONE")) | |
132 | 118 | then throw("This uuid already exist") | |
133 | 119 | else if ((size(g) > 36)) | |
134 | 120 | then throw("Uuid is too long, 36 characters max.") | |
135 | - | else if ((size( | |
121 | + | else if ((size(C) > 64)) | |
136 | 122 | then throw("Hash is too long, 64 characters max.") | |
137 | - | else if ((size( | |
123 | + | else if ((size(D) > 64)) | |
138 | 124 | then throw("Title is too long, 64 characters max.") | |
139 | - | else if (( | |
140 | - | then | |
141 | - | else if (!( | |
125 | + | else if ((J > 0)) | |
126 | + | then [StringEntry(g, F), StringEntry((C + g), F), StringEntry((D + g), F), IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(((("data_fc_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(n), 0, c)] | |
127 | + | else if (!(I)) | |
142 | 128 | then { | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | then | |
129 | + | let K = value(B.payments[0]) | |
130 | + | let L = K.amount | |
131 | + | let M = if (isDefined(K.assetId)) | |
132 | + | then K.assetId | |
147 | 133 | else throw("Waves is not accepted as payment") | |
148 | - | let | |
149 | - | if ((c != | |
134 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
135 | + | if ((c != M)) | |
150 | 136 | then throw("This token is not accepted at the moment") | |
151 | - | else if (if (( | |
152 | - | then (0 >= | |
137 | + | else if (if ((L != N)) | |
138 | + | then (0 >= J) | |
153 | 139 | else false) | |
154 | 140 | then throw("The price is wrong") | |
155 | - | else | |
141 | + | else [StringEntry(g, F), StringEntry((C + g), F), StringEntry((D + g), F), StringEntry(((("data_fc_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
156 | 142 | } | |
157 | 143 | else throw("You are not allowed to do that") | |
158 | 144 | } | |
159 | 145 | ||
160 | 146 | ||
161 | 147 | ||
162 | - | @Callable( | |
163 | - | func revokeCertification ( | |
164 | - | let | |
165 | - | let | |
166 | - | let n = if ( | |
167 | - | then toString(addressFromPublicKey(fromBase58String( | |
168 | - | else toBase58String( | |
169 | - | let | |
170 | - | let h = getString(this, ((("data_fc_" + | |
148 | + | @Callable(B) | |
149 | + | func revokeCertification (O,E) = { | |
150 | + | let F = toBase58String(B.transactionId) | |
151 | + | let I = (this == B.caller) | |
152 | + | let n = if (I) | |
153 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
154 | + | else toBase58String(B.caller.bytes) | |
155 | + | let G = { | |
156 | + | let h = getString(this, ((("data_fc_" + O) + "_") + n)) | |
171 | 157 | if ($isInstanceOf(h, "String")) | |
172 | 158 | then { | |
173 | 159 | let i = h | |
175 | 161 | } | |
176 | 162 | else "NONE" | |
177 | 163 | } | |
178 | - | let | |
179 | - | let h = getString(this, ("STATUS_FC_" + | |
164 | + | let P = { | |
165 | + | let h = getString(this, ("STATUS_FC_" + O)) | |
180 | 166 | if ($isInstanceOf(h, "String")) | |
181 | 167 | then { | |
182 | 168 | let i = h | |
184 | 170 | } | |
185 | 171 | else "NONE" | |
186 | 172 | } | |
187 | - | let N = m(n) | |
188 | - | let U = (((dropRight(K, 1) + ",\"status\":\"REVOKED_") + toBase58String(J)) + "\"}") | |
189 | - | if ((T != "NONE")) | |
173 | + | let J = m(n) | |
174 | + | if ((P != "NONE")) | |
190 | 175 | then throw("This certification have already been revoked.") | |
191 | - | else if (( | |
176 | + | else if ((G == "NONE")) | |
192 | 177 | then throw("You cannot change the status of this certification.") | |
193 | - | else if ((N > 0)) | |
194 | - | then WriteSet([DataEntry(("addr_WHITELISTED_" + n), (N - 1)), DataEntry(("STATUS_FC_" + S), ("REVOKED_" + toBase58String(J))), DataEntry(((("data_fc_" + S) + "_") + n), U)]) | |
195 | - | else if (!(M)) | |
196 | - | then { | |
197 | - | let O = extract(F.payment) | |
198 | - | let P = extract(O.amount) | |
199 | - | let Q = if (isDefined(O.assetId)) | |
200 | - | then extract(O.assetId) | |
201 | - | else throw("Waves is not accepted as payment") | |
202 | - | let R = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(Q)))) | |
203 | - | if ((c != Q)) | |
204 | - | then throw("This token is not accepted at the moment") | |
205 | - | else if (if ((P != R)) | |
206 | - | then (0 >= N) | |
207 | - | else false) | |
208 | - | then throw("The price is wrong") | |
209 | - | else ScriptResult(WriteSet([DataEntry(("STATUS_FC_" + S), ("REVOKED_" + toBase58String(J))), DataEntry(((("data_fc_" + S) + "_") + n), U)]), TransferSet([ScriptTransfer(addressFromStringValue(b), P, O.assetId)])) | |
210 | - | } | |
211 | - | else throw("You are not allowed to do that") | |
178 | + | else { | |
179 | + | let Q = (((dropRight(G, 1) + ",\"status\":\"REVOKED_") + F) + "\"}") | |
180 | + | if ((J > 0)) | |
181 | + | then [IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(("STATUS_FC_" + O), ("REVOKED_" + F)), StringEntry(((("data_fc_" + O) + "_") + n), Q)] | |
182 | + | else if (!(I)) | |
183 | + | then { | |
184 | + | let K = value(B.payments[0]) | |
185 | + | let L = K.amount | |
186 | + | let M = if (isDefined(K.assetId)) | |
187 | + | then K.assetId | |
188 | + | else throw("Waves is not accepted as payment") | |
189 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
190 | + | if ((c != M)) | |
191 | + | then throw("This token is not accepted at the moment") | |
192 | + | else if (if ((L != N)) | |
193 | + | then (0 >= J) | |
194 | + | else false) | |
195 | + | then throw("The price is wrong") | |
196 | + | else [StringEntry(("STATUS_FC_" + O), ("REVOKED_" + F)), StringEntry(((("data_fc_" + O) + "_") + n), Q), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
197 | + | } | |
198 | + | else throw("You are not allowed to do that") | |
199 | + | } | |
212 | 200 | } | |
213 | 201 | ||
214 | 202 | ||
215 | 203 | ||
216 | - | @Callable( | |
217 | - | func emailCertification (k, | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let n = if ( | |
223 | - | then toString(addressFromPublicKey(fromBase58String( | |
224 | - | else toBase58String( | |
225 | - | let | |
226 | - | if (( | |
204 | + | @Callable(B) | |
205 | + | func emailCertification (k,g,u,D,E) = { | |
206 | + | let F = toBase58String(B.transactionId) | |
207 | + | let G = j(k, g) | |
208 | + | let H = l(g) | |
209 | + | let I = (this == B.caller) | |
210 | + | let n = if (I) | |
211 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
212 | + | else toBase58String(B.caller.bytes) | |
213 | + | let J = m(n) | |
214 | + | if ((G != "NONE")) | |
227 | 215 | then throw("This entry already exist") | |
228 | - | else if (( | |
216 | + | else if ((H != "NONE")) | |
229 | 217 | then throw("This uuid already exist") | |
230 | 218 | else if ((size(g) > 36)) | |
231 | 219 | then throw("Uuid is too long, 36 characters max.") | |
232 | 220 | else if ((size(k) > 64)) | |
233 | 221 | then throw("Domain is too long, 64 characters max.") | |
234 | - | else if ((size( | |
222 | + | else if ((size(D) > 64)) | |
235 | 223 | then throw("Title is too long, 64 characters max.") | |
236 | - | else if (( | |
237 | - | then | |
238 | - | else if (!( | |
224 | + | else if ((J > 0)) | |
225 | + | then [StringEntry(g, F), StringEntry(((g + "@") + k), F), StringEntry((D + g), F), IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(((("data_ec_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(n), 0, c)] | |
226 | + | else if (!(I)) | |
239 | 227 | then { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | then | |
228 | + | let K = value(B.payments[0]) | |
229 | + | let L = K.amount | |
230 | + | let M = if (isDefined(K.assetId)) | |
231 | + | then K.assetId | |
244 | 232 | else throw("Waves is not accepted as payment") | |
245 | - | let | |
246 | - | if ((c != | |
233 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
234 | + | if ((c != M)) | |
247 | 235 | then throw("This token is not accepted at the moment") | |
248 | - | else if (if (( | |
249 | - | then (0 >= | |
236 | + | else if (if ((L != N)) | |
237 | + | then (0 >= J) | |
250 | 238 | else false) | |
251 | 239 | then throw("The price is wrong") | |
252 | - | else | |
240 | + | else [StringEntry(g, F), StringEntry(((g + "@") + k), F), StringEntry((D + g), F), StringEntry(((("data_ec_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
253 | 241 | } | |
254 | 242 | else throw("You are not allowed to do that") | |
255 | 243 | } | |
256 | 244 | ||
257 | 245 | ||
258 | 246 | ||
259 | - | @Callable( | |
260 | - | func createAgreement ( | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let n = if ( | |
266 | - | then toString(addressFromPublicKey(fromBase58String( | |
267 | - | else toBase58String( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if (( | |
247 | + | @Callable(B) | |
248 | + | func createAgreement (C,D,R,S,E,g) = { | |
249 | + | let F = toBase58String(B.transactionId) | |
250 | + | let G = e(C, g) | |
251 | + | let H = l(g) | |
252 | + | let I = (this == B.caller) | |
253 | + | let n = if (I) | |
254 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
255 | + | else toBase58String(B.caller.bytes) | |
256 | + | let J = m(n) | |
257 | + | let T = ((((w(R, "creator") + "\"") + n) + "\"") + x(R, "creator")) | |
258 | + | let U = split(S, ",") | |
259 | + | let V = size(U) | |
260 | + | let W = StringEntry((D + g), F) | |
261 | + | let X = StringEntry((C + g), F) | |
262 | + | let Y = StringEntry(((("data_MA_" + F) + "_") + n), T) | |
263 | + | let Z = StringEntry(((n + "_MA_") + F), ("SIGNED_" + F)) | |
264 | + | let aa = IntegerEntry(("addr_WHITELISTED_" + n), (J - (V + 1))) | |
265 | + | if ((G != "NONE")) | |
278 | 266 | then throw("This entry already exist") | |
279 | - | else if (( | |
267 | + | else if ((H != "NONE")) | |
280 | 268 | then throw("This uuid already exist") | |
281 | 269 | else if ((size(g) > 36)) | |
282 | 270 | then throw("Uuid is too long, 36 characters max.") | |
283 | - | else if ((size( | |
271 | + | else if ((size(C) > 64)) | |
284 | 272 | then throw("Message-id is too long, 64 characters max.") | |
285 | - | else if ((size( | |
273 | + | else if ((size(D) > 64)) | |
286 | 274 | then throw("Title is too long, 64 characters max.") | |
287 | - | else if (( | |
288 | - | then if ((( | |
275 | + | else if ((J > 0)) | |
276 | + | then if (((V + 1) > J)) | |
289 | 277 | then throw("You don't have enough certification credit") | |
290 | - | else if (( | |
291 | - | then | |
292 | - | else if (( | |
293 | - | then | |
294 | - | else if (( | |
295 | - | then | |
296 | - | else if (( | |
297 | - | then | |
298 | - | else if (( | |
299 | - | then | |
300 | - | else if (( | |
301 | - | then | |
278 | + | else if ((V == 6)) | |
279 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), StringEntry(((U[5] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c), ScriptTransfer(addressFromStringValue(U[5]), 0, c)] | |
280 | + | else if ((V == 5)) | |
281 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c)] | |
282 | + | else if ((V == 4)) | |
283 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c)] | |
284 | + | else if ((V == 3)) | |
285 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c)] | |
286 | + | else if ((V == 2)) | |
287 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c)] | |
288 | + | else if ((V == 1)) | |
289 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c)] | |
302 | 290 | else throw("Wrong number of participants") | |
303 | - | else if (!( | |
291 | + | else if (!(I)) | |
304 | 292 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | then | |
293 | + | let K = value(B.payments[0]) | |
294 | + | let L = if (isDefined(K.amount)) | |
295 | + | then K.amount | |
308 | 296 | else 0 | |
309 | - | let | |
310 | - | then | |
297 | + | let M = if (isDefined(K.assetId)) | |
298 | + | then K.assetId | |
311 | 299 | else c | |
312 | - | let | |
313 | - | if ((( | |
314 | - | then throw(("The price is wrong, it should be " + toString(( | |
315 | - | else if (( | |
316 | - | then | |
317 | - | else if (( | |
318 | - | then | |
319 | - | else if (( | |
320 | - | then | |
321 | - | else if (( | |
322 | - | then | |
323 | - | else if (( | |
324 | - | then | |
325 | - | else if (( | |
326 | - | then | |
327 | - | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString( | |
300 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
301 | + | if (((N * (V + 1)) > L)) | |
302 | + | then throw(("The price is wrong, it should be " + toString((N * (V + 1))))) | |
303 | + | else if ((V == 6)) | |
304 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), StringEntry(((U[5] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c), ScriptTransfer(addressFromStringValue(U[5]), 0, c)] | |
305 | + | else if ((V == 5)) | |
306 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c)] | |
307 | + | else if ((V == 4)) | |
308 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c)] | |
309 | + | else if ((V == 3)) | |
310 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c)] | |
311 | + | else if ((V == 2)) | |
312 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c)] | |
313 | + | else if ((V == 1)) | |
314 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c)] | |
315 | + | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(V))) | |
328 | 316 | } | |
329 | 317 | else throw("You are not allowed to do that") | |
330 | 318 | } | |
331 | 319 | ||
332 | 320 | ||
333 | 321 | ||
334 | - | @Callable( | |
335 | - | func signAgreement ( | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | then toString(addressFromPublicKey(fromBase58String( | |
342 | - | else toBase58String( | |
343 | - | let | |
344 | - | if (!( | |
322 | + | @Callable(B) | |
323 | + | func signAgreement (C,ab,E) = { | |
324 | + | let K = value(B.payments[0]) | |
325 | + | let L = K.amount | |
326 | + | let F = toBase58String(B.transactionId) | |
327 | + | let I = (this == B.caller) | |
328 | + | let ac = if (I) | |
329 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
330 | + | else toBase58String(B.caller.bytes) | |
331 | + | let ad = o(((ac + "_MA_") + ab)) | |
332 | + | if (!(ad)) | |
345 | 333 | then throw("Sorry there is no pending signature") | |
346 | - | else | |
334 | + | else [StringEntry(((ac + "_MA_") + ab), ("SIGNED_" + F)), ScriptTransfer(addressFromStringValue(ac), 0, c)] | |
347 | 335 | } | |
348 | 336 | ||
349 | 337 | ||
350 | 338 | ||
351 | - | @Callable( | |
339 | + | @Callable(B) | |
352 | 340 | func usdnSignCredits () = { | |
353 | - | let | |
354 | - | let n = toBase58String( | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if ((toBase58String( | |
341 | + | let K = value(B.payments[0]) | |
342 | + | let n = toBase58String(B.caller.bytes) | |
343 | + | let ae = K.assetId | |
344 | + | let L = K.amount | |
345 | + | let af = ((L * 2) / 1000000) | |
346 | + | let J = m(n) | |
347 | + | if ((toBase58String(value(ae)) != d)) | |
360 | 348 | then throw("Only USDN can be exchanged") | |
361 | - | else if (if ((( | |
362 | - | then (( | |
349 | + | else if (if (((L % 1000000) != 0)) | |
350 | + | then ((L % 1000000) != 500000) | |
363 | 351 | else false) | |
364 | - | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString( | |
365 | - | else | |
352 | + | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(L), 6)) + ".") + takeRight(toString(L), 6))) | |
353 | + | else [IntegerEntry(("addr_WHITELISTED_" + n), (J + af)), ScriptTransfer(addressFromStringValue(b), L, ae)] | |
366 | 354 | } | |
367 | 355 | ||
368 | 356 | ||
369 | - | @Verifier( | |
370 | - | func | |
371 | - | let h = | |
357 | + | @Verifier(ag) | |
358 | + | func ah () = { | |
359 | + | let h = ag | |
372 | 360 | if ($isInstanceOf(h, "InvokeScriptTransaction")) | |
373 | 361 | then { | |
374 | - | let | |
375 | - | if (if (if (( | |
362 | + | let ai = h | |
363 | + | if (if (if ((ai.function == "fileCertification")) | |
376 | 364 | then true | |
377 | - | else ( | |
365 | + | else (ai.function == "emailCertification")) | |
378 | 366 | then true | |
379 | - | else ( | |
380 | - | then sigVerify( | |
381 | - | else if (( | |
382 | - | then sigVerify( | |
383 | - | else if (( | |
384 | - | then sigVerify( | |
385 | - | else sigVerify( | |
367 | + | else (ai.function == "createAgreement")) | |
368 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[4]))) | |
369 | + | else if ((ai.function == "signAgreement")) | |
370 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[2]))) | |
371 | + | else if ((ai.function == "revokeCertification")) | |
372 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[1]))) | |
373 | + | else sigVerify(ag.bodyBytes, ag.proofs[0], ag.senderPublicKey) | |
386 | 374 | } | |
387 | - | else sigVerify( | |
375 | + | else sigVerify(ag.bodyBytes, ag.proofs[0], ag.senderPublicKey) | |
388 | 376 | } | |
389 | 377 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = | |
4 | + | let a = value(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let c = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | let d = "3KFXBGGLCjA5Z2DuW4Dq9fDDrHjJJP1ZEkaoajSzuKsC" | |
11 | 11 | ||
12 | 12 | func e (f,g) = { | |
13 | 13 | let h = getString(this, (f + g)) | |
14 | 14 | if ($isInstanceOf(h, "String")) | |
15 | 15 | then { | |
16 | 16 | let i = h | |
17 | 17 | i | |
18 | 18 | } | |
19 | 19 | else "NONE" | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j (g,k) = { | |
24 | 24 | let h = getString(this, ((g + "@") + k)) | |
25 | 25 | if ($isInstanceOf(h, "String")) | |
26 | 26 | then { | |
27 | 27 | let i = h | |
28 | 28 | i | |
29 | 29 | } | |
30 | 30 | else "NONE" | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func l (g) = { | |
35 | 35 | let h = getString(this, g) | |
36 | 36 | if ($isInstanceOf(h, "String")) | |
37 | 37 | then { | |
38 | 38 | let i = h | |
39 | 39 | i | |
40 | 40 | } | |
41 | 41 | else "NONE" | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func m (n) = { | |
46 | 46 | let h = getInteger(this, ("addr_WHITELISTED_" + n)) | |
47 | 47 | if ($isInstanceOf(h, "Int")) | |
48 | 48 | then { | |
49 | 49 | let i = h | |
50 | 50 | i | |
51 | 51 | } | |
52 | 52 | else 0 | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | - | func o (p) = if (if (if ((size(p) == 35)) | |
57 | - | then (take(p, 2) == "3P") | |
58 | - | else false) | |
59 | - | then true | |
60 | - | else (take(p, 2) == "3N")) | |
61 | - | then true | |
62 | - | else (take(p, 2) == "3M") | |
63 | - | ||
64 | - | ||
65 | - | func q (r,p) = if ((size(p) > 0)) | |
66 | - | then (r + 1) | |
67 | - | else (r + 0) | |
68 | - | ||
69 | - | ||
70 | - | func s (t) = { | |
71 | - | let h = getString(this, t) | |
56 | + | func o (p) = { | |
57 | + | let h = getString(this, p) | |
72 | 58 | if ($isInstanceOf(h, "String")) | |
73 | 59 | then { | |
74 | 60 | let i = h | |
75 | 61 | if ((i == "PENDING")) | |
76 | 62 | then true | |
77 | 63 | else false | |
78 | 64 | } | |
79 | 65 | else false | |
80 | 66 | } | |
81 | 67 | ||
82 | 68 | ||
83 | - | func | |
69 | + | func q (r) = take(drop(r, 1), value(indexOf(drop(r, 1), "\""))) | |
84 | 70 | ||
85 | 71 | ||
86 | - | func | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | | |
72 | + | func s (r,p) = { | |
73 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
74 | + | let u = drop(r, ((t + size(p)) + 3)) | |
75 | + | let v = q(u) | |
76 | + | v | |
91 | 77 | } | |
92 | 78 | ||
93 | 79 | ||
94 | - | func | |
95 | - | let | |
96 | - | let | |
97 | - | | |
80 | + | func w (r,p) = { | |
81 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
82 | + | let u = take(r, ((t + size(p)) + 3)) | |
83 | + | u | |
98 | 84 | } | |
99 | 85 | ||
100 | 86 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | | |
87 | + | func x (r,p) = { | |
88 | + | let t = value(indexOf(r, (("\"" + p) + "\":"))) | |
89 | + | let u = takeRight(r, (size(r) - ((((t + size(p)) + 3) + 0) + 2))) | |
90 | + | u | |
105 | 91 | } | |
106 | 92 | ||
107 | 93 | ||
108 | - | func | |
109 | - | let h = | |
94 | + | func y (z) = { | |
95 | + | let h = z | |
110 | 96 | if ($isInstanceOf(h, "String")) | |
111 | 97 | then { | |
112 | - | let | |
113 | - | | |
98 | + | let A = h | |
99 | + | A | |
114 | 100 | } | |
115 | 101 | else throw("Sponsored Public Key String expected") | |
116 | 102 | } | |
117 | 103 | ||
118 | 104 | ||
119 | - | @Callable( | |
120 | - | func fileCertification ( | |
121 | - | let | |
122 | - | let | |
123 | - | let | |
124 | - | let | |
125 | - | let n = if ( | |
126 | - | then toString(addressFromPublicKey(fromBase58String( | |
127 | - | else toBase58String( | |
128 | - | let | |
129 | - | if (( | |
105 | + | @Callable(B) | |
106 | + | func fileCertification (C,D,g,u,E) = { | |
107 | + | let F = toBase58String(B.transactionId) | |
108 | + | let G = e(C, g) | |
109 | + | let H = l(g) | |
110 | + | let I = (this == B.caller) | |
111 | + | let n = if (I) | |
112 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
113 | + | else toBase58String(B.caller.bytes) | |
114 | + | let J = m(n) | |
115 | + | if ((G != "NONE")) | |
130 | 116 | then throw("This entry already exist") | |
131 | - | else if (( | |
117 | + | else if ((H != "NONE")) | |
132 | 118 | then throw("This uuid already exist") | |
133 | 119 | else if ((size(g) > 36)) | |
134 | 120 | then throw("Uuid is too long, 36 characters max.") | |
135 | - | else if ((size( | |
121 | + | else if ((size(C) > 64)) | |
136 | 122 | then throw("Hash is too long, 64 characters max.") | |
137 | - | else if ((size( | |
123 | + | else if ((size(D) > 64)) | |
138 | 124 | then throw("Title is too long, 64 characters max.") | |
139 | - | else if (( | |
140 | - | then | |
141 | - | else if (!( | |
125 | + | else if ((J > 0)) | |
126 | + | then [StringEntry(g, F), StringEntry((C + g), F), StringEntry((D + g), F), IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(((("data_fc_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(n), 0, c)] | |
127 | + | else if (!(I)) | |
142 | 128 | then { | |
143 | - | let | |
144 | - | let | |
145 | - | let | |
146 | - | then | |
129 | + | let K = value(B.payments[0]) | |
130 | + | let L = K.amount | |
131 | + | let M = if (isDefined(K.assetId)) | |
132 | + | then K.assetId | |
147 | 133 | else throw("Waves is not accepted as payment") | |
148 | - | let | |
149 | - | if ((c != | |
134 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
135 | + | if ((c != M)) | |
150 | 136 | then throw("This token is not accepted at the moment") | |
151 | - | else if (if (( | |
152 | - | then (0 >= | |
137 | + | else if (if ((L != N)) | |
138 | + | then (0 >= J) | |
153 | 139 | else false) | |
154 | 140 | then throw("The price is wrong") | |
155 | - | else | |
141 | + | else [StringEntry(g, F), StringEntry((C + g), F), StringEntry((D + g), F), StringEntry(((("data_fc_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
156 | 142 | } | |
157 | 143 | else throw("You are not allowed to do that") | |
158 | 144 | } | |
159 | 145 | ||
160 | 146 | ||
161 | 147 | ||
162 | - | @Callable( | |
163 | - | func revokeCertification ( | |
164 | - | let | |
165 | - | let | |
166 | - | let n = if ( | |
167 | - | then toString(addressFromPublicKey(fromBase58String( | |
168 | - | else toBase58String( | |
169 | - | let | |
170 | - | let h = getString(this, ((("data_fc_" + | |
148 | + | @Callable(B) | |
149 | + | func revokeCertification (O,E) = { | |
150 | + | let F = toBase58String(B.transactionId) | |
151 | + | let I = (this == B.caller) | |
152 | + | let n = if (I) | |
153 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
154 | + | else toBase58String(B.caller.bytes) | |
155 | + | let G = { | |
156 | + | let h = getString(this, ((("data_fc_" + O) + "_") + n)) | |
171 | 157 | if ($isInstanceOf(h, "String")) | |
172 | 158 | then { | |
173 | 159 | let i = h | |
174 | 160 | i | |
175 | 161 | } | |
176 | 162 | else "NONE" | |
177 | 163 | } | |
178 | - | let | |
179 | - | let h = getString(this, ("STATUS_FC_" + | |
164 | + | let P = { | |
165 | + | let h = getString(this, ("STATUS_FC_" + O)) | |
180 | 166 | if ($isInstanceOf(h, "String")) | |
181 | 167 | then { | |
182 | 168 | let i = h | |
183 | 169 | i | |
184 | 170 | } | |
185 | 171 | else "NONE" | |
186 | 172 | } | |
187 | - | let N = m(n) | |
188 | - | let U = (((dropRight(K, 1) + ",\"status\":\"REVOKED_") + toBase58String(J)) + "\"}") | |
189 | - | if ((T != "NONE")) | |
173 | + | let J = m(n) | |
174 | + | if ((P != "NONE")) | |
190 | 175 | then throw("This certification have already been revoked.") | |
191 | - | else if (( | |
176 | + | else if ((G == "NONE")) | |
192 | 177 | then throw("You cannot change the status of this certification.") | |
193 | - | else if ((N > 0)) | |
194 | - | then WriteSet([DataEntry(("addr_WHITELISTED_" + n), (N - 1)), DataEntry(("STATUS_FC_" + S), ("REVOKED_" + toBase58String(J))), DataEntry(((("data_fc_" + S) + "_") + n), U)]) | |
195 | - | else if (!(M)) | |
196 | - | then { | |
197 | - | let O = extract(F.payment) | |
198 | - | let P = extract(O.amount) | |
199 | - | let Q = if (isDefined(O.assetId)) | |
200 | - | then extract(O.assetId) | |
201 | - | else throw("Waves is not accepted as payment") | |
202 | - | let R = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(Q)))) | |
203 | - | if ((c != Q)) | |
204 | - | then throw("This token is not accepted at the moment") | |
205 | - | else if (if ((P != R)) | |
206 | - | then (0 >= N) | |
207 | - | else false) | |
208 | - | then throw("The price is wrong") | |
209 | - | else ScriptResult(WriteSet([DataEntry(("STATUS_FC_" + S), ("REVOKED_" + toBase58String(J))), DataEntry(((("data_fc_" + S) + "_") + n), U)]), TransferSet([ScriptTransfer(addressFromStringValue(b), P, O.assetId)])) | |
210 | - | } | |
211 | - | else throw("You are not allowed to do that") | |
178 | + | else { | |
179 | + | let Q = (((dropRight(G, 1) + ",\"status\":\"REVOKED_") + F) + "\"}") | |
180 | + | if ((J > 0)) | |
181 | + | then [IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(("STATUS_FC_" + O), ("REVOKED_" + F)), StringEntry(((("data_fc_" + O) + "_") + n), Q)] | |
182 | + | else if (!(I)) | |
183 | + | then { | |
184 | + | let K = value(B.payments[0]) | |
185 | + | let L = K.amount | |
186 | + | let M = if (isDefined(K.assetId)) | |
187 | + | then K.assetId | |
188 | + | else throw("Waves is not accepted as payment") | |
189 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
190 | + | if ((c != M)) | |
191 | + | then throw("This token is not accepted at the moment") | |
192 | + | else if (if ((L != N)) | |
193 | + | then (0 >= J) | |
194 | + | else false) | |
195 | + | then throw("The price is wrong") | |
196 | + | else [StringEntry(("STATUS_FC_" + O), ("REVOKED_" + F)), StringEntry(((("data_fc_" + O) + "_") + n), Q), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
197 | + | } | |
198 | + | else throw("You are not allowed to do that") | |
199 | + | } | |
212 | 200 | } | |
213 | 201 | ||
214 | 202 | ||
215 | 203 | ||
216 | - | @Callable( | |
217 | - | func emailCertification (k, | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let n = if ( | |
223 | - | then toString(addressFromPublicKey(fromBase58String( | |
224 | - | else toBase58String( | |
225 | - | let | |
226 | - | if (( | |
204 | + | @Callable(B) | |
205 | + | func emailCertification (k,g,u,D,E) = { | |
206 | + | let F = toBase58String(B.transactionId) | |
207 | + | let G = j(k, g) | |
208 | + | let H = l(g) | |
209 | + | let I = (this == B.caller) | |
210 | + | let n = if (I) | |
211 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
212 | + | else toBase58String(B.caller.bytes) | |
213 | + | let J = m(n) | |
214 | + | if ((G != "NONE")) | |
227 | 215 | then throw("This entry already exist") | |
228 | - | else if (( | |
216 | + | else if ((H != "NONE")) | |
229 | 217 | then throw("This uuid already exist") | |
230 | 218 | else if ((size(g) > 36)) | |
231 | 219 | then throw("Uuid is too long, 36 characters max.") | |
232 | 220 | else if ((size(k) > 64)) | |
233 | 221 | then throw("Domain is too long, 64 characters max.") | |
234 | - | else if ((size( | |
222 | + | else if ((size(D) > 64)) | |
235 | 223 | then throw("Title is too long, 64 characters max.") | |
236 | - | else if (( | |
237 | - | then | |
238 | - | else if (!( | |
224 | + | else if ((J > 0)) | |
225 | + | then [StringEntry(g, F), StringEntry(((g + "@") + k), F), StringEntry((D + g), F), IntegerEntry(("addr_WHITELISTED_" + n), (J - 1)), StringEntry(((("data_ec_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(n), 0, c)] | |
226 | + | else if (!(I)) | |
239 | 227 | then { | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | then | |
228 | + | let K = value(B.payments[0]) | |
229 | + | let L = K.amount | |
230 | + | let M = if (isDefined(K.assetId)) | |
231 | + | then K.assetId | |
244 | 232 | else throw("Waves is not accepted as payment") | |
245 | - | let | |
246 | - | if ((c != | |
233 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
234 | + | if ((c != M)) | |
247 | 235 | then throw("This token is not accepted at the moment") | |
248 | - | else if (if (( | |
249 | - | then (0 >= | |
236 | + | else if (if ((L != N)) | |
237 | + | then (0 >= J) | |
250 | 238 | else false) | |
251 | 239 | then throw("The price is wrong") | |
252 | - | else | |
240 | + | else [StringEntry(g, F), StringEntry(((g + "@") + k), F), StringEntry((D + g), F), StringEntry(((("data_ec_" + F) + "_") + n), u), ScriptTransfer(addressFromStringValue(b), L, K.assetId)] | |
253 | 241 | } | |
254 | 242 | else throw("You are not allowed to do that") | |
255 | 243 | } | |
256 | 244 | ||
257 | 245 | ||
258 | 246 | ||
259 | - | @Callable( | |
260 | - | func createAgreement ( | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | let n = if ( | |
266 | - | then toString(addressFromPublicKey(fromBase58String( | |
267 | - | else toBase58String( | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if (( | |
247 | + | @Callable(B) | |
248 | + | func createAgreement (C,D,R,S,E,g) = { | |
249 | + | let F = toBase58String(B.transactionId) | |
250 | + | let G = e(C, g) | |
251 | + | let H = l(g) | |
252 | + | let I = (this == B.caller) | |
253 | + | let n = if (I) | |
254 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
255 | + | else toBase58String(B.caller.bytes) | |
256 | + | let J = m(n) | |
257 | + | let T = ((((w(R, "creator") + "\"") + n) + "\"") + x(R, "creator")) | |
258 | + | let U = split(S, ",") | |
259 | + | let V = size(U) | |
260 | + | let W = StringEntry((D + g), F) | |
261 | + | let X = StringEntry((C + g), F) | |
262 | + | let Y = StringEntry(((("data_MA_" + F) + "_") + n), T) | |
263 | + | let Z = StringEntry(((n + "_MA_") + F), ("SIGNED_" + F)) | |
264 | + | let aa = IntegerEntry(("addr_WHITELISTED_" + n), (J - (V + 1))) | |
265 | + | if ((G != "NONE")) | |
278 | 266 | then throw("This entry already exist") | |
279 | - | else if (( | |
267 | + | else if ((H != "NONE")) | |
280 | 268 | then throw("This uuid already exist") | |
281 | 269 | else if ((size(g) > 36)) | |
282 | 270 | then throw("Uuid is too long, 36 characters max.") | |
283 | - | else if ((size( | |
271 | + | else if ((size(C) > 64)) | |
284 | 272 | then throw("Message-id is too long, 64 characters max.") | |
285 | - | else if ((size( | |
273 | + | else if ((size(D) > 64)) | |
286 | 274 | then throw("Title is too long, 64 characters max.") | |
287 | - | else if (( | |
288 | - | then if ((( | |
275 | + | else if ((J > 0)) | |
276 | + | then if (((V + 1) > J)) | |
289 | 277 | then throw("You don't have enough certification credit") | |
290 | - | else if (( | |
291 | - | then | |
292 | - | else if (( | |
293 | - | then | |
294 | - | else if (( | |
295 | - | then | |
296 | - | else if (( | |
297 | - | then | |
298 | - | else if (( | |
299 | - | then | |
300 | - | else if (( | |
301 | - | then | |
278 | + | else if ((V == 6)) | |
279 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), StringEntry(((U[5] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c), ScriptTransfer(addressFromStringValue(U[5]), 0, c)] | |
280 | + | else if ((V == 5)) | |
281 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c)] | |
282 | + | else if ((V == 4)) | |
283 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c)] | |
284 | + | else if ((V == 3)) | |
285 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c)] | |
286 | + | else if ((V == 2)) | |
287 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c)] | |
288 | + | else if ((V == 1)) | |
289 | + | then [W, X, Y, Z, aa, StringEntry(((U[0] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(n), 0, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c)] | |
302 | 290 | else throw("Wrong number of participants") | |
303 | - | else if (!( | |
291 | + | else if (!(I)) | |
304 | 292 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | then | |
293 | + | let K = value(B.payments[0]) | |
294 | + | let L = if (isDefined(K.amount)) | |
295 | + | then K.amount | |
308 | 296 | else 0 | |
309 | - | let | |
310 | - | then | |
297 | + | let M = if (isDefined(K.assetId)) | |
298 | + | then K.assetId | |
311 | 299 | else c | |
312 | - | let | |
313 | - | if ((( | |
314 | - | then throw(("The price is wrong, it should be " + toString(( | |
315 | - | else if (( | |
316 | - | then | |
317 | - | else if (( | |
318 | - | then | |
319 | - | else if (( | |
320 | - | then | |
321 | - | else if (( | |
322 | - | then | |
323 | - | else if (( | |
324 | - | then | |
325 | - | else if (( | |
326 | - | then | |
327 | - | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString( | |
300 | + | let N = getIntegerValue(a, ("certification_fee_" + toBase58String(value(M)))) | |
301 | + | if (((N * (V + 1)) > L)) | |
302 | + | then throw(("The price is wrong, it should be " + toString((N * (V + 1))))) | |
303 | + | else if ((V == 6)) | |
304 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), StringEntry(((U[5] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c), ScriptTransfer(addressFromStringValue(U[5]), 0, c)] | |
305 | + | else if ((V == 5)) | |
306 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), StringEntry(((U[4] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c), ScriptTransfer(addressFromStringValue(U[4]), 0, c)] | |
307 | + | else if ((V == 4)) | |
308 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), StringEntry(((U[3] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c), ScriptTransfer(addressFromStringValue(U[3]), 0, c)] | |
309 | + | else if ((V == 3)) | |
310 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), StringEntry(((U[2] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c), ScriptTransfer(addressFromStringValue(U[2]), 0, c)] | |
311 | + | else if ((V == 2)) | |
312 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), StringEntry(((U[1] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c), ScriptTransfer(addressFromStringValue(U[1]), 0, c)] | |
313 | + | else if ((V == 1)) | |
314 | + | then [W, X, Y, Z, StringEntry(((U[0] + "_MA_") + F), "PENDING"), ScriptTransfer(addressFromStringValue(b), L, c), ScriptTransfer(addressFromStringValue(U[0]), 0, c)] | |
315 | + | else throw(("Needs 1 to 6 recipient addresses, currently sent: " + toString(V))) | |
328 | 316 | } | |
329 | 317 | else throw("You are not allowed to do that") | |
330 | 318 | } | |
331 | 319 | ||
332 | 320 | ||
333 | 321 | ||
334 | - | @Callable( | |
335 | - | func signAgreement ( | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | then toString(addressFromPublicKey(fromBase58String( | |
342 | - | else toBase58String( | |
343 | - | let | |
344 | - | if (!( | |
322 | + | @Callable(B) | |
323 | + | func signAgreement (C,ab,E) = { | |
324 | + | let K = value(B.payments[0]) | |
325 | + | let L = K.amount | |
326 | + | let F = toBase58String(B.transactionId) | |
327 | + | let I = (this == B.caller) | |
328 | + | let ac = if (I) | |
329 | + | then toString(addressFromPublicKey(fromBase58String(E))) | |
330 | + | else toBase58String(B.caller.bytes) | |
331 | + | let ad = o(((ac + "_MA_") + ab)) | |
332 | + | if (!(ad)) | |
345 | 333 | then throw("Sorry there is no pending signature") | |
346 | - | else | |
334 | + | else [StringEntry(((ac + "_MA_") + ab), ("SIGNED_" + F)), ScriptTransfer(addressFromStringValue(ac), 0, c)] | |
347 | 335 | } | |
348 | 336 | ||
349 | 337 | ||
350 | 338 | ||
351 | - | @Callable( | |
339 | + | @Callable(B) | |
352 | 340 | func usdnSignCredits () = { | |
353 | - | let | |
354 | - | let n = toBase58String( | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if ((toBase58String( | |
341 | + | let K = value(B.payments[0]) | |
342 | + | let n = toBase58String(B.caller.bytes) | |
343 | + | let ae = K.assetId | |
344 | + | let L = K.amount | |
345 | + | let af = ((L * 2) / 1000000) | |
346 | + | let J = m(n) | |
347 | + | if ((toBase58String(value(ae)) != d)) | |
360 | 348 | then throw("Only USDN can be exchanged") | |
361 | - | else if (if ((( | |
362 | - | then (( | |
349 | + | else if (if (((L % 1000000) != 0)) | |
350 | + | then ((L % 1000000) != 500000) | |
363 | 351 | else false) | |
364 | - | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString( | |
365 | - | else | |
352 | + | then throw(((("You can only exchange multiple of 0.5, you sent:" + dropRight(toString(L), 6)) + ".") + takeRight(toString(L), 6))) | |
353 | + | else [IntegerEntry(("addr_WHITELISTED_" + n), (J + af)), ScriptTransfer(addressFromStringValue(b), L, ae)] | |
366 | 354 | } | |
367 | 355 | ||
368 | 356 | ||
369 | - | @Verifier( | |
370 | - | func | |
371 | - | let h = | |
357 | + | @Verifier(ag) | |
358 | + | func ah () = { | |
359 | + | let h = ag | |
372 | 360 | if ($isInstanceOf(h, "InvokeScriptTransaction")) | |
373 | 361 | then { | |
374 | - | let | |
375 | - | if (if (if (( | |
362 | + | let ai = h | |
363 | + | if (if (if ((ai.function == "fileCertification")) | |
376 | 364 | then true | |
377 | - | else ( | |
365 | + | else (ai.function == "emailCertification")) | |
378 | 366 | then true | |
379 | - | else ( | |
380 | - | then sigVerify( | |
381 | - | else if (( | |
382 | - | then sigVerify( | |
383 | - | else if (( | |
384 | - | then sigVerify( | |
385 | - | else sigVerify( | |
367 | + | else (ai.function == "createAgreement")) | |
368 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[4]))) | |
369 | + | else if ((ai.function == "signAgreement")) | |
370 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[2]))) | |
371 | + | else if ((ai.function == "revokeCertification")) | |
372 | + | then sigVerify(ag.bodyBytes, ag.proofs[0], fromBase58String(y(ai.args[1]))) | |
373 | + | else sigVerify(ag.bodyBytes, ag.proofs[0], ag.senderPublicKey) | |
386 | 374 | } | |
387 | - | else sigVerify( | |
375 | + | else sigVerify(ag.bodyBytes, ag.proofs[0], ag.senderPublicKey) | |
388 | 376 | } | |
389 | 377 |
github/deemru/w8io/169f3d6 262.58 ms ◑