tx · 7oreTEse9T69bjn3AiR4u1nFZbDpVeUF7XeiiPxoxD2A 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh: -0.01400000 Waves 2022.07.27 17:17 [2158335] smart account 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh > SELF 0.00000000 Waves
{ "type": 13, "id": "7oreTEse9T69bjn3AiR4u1nFZbDpVeUF7XeiiPxoxD2A", "fee": 1400000, "feeAssetId": null, "timestamp": 1658931484979, "version": 1, "sender": "3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh", "senderPublicKey": "33fpjdpM9FMu87RZKePniPardKqQXM96sm7VhAk3JEVQ", "proofs": [ "3PRvHgMB1xPpoVLkvCDSjGCFg7K2JVGLZvyyBc89mPCDwofvtjR6QPUkNMuzCYjKB3aQMkTknT7khEnfKUQyCtef" ], "script": "base64:BgIyCAISBQoDCAgIEgYKBAgICAISBQoDCAgEEgYKBAgIAQESAwoBCBIECgIICBIDCgEIEgAUAAlzZXBhcmF0b3ICAl9fABNrZXlCYWNrZW5kUHVibGljS2V5CQC5CQIJAMwIAgICJXMJAMwIAgIQYmFja2VuZFB1YmxpY0tleQUDbmlsBQlzZXBhcmF0b3IBG2tleUV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAMLcHJvZ3JhbU5hbWUPcmVmZXJyZXJBZGRyZXNzD3JlZmVycmFsQWRkcmVzcwkAuQkCCQDMCAICCCVzJXMlcyVzCQDMCAICGGV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAkAzAgCBQtwcm9ncmFtTmFtZQkAzAgCBQ9yZWZlcnJlckFkZHJlc3MJAMwIAgUPcmVmZXJyYWxBZGRyZXNzBQNuaWwFCXNlcGFyYXRvcgEKa2V5Q2xhaW1lZAILcHJvZ3JhbU5hbWUOY2xhaW1lckFkZHJlc3MJALkJAgkAzAgCAgglcyVzJXMlcwkAzAgCAgdjbGFpbWVkCQDMCAIFC3Byb2dyYW1OYW1lCQDMCAIFDmNsY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E0FB2NoZWNrUE0JAMwIAgkBC1N0cmluZ0VudHJ5AgkBE2tleU1hbmFnZXJQdWJsaWNLZXkACQDYBAEJAQV2YWx1ZQEFAnBtCQDMCAIJAQtEZWxldGVFbnRyeQEJARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleTmo+ik=", "chainId": 84, "height": 2158335, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4CyWnUNPZw39UtupWS9fH9osYhXVF7sxhnEJPniUoev6 Next: 5MYZX5xPqDiL52pBKoZgh2V9PZYVg7CBdc66twaJ9Y6C Diff:
Old | New | Differences | |
---|---|---|---|
197 | 197 | let Y = valueOrElse(getInteger(i(d, f)), 0) | |
198 | 198 | let Z = (X + V) | |
199 | 199 | let aa = (Y + W) | |
200 | - | $Tuple2([IntegerEntry( | |
200 | + | $Tuple2([IntegerEntry(i(d, e), Z), IntegerEntry(i(d, f), aa)], unit) | |
201 | 201 | } | |
202 | 202 | else throw("Strict value is not equal to itself.") | |
203 | 203 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "backendPublicKey"], a) | |
7 | 7 | ||
8 | 8 | func c (d,e,f) = makeString(["%s%s%s%s", "existsReferrerToReferral", d, e, f], a) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func g (d,h) = makeString(["%s%s%s%s", "claimed", d, h], a) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func i (d,h) = makeString(["%s%s%s%s", "unclaimed", d, h], a) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func j (d,f) = makeString(["%s%s%s", "referrer", d, f], a) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func k (d) = makeString(["%s%s", "programName", d], a) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func l (d,e) = makeString(["%s%s%s", "totalReferralCount", d, e], a) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func m (d,e) = makeString(["%s%s%s", "activeReferralCount", d, e], a) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (d,f) = makeString(["%s%s%s", "activeReferral", d, f], a) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func o (d) = makeString(["%s%s", "claimedTotal", d], a) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func p (d) = makeString(["%s%s", "rewardAssetId", d], a) | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func q (d) = makeString(["%s%s", "treasuryContract", d], a) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func r (d) = makeString(["%s%s", "implementationContract", d], a) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func s () = "%s__managerPublicKey" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func t () = "%s__pendingManagerPublicKey" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func u (v) = throw(makeString(["referral.ride:", v], " ")) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func w () = { | |
54 | 54 | let x = getString(s()) | |
55 | 55 | if ($isInstanceOf(x, "String")) | |
56 | 56 | then { | |
57 | 57 | let y = x | |
58 | 58 | fromBase58String(y) | |
59 | 59 | } | |
60 | 60 | else if ($isInstanceOf(x, "Unit")) | |
61 | 61 | then unit | |
62 | 62 | else throw("Match error") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func z () = { | |
67 | 67 | let x = getString(t()) | |
68 | 68 | if ($isInstanceOf(x, "String")) | |
69 | 69 | then { | |
70 | 70 | let y = x | |
71 | 71 | fromBase58String(y) | |
72 | 72 | } | |
73 | 73 | else if ($isInstanceOf(x, "Unit")) | |
74 | 74 | then unit | |
75 | 75 | else throw("Match error") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func A (B) = { | |
80 | 80 | let C = u("permission denied") | |
81 | 81 | let x = w() | |
82 | 82 | if ($isInstanceOf(x, "ByteVector")) | |
83 | 83 | then { | |
84 | 84 | let D = x | |
85 | 85 | if ((B.callerPublicKey == D)) | |
86 | 86 | then true | |
87 | 87 | else C | |
88 | 88 | } | |
89 | 89 | else if ($isInstanceOf(x, "Unit")) | |
90 | 90 | then if ((B.caller == this)) | |
91 | 91 | then true | |
92 | 92 | else C | |
93 | 93 | else throw("Match error") | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | @Callable(B) | |
98 | 98 | func createReferralProgram (d,E,F) = { | |
99 | 99 | let G = A(B) | |
100 | 100 | if ((G == G)) | |
101 | 101 | then { | |
102 | 102 | let H = if ((getBoolean(k(d)) == unit)) | |
103 | 103 | then true | |
104 | 104 | else u("program name already exists") | |
105 | 105 | if ((H == H)) | |
106 | 106 | then { | |
107 | 107 | let I = if (!(contains(d, a))) | |
108 | 108 | then !(contains(d, " ")) | |
109 | 109 | else false | |
110 | 110 | let J = if (I) | |
111 | 111 | then true | |
112 | 112 | else u("invalid program name") | |
113 | 113 | if ((J == J)) | |
114 | 114 | then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit) | |
115 | 115 | else throw("Strict value is not equal to itself.") | |
116 | 116 | } | |
117 | 117 | else throw("Strict value is not equal to itself.") | |
118 | 118 | } | |
119 | 119 | else throw("Strict value is not equal to itself.") | |
120 | 120 | } | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(B) | |
125 | 125 | func createPair (d,e,f,K) = { | |
126 | 126 | let J = if (valueOrElse(getBoolean(k(d)), false)) | |
127 | 127 | then true | |
128 | 128 | else u("program does not exist") | |
129 | 129 | if ((J == J)) | |
130 | 130 | then { | |
131 | 131 | let L = if ((getString(c(d, e, f)) == unit)) | |
132 | 132 | then true | |
133 | 133 | else u("pair already exists") | |
134 | 134 | if ((L == L)) | |
135 | 135 | then { | |
136 | 136 | let M = toBytes(makeString([d, e, f], ":")) | |
137 | 137 | let N = fromBase58String(value(getString(b))) | |
138 | 138 | let O = if (sigVerify(M, K, N)) | |
139 | 139 | then true | |
140 | 140 | else u("bad signature") | |
141 | 141 | if ((O == O)) | |
142 | 142 | then { | |
143 | 143 | let P = valueOrElse(getInteger(l(d, e)), 0) | |
144 | 144 | let Q = (P + 1) | |
145 | 145 | $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), Q), StringEntry(j(d, f), e)], unit) | |
146 | 146 | } | |
147 | 147 | else throw("Strict value is not equal to itself.") | |
148 | 148 | } | |
149 | 149 | else throw("Strict value is not equal to itself.") | |
150 | 150 | } | |
151 | 151 | else throw("Strict value is not equal to itself.") | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Callable(B) | |
157 | 157 | func updateReferralActivity (d,f,R) = { | |
158 | 158 | let F = value(getString(r(d))) | |
159 | 159 | let S = (getBoolean(n(d, f)) != unit) | |
160 | 160 | let e = value(getString(j(d, f))) | |
161 | 161 | let G = if ((toString(B.caller) == F)) | |
162 | 162 | then true | |
163 | 163 | else u("permission denied") | |
164 | 164 | if ((G == G)) | |
165 | 165 | then { | |
166 | 166 | let T = if ((S == R)) | |
167 | 167 | then $Tuple2(nil, unit) | |
168 | 168 | else { | |
169 | 169 | let T = if ((R == true)) | |
170 | 170 | then { | |
171 | 171 | let U = (valueOrElse(getInteger(m(d, e)), 0) + 1) | |
172 | 172 | $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), U)], unit) | |
173 | 173 | } | |
174 | 174 | else { | |
175 | 175 | let U = (valueOrElse(getInteger(m(d, e)), 0) - 1) | |
176 | 176 | $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), U)], unit) | |
177 | 177 | } | |
178 | 178 | T | |
179 | 179 | } | |
180 | 180 | T | |
181 | 181 | } | |
182 | 182 | else throw("Strict value is not equal to itself.") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | ||
187 | 187 | @Callable(B) | |
188 | 188 | func incUnclaimed (d,f,V,W) = { | |
189 | 189 | let F = value(getString(r(d))) | |
190 | 190 | let G = if ((toString(B.caller) == F)) | |
191 | 191 | then true | |
192 | 192 | else u("permission denied") | |
193 | 193 | if ((G == G)) | |
194 | 194 | then { | |
195 | 195 | let e = value(getString(j(d, f))) | |
196 | 196 | let X = valueOrElse(getInteger(i(d, e)), 0) | |
197 | 197 | let Y = valueOrElse(getInteger(i(d, f)), 0) | |
198 | 198 | let Z = (X + V) | |
199 | 199 | let aa = (Y + W) | |
200 | - | $Tuple2([IntegerEntry( | |
200 | + | $Tuple2([IntegerEntry(i(d, e), Z), IntegerEntry(i(d, f), aa)], unit) | |
201 | 201 | } | |
202 | 202 | else throw("Strict value is not equal to itself.") | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | @Callable(B) | |
208 | 208 | func claim (d) = { | |
209 | 209 | let ab = value(getInteger(o(d))) | |
210 | 210 | let ac = value(getInteger(g(d, toString(B.caller)))) | |
211 | 211 | let ad = value(getInteger(i(d, toString(B.caller)))) | |
212 | 212 | let E = value(addressFromString(value(getString(q(d))))) | |
213 | 213 | let ae = fromBase58String(value(getString(p(d)))) | |
214 | 214 | let af = if ((ad > 0)) | |
215 | 215 | then true | |
216 | 216 | else u("nothing to claim") | |
217 | 217 | if ((af == af)) | |
218 | 218 | then { | |
219 | 219 | let ag = (ac + ad) | |
220 | 220 | let ah = (ab + ad) | |
221 | 221 | let ai = value(assetBalance(this, ae)) | |
222 | 222 | if ((ai == ai)) | |
223 | 223 | then { | |
224 | 224 | let aj = invoke(E, "withdrawReferralReward", [ad], nil) | |
225 | 225 | if ((aj == aj)) | |
226 | 226 | then { | |
227 | 227 | let ak = value(assetBalance(this, ae)) | |
228 | 228 | if ((ak == ak)) | |
229 | 229 | then { | |
230 | 230 | let al = (ak - ai) | |
231 | 231 | if ((al == al)) | |
232 | 232 | then { | |
233 | 233 | let am = if ((al == ad)) | |
234 | 234 | then true | |
235 | 235 | else u("insufficient balance on referral contract") | |
236 | 236 | if ((am == am)) | |
237 | 237 | then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ag), IntegerEntry(o(d), ah), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ad, ae)], unit) | |
238 | 238 | else throw("Strict value is not equal to itself.") | |
239 | 239 | } | |
240 | 240 | else throw("Strict value is not equal to itself.") | |
241 | 241 | } | |
242 | 242 | else throw("Strict value is not equal to itself.") | |
243 | 243 | } | |
244 | 244 | else throw("Strict value is not equal to itself.") | |
245 | 245 | } | |
246 | 246 | else throw("Strict value is not equal to itself.") | |
247 | 247 | } | |
248 | 248 | else throw("Strict value is not equal to itself.") | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | ||
253 | 253 | @Callable(B) | |
254 | 254 | func claimREADONLY (d,f) = { | |
255 | 255 | let ac = value(getInteger(g(d, f))) | |
256 | 256 | let ad = value(getInteger(i(d, f))) | |
257 | 257 | let ag = (ac + ad) | |
258 | 258 | $Tuple2(nil, ag) | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(B) | |
264 | 264 | func setManager (an) = { | |
265 | 265 | let G = A(B) | |
266 | 266 | if ((G == G)) | |
267 | 267 | then { | |
268 | 268 | let ao = fromBase58String(an) | |
269 | 269 | if ((ao == ao)) | |
270 | 270 | then [StringEntry(t(), an)] | |
271 | 271 | else throw("Strict value is not equal to itself.") | |
272 | 272 | } | |
273 | 273 | else throw("Strict value is not equal to itself.") | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | ||
278 | 278 | @Callable(B) | |
279 | 279 | func confirmManager () = { | |
280 | 280 | let ap = z() | |
281 | 281 | let aq = if (isDefined(ap)) | |
282 | 282 | then true | |
283 | 283 | else u("no pending manager") | |
284 | 284 | if ((aq == aq)) | |
285 | 285 | then { | |
286 | 286 | let ar = if ((B.callerPublicKey == value(ap))) | |
287 | 287 | then true | |
288 | 288 | else u("you are not pending manager") | |
289 | 289 | if ((ar == ar)) | |
290 | 290 | then [StringEntry(s(), toBase58String(value(ap))), DeleteEntry(t())] | |
291 | 291 | else throw("Strict value is not equal to itself.") | |
292 | 292 | } | |
293 | 293 | else throw("Strict value is not equal to itself.") | |
294 | 294 | } | |
295 | 295 | ||
296 | 296 | ||
297 | 297 | @Verifier(as) | |
298 | 298 | func at () = { | |
299 | 299 | let au = { | |
300 | 300 | let x = w() | |
301 | 301 | if ($isInstanceOf(x, "ByteVector")) | |
302 | 302 | then { | |
303 | 303 | let D = x | |
304 | 304 | D | |
305 | 305 | } | |
306 | 306 | else if ($isInstanceOf(x, "Unit")) | |
307 | 307 | then as.senderPublicKey | |
308 | 308 | else throw("Match error") | |
309 | 309 | } | |
310 | 310 | sigVerify(as.bodyBytes, as.proofs[0], au) | |
311 | 311 | } | |
312 | 312 |
github/deemru/w8io/169f3d6 50.01 ms ◑