tx · Agy9bF4xqPBL3cMu2uDEkpo3LLg9xd5Lcda2KenXvhJk 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh: -0.01400000 Waves 2022.07.26 18:50 [2156972] smart account 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh > SELF 0.00000000 Waves
{ "type": 13, "id": "Agy9bF4xqPBL3cMu2uDEkpo3LLg9xd5Lcda2KenXvhJk", "fee": 1400000, "feeAssetId": null, "timestamp": 1658850605677, "version": 1, "sender": "3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh", "senderPublicKey": "33fpjdpM9FMu87RZKePniPardKqQXM96sm7VhAk3JEVQ", "proofs": [ "4yuKSScnhT9vKSRqKusA1AMrSWsRRy7kDqksv187fyFLoBTS9yjGGz8Udx7Rsb9iadTopqAtRUbTfSmvNeZ3oF9v" ], "script": "base64:BgIyCAISBQoDCAgIEgYKBAgICAISBQoDCAgEEgYKBAgIAQESAwoBCBIECgIICBIDCgEIEgAUAAlzZXBhcmF0b3ICAl9fABNrZXlCYWNrZW5kUHVibGljS2V5CQC5CQIJAMwIAgICJXMJAMwIAgIQYmFja2VuZFB1bGJpY0tleQUDbmlsBQlzZXBhcmF0b3IBG2tleUV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAMLcHJvZ3JhbU5hbWUPcmVmZXJyZXJBZGRyZXNzD3JlZmVycmFsQWRkcmVzcwkAuQkCCQDMCAICCCVzJXMlcyVzCQDMCAICGGV4aXN0c1JlZmVycmVyVG9SZWZlcnJhbAkAzAgCBQtwcm9ncmFtTmFtZQkAzAgCBQ9yZWZlcnJlckFkZHJlc3MJAMwIAgUPcmVmZXJyYWxBZGRyZXNzBQNuaWwFCXNlcGFyYXRvcgEKa2V5Q2xhaW1lZAILcHJvZ3JhbU5hbWUOY2xhaW1lckFkZHJlc3MJALkJAgkAzAgCAgglcyVzJXMlcwkAzAgCAgdjbGFpbWVkCQDMCAIFC3Byb2dyYW1OYW1lCQDMCAIFDm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IGl0c2VsZi4BaQEOY29uZmlybU1hbmFnZXIABAJwbQkBHXBlbmRpbmdNYW5hZ2VyUHVibGljS2V5T3JVbml0AAQFaGFzUE0DCQEJaXNEZWZpbmVkAQUCcG0GCQEIdGhyb3dFcnIBAhJubyBwZW5kaW5nIG1hbmFnZXIDCQAAAgUFaGFzUE0FBWhhc1BNBAdjaGVja1BNAwkAAAIIBQFpD2NhbGxlclB1YmxpY0tleQkBBXZhbHVlAQUCcG0GCQEIdGhyb3dFcnIBAht5b3UgYXJlIG5vdCBwZW5kaW5nIG1hbmFnZXIDCQAAAgUHY2hlY2tQTQUHY2hlY2tQTQkAzAgCCQELU3RyaW5nRW50cnkCCQETa2V5TWFuYWdlclB1YmxpY0tleQAJANgEAQkBBXZhbHVlAQUCcG0JAMwIAgkBC0RlbGV0ZUVudHJ5AQkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5O9qiiA==", "chainId": 84, "height": 2156972, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5acnfoAU9CZCqooSmHi73jXLwaMraXiQBecBcKM6zvi7 Next: 2X75fJjWWvjP73CWsKSA7WinFVexpqgyGvNyG8TLuWxv Diff:
Old | New | Differences | |
---|---|---|---|
99 | 99 | let G = A(B) | |
100 | 100 | if ((G == G)) | |
101 | 101 | then { | |
102 | - | let H = if ((getBoolean(d) == | |
102 | + | let H = if ((getBoolean(d) == unit)) | |
103 | 103 | then true | |
104 | 104 | else u("program name already exists") | |
105 | 105 | if ((H == H)) |
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", "backendPulbicKey"], 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 | - | let H = if ((getBoolean(d) == | |
102 | + | let H = if ((getBoolean(d) == unit)) | |
103 | 103 | then true | |
104 | 104 | else u("program name already exists") | |
105 | 105 | if ((H == H)) | |
106 | 106 | then $Tuple2([BooleanEntry(k(d), true), StringEntry(q(d), E), StringEntry(r(d), F)], unit) | |
107 | 107 | else throw("Strict value is not equal to itself.") | |
108 | 108 | } | |
109 | 109 | else throw("Strict value is not equal to itself.") | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(B) | |
115 | 115 | func createPair (d,e,f,I) = { | |
116 | 116 | let J = if ((getString(c(d, e, f)) == unit)) | |
117 | 117 | then true | |
118 | 118 | else u("pair already exists") | |
119 | 119 | if ((J == J)) | |
120 | 120 | then { | |
121 | 121 | let K = toBytes(makeString([d, e, f], ":")) | |
122 | 122 | let L = toBytes(value(getString(b))) | |
123 | 123 | let M = if (sigVerify(K, I, L)) | |
124 | 124 | then true | |
125 | 125 | else u("bad signature") | |
126 | 126 | if ((M == M)) | |
127 | 127 | then { | |
128 | 128 | let N = valueOrElse(getInteger(l(d, e)), 0) | |
129 | 129 | let O = (N + 1) | |
130 | 130 | $Tuple2([BooleanEntry(c(d, e, f), true), IntegerEntry(l(d, e), O)], unit) | |
131 | 131 | } | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | else throw("Strict value is not equal to itself.") | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | ||
139 | 139 | @Callable(B) | |
140 | 140 | func updateReferralActivity (d,f,P) = { | |
141 | 141 | let F = value(getString(r(d))) | |
142 | 142 | let Q = (getBoolean(n(d, f)) != unit) | |
143 | 143 | let e = value(getString(j(d, f))) | |
144 | 144 | let G = if ((toString(B.caller) == F)) | |
145 | 145 | then true | |
146 | 146 | else u("permission denied") | |
147 | 147 | if ((G == G)) | |
148 | 148 | then { | |
149 | 149 | let R = if ((Q == P)) | |
150 | 150 | then $Tuple2(nil, unit) | |
151 | 151 | else { | |
152 | 152 | let R = if ((P == true)) | |
153 | 153 | then { | |
154 | 154 | let S = (valueOrElse(getInteger(m(d, e)), 0) + 1) | |
155 | 155 | $Tuple2([BooleanEntry(n(d, f), true), IntegerEntry(m(d, e), S)], unit) | |
156 | 156 | } | |
157 | 157 | else { | |
158 | 158 | let S = (valueOrElse(getInteger(m(d, e)), 0) - 1) | |
159 | 159 | $Tuple2([DeleteEntry(n(d, f)), IntegerEntry(m(d, e), S)], unit) | |
160 | 160 | } | |
161 | 161 | R | |
162 | 162 | } | |
163 | 163 | R | |
164 | 164 | } | |
165 | 165 | else throw("Strict value is not equal to itself.") | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | 170 | @Callable(B) | |
171 | 171 | func incUnclaimed (d,f,T,U) = { | |
172 | 172 | let F = value(getString(r(d))) | |
173 | 173 | let G = if ((toString(B.caller) == F)) | |
174 | 174 | then true | |
175 | 175 | else u("permission denied") | |
176 | 176 | if ((G == G)) | |
177 | 177 | then { | |
178 | 178 | let e = value(getString(j(d, f))) | |
179 | 179 | let V = value(getInteger(i(d, e))) | |
180 | 180 | let W = value(getInteger(i(d, f))) | |
181 | 181 | let X = (V + T) | |
182 | 182 | let Y = (W + U) | |
183 | 183 | $Tuple2([IntegerEntry(g(d, f), X), IntegerEntry(i(d, f), Y)], unit) | |
184 | 184 | } | |
185 | 185 | else throw("Strict value is not equal to itself.") | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(B) | |
191 | 191 | func claim (d) = { | |
192 | 192 | let Z = value(getInteger(o(d))) | |
193 | 193 | let aa = value(getInteger(g(d, toString(B.caller)))) | |
194 | 194 | let ab = value(getInteger(i(d, toString(B.caller)))) | |
195 | 195 | let E = value(addressFromString(value(getString(q(d))))) | |
196 | 196 | let ac = fromBase58String(value(getString(p(d)))) | |
197 | 197 | let ad = if ((ab > 0)) | |
198 | 198 | then true | |
199 | 199 | else u("nothing to claim") | |
200 | 200 | if ((ad == ad)) | |
201 | 201 | then { | |
202 | 202 | let ae = (aa + ab) | |
203 | 203 | let af = (Z + ab) | |
204 | 204 | let ag = value(assetBalance(this, ac)) | |
205 | 205 | if ((ag == ag)) | |
206 | 206 | then { | |
207 | 207 | let ah = invoke(E, "withdrawReferralReward", [ab], nil) | |
208 | 208 | if ((ah == ah)) | |
209 | 209 | then { | |
210 | 210 | let ai = value(assetBalance(this, ac)) | |
211 | 211 | if ((ai == ai)) | |
212 | 212 | then { | |
213 | 213 | let aj = (ai - ag) | |
214 | 214 | if ((aj == aj)) | |
215 | 215 | then { | |
216 | 216 | let ak = if ((aj == ab)) | |
217 | 217 | then true | |
218 | 218 | else u("insufficient balance on referral contract") | |
219 | 219 | if ((ak == ak)) | |
220 | 220 | then $Tuple2([IntegerEntry(g(d, toString(B.caller)), ae), IntegerEntry(o(d), af), IntegerEntry(i(d, toString(B.caller)), 0), ScriptTransfer(B.caller, ab, ac)], unit) | |
221 | 221 | else throw("Strict value is not equal to itself.") | |
222 | 222 | } | |
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 | else throw("Strict value is not equal to itself.") | |
228 | 228 | } | |
229 | 229 | else throw("Strict value is not equal to itself.") | |
230 | 230 | } | |
231 | 231 | else throw("Strict value is not equal to itself.") | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(B) | |
237 | 237 | func claimREADONLY (d,f) = { | |
238 | 238 | let aa = value(getInteger(g(d, f))) | |
239 | 239 | let ab = value(getInteger(i(d, f))) | |
240 | 240 | let ae = (aa + ab) | |
241 | 241 | $Tuple2(nil, ae) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(B) | |
247 | 247 | func setManager (al) = { | |
248 | 248 | let G = A(B) | |
249 | 249 | if ((G == G)) | |
250 | 250 | then { | |
251 | 251 | let am = fromBase58String(al) | |
252 | 252 | if ((am == am)) | |
253 | 253 | then [StringEntry(t(), al)] | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | else throw("Strict value is not equal to itself.") | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | ||
261 | 261 | @Callable(B) | |
262 | 262 | func confirmManager () = { | |
263 | 263 | let an = z() | |
264 | 264 | let ao = if (isDefined(an)) | |
265 | 265 | then true | |
266 | 266 | else u("no pending manager") | |
267 | 267 | if ((ao == ao)) | |
268 | 268 | then { | |
269 | 269 | let ap = if ((B.callerPublicKey == value(an))) | |
270 | 270 | then true | |
271 | 271 | else u("you are not pending manager") | |
272 | 272 | if ((ap == ap)) | |
273 | 273 | then [StringEntry(s(), toBase58String(value(an))), DeleteEntry(t())] | |
274 | 274 | else throw("Strict value is not equal to itself.") | |
275 | 275 | } | |
276 | 276 | else throw("Strict value is not equal to itself.") | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Verifier(aq) | |
281 | 281 | func ar () = { | |
282 | 282 | let as = { | |
283 | 283 | let x = w() | |
284 | 284 | if ($isInstanceOf(x, "ByteVector")) | |
285 | 285 | then { | |
286 | 286 | let D = x | |
287 | 287 | D | |
288 | 288 | } | |
289 | 289 | else if ($isInstanceOf(x, "Unit")) | |
290 | 290 | then aq.senderPublicKey | |
291 | 291 | else throw("Match error") | |
292 | 292 | } | |
293 | 293 | sigVerify(aq.bodyBytes, aq.proofs[0], as) | |
294 | 294 | } | |
295 | 295 |
github/deemru/w8io/026f985 44.06 ms ◑