tx · 5acnfoAU9CZCqooSmHi73jXLwaMraXiQBecBcKM6zvi7

3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh:  -0.01400000 Waves

2022.07.26 18:46 [2156968] smart account 3NAsFvuLwxz1iUtZ9fmhfmSN16r9NEsPqsh > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
26.21 ms