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