tx · FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.11.26 00:09 [781310] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX", "fee": 1400000, "feeAssetId": null, "timestamp": 1574716145451, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "BPvMYaPxDibtLpPXDyag9QCDYeyHZfGqR9DV9remR8R1xsKzu334BBsgMwnVyTk6kopN7A5EdPZStgRTSYv8HfX" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEcmVmXwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dhbGxldF8FAAAABXJlZmVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdyZWZwYXlfBQAAAA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QJAABoAAAAAgkAAGgAAAACBQAAAAlwYXl0aWNrZXQAAAAAAAAAAAoFAAAAAXgEAAAABGRzbDUJAQAAAAZwYXlyZWYAAAAEBQAAAARkc2w0BQAAAAR1c2VyBQAAAAVyZWZlcgUAAAAKcmVmcGF5bWVudAUAAAAEZHNsNQAAAAAOIUoa", "chainId": 84, "height": 781310, "spentComplexity": 0 } View: original | compacted Prev: 8esqGdozpuPopFTCHVB5ffSe2jJQXrHJyP1RhgXjqwqS Next: E99CVQApqSGgBbVHoHHNJWkcxEKEStWU5kjz5bjJoSp1 Diff:
OldNewDifferences
3232 }
3333 else 0
3434 }
35- let l = DataEntry(("wallet_" + d), (j + e)) :: f
36- let m = DataEntry(("refpay_" + d), (k + e)) :: l
37- let n = WriteSet(m)
38- n
35+ let l = {
36+ let h = getInteger(this, ((("refpay_" + d) + "_") + c))
37+ if ($isInstanceOf(h, "Int"))
38+ then {
39+ let i = h
40+ i
41+ }
42+ else 0
43+ }
44+ let m = DataEntry(("wallet_" + d), (j + e)) :: f
45+ let n = DataEntry(("refpay_" + d), (k + e)) :: m
46+ let o = DataEntry(((("refpay_" + d) + "_") + c), (l + e)) :: n
47+ let p = WriteSet(o)
48+ p
3949 }
4050 else {
41- let o = {
51+ let q = {
4252 let h = getInteger(this, ("wallet_" + g))
4353 if ($isInstanceOf(h, "Int"))
4454 then {
4757 }
4858 else 0
4959 }
50- let p = {
60+ let r = {
5161 let h = getInteger(this, ("refpay_" + g))
5262 if ($isInstanceOf(h, "Int"))
5363 then {
5666 }
5767 else 0
5868 }
59- let q = DataEntry(("wallet_" + g), (o + e)) :: f
60- let r = DataEntry(("refpay_" + g), (p + e)) :: q
61- let s = WriteSet(r)
62- s
69+ let s = {
70+ let h = getInteger(this, ((("refpay_" + g) + "_") + c))
71+ if ($isInstanceOf(h, "Int"))
72+ then {
73+ let i = h
74+ i
75+ }
76+ else 0
77+ }
78+ let t = DataEntry(("wallet_" + g), (q + e)) :: f
79+ let u = DataEntry(("refpay_" + g), (r + e)) :: t
80+ let o = DataEntry(((("refpay_" + g) + "_") + c), (s + e)) :: u
81+ let v = WriteSet(o)
82+ v
6383 }
6484 }
6585
6686
67-func t (b,c,d) = {
87+func w (b,c,d) = {
6888 let f = b.data
6989 let g = {
7090 let h = getString(this, ("ref_" + c))
7797 }
7898 if ((g == ""))
7999 then {
80- let l = DataEntry(("ref_" + c), d) :: f
81- let m = DataEntry(("refer_" + d), c) :: l
82- let n = WriteSet(m)
83- n
100+ let m = DataEntry(("ref_" + c), d) :: f
101+ let n = DataEntry(((("refer_" + d) + "_") + c), c) :: m
102+ let p = WriteSet(n)
103+ p
84104 }
85105 else b
86106 }
87107
88108
89-func u (b,v) = {
109+func x (b,y) = {
90110 let f = b.data
91- let w = DataEntry("ticketcount", v) :: f
92- let x = WriteSet(w)
93- x
111+ let z = DataEntry("ticketcount", y) :: f
112+ let A = WriteSet(z)
113+ A
94114 }
95115
96116
97-func y (b,z,A) = {
117+func B (b,C,D,E) = {
98118 let f = b.data
99- let B = DataEntry(z, A) :: f
100- let x = WriteSet(B)
101- x
119+ let F = DataEntry(C, ((D + ",") + E)) :: f
120+ let A = WriteSet(F)
121+ A
102122 }
103123
104124
105-func C (b,D,E) = {
125+func G (b,H,I) = {
106126 let f = b.data
107- if ((D == 100))
127+ if ((H == 100))
108128 then {
109- let B = DataEntry("numberofround", (E + 1)) :: f
110- let x = WriteSet(B)
111- x
129+ let F = DataEntry("numberofround", (I + 1)) :: f
130+ let A = WriteSet(F)
131+ A
112132 }
113133 else b
114134 }
115135
116136
117-@Callable(F)
118-func playbingo (G,H,d) = {
119- let I = extract(F.payment)
120- let J = (value(I.amount) / 100000000)
121- let K = parseIntValue(H)
122- let L = (J * K)
123- if ((L > J))
137+@Callable(J)
138+func playbingo (K,L,d) = {
139+ let M = extract(J.payment)
140+ let N = (value(M.amount) / 100000000)
141+ let O = parseIntValue(L)
142+ let P = (N * O)
143+ if ((P > N))
124144 then throw("Ticket price is 1 WAVES")
125145 else {
126- let M = {
146+ let Q = {
127147 let h = getInteger(this, "fondprize")
128148 if ($isInstanceOf(h, "Int"))
129149 then {
132152 }
133153 else 0
134154 }
135- let N = DataEntry("fondprize", (M + (L / 2)))
136- let l = WriteSet([N])
137- let O = {
155+ let R = DataEntry("fondprize", (Q + (P / 2)))
156+ let m = WriteSet([R])
157+ let S = {
138158 let h = getInteger(this, "numberofround")
139159 if ($isInstanceOf(h, "Int"))
140160 then {
143163 }
144164 else 1
145165 }
146- let c = toString(F.caller)
147- let n = t(l, c, d)
148- let P = {
166+ let c = toString(J.caller)
167+ let p = w(m, c, d)
168+ let T = {
149169 let h = getInteger(this, "ticketcount")
150170 if ($isInstanceOf(h, "Int"))
151171 then {
154174 }
155175 else 0
156176 }
157- let Q = (P + 1)
158- let q = u(n, Q)
159- let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c)
160- let s = y(q, R, G)
161- let S = C(s, Q, O)
162- let T = ((L * 10) * K)
163- let U = a(S, c, d, T)
164- U
177+ let U = (T + 1)
178+ let t = x(p, U)
179+ let V = ((((("ticket_" + toString(S)) + "_") + toString(U)) + "_") + c)
180+ let v = B(t, V, K, L)
181+ let W = G(v, U, S)
182+ let X = ((P * 10) * O)
183+ let Y = a(W, c, d, X)
184+ Y
165185 }
166186 }
167187
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d,e) = {
55 let f = b.data
66 let g = {
77 let h = getString(this, ("ref_" + c))
88 if ($isInstanceOf(h, "String"))
99 then {
1010 let i = h
1111 i
1212 }
1313 else ""
1414 }
1515 if ((g == ""))
1616 then {
1717 let j = {
1818 let h = getInteger(this, ("wallet_" + d))
1919 if ($isInstanceOf(h, "Int"))
2020 then {
2121 let i = h
2222 i
2323 }
2424 else 0
2525 }
2626 let k = {
2727 let h = getInteger(this, ("refpay_" + d))
2828 if ($isInstanceOf(h, "Int"))
2929 then {
3030 let i = h
3131 i
3232 }
3333 else 0
3434 }
35- let l = DataEntry(("wallet_" + d), (j + e)) :: f
36- let m = DataEntry(("refpay_" + d), (k + e)) :: l
37- let n = WriteSet(m)
38- n
35+ let l = {
36+ let h = getInteger(this, ((("refpay_" + d) + "_") + c))
37+ if ($isInstanceOf(h, "Int"))
38+ then {
39+ let i = h
40+ i
41+ }
42+ else 0
43+ }
44+ let m = DataEntry(("wallet_" + d), (j + e)) :: f
45+ let n = DataEntry(("refpay_" + d), (k + e)) :: m
46+ let o = DataEntry(((("refpay_" + d) + "_") + c), (l + e)) :: n
47+ let p = WriteSet(o)
48+ p
3949 }
4050 else {
41- let o = {
51+ let q = {
4252 let h = getInteger(this, ("wallet_" + g))
4353 if ($isInstanceOf(h, "Int"))
4454 then {
4555 let i = h
4656 i
4757 }
4858 else 0
4959 }
50- let p = {
60+ let r = {
5161 let h = getInteger(this, ("refpay_" + g))
5262 if ($isInstanceOf(h, "Int"))
5363 then {
5464 let i = h
5565 i
5666 }
5767 else 0
5868 }
59- let q = DataEntry(("wallet_" + g), (o + e)) :: f
60- let r = DataEntry(("refpay_" + g), (p + e)) :: q
61- let s = WriteSet(r)
62- s
69+ let s = {
70+ let h = getInteger(this, ((("refpay_" + g) + "_") + c))
71+ if ($isInstanceOf(h, "Int"))
72+ then {
73+ let i = h
74+ i
75+ }
76+ else 0
77+ }
78+ let t = DataEntry(("wallet_" + g), (q + e)) :: f
79+ let u = DataEntry(("refpay_" + g), (r + e)) :: t
80+ let o = DataEntry(((("refpay_" + g) + "_") + c), (s + e)) :: u
81+ let v = WriteSet(o)
82+ v
6383 }
6484 }
6585
6686
67-func t (b,c,d) = {
87+func w (b,c,d) = {
6888 let f = b.data
6989 let g = {
7090 let h = getString(this, ("ref_" + c))
7191 if ($isInstanceOf(h, "String"))
7292 then {
7393 let i = h
7494 i
7595 }
7696 else ""
7797 }
7898 if ((g == ""))
7999 then {
80- let l = DataEntry(("ref_" + c), d) :: f
81- let m = DataEntry(("refer_" + d), c) :: l
82- let n = WriteSet(m)
83- n
100+ let m = DataEntry(("ref_" + c), d) :: f
101+ let n = DataEntry(((("refer_" + d) + "_") + c), c) :: m
102+ let p = WriteSet(n)
103+ p
84104 }
85105 else b
86106 }
87107
88108
89-func u (b,v) = {
109+func x (b,y) = {
90110 let f = b.data
91- let w = DataEntry("ticketcount", v) :: f
92- let x = WriteSet(w)
93- x
111+ let z = DataEntry("ticketcount", y) :: f
112+ let A = WriteSet(z)
113+ A
94114 }
95115
96116
97-func y (b,z,A) = {
117+func B (b,C,D,E) = {
98118 let f = b.data
99- let B = DataEntry(z, A) :: f
100- let x = WriteSet(B)
101- x
119+ let F = DataEntry(C, ((D + ",") + E)) :: f
120+ let A = WriteSet(F)
121+ A
102122 }
103123
104124
105-func C (b,D,E) = {
125+func G (b,H,I) = {
106126 let f = b.data
107- if ((D == 100))
127+ if ((H == 100))
108128 then {
109- let B = DataEntry("numberofround", (E + 1)) :: f
110- let x = WriteSet(B)
111- x
129+ let F = DataEntry("numberofround", (I + 1)) :: f
130+ let A = WriteSet(F)
131+ A
112132 }
113133 else b
114134 }
115135
116136
117-@Callable(F)
118-func playbingo (G,H,d) = {
119- let I = extract(F.payment)
120- let J = (value(I.amount) / 100000000)
121- let K = parseIntValue(H)
122- let L = (J * K)
123- if ((L > J))
137+@Callable(J)
138+func playbingo (K,L,d) = {
139+ let M = extract(J.payment)
140+ let N = (value(M.amount) / 100000000)
141+ let O = parseIntValue(L)
142+ let P = (N * O)
143+ if ((P > N))
124144 then throw("Ticket price is 1 WAVES")
125145 else {
126- let M = {
146+ let Q = {
127147 let h = getInteger(this, "fondprize")
128148 if ($isInstanceOf(h, "Int"))
129149 then {
130150 let i = h
131151 i
132152 }
133153 else 0
134154 }
135- let N = DataEntry("fondprize", (M + (L / 2)))
136- let l = WriteSet([N])
137- let O = {
155+ let R = DataEntry("fondprize", (Q + (P / 2)))
156+ let m = WriteSet([R])
157+ let S = {
138158 let h = getInteger(this, "numberofround")
139159 if ($isInstanceOf(h, "Int"))
140160 then {
141161 let i = h
142162 i
143163 }
144164 else 1
145165 }
146- let c = toString(F.caller)
147- let n = t(l, c, d)
148- let P = {
166+ let c = toString(J.caller)
167+ let p = w(m, c, d)
168+ let T = {
149169 let h = getInteger(this, "ticketcount")
150170 if ($isInstanceOf(h, "Int"))
151171 then {
152172 let i = h
153173 i
154174 }
155175 else 0
156176 }
157- let Q = (P + 1)
158- let q = u(n, Q)
159- let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c)
160- let s = y(q, R, G)
161- let S = C(s, Q, O)
162- let T = ((L * 10) * K)
163- let U = a(S, c, d, T)
164- U
177+ let U = (T + 1)
178+ let t = x(p, U)
179+ let V = ((((("ticket_" + toString(S)) + "_") + toString(U)) + "_") + c)
180+ let v = B(t, V, K, L)
181+ let W = G(v, U, S)
182+ let X = ((P * 10) * O)
183+ let Y = a(W, c, d, X)
184+ Y
165185 }
166186 }
167187
168188

github/deemru/w8io/026f985 
46.13 ms