tx · 7CuBqMEVx8WtnTjkaoZbSpCnZJ7HJ9MB1yzvkZ3Ne8my 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB: -0.01400000 Waves 2020.02.08 15:37 [890284] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves
{ "type": 13, "id": "7CuBqMEVx8WtnTjkaoZbSpCnZJ7HJ9MB1yzvkZ3Ne8my", "fee": 1400000, "feeAssetId": null, "timestamp": 1581165481833, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "2F78Zvdve4DtKSMMSUFSWydEdh4WW8gX4CN9tMUakLDVHvDYdSsn72vBz96Yfor3bwP4NiafZN5GbnS3jFPPvkzf" ], "script": "base64:AAIDAAAAAAAAAB4IARIGCgQICAgIEgUKAwgICBIFCgMICAgSBAoCCAgAAAANAAAAAAh2ZXJpZmllcgkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABAgAAACMzTjJzNVJ0YUhQQmVuQ3N4MkVDY29GUmJZSHgzbm9aaFhXMQAAAAAEYmFuawIAAAAjM04xRTZ0WGRkUm9WYVJmUTlkUTN2ZzVMYVcyZnNkOEhLdWIAAAAADWFjY2VwdGVkVG9rZW4BAAAAIOilarzKd0LycGEyNUpPRYO5uR7lmWcXw3Hq2QuhBK3rAQAAAApjaGVja0VudHJ5AAAAAgAAAAZwcmVmaXgAAAAEdXVpZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABnByZWZpeAUAAAAEdXVpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FAQAAAAljaGVja1VVSUQAAAABAAAABHV1aWQEAAAAByRtYXRjaDAJAAQdAAA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h0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAGc2lnbmVyAAAAAAAAB6EgBQAAAAR1bml0BQAAAANuaWwAAAAA3J2mdw==", "chainId": 84, "height": 890284, "spentComplexity": 0 } View: original | compacted Prev: 3oV4wXKCwxuW1kR5eYLfbrUv2FDdBkJcYNS3xhEZnSCy Next: 54gQMDtHHunUAg8aS8PxkKXY485jFS7NCSXyGVw64rwd Diff:
Old | New | Differences | |
---|---|---|---|
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | - | @Callable(x) | |
80 | - | func fileCertification (y,z,f,v) = { | |
81 | - | let A = extract(x.transactionId) | |
82 | - | let B = d(y, f) | |
83 | - | let C = i(f) | |
84 | - | let k = toBase58String(x.caller.bytes) | |
85 | - | let D = j(k) | |
86 | - | if ((B != "NONE")) | |
79 | + | func x (s,q) = { | |
80 | + | let u = value(indexOf(s, (("\"" + q) + "\":"))) | |
81 | + | let v = take(s, ((u + size(q)) + 3)) | |
82 | + | v | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | func y (s,q) = { | |
87 | + | let u = value(indexOf(s, (("\"" + q) + "\":"))) | |
88 | + | let v = takeRight(s, (size(s) - ((((u + size(q)) + 3) + 0) + 2))) | |
89 | + | v | |
90 | + | } | |
91 | + | ||
92 | + | ||
93 | + | @Callable(z) | |
94 | + | func fileCertification (A,B,f,v) = { | |
95 | + | let C = extract(z.transactionId) | |
96 | + | let D = d(A, f) | |
97 | + | let E = i(f) | |
98 | + | let k = toBase58String(z.caller.bytes) | |
99 | + | let F = j(k) | |
100 | + | if ((D != "NONE")) | |
87 | 101 | then throw("This entry already exist") | |
88 | - | else if (( | |
102 | + | else if ((E != "NONE")) | |
89 | 103 | then throw("This uuid already exist") | |
90 | 104 | else if ((size(f) > 36)) | |
91 | 105 | then throw("Uuid is too long") | |
92 | - | else if ((size( | |
106 | + | else if ((size(A) > 64)) | |
93 | 107 | then throw("Hash is too long") | |
94 | - | else if ((size( | |
108 | + | else if ((size(B) > 64)) | |
95 | 109 | then throw("Title is too long") | |
96 | - | else if (( | |
97 | - | then ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
110 | + | else if ((F > 0)) | |
111 | + | then ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((A + f), toBase58String(C)), DataEntry((B + f), toBase58String(C)), DataEntry(("addr_WHITELISTED_" + k), (F - 1)), DataEntry(((("data_fc_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(z.caller, 500000, unit)])) | |
98 | 112 | else { | |
99 | - | let | |
100 | - | let | |
101 | - | let | |
102 | - | then extract( | |
113 | + | let G = extract(z.payment) | |
114 | + | let H = extract(G.amount) | |
115 | + | let I = if (isDefined(G.assetId)) | |
116 | + | then extract(G.assetId) | |
103 | 117 | else throw("Waves is not accepted as payment") | |
104 | - | let | |
105 | - | if ((c != | |
118 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
119 | + | if ((c != I)) | |
106 | 120 | then throw("This token is not accepted at the moment") | |
107 | - | else if (if (( | |
108 | - | then (0 >= | |
121 | + | else if (if ((H != J)) | |
122 | + | then (0 >= F) | |
109 | 123 | else false) | |
110 | 124 | then throw("The price is wrong") | |
111 | - | else ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
125 | + | else ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((A + f), toBase58String(C)), DataEntry((B + f), toBase58String(C)), DataEntry(((("data_fc_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, G.assetId)])) | |
112 | 126 | } | |
113 | 127 | } | |
114 | 128 | ||
115 | 129 | ||
116 | 130 | ||
117 | - | @Callable( | |
118 | - | func emailCertification ( | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let k = toBase58String( | |
123 | - | let | |
124 | - | if (( | |
131 | + | @Callable(z) | |
132 | + | func emailCertification (K,f,v) = { | |
133 | + | let C = extract(z.transactionId) | |
134 | + | let D = d(K, f) | |
135 | + | let E = i(f) | |
136 | + | let k = toBase58String(z.caller.bytes) | |
137 | + | let F = j(k) | |
138 | + | if ((D != "NONE")) | |
125 | 139 | then throw("This entry already exist") | |
126 | - | else if (( | |
140 | + | else if ((E != "NONE")) | |
127 | 141 | then throw("This uuid already exist") | |
128 | 142 | else if ((size(f) > 36)) | |
129 | 143 | then throw("Uuid is too long") | |
130 | - | else if (( | |
131 | - | then ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
144 | + | else if ((F > 0)) | |
145 | + | then ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((K + f), toBase58String(C)), DataEntry(("addr_WHITELISTED_" + k), (F - 1)), DataEntry(((("data_ec_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(z.caller, 500000, unit)])) | |
132 | 146 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | then extract( | |
147 | + | let G = extract(z.payment) | |
148 | + | let H = extract(G.amount) | |
149 | + | let I = if (isDefined(G.assetId)) | |
150 | + | then extract(G.assetId) | |
137 | 151 | else throw("Waves is not accepted as payment") | |
138 | - | let | |
139 | - | if ((c != | |
152 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
153 | + | if ((c != I)) | |
140 | 154 | then throw("This token is not accepted at the moment") | |
141 | - | else if (if (( | |
142 | - | then (0 >= | |
155 | + | else if (if ((H != J)) | |
156 | + | then (0 >= F) | |
143 | 157 | else false) | |
144 | 158 | then throw("The price is wrong") | |
145 | - | else ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
159 | + | else ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((K + f), toBase58String(C)), DataEntry(((("data_ec_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, G.assetId)])) | |
146 | 160 | } | |
147 | 161 | } | |
148 | 162 | ||
149 | 163 | ||
150 | 164 | ||
151 | - | @Callable( | |
152 | - | func createAgreement ( | |
153 | - | let | |
154 | - | let k = toBase58String( | |
155 | - | let | |
156 | - | let | |
157 | - | | |
158 | - | | |
159 | - | | |
160 | - | let | |
161 | - | | |
162 | - | | |
163 | - | | |
164 | - | let | |
165 | - | if (( | |
166 | - | then | |
165 | + | @Callable(z) | |
166 | + | func createAgreement (A,B,L) = { | |
167 | + | let C = extract(z.transactionId) | |
168 | + | let k = toBase58String(z.caller.bytes) | |
169 | + | let F = j(k) | |
170 | + | let M = ((x(L, "owner") + toBase58String(z.caller.bytes)) + y(L, "owner")) | |
171 | + | if (true) | |
172 | + | then throw(M) | |
173 | + | else { | |
174 | + | let N = [t(L, "address1"), t(L, "address2"), t(L, "address3"), t(L, "address4"), t(L, "address5"), t(L, "address6")] | |
175 | + | let O = { | |
176 | + | let P = N | |
177 | + | let Q = size(P) | |
178 | + | let R = 0 | |
179 | + | if ((Q == 0)) | |
180 | + | then R | |
167 | 181 | else { | |
168 | - | let | |
169 | - | if (( | |
170 | - | then | |
182 | + | let S = n(R, P[0]) | |
183 | + | if ((Q == 1)) | |
184 | + | then S | |
171 | 185 | else { | |
172 | - | let | |
173 | - | if (( | |
174 | - | then | |
186 | + | let T = n(S, P[1]) | |
187 | + | if ((Q == 2)) | |
188 | + | then T | |
175 | 189 | else { | |
176 | - | let | |
177 | - | if (( | |
178 | - | then | |
190 | + | let U = n(T, P[2]) | |
191 | + | if ((Q == 3)) | |
192 | + | then U | |
179 | 193 | else { | |
180 | - | let | |
181 | - | if (( | |
182 | - | then | |
194 | + | let V = n(U, P[3]) | |
195 | + | if ((Q == 4)) | |
196 | + | then V | |
183 | 197 | else { | |
184 | - | let | |
185 | - | if (( | |
186 | - | then | |
198 | + | let W = n(V, P[4]) | |
199 | + | if ((Q == 5)) | |
200 | + | then W | |
187 | 201 | else { | |
188 | - | let V = n(U, M[6]) | |
189 | - | throw("List size exceed 6") | |
202 | + | let X = n(W, P[5]) | |
203 | + | if ((Q == 6)) | |
204 | + | then X | |
205 | + | else { | |
206 | + | let Y = n(X, P[6]) | |
207 | + | throw("List size exceed 6") | |
208 | + | } | |
190 | 209 | } | |
191 | 210 | } | |
192 | 211 | } | |
194 | 213 | } | |
195 | 214 | } | |
196 | 215 | } | |
197 | - | } | |
198 | - | let W = DataEntry(("title_MA_" + toBase58String(A)), z) | |
199 | - | let X = DataEntry(("hash_MA_" + toBase58String(A)), y) | |
200 | - | let Y = DataEntry(((("data_MA_" + toBase58String(A)) + "_") + k), J) | |
201 | - | let Z = DataEntry(((k + "_MA_") + toBase58String(A)), ("SIGNED_" + toBase58String(A))) | |
202 | - | let aa = DataEntry(("addr_WHITELISTED_" + k), (D - L)) | |
203 | - | if ((L == 1)) | |
204 | - | then if ((D > 0)) | |
205 | - | then if ((L > D)) | |
206 | - | then throw("You don't have enough certification credit") | |
207 | - | else ScriptResult(WriteSet([W, X, Y, Z, aa, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(K[0]), 0, c)])) | |
208 | - | else { | |
209 | - | let E = extract(x.payment) | |
210 | - | let F = if (isDefined(E.amount)) | |
211 | - | then extract(E.amount) | |
212 | - | else 0 | |
213 | - | let G = if (isDefined(E.assetId)) | |
214 | - | then extract(E.assetId) | |
215 | - | else c | |
216 | - | let H = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(G)))) | |
217 | - | if (((H * L) > F)) | |
218 | - | then throw(("The price is wrong, it should be " + toString((H * L)))) | |
219 | - | else ScriptResult(WriteSet([W, X, Y, Z, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), F, c), ScriptTransfer(addressFromStringValue(K[0]), 0, c)])) | |
220 | - | } | |
221 | - | else if ((L == 2)) | |
222 | - | then if ((D > 0)) | |
223 | - | then if ((L > D)) | |
224 | - | then throw("You don't have enough certification credit") | |
225 | - | else ScriptResult(WriteSet([W, X, Y, Z, aa, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING"), DataEntry(((K[1] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(K[0]), 0, c), ScriptTransfer(addressFromStringValue(K[1]), 0, c)])) | |
226 | - | else { | |
227 | - | let E = extract(x.payment) | |
228 | - | let F = if (isDefined(E.amount)) | |
229 | - | then extract(E.amount) | |
230 | - | else 0 | |
231 | - | let G = if (isDefined(E.assetId)) | |
232 | - | then extract(E.assetId) | |
233 | - | else c | |
234 | - | let H = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(G)))) | |
235 | - | if (((H * L) > F)) | |
236 | - | then throw(("The price is wrong, it should be " + toString((H * L)))) | |
237 | - | else ScriptResult(WriteSet([W, X, Y, Z, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING"), DataEntry(((K[1] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), F, c), ScriptTransfer(addressFromStringValue(K[0]), 0, c), ScriptTransfer(addressFromStringValue(K[1]), 0, c)])) | |
238 | - | } | |
239 | - | else if ((L == 3)) | |
240 | - | then if ((D > 0)) | |
241 | - | then if ((L > D)) | |
216 | + | let Z = DataEntry(("title_MA_" + toBase58String(C)), B) | |
217 | + | let aa = DataEntry(("hash_MA_" + toBase58String(C)), A) | |
218 | + | let ab = DataEntry(((("data_MA_" + toBase58String(C)) + "_") + k), L) | |
219 | + | let ac = DataEntry(((k + "_MA_") + toBase58String(C)), ("SIGNED_" + toBase58String(C))) | |
220 | + | let ad = DataEntry(("addr_WHITELISTED_" + k), (F - O)) | |
221 | + | if ((O == 1)) | |
222 | + | then if ((F > 0)) | |
223 | + | then if ((O > F)) | |
242 | 224 | then throw("You don't have enough certification credit") | |
243 | - | else ScriptResult(WriteSet([ | |
225 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c)])) | |
244 | 226 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | then extract( | |
227 | + | let G = extract(z.payment) | |
228 | + | let H = if (isDefined(G.amount)) | |
229 | + | then extract(G.amount) | |
248 | 230 | else 0 | |
249 | - | let | |
250 | - | then extract( | |
231 | + | let I = if (isDefined(G.assetId)) | |
232 | + | then extract(G.assetId) | |
251 | 233 | else c | |
252 | - | let | |
253 | - | if ((( | |
254 | - | then throw(("The price is wrong, it should be " + toString(( | |
255 | - | else ScriptResult(WriteSet([ | |
234 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
235 | + | if (((J * O) > H)) | |
236 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
237 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c)])) | |
256 | 238 | } | |
257 | - | else if (( | |
258 | - | then if (( | |
259 | - | then if (( | |
239 | + | else if ((O == 2)) | |
240 | + | then if ((F > 0)) | |
241 | + | then if ((O > F)) | |
260 | 242 | then throw("You don't have enough certification credit") | |
261 | - | else ScriptResult(WriteSet([ | |
243 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c)])) | |
262 | 244 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | then extract( | |
245 | + | let G = extract(z.payment) | |
246 | + | let H = if (isDefined(G.amount)) | |
247 | + | then extract(G.amount) | |
266 | 248 | else 0 | |
267 | - | let | |
268 | - | then extract( | |
249 | + | let I = if (isDefined(G.assetId)) | |
250 | + | then extract(G.assetId) | |
269 | 251 | else c | |
270 | - | let | |
271 | - | if ((( | |
272 | - | then throw(("The price is wrong, it should be " + toString(( | |
273 | - | else ScriptResult(WriteSet([ | |
252 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
253 | + | if (((J * O) > H)) | |
254 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
255 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c)])) | |
274 | 256 | } | |
275 | - | else if (( | |
276 | - | then if (( | |
277 | - | then if (( | |
257 | + | else if ((O == 3)) | |
258 | + | then if ((F > 0)) | |
259 | + | then if ((O > F)) | |
278 | 260 | then throw("You don't have enough certification credit") | |
279 | - | else ScriptResult(WriteSet([ | |
261 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c)])) | |
280 | 262 | else { | |
281 | - | let | |
282 | - | let | |
283 | - | then extract( | |
263 | + | let G = extract(z.payment) | |
264 | + | let H = if (isDefined(G.amount)) | |
265 | + | then extract(G.amount) | |
284 | 266 | else 0 | |
285 | - | let | |
286 | - | then extract( | |
267 | + | let I = if (isDefined(G.assetId)) | |
268 | + | then extract(G.assetId) | |
287 | 269 | else c | |
288 | - | let | |
289 | - | if ((( | |
290 | - | then throw(("The price is wrong, it should be " + toString(( | |
291 | - | else ScriptResult(WriteSet([ | |
270 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
271 | + | if (((J * O) > H)) | |
272 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
273 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c)])) | |
292 | 274 | } | |
293 | - | else if (( | |
294 | - | then if (( | |
295 | - | then if (( | |
275 | + | else if ((O == 4)) | |
276 | + | then if ((F > 0)) | |
277 | + | then if ((O > F)) | |
296 | 278 | then throw("You don't have enough certification credit") | |
297 | - | else ScriptResult(WriteSet([ | |
279 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c)])) | |
298 | 280 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | then extract( | |
281 | + | let G = extract(z.payment) | |
282 | + | let H = if (isDefined(G.amount)) | |
283 | + | then extract(G.amount) | |
302 | 284 | else 0 | |
303 | - | let | |
304 | - | then extract( | |
285 | + | let I = if (isDefined(G.assetId)) | |
286 | + | then extract(G.assetId) | |
305 | 287 | else c | |
306 | - | let | |
307 | - | if ((( | |
308 | - | then throw(("The price is wrong, it should be " + toString(( | |
309 | - | else ScriptResult(WriteSet([ | |
288 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
289 | + | if (((J * O) > H)) | |
290 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
291 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c)])) | |
310 | 292 | } | |
311 | - | else throw(("Needs 2 to 6 parties addresses" + toString(L))) | |
293 | + | else if ((O == 5)) | |
294 | + | then if ((F > 0)) | |
295 | + | then if ((O > F)) | |
296 | + | then throw("You don't have enough certification credit") | |
297 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c)])) | |
298 | + | else { | |
299 | + | let G = extract(z.payment) | |
300 | + | let H = if (isDefined(G.amount)) | |
301 | + | then extract(G.amount) | |
302 | + | else 0 | |
303 | + | let I = if (isDefined(G.assetId)) | |
304 | + | then extract(G.assetId) | |
305 | + | else c | |
306 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
307 | + | if (((J * O) > H)) | |
308 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
309 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c)])) | |
310 | + | } | |
311 | + | else if ((O == 6)) | |
312 | + | then if ((F > 0)) | |
313 | + | then if ((O > F)) | |
314 | + | then throw("You don't have enough certification credit") | |
315 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[5] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c), ScriptTransfer(addressFromStringValue(N[5]), 0, c)])) | |
316 | + | else { | |
317 | + | let G = extract(z.payment) | |
318 | + | let H = if (isDefined(G.amount)) | |
319 | + | then extract(G.amount) | |
320 | + | else 0 | |
321 | + | let I = if (isDefined(G.assetId)) | |
322 | + | then extract(G.assetId) | |
323 | + | else c | |
324 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
325 | + | if (((J * O) > H)) | |
326 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
327 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[5] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c), ScriptTransfer(addressFromStringValue(N[5]), 0, c)])) | |
328 | + | } | |
329 | + | else throw(("Needs 2 to 6 parties addresses" + toString(O))) | |
330 | + | } | |
312 | 331 | } | |
313 | 332 | ||
314 | 333 | ||
315 | 334 | ||
316 | - | @Callable( | |
317 | - | func signAgreement ( | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | if (!( | |
335 | + | @Callable(z) | |
336 | + | func signAgreement (A,ae) = { | |
337 | + | let G = extract(z.payment) | |
338 | + | let H = extract(G.amount) | |
339 | + | let C = extract(z.transactionId) | |
340 | + | let af = toBase58String(z.caller.bytes) | |
341 | + | let ag = p(((af + "_MA_") + ae)) | |
342 | + | if (!(ag)) | |
324 | 343 | then throw("Sorry there is no pending signature") | |
325 | - | else ScriptResult(WriteSet([DataEntry((( | |
344 | + | else ScriptResult(WriteSet([DataEntry(((af + "_MA_") + ae), ("SIGNED_" + toBase58String(C)))]), TransferSet([ScriptTransfer(addressFromStringValue(af), 500000, unit)])) | |
326 | 345 | } | |
327 | 346 | ||
328 | 347 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1")) | |
5 | 5 | ||
6 | 6 | let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub" | |
7 | 7 | ||
8 | 8 | let c = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a' | |
9 | 9 | ||
10 | 10 | func d (e,f) = { | |
11 | 11 | let g = getString(this, (e + f)) | |
12 | 12 | if ($isInstanceOf(g, "String")) | |
13 | 13 | then { | |
14 | 14 | let h = g | |
15 | 15 | h | |
16 | 16 | } | |
17 | 17 | else "NONE" | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i (f) = { | |
22 | 22 | let g = getString(this, f) | |
23 | 23 | if ($isInstanceOf(g, "String")) | |
24 | 24 | then { | |
25 | 25 | let h = g | |
26 | 26 | h | |
27 | 27 | } | |
28 | 28 | else "NONE" | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func j (k) = { | |
33 | 33 | let g = getInteger(this, ("addr_WHITELISTED_" + k)) | |
34 | 34 | if ($isInstanceOf(g, "Int")) | |
35 | 35 | then { | |
36 | 36 | let h = g | |
37 | 37 | h | |
38 | 38 | } | |
39 | 39 | else 0 | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func l (m) = if (if ((size(m) == 35)) | |
44 | 44 | then (take(m, 2) == "3N") | |
45 | 45 | else false) | |
46 | 46 | then true | |
47 | 47 | else (take(m, 2) == "3M") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func n (o,m) = if ((size(m) > 0)) | |
51 | 51 | then (o + 1) | |
52 | 52 | else (o + 0) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func p (q) = { | |
56 | 56 | let g = getString(this, q) | |
57 | 57 | if ($isInstanceOf(g, "String")) | |
58 | 58 | then { | |
59 | 59 | let h = g | |
60 | 60 | if ((h == "PENDING")) | |
61 | 61 | then true | |
62 | 62 | else false | |
63 | 63 | } | |
64 | 64 | else false | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func r (s) = take(drop(s, 1), value(indexOf(drop(s, 1), "\""))) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func t (s,q) = { | |
72 | 72 | let u = value(indexOf(s, (("\"" + q) + "\":"))) | |
73 | 73 | let v = drop(s, ((u + size(q)) + 3)) | |
74 | 74 | let w = r(v) | |
75 | 75 | w | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | - | @Callable(x) | |
80 | - | func fileCertification (y,z,f,v) = { | |
81 | - | let A = extract(x.transactionId) | |
82 | - | let B = d(y, f) | |
83 | - | let C = i(f) | |
84 | - | let k = toBase58String(x.caller.bytes) | |
85 | - | let D = j(k) | |
86 | - | if ((B != "NONE")) | |
79 | + | func x (s,q) = { | |
80 | + | let u = value(indexOf(s, (("\"" + q) + "\":"))) | |
81 | + | let v = take(s, ((u + size(q)) + 3)) | |
82 | + | v | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | func y (s,q) = { | |
87 | + | let u = value(indexOf(s, (("\"" + q) + "\":"))) | |
88 | + | let v = takeRight(s, (size(s) - ((((u + size(q)) + 3) + 0) + 2))) | |
89 | + | v | |
90 | + | } | |
91 | + | ||
92 | + | ||
93 | + | @Callable(z) | |
94 | + | func fileCertification (A,B,f,v) = { | |
95 | + | let C = extract(z.transactionId) | |
96 | + | let D = d(A, f) | |
97 | + | let E = i(f) | |
98 | + | let k = toBase58String(z.caller.bytes) | |
99 | + | let F = j(k) | |
100 | + | if ((D != "NONE")) | |
87 | 101 | then throw("This entry already exist") | |
88 | - | else if (( | |
102 | + | else if ((E != "NONE")) | |
89 | 103 | then throw("This uuid already exist") | |
90 | 104 | else if ((size(f) > 36)) | |
91 | 105 | then throw("Uuid is too long") | |
92 | - | else if ((size( | |
106 | + | else if ((size(A) > 64)) | |
93 | 107 | then throw("Hash is too long") | |
94 | - | else if ((size( | |
108 | + | else if ((size(B) > 64)) | |
95 | 109 | then throw("Title is too long") | |
96 | - | else if (( | |
97 | - | then ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
110 | + | else if ((F > 0)) | |
111 | + | then ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((A + f), toBase58String(C)), DataEntry((B + f), toBase58String(C)), DataEntry(("addr_WHITELISTED_" + k), (F - 1)), DataEntry(((("data_fc_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(z.caller, 500000, unit)])) | |
98 | 112 | else { | |
99 | - | let | |
100 | - | let | |
101 | - | let | |
102 | - | then extract( | |
113 | + | let G = extract(z.payment) | |
114 | + | let H = extract(G.amount) | |
115 | + | let I = if (isDefined(G.assetId)) | |
116 | + | then extract(G.assetId) | |
103 | 117 | else throw("Waves is not accepted as payment") | |
104 | - | let | |
105 | - | if ((c != | |
118 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
119 | + | if ((c != I)) | |
106 | 120 | then throw("This token is not accepted at the moment") | |
107 | - | else if (if (( | |
108 | - | then (0 >= | |
121 | + | else if (if ((H != J)) | |
122 | + | then (0 >= F) | |
109 | 123 | else false) | |
110 | 124 | then throw("The price is wrong") | |
111 | - | else ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
125 | + | else ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((A + f), toBase58String(C)), DataEntry((B + f), toBase58String(C)), DataEntry(((("data_fc_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, G.assetId)])) | |
112 | 126 | } | |
113 | 127 | } | |
114 | 128 | ||
115 | 129 | ||
116 | 130 | ||
117 | - | @Callable( | |
118 | - | func emailCertification ( | |
119 | - | let | |
120 | - | let | |
121 | - | let | |
122 | - | let k = toBase58String( | |
123 | - | let | |
124 | - | if (( | |
131 | + | @Callable(z) | |
132 | + | func emailCertification (K,f,v) = { | |
133 | + | let C = extract(z.transactionId) | |
134 | + | let D = d(K, f) | |
135 | + | let E = i(f) | |
136 | + | let k = toBase58String(z.caller.bytes) | |
137 | + | let F = j(k) | |
138 | + | if ((D != "NONE")) | |
125 | 139 | then throw("This entry already exist") | |
126 | - | else if (( | |
140 | + | else if ((E != "NONE")) | |
127 | 141 | then throw("This uuid already exist") | |
128 | 142 | else if ((size(f) > 36)) | |
129 | 143 | then throw("Uuid is too long") | |
130 | - | else if (( | |
131 | - | then ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
144 | + | else if ((F > 0)) | |
145 | + | then ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((K + f), toBase58String(C)), DataEntry(("addr_WHITELISTED_" + k), (F - 1)), DataEntry(((("data_ec_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(z.caller, 500000, unit)])) | |
132 | 146 | else { | |
133 | - | let | |
134 | - | let | |
135 | - | let | |
136 | - | then extract( | |
147 | + | let G = extract(z.payment) | |
148 | + | let H = extract(G.amount) | |
149 | + | let I = if (isDefined(G.assetId)) | |
150 | + | then extract(G.assetId) | |
137 | 151 | else throw("Waves is not accepted as payment") | |
138 | - | let | |
139 | - | if ((c != | |
152 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
153 | + | if ((c != I)) | |
140 | 154 | then throw("This token is not accepted at the moment") | |
141 | - | else if (if (( | |
142 | - | then (0 >= | |
155 | + | else if (if ((H != J)) | |
156 | + | then (0 >= F) | |
143 | 157 | else false) | |
144 | 158 | then throw("The price is wrong") | |
145 | - | else ScriptResult(WriteSet([DataEntry(f, toBase58String( | |
159 | + | else ScriptResult(WriteSet([DataEntry(f, toBase58String(C)), DataEntry((K + f), toBase58String(C)), DataEntry(((("data_ec_" + toBase58String(C)) + "_") + k), v)]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, G.assetId)])) | |
146 | 160 | } | |
147 | 161 | } | |
148 | 162 | ||
149 | 163 | ||
150 | 164 | ||
151 | - | @Callable( | |
152 | - | func createAgreement ( | |
153 | - | let | |
154 | - | let k = toBase58String( | |
155 | - | let | |
156 | - | let | |
157 | - | | |
158 | - | | |
159 | - | | |
160 | - | let | |
161 | - | | |
162 | - | | |
163 | - | | |
164 | - | let | |
165 | - | if (( | |
166 | - | then | |
165 | + | @Callable(z) | |
166 | + | func createAgreement (A,B,L) = { | |
167 | + | let C = extract(z.transactionId) | |
168 | + | let k = toBase58String(z.caller.bytes) | |
169 | + | let F = j(k) | |
170 | + | let M = ((x(L, "owner") + toBase58String(z.caller.bytes)) + y(L, "owner")) | |
171 | + | if (true) | |
172 | + | then throw(M) | |
173 | + | else { | |
174 | + | let N = [t(L, "address1"), t(L, "address2"), t(L, "address3"), t(L, "address4"), t(L, "address5"), t(L, "address6")] | |
175 | + | let O = { | |
176 | + | let P = N | |
177 | + | let Q = size(P) | |
178 | + | let R = 0 | |
179 | + | if ((Q == 0)) | |
180 | + | then R | |
167 | 181 | else { | |
168 | - | let | |
169 | - | if (( | |
170 | - | then | |
182 | + | let S = n(R, P[0]) | |
183 | + | if ((Q == 1)) | |
184 | + | then S | |
171 | 185 | else { | |
172 | - | let | |
173 | - | if (( | |
174 | - | then | |
186 | + | let T = n(S, P[1]) | |
187 | + | if ((Q == 2)) | |
188 | + | then T | |
175 | 189 | else { | |
176 | - | let | |
177 | - | if (( | |
178 | - | then | |
190 | + | let U = n(T, P[2]) | |
191 | + | if ((Q == 3)) | |
192 | + | then U | |
179 | 193 | else { | |
180 | - | let | |
181 | - | if (( | |
182 | - | then | |
194 | + | let V = n(U, P[3]) | |
195 | + | if ((Q == 4)) | |
196 | + | then V | |
183 | 197 | else { | |
184 | - | let | |
185 | - | if (( | |
186 | - | then | |
198 | + | let W = n(V, P[4]) | |
199 | + | if ((Q == 5)) | |
200 | + | then W | |
187 | 201 | else { | |
188 | - | let V = n(U, M[6]) | |
189 | - | throw("List size exceed 6") | |
202 | + | let X = n(W, P[5]) | |
203 | + | if ((Q == 6)) | |
204 | + | then X | |
205 | + | else { | |
206 | + | let Y = n(X, P[6]) | |
207 | + | throw("List size exceed 6") | |
208 | + | } | |
190 | 209 | } | |
191 | 210 | } | |
192 | 211 | } | |
193 | 212 | } | |
194 | 213 | } | |
195 | 214 | } | |
196 | 215 | } | |
197 | - | } | |
198 | - | let W = DataEntry(("title_MA_" + toBase58String(A)), z) | |
199 | - | let X = DataEntry(("hash_MA_" + toBase58String(A)), y) | |
200 | - | let Y = DataEntry(((("data_MA_" + toBase58String(A)) + "_") + k), J) | |
201 | - | let Z = DataEntry(((k + "_MA_") + toBase58String(A)), ("SIGNED_" + toBase58String(A))) | |
202 | - | let aa = DataEntry(("addr_WHITELISTED_" + k), (D - L)) | |
203 | - | if ((L == 1)) | |
204 | - | then if ((D > 0)) | |
205 | - | then if ((L > D)) | |
206 | - | then throw("You don't have enough certification credit") | |
207 | - | else ScriptResult(WriteSet([W, X, Y, Z, aa, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(K[0]), 0, c)])) | |
208 | - | else { | |
209 | - | let E = extract(x.payment) | |
210 | - | let F = if (isDefined(E.amount)) | |
211 | - | then extract(E.amount) | |
212 | - | else 0 | |
213 | - | let G = if (isDefined(E.assetId)) | |
214 | - | then extract(E.assetId) | |
215 | - | else c | |
216 | - | let H = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(G)))) | |
217 | - | if (((H * L) > F)) | |
218 | - | then throw(("The price is wrong, it should be " + toString((H * L)))) | |
219 | - | else ScriptResult(WriteSet([W, X, Y, Z, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), F, c), ScriptTransfer(addressFromStringValue(K[0]), 0, c)])) | |
220 | - | } | |
221 | - | else if ((L == 2)) | |
222 | - | then if ((D > 0)) | |
223 | - | then if ((L > D)) | |
224 | - | then throw("You don't have enough certification credit") | |
225 | - | else ScriptResult(WriteSet([W, X, Y, Z, aa, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING"), DataEntry(((K[1] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(K[0]), 0, c), ScriptTransfer(addressFromStringValue(K[1]), 0, c)])) | |
226 | - | else { | |
227 | - | let E = extract(x.payment) | |
228 | - | let F = if (isDefined(E.amount)) | |
229 | - | then extract(E.amount) | |
230 | - | else 0 | |
231 | - | let G = if (isDefined(E.assetId)) | |
232 | - | then extract(E.assetId) | |
233 | - | else c | |
234 | - | let H = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(G)))) | |
235 | - | if (((H * L) > F)) | |
236 | - | then throw(("The price is wrong, it should be " + toString((H * L)))) | |
237 | - | else ScriptResult(WriteSet([W, X, Y, Z, DataEntry(((K[0] + "_MA_") + toBase58String(A)), "PENDING"), DataEntry(((K[1] + "_MA_") + toBase58String(A)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), F, c), ScriptTransfer(addressFromStringValue(K[0]), 0, c), ScriptTransfer(addressFromStringValue(K[1]), 0, c)])) | |
238 | - | } | |
239 | - | else if ((L == 3)) | |
240 | - | then if ((D > 0)) | |
241 | - | then if ((L > D)) | |
216 | + | let Z = DataEntry(("title_MA_" + toBase58String(C)), B) | |
217 | + | let aa = DataEntry(("hash_MA_" + toBase58String(C)), A) | |
218 | + | let ab = DataEntry(((("data_MA_" + toBase58String(C)) + "_") + k), L) | |
219 | + | let ac = DataEntry(((k + "_MA_") + toBase58String(C)), ("SIGNED_" + toBase58String(C))) | |
220 | + | let ad = DataEntry(("addr_WHITELISTED_" + k), (F - O)) | |
221 | + | if ((O == 1)) | |
222 | + | then if ((F > 0)) | |
223 | + | then if ((O > F)) | |
242 | 224 | then throw("You don't have enough certification credit") | |
243 | - | else ScriptResult(WriteSet([ | |
225 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c)])) | |
244 | 226 | else { | |
245 | - | let | |
246 | - | let | |
247 | - | then extract( | |
227 | + | let G = extract(z.payment) | |
228 | + | let H = if (isDefined(G.amount)) | |
229 | + | then extract(G.amount) | |
248 | 230 | else 0 | |
249 | - | let | |
250 | - | then extract( | |
231 | + | let I = if (isDefined(G.assetId)) | |
232 | + | then extract(G.assetId) | |
251 | 233 | else c | |
252 | - | let | |
253 | - | if ((( | |
254 | - | then throw(("The price is wrong, it should be " + toString(( | |
255 | - | else ScriptResult(WriteSet([ | |
234 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
235 | + | if (((J * O) > H)) | |
236 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
237 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c)])) | |
256 | 238 | } | |
257 | - | else if (( | |
258 | - | then if (( | |
259 | - | then if (( | |
239 | + | else if ((O == 2)) | |
240 | + | then if ((F > 0)) | |
241 | + | then if ((O > F)) | |
260 | 242 | then throw("You don't have enough certification credit") | |
261 | - | else ScriptResult(WriteSet([ | |
243 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c)])) | |
262 | 244 | else { | |
263 | - | let | |
264 | - | let | |
265 | - | then extract( | |
245 | + | let G = extract(z.payment) | |
246 | + | let H = if (isDefined(G.amount)) | |
247 | + | then extract(G.amount) | |
266 | 248 | else 0 | |
267 | - | let | |
268 | - | then extract( | |
249 | + | let I = if (isDefined(G.assetId)) | |
250 | + | then extract(G.assetId) | |
269 | 251 | else c | |
270 | - | let | |
271 | - | if ((( | |
272 | - | then throw(("The price is wrong, it should be " + toString(( | |
273 | - | else ScriptResult(WriteSet([ | |
252 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
253 | + | if (((J * O) > H)) | |
254 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
255 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c)])) | |
274 | 256 | } | |
275 | - | else if (( | |
276 | - | then if (( | |
277 | - | then if (( | |
257 | + | else if ((O == 3)) | |
258 | + | then if ((F > 0)) | |
259 | + | then if ((O > F)) | |
278 | 260 | then throw("You don't have enough certification credit") | |
279 | - | else ScriptResult(WriteSet([ | |
261 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c)])) | |
280 | 262 | else { | |
281 | - | let | |
282 | - | let | |
283 | - | then extract( | |
263 | + | let G = extract(z.payment) | |
264 | + | let H = if (isDefined(G.amount)) | |
265 | + | then extract(G.amount) | |
284 | 266 | else 0 | |
285 | - | let | |
286 | - | then extract( | |
267 | + | let I = if (isDefined(G.assetId)) | |
268 | + | then extract(G.assetId) | |
287 | 269 | else c | |
288 | - | let | |
289 | - | if ((( | |
290 | - | then throw(("The price is wrong, it should be " + toString(( | |
291 | - | else ScriptResult(WriteSet([ | |
270 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
271 | + | if (((J * O) > H)) | |
272 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
273 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c)])) | |
292 | 274 | } | |
293 | - | else if (( | |
294 | - | then if (( | |
295 | - | then if (( | |
275 | + | else if ((O == 4)) | |
276 | + | then if ((F > 0)) | |
277 | + | then if ((O > F)) | |
296 | 278 | then throw("You don't have enough certification credit") | |
297 | - | else ScriptResult(WriteSet([ | |
279 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c)])) | |
298 | 280 | else { | |
299 | - | let | |
300 | - | let | |
301 | - | then extract( | |
281 | + | let G = extract(z.payment) | |
282 | + | let H = if (isDefined(G.amount)) | |
283 | + | then extract(G.amount) | |
302 | 284 | else 0 | |
303 | - | let | |
304 | - | then extract( | |
285 | + | let I = if (isDefined(G.assetId)) | |
286 | + | then extract(G.assetId) | |
305 | 287 | else c | |
306 | - | let | |
307 | - | if ((( | |
308 | - | then throw(("The price is wrong, it should be " + toString(( | |
309 | - | else ScriptResult(WriteSet([ | |
288 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
289 | + | if (((J * O) > H)) | |
290 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
291 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c)])) | |
310 | 292 | } | |
311 | - | else throw(("Needs 2 to 6 parties addresses" + toString(L))) | |
293 | + | else if ((O == 5)) | |
294 | + | then if ((F > 0)) | |
295 | + | then if ((O > F)) | |
296 | + | then throw("You don't have enough certification credit") | |
297 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c)])) | |
298 | + | else { | |
299 | + | let G = extract(z.payment) | |
300 | + | let H = if (isDefined(G.amount)) | |
301 | + | then extract(G.amount) | |
302 | + | else 0 | |
303 | + | let I = if (isDefined(G.assetId)) | |
304 | + | then extract(G.assetId) | |
305 | + | else c | |
306 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
307 | + | if (((J * O) > H)) | |
308 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
309 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c)])) | |
310 | + | } | |
311 | + | else if ((O == 6)) | |
312 | + | then if ((F > 0)) | |
313 | + | then if ((O > F)) | |
314 | + | then throw("You don't have enough certification credit") | |
315 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, ad, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[5] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c), ScriptTransfer(addressFromStringValue(N[5]), 0, c)])) | |
316 | + | else { | |
317 | + | let G = extract(z.payment) | |
318 | + | let H = if (isDefined(G.amount)) | |
319 | + | then extract(G.amount) | |
320 | + | else 0 | |
321 | + | let I = if (isDefined(G.assetId)) | |
322 | + | then extract(G.assetId) | |
323 | + | else c | |
324 | + | let J = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(I)))) | |
325 | + | if (((J * O) > H)) | |
326 | + | then throw(("The price is wrong, it should be " + toString((J * O)))) | |
327 | + | else ScriptResult(WriteSet([Z, aa, ab, ac, DataEntry(((N[0] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[1] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[2] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[3] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[4] + "_MA_") + toBase58String(C)), "PENDING"), DataEntry(((N[5] + "_MA_") + toBase58String(C)), "PENDING")]), TransferSet([ScriptTransfer(addressFromStringValue(b), H, c), ScriptTransfer(addressFromStringValue(N[0]), 0, c), ScriptTransfer(addressFromStringValue(N[1]), 0, c), ScriptTransfer(addressFromStringValue(N[2]), 0, c), ScriptTransfer(addressFromStringValue(N[3]), 0, c), ScriptTransfer(addressFromStringValue(N[4]), 0, c), ScriptTransfer(addressFromStringValue(N[5]), 0, c)])) | |
328 | + | } | |
329 | + | else throw(("Needs 2 to 6 parties addresses" + toString(O))) | |
330 | + | } | |
312 | 331 | } | |
313 | 332 | ||
314 | 333 | ||
315 | 334 | ||
316 | - | @Callable( | |
317 | - | func signAgreement ( | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | if (!( | |
335 | + | @Callable(z) | |
336 | + | func signAgreement (A,ae) = { | |
337 | + | let G = extract(z.payment) | |
338 | + | let H = extract(G.amount) | |
339 | + | let C = extract(z.transactionId) | |
340 | + | let af = toBase58String(z.caller.bytes) | |
341 | + | let ag = p(((af + "_MA_") + ae)) | |
342 | + | if (!(ag)) | |
324 | 343 | then throw("Sorry there is no pending signature") | |
325 | - | else ScriptResult(WriteSet([DataEntry((( | |
344 | + | else ScriptResult(WriteSet([DataEntry(((af + "_MA_") + ae), ("SIGNED_" + toBase58String(C)))]), TransferSet([ScriptTransfer(addressFromStringValue(af), 500000, unit)])) | |
326 | 345 | } | |
327 | 346 | ||
328 | 347 |
github/deemru/w8io/026f985 178.08 ms ◑