tx · 57aEpDhmNtkmGn12DxudDfBtoHaGUdTMiUpzCvv9hEBE 3Mzh7RprJ7UfkMZPeZgCiVsLDqtvnVAXSq1: -0.01500000 Waves 2023.03.16 16:26 [2492637] smart account 3Mzh7RprJ7UfkMZPeZgCiVsLDqtvnVAXSq1 > SELF 0.00000000 Waves
{ "type": 13, "id": "57aEpDhmNtkmGn12DxudDfBtoHaGUdTMiUpzCvv9hEBE", "fee": 1500000, "feeAssetId": null, "timestamp": 1678973251317, "version": 2, "chainId": 84, "sender": "3Mzh7RprJ7UfkMZPeZgCiVsLDqtvnVAXSq1", "senderPublicKey": "CT62ZmLUndhP35k19p1H9S3hQ8h8nJM5GPCr5CwpvAvL", "proofs": [ "q8wt3kvK9uHJ7k169gxQfuThXFPdSGqeBuWjWJakEM5JReutgmggF7Yge95kZqvKzwWycpApi6ab9czZvCgW8qP" ], "script": "base64:AAIFAAAAAAAAABwIAhIFCgMBAQgSAwoBARIAEgMKAQESAwoBCBIAAAAAIAAAAAADU0VQAgAAAAJfXwAAAAALa2V5UmVmZXJyYWwJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAhyZWZlcnJhbAUAAAADbmlsBQAAAANTRVAAAAAADGtleVd4QXNzZXRJZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAACXd4QXNzZXRJZAUAAAADbmlsBQAAAANTRVABAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABQlc19fbWFuYWdlclB1YmxpY0tleQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABslc19fcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAFUlkeENmZ0NsYWltU3RhcnRCbG9jawAAAAAAAAAAAQAAAAAYSWR4Q2ZnQ2xhaW1WZXN0aW5nUGVyaW9kAAAAAAAAAAACAAAAABJJZHhDZmdDbGFpbUFzc2V0SWQAAAAAAAAAAAMAAAAAFElkeENmZ0NsYWlt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Qnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5l5Hrzw==", "height": 2492637, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Cg2HnCsBnQjyNLSfoXgjB2wnAJ1KWTbrJZP566rY4Urz Next: none Full:
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 | let b = makeString(["%s", "referral"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "wxAssetId"], a) | |
9 | 9 | ||
10 | 10 | func d () = "%s__managerPublicKey" | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e () = "%s__pendingManagerPublicKey" | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | let f = 1 | |
17 | 17 | ||
18 | 18 | let g = 2 | |
19 | 19 | ||
20 | 20 | let h = 3 | |
21 | 21 | ||
22 | 22 | let i = 4 | |
23 | 23 | ||
24 | 24 | let j = 5 | |
25 | 25 | ||
26 | 26 | let k = 6 | |
27 | 27 | ||
28 | 28 | let l = 1 | |
29 | 29 | ||
30 | 30 | let m = 2 | |
31 | 31 | ||
32 | 32 | let n = 3 | |
33 | 33 | ||
34 | 34 | func o (p) = throw(makeString(["marketing.ride:", p], " ")) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined")) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func s (t,u,v,w,x,y) = makeString(["%d%d%s%d%s%d%", t, u, v, w, x, y], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func z (t,u,v,w,A,B) = s(toString(t), toString(u), v, toString(w), A, toString(B)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func C (D,E,F) = makeString(["%d%d%d", D, E, F], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func G (H,I,J,K) = makeString(["%d%d%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(H), toString(I), toString(J), toString(K)], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func L () = "%s__config" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func M () = "%s__totals" | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let N = makeString(["%s", "amountUnclaimed"], a) | |
59 | 59 | ||
60 | 60 | func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func S () = split(q(L()), a) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func T () = split(q(M()), a) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func U (r,V,W,X) = { | |
70 | 70 | let D = parseIntValue(V[l]) | |
71 | 71 | let Y = parseIntValue(V[m]) | |
72 | 72 | let F = parseIntValue(V[n]) | |
73 | 73 | let Z = (D + W) | |
74 | 74 | let aa = (Y - W) | |
75 | 75 | if ((0 > aa)) | |
76 | 76 | then throw("invalid math") | |
77 | 77 | else StringEntry(r, C(toString(Z), toString(aa), toString(X))) | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func ab (Q,H,I,ac,ad,ae) = StringEntry(O("claim", Q, toBase58String(ae)), G(H, I, ac, ad)) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func af () = { | |
85 | 85 | let ag = getString(d()) | |
86 | 86 | if ($isInstanceOf(ag, "String")) | |
87 | 87 | then { | |
88 | 88 | let ah = ag | |
89 | 89 | fromBase58String(ah) | |
90 | 90 | } | |
91 | 91 | else if ($isInstanceOf(ag, "Unit")) | |
92 | 92 | then unit | |
93 | 93 | else throw("Match error") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func ai () = { | |
98 | 98 | let ag = getString(e()) | |
99 | 99 | if ($isInstanceOf(ag, "String")) | |
100 | 100 | then { | |
101 | 101 | let ah = ag | |
102 | 102 | fromBase58String(ah) | |
103 | 103 | } | |
104 | 104 | else if ($isInstanceOf(ag, "Unit")) | |
105 | 105 | then unit | |
106 | 106 | else throw("Match error") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func aj (ak) = { | |
111 | 111 | let al = o("permission denied") | |
112 | 112 | let ag = af() | |
113 | 113 | if ($isInstanceOf(ag, "ByteVector")) | |
114 | 114 | then { | |
115 | 115 | let am = ag | |
116 | 116 | if ((ak.callerPublicKey == am)) | |
117 | 117 | then true | |
118 | 118 | else al | |
119 | 119 | } | |
120 | 120 | else if ($isInstanceOf(ag, "Unit")) | |
121 | 121 | then if ((ak.caller == this)) | |
122 | 122 | then true | |
123 | 123 | else al | |
124 | 124 | else throw("Match error") | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func an (ak,ao) = { | |
129 | 129 | let ap = S() | |
130 | 130 | let aq = parseIntValue(ap[f]) | |
131 | 131 | let ar = parseIntValue(ap[g]) | |
132 | 132 | let as = (aq + ar) | |
133 | 133 | let at = fromBase58String(ap[h]) | |
134 | 134 | let au = addressFromStringValue(ap[j]) | |
135 | 135 | let av = parseIntValue(ap[k]) | |
136 | 136 | let aw = T() | |
137 | 137 | let D = parseIntValue(aw[l]) | |
138 | 138 | let ax = parseIntValue(aw[m]) | |
139 | 139 | let F = parseIntValue(aw[n]) | |
140 | 140 | if ((ak.caller != au)) | |
141 | 141 | then throw("permissions denied") | |
142 | 142 | else if ((aq > height)) | |
143 | 143 | then throw(("Wait claim start block: " + toString(aq))) | |
144 | 144 | else { | |
145 | 145 | let K = if ((height > as)) | |
146 | 146 | then as | |
147 | 147 | else height | |
148 | 148 | let J = if ((F == 0)) | |
149 | 149 | then aq | |
150 | 150 | else F | |
151 | 151 | let I = (K - J) | |
152 | 152 | let ay = fraction(av, I, ar) | |
153 | 153 | let az = valueOrElse(getInteger(this, N), 0) | |
154 | 154 | let aA = (ay + az) | |
155 | 155 | let aB = if (if ((0 >= ao)) | |
156 | 156 | then true | |
157 | 157 | else (ao >= aA)) | |
158 | 158 | then aA | |
159 | 159 | else ao | |
160 | 160 | let aC = (aA - aB) | |
161 | 161 | $Tuple2([IntegerEntry(N, aC), ScriptTransfer(au, aB, at), U(M(), T(), aB, K), ab(toString(au), aB, I, J, K, ak.transactionId)], aB) | |
162 | 162 | } | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | @Callable(ak) | |
167 | 167 | func constructor (t,aD,aE) = { | |
168 | 168 | let aF = (t + aD) | |
169 | 169 | if (isDefined(getString(L()))) | |
170 | 170 | then throw("already initialized") | |
171 | 171 | else if ((size(ak.payments) != 1)) | |
172 | 172 | then throw("exactly 1 payment must be attached") | |
173 | 173 | else if ((ak.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq')) | |
174 | 174 | then throw("not authorized") | |
175 | 175 | else { | |
176 | 176 | let aG = valueOrErrorMessage(addressFromString(aE), "Invalid beneficiarAddress passed") | |
177 | 177 | let aH = value(ak.payments[0]) | |
178 | 178 | let aI = value(aH.assetId) | |
179 | 179 | let aJ = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info") | |
180 | 180 | let aK = toBase58String(aI) | |
181 | 181 | let aL = pow(10, 0, aJ.decimals, 0, 0, DOWN) | |
182 | 182 | let aM = aH.amount | |
183 | 183 | [StringEntry(L(), z(t, aD, aK, aL, toString(aG), aM)), StringEntry(M(), C("0", toString(aM), "0"))] | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(ak) | |
190 | 190 | func claimAmount (ao) = an(ak, ao) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | ||
194 | 194 | @Callable(ak) | |
195 | 195 | func claim () = an(ak, -1) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | 199 | @Callable(ak) | |
200 | 200 | func withdrawReferralReward (aN) = { | |
201 | 201 | let aO = value(getString(b)) | |
202 | 202 | let aP = if ((toString(ak.caller) == aO)) | |
203 | 203 | then true | |
204 | 204 | else o("permission denied") | |
205 | 205 | if ((aP == aP)) | |
206 | 206 | then { | |
207 | 207 | let aQ = fromBase58String(value(getString(c))) | |
208 | 208 | $Tuple2([ScriptTransfer(ak.caller, aN, aQ), ab(aO, aN, 0, 0, 0, ak.transactionId)], unit) | |
209 | 209 | } | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(ak) | |
216 | 216 | func setManager (aR) = { | |
217 | 217 | let aS = aj(ak) | |
218 | 218 | if ((aS == aS)) | |
219 | 219 | then { | |
220 | 220 | let aT = fromBase58String(aR) | |
221 | 221 | if ((aT == aT)) | |
222 | 222 | then [StringEntry(e(), aR)] | |
223 | 223 | else throw("Strict value is not equal to itself.") | |
224 | 224 | } | |
225 | 225 | else throw("Strict value is not equal to itself.") | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(ak) | |
231 | 231 | func confirmManager () = { | |
232 | 232 | let aU = ai() | |
233 | 233 | let aV = if (isDefined(aU)) | |
234 | 234 | then true | |
235 | 235 | else o("no pending manager") | |
236 | 236 | if ((aV == aV)) | |
237 | 237 | then { | |
238 | 238 | let aW = if ((ak.callerPublicKey == value(aU))) | |
239 | 239 | then true | |
240 | 240 | else o("you are not pending manager") | |
241 | 241 | if ((aW == aW)) | |
242 | 242 | then [StringEntry(d(), toBase58String(value(aU))), DeleteEntry(e())] | |
243 | 243 | else throw("Strict value is not equal to itself.") | |
244 | 244 | } | |
245 | 245 | else throw("Strict value is not equal to itself.") | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | @Verifier(aX) | |
250 | 250 | func aY () = { | |
251 | 251 | let aZ = { | |
252 | 252 | let ag = af() | |
253 | 253 | if ($isInstanceOf(ag, "ByteVector")) | |
254 | 254 | then { | |
255 | 255 | let am = ag | |
256 | 256 | am | |
257 | 257 | } | |
258 | 258 | else if ($isInstanceOf(ag, "Unit")) | |
259 | 259 | then aX.senderPublicKey | |
260 | 260 | else throw("Match error") | |
261 | 261 | } | |
262 | 262 | sigVerify(aX.bodyBytes, aX.proofs[0], aZ) | |
263 | 263 | } | |
264 | 264 |
github/deemru/w8io/026f985 31.11 ms ◑