tx · 2N7vhN6jBWpR38ucttgJjCUxjp2TsfVz17HD1iPN8nCr 3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz: -0.01400000 Waves 2022.05.05 17:02 [2038490] smart account 3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz > SELF 0.00000000 Waves
{ "type": 13, "id": "2N7vhN6jBWpR38ucttgJjCUxjp2TsfVz17HD1iPN8nCr", "fee": 1400000, "feeAssetId": null, "timestamp": 1651759403724, "version": 1, "sender": "3MqV2hxYA4F3eyVzMPfpPXkmvQMVjhWJ2Zz", "senderPublicKey": "E7cYpzqL1fF9VQjL3m4zr3xXfV289rCkrfE2fJyAHMqR", "proofs": [ "283SipgaEvSgFwmgdMNymsVC9xhtwxjqG8unE5nYtrWuerv7cufufbQzaq2euq1JgeFECzSGom4k86d6VDkDc4C7" ], "script": "base64:AAIFAAAAAAAAACUIAhIDCgEIEgQKAggBEgMKAQgSABIDCgEIEgMKAQgSAwoBCBIAAAAAFAAAAAADU0VQAgAAAAJfXwEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAACAAAAFCVzX19tYW5hZ2VyUHVibGljS2V5AQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAACAAAAGyVzX19wZW5kaW5nTWFuYWdlclB1YmxpY0tleQEAAAAHa2V5VXNlcgAAAAEAAAAHYWRkcmVzcwkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAIFAAAAB2FkZHJlc3MFAAAAA25pbAUAAAADU0VQAQAAAAprZXlSZXZva2VkAAAAAQAAAAdhZGRyZXNzCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAAHcmV2b2tlZAkABEwAAAACBQAAAAdhZGRyZXNzBQAAAANuaWwFAAAAA1NFUAEAAAATa2V5VXNlclZlc3RpbmdTdGFydAAAAAEAAAAHYWRkcmVzcwkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADHZlc3Rpbm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VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5fMVBmA==", "chainId": 84, "height": 2038490, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GFJuSYFo2r5W5gyztUWenFpxTcD4BxxQAtvAGoQ1CoW8 Next: 6iMHavscDYT1uv5PncfW99MvxNABQqhdJrK4XiQGg6T4 Diff:
Old | New | Differences | |
---|---|---|---|
93 | 93 | ||
94 | 94 | ||
95 | 95 | func E (e) = { | |
96 | - | let F = | |
97 | - | if ( | |
98 | - | then | |
96 | + | let F = valueOrElse(getBoolean(f(e)), false) | |
97 | + | if (F) | |
98 | + | then B(e) | |
99 | 99 | else { | |
100 | - | let G = | |
101 | - | if (( | |
102 | - | then | |
100 | + | let G = D(e) | |
101 | + | if ((G >= height)) | |
102 | + | then 0 | |
103 | 103 | else { | |
104 | - | let H = (height - F) | |
105 | - | (value(getInteger(i(e))) * H) | |
104 | + | let H = value(getInteger(h(e))) | |
105 | + | if ((height > H)) | |
106 | + | then B(e) | |
107 | + | else { | |
108 | + | let I = (height - G) | |
109 | + | (value(getInteger(i(e))) * I) | |
110 | + | } | |
106 | 111 | } | |
107 | 112 | } | |
108 | 113 | } | |
109 | 114 | ||
110 | 115 | ||
111 | 116 | @Callable(r) | |
112 | - | func constructor ( | |
113 | - | let | |
114 | - | if (( | |
115 | - | then [StringEntry(j(), | |
117 | + | func constructor (J) = { | |
118 | + | let K = q(r) | |
119 | + | if ((K == K)) | |
120 | + | then [StringEntry(j(), J)] | |
116 | 121 | else throw("Strict value is not equal to itself.") | |
117 | 122 | } | |
118 | 123 | ||
119 | 124 | ||
120 | 125 | ||
121 | 126 | @Callable(r) | |
122 | - | func createDepositFor (e,K) = { | |
123 | - | let L = (height + K) | |
124 | - | let M = [q(r), if ((L > height)) | |
127 | + | func createDepositFor (e,L) = { | |
128 | + | let M = (height + L) | |
129 | + | let N = r.payments[0].amount | |
130 | + | let O = (M - height) | |
131 | + | let P = (N / O) | |
132 | + | let Q = [q(r), if ((M > height)) | |
125 | 133 | then true | |
126 | 134 | else k("endHeight must be more than height"), if ((getString(d(e)) == unit)) | |
127 | 135 | then true | |
128 | 136 | else k("deposit for user already exists"), if ((toBase58String(value(r.payments[0].assetId)) == value(getString(j())))) | |
129 | 137 | then true | |
130 | - | else k("attached payment is not WX")] | |
131 | - | if ((M == M)) | |
132 | - | then { | |
133 | - | let N = r.payments[0].amount | |
134 | - | let O = (L - height) | |
135 | - | [StringEntry(d(e), z(N, N, 0, height)), IntegerEntry(g(e), height), IntegerEntry(h(e), L), IntegerEntry(i(e), (N / O))] | |
136 | - | } | |
138 | + | else k("attached payment is not WX"), if ((P != 0)) | |
139 | + | then true | |
140 | + | else k("attached amount too small or blocksDuration too large — will claimed zero per block")] | |
141 | + | if ((Q == Q)) | |
142 | + | then [StringEntry(d(e), z(N, N, 0, height)), IntegerEntry(g(e), height), IntegerEntry(h(e), M), IntegerEntry(i(e), P)] | |
137 | 143 | else throw("Strict value is not equal to itself.") | |
138 | 144 | } | |
139 | 145 | ||
141 | 147 | ||
142 | 148 | @Callable(r) | |
143 | 149 | func revokeDepositFor (e) = { | |
144 | - | let | |
150 | + | let Q = [q(r), if ((getString(d(e)) != unit)) | |
145 | 151 | then true | |
146 | 152 | else k("deposit for user is not exists")] | |
147 | - | if (( | |
153 | + | if ((Q == Q)) | |
148 | 154 | then { | |
149 | 155 | let v = A(e) | |
150 | 156 | let N = E(e) | |
159 | 165 | ||
160 | 166 | @Callable(r) | |
161 | 167 | func claim () = { | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let N = E( | |
166 | - | let | |
168 | + | let R = r.caller | |
169 | + | let S = toString(R) | |
170 | + | let T = fromBase58String(value(getString(j()))) | |
171 | + | let N = E(S) | |
172 | + | let U = if ((N != 0)) | |
167 | 173 | then true | |
168 | 174 | else k("nothing to claim") | |
169 | - | if (( | |
175 | + | if ((U == U)) | |
170 | 176 | then { | |
171 | - | let v = A( | |
172 | - | let w = B( | |
173 | - | let x = C( | |
174 | - | let | |
175 | - | if ( | |
176 | - | then [ScriptTransfer( | |
177 | - | else [ScriptTransfer( | |
177 | + | let v = A(S) | |
178 | + | let w = B(S) | |
179 | + | let x = C(S) | |
180 | + | let F = valueOrElse(getBoolean(f(S)), false) | |
181 | + | if (F) | |
182 | + | then [ScriptTransfer(R, w, T), StringEntry(d(S), z(v, 0, (x + w), height))] | |
183 | + | else [ScriptTransfer(R, N, T), StringEntry(d(S), z(v, (w - N), (x + N), height))] | |
178 | 184 | } | |
179 | 185 | else throw("Strict value is not equal to itself.") | |
180 | 186 | } | |
195 | 201 | ||
196 | 202 | ||
197 | 203 | @Callable(r) | |
198 | - | func setManager ( | |
199 | - | let | |
200 | - | if (( | |
204 | + | func setManager (V) = { | |
205 | + | let W = q(r) | |
206 | + | if ((W == W)) | |
201 | 207 | then { | |
202 | - | let | |
203 | - | if (( | |
204 | - | then [StringEntry(c(), | |
208 | + | let X = fromBase58String(V) | |
209 | + | if ((X == X)) | |
210 | + | then [StringEntry(c(), V)] | |
205 | 211 | else throw("Strict value is not equal to itself.") | |
206 | 212 | } | |
207 | 213 | else throw("Strict value is not equal to itself.") | |
211 | 217 | ||
212 | 218 | @Callable(r) | |
213 | 219 | func confirmManager () = { | |
214 | - | let | |
215 | - | let | |
220 | + | let Y = p() | |
221 | + | let Z = if (isDefined(Y)) | |
216 | 222 | then true | |
217 | 223 | else k("no pending manager") | |
218 | - | if (( | |
224 | + | if ((Z == Z)) | |
219 | 225 | then { | |
220 | - | let | |
226 | + | let aa = if ((r.callerPublicKey == value(Y))) | |
221 | 227 | then true | |
222 | 228 | else k("you are not pending manager") | |
223 | - | if (( | |
224 | - | then [StringEntry(b(), toBase58String(value( | |
229 | + | if ((aa == aa)) | |
230 | + | then [StringEntry(b(), toBase58String(value(Y))), DeleteEntry(c())] | |
225 | 231 | else throw("Strict value is not equal to itself.") | |
226 | 232 | } | |
227 | 233 | else throw("Strict value is not equal to itself.") | |
228 | 234 | } | |
229 | 235 | ||
230 | 236 | ||
231 | - | @Verifier( | |
232 | - | func | |
233 | - | let | |
237 | + | @Verifier(ab) | |
238 | + | func ac () = { | |
239 | + | let ad = { | |
234 | 240 | let n = m() | |
235 | 241 | if ($isInstanceOf(n, "ByteVector")) | |
236 | 242 | then { | |
238 | 244 | t | |
239 | 245 | } | |
240 | 246 | else if ($isInstanceOf(n, "Unit")) | |
241 | - | then | |
247 | + | then ab.senderPublicKey | |
242 | 248 | else throw("Match error") | |
243 | 249 | } | |
244 | - | sigVerify( | |
250 | + | sigVerify(ab.bodyBytes, ab.proofs[0], ad) | |
245 | 251 | } | |
246 | 252 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | func b () = "%s__managerPublicKey" | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func c () = "%s__pendingManagerPublicKey" | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func d (e) = makeString(["%s", e], a) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (e) = makeString(["%s", "revoked", e], a) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g (e) = makeString(["%s", "vestingStart", e], a) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func h (e) = makeString(["%s", "vestingEnd", e], a) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i (e) = makeString(["%s", "amountPerBlock", e], a) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func j () = makeString(["%s", "wxAssetId"], a) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func k (l) = throw(makeString(["vesting.ride:", l], " ")) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func m () = { | |
34 | 34 | let n = getString(b()) | |
35 | 35 | if ($isInstanceOf(n, "String")) | |
36 | 36 | then { | |
37 | 37 | let o = n | |
38 | 38 | fromBase58String(o) | |
39 | 39 | } | |
40 | 40 | else if ($isInstanceOf(n, "Unit")) | |
41 | 41 | then unit | |
42 | 42 | else throw("Match error") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p () = { | |
47 | 47 | let n = getString(c()) | |
48 | 48 | if ($isInstanceOf(n, "String")) | |
49 | 49 | then { | |
50 | 50 | let o = n | |
51 | 51 | fromBase58String(o) | |
52 | 52 | } | |
53 | 53 | else if ($isInstanceOf(n, "Unit")) | |
54 | 54 | then unit | |
55 | 55 | else throw("Match error") | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func q (r) = { | |
60 | 60 | let s = k("permission denied") | |
61 | 61 | let n = m() | |
62 | 62 | if ($isInstanceOf(n, "ByteVector")) | |
63 | 63 | then { | |
64 | 64 | let t = n | |
65 | 65 | if ((r.callerPublicKey == t)) | |
66 | 66 | then true | |
67 | 67 | else s | |
68 | 68 | } | |
69 | 69 | else if ($isInstanceOf(n, "Unit")) | |
70 | 70 | then if ((r.caller == this)) | |
71 | 71 | then true | |
72 | 72 | else s | |
73 | 73 | else throw("Match error") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func u (v,w,x,y) = makeString(["%d%d%d%d%d", v, w, "0", x, y], a) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func z (v,w,x,y) = u(toString(v), toString(w), toString(x), toString(y)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func A (e) = parseIntValue(split(value(getString(d(e))), a)[1]) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func B (e) = parseIntValue(split(value(getString(d(e))), a)[2]) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func C (e) = parseIntValue(split(value(getString(d(e))), a)[3]) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func D (e) = parseIntValue(split(value(getString(d(e))), a)[5]) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func E (e) = { | |
96 | - | let F = | |
97 | - | if ( | |
98 | - | then | |
96 | + | let F = valueOrElse(getBoolean(f(e)), false) | |
97 | + | if (F) | |
98 | + | then B(e) | |
99 | 99 | else { | |
100 | - | let G = | |
101 | - | if (( | |
102 | - | then | |
100 | + | let G = D(e) | |
101 | + | if ((G >= height)) | |
102 | + | then 0 | |
103 | 103 | else { | |
104 | - | let H = (height - F) | |
105 | - | (value(getInteger(i(e))) * H) | |
104 | + | let H = value(getInteger(h(e))) | |
105 | + | if ((height > H)) | |
106 | + | then B(e) | |
107 | + | else { | |
108 | + | let I = (height - G) | |
109 | + | (value(getInteger(i(e))) * I) | |
110 | + | } | |
106 | 111 | } | |
107 | 112 | } | |
108 | 113 | } | |
109 | 114 | ||
110 | 115 | ||
111 | 116 | @Callable(r) | |
112 | - | func constructor ( | |
113 | - | let | |
114 | - | if (( | |
115 | - | then [StringEntry(j(), | |
117 | + | func constructor (J) = { | |
118 | + | let K = q(r) | |
119 | + | if ((K == K)) | |
120 | + | then [StringEntry(j(), J)] | |
116 | 121 | else throw("Strict value is not equal to itself.") | |
117 | 122 | } | |
118 | 123 | ||
119 | 124 | ||
120 | 125 | ||
121 | 126 | @Callable(r) | |
122 | - | func createDepositFor (e,K) = { | |
123 | - | let L = (height + K) | |
124 | - | let M = [q(r), if ((L > height)) | |
127 | + | func createDepositFor (e,L) = { | |
128 | + | let M = (height + L) | |
129 | + | let N = r.payments[0].amount | |
130 | + | let O = (M - height) | |
131 | + | let P = (N / O) | |
132 | + | let Q = [q(r), if ((M > height)) | |
125 | 133 | then true | |
126 | 134 | else k("endHeight must be more than height"), if ((getString(d(e)) == unit)) | |
127 | 135 | then true | |
128 | 136 | else k("deposit for user already exists"), if ((toBase58String(value(r.payments[0].assetId)) == value(getString(j())))) | |
129 | 137 | then true | |
130 | - | else k("attached payment is not WX")] | |
131 | - | if ((M == M)) | |
132 | - | then { | |
133 | - | let N = r.payments[0].amount | |
134 | - | let O = (L - height) | |
135 | - | [StringEntry(d(e), z(N, N, 0, height)), IntegerEntry(g(e), height), IntegerEntry(h(e), L), IntegerEntry(i(e), (N / O))] | |
136 | - | } | |
138 | + | else k("attached payment is not WX"), if ((P != 0)) | |
139 | + | then true | |
140 | + | else k("attached amount too small or blocksDuration too large — will claimed zero per block")] | |
141 | + | if ((Q == Q)) | |
142 | + | then [StringEntry(d(e), z(N, N, 0, height)), IntegerEntry(g(e), height), IntegerEntry(h(e), M), IntegerEntry(i(e), P)] | |
137 | 143 | else throw("Strict value is not equal to itself.") | |
138 | 144 | } | |
139 | 145 | ||
140 | 146 | ||
141 | 147 | ||
142 | 148 | @Callable(r) | |
143 | 149 | func revokeDepositFor (e) = { | |
144 | - | let | |
150 | + | let Q = [q(r), if ((getString(d(e)) != unit)) | |
145 | 151 | then true | |
146 | 152 | else k("deposit for user is not exists")] | |
147 | - | if (( | |
153 | + | if ((Q == Q)) | |
148 | 154 | then { | |
149 | 155 | let v = A(e) | |
150 | 156 | let N = E(e) | |
151 | 157 | let x = C(e) | |
152 | 158 | let y = D(e) | |
153 | 159 | [BooleanEntry(f(e), true), StringEntry(d(e), z(v, N, x, y))] | |
154 | 160 | } | |
155 | 161 | else throw("Strict value is not equal to itself.") | |
156 | 162 | } | |
157 | 163 | ||
158 | 164 | ||
159 | 165 | ||
160 | 166 | @Callable(r) | |
161 | 167 | func claim () = { | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let N = E( | |
166 | - | let | |
168 | + | let R = r.caller | |
169 | + | let S = toString(R) | |
170 | + | let T = fromBase58String(value(getString(j()))) | |
171 | + | let N = E(S) | |
172 | + | let U = if ((N != 0)) | |
167 | 173 | then true | |
168 | 174 | else k("nothing to claim") | |
169 | - | if (( | |
175 | + | if ((U == U)) | |
170 | 176 | then { | |
171 | - | let v = A( | |
172 | - | let w = B( | |
173 | - | let x = C( | |
174 | - | let | |
175 | - | if ( | |
176 | - | then [ScriptTransfer( | |
177 | - | else [ScriptTransfer( | |
177 | + | let v = A(S) | |
178 | + | let w = B(S) | |
179 | + | let x = C(S) | |
180 | + | let F = valueOrElse(getBoolean(f(S)), false) | |
181 | + | if (F) | |
182 | + | then [ScriptTransfer(R, w, T), StringEntry(d(S), z(v, 0, (x + w), height))] | |
183 | + | else [ScriptTransfer(R, N, T), StringEntry(d(S), z(v, (w - N), (x + N), height))] | |
178 | 184 | } | |
179 | 185 | else throw("Strict value is not equal to itself.") | |
180 | 186 | } | |
181 | 187 | ||
182 | 188 | ||
183 | 189 | ||
184 | 190 | @Callable(r) | |
185 | 191 | func claimREADONLY (e) = { | |
186 | 192 | let N = E(e) | |
187 | 193 | $Tuple2(nil, N) | |
188 | 194 | } | |
189 | 195 | ||
190 | 196 | ||
191 | 197 | ||
192 | 198 | @Callable(r) | |
193 | 199 | func stats (e) = $Tuple2(nil, [value(getInteger(g(e))), value(getInteger(h(e))), A(e), C(e), B(e), E(e)]) | |
194 | 200 | ||
195 | 201 | ||
196 | 202 | ||
197 | 203 | @Callable(r) | |
198 | - | func setManager ( | |
199 | - | let | |
200 | - | if (( | |
204 | + | func setManager (V) = { | |
205 | + | let W = q(r) | |
206 | + | if ((W == W)) | |
201 | 207 | then { | |
202 | - | let | |
203 | - | if (( | |
204 | - | then [StringEntry(c(), | |
208 | + | let X = fromBase58String(V) | |
209 | + | if ((X == X)) | |
210 | + | then [StringEntry(c(), V)] | |
205 | 211 | else throw("Strict value is not equal to itself.") | |
206 | 212 | } | |
207 | 213 | else throw("Strict value is not equal to itself.") | |
208 | 214 | } | |
209 | 215 | ||
210 | 216 | ||
211 | 217 | ||
212 | 218 | @Callable(r) | |
213 | 219 | func confirmManager () = { | |
214 | - | let | |
215 | - | let | |
220 | + | let Y = p() | |
221 | + | let Z = if (isDefined(Y)) | |
216 | 222 | then true | |
217 | 223 | else k("no pending manager") | |
218 | - | if (( | |
224 | + | if ((Z == Z)) | |
219 | 225 | then { | |
220 | - | let | |
226 | + | let aa = if ((r.callerPublicKey == value(Y))) | |
221 | 227 | then true | |
222 | 228 | else k("you are not pending manager") | |
223 | - | if (( | |
224 | - | then [StringEntry(b(), toBase58String(value( | |
229 | + | if ((aa == aa)) | |
230 | + | then [StringEntry(b(), toBase58String(value(Y))), DeleteEntry(c())] | |
225 | 231 | else throw("Strict value is not equal to itself.") | |
226 | 232 | } | |
227 | 233 | else throw("Strict value is not equal to itself.") | |
228 | 234 | } | |
229 | 235 | ||
230 | 236 | ||
231 | - | @Verifier( | |
232 | - | func | |
233 | - | let | |
237 | + | @Verifier(ab) | |
238 | + | func ac () = { | |
239 | + | let ad = { | |
234 | 240 | let n = m() | |
235 | 241 | if ($isInstanceOf(n, "ByteVector")) | |
236 | 242 | then { | |
237 | 243 | let t = n | |
238 | 244 | t | |
239 | 245 | } | |
240 | 246 | else if ($isInstanceOf(n, "Unit")) | |
241 | - | then | |
247 | + | then ab.senderPublicKey | |
242 | 248 | else throw("Match error") | |
243 | 249 | } | |
244 | - | sigVerify( | |
250 | + | sigVerify(ab.bodyBytes, ab.proofs[0], ad) | |
245 | 251 | } | |
246 | 252 |
github/deemru/w8io/169f3d6 49.30 ms ◑