tx · 4nXd4houXDdEj9nXWt6u3VpeUGSajGDCwe3yPW2sMp8k

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.11.26 01:16 [781382] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "4nXd4houXDdEj9nXWt6u3VpeUGSajGDCwe3yPW2sMp8k", "fee": 1400000, "feeAssetId": null, "timestamp": 1574720216002, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "5eX8aVwYLxXmEadHZjuySN7EtJhh5vGrb56oUcXqMLb5CogLGzUyLdvaHtBR2SWWB2GhYMihZtVhsd7cBpQ8foK1" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEcmVmXwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dhbGxldF8FAAAABXJlZmVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdyZWZwYXlfBQA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lZgAAAAQFAAAABGRzbDQFAAAABHVzZXIFAAAABXJlZmVyBQAAAApyZWZwYXltZW50BQAAAARkc2w1AAAAAIGl1BY=", "chainId": 84, "height": 781382, "spentComplexity": 0 } View: original | compacted Prev: E99CVQApqSGgBbVHoHHNJWkcxEKEStWU5kjz5bjJoSp1 Next: CKBn3SEHtZqG6bDc1tw5jFAMoNHvo5k7ZUAHpbLyC6V1 Diff:
OldNewDifferences
114114 }
115115
116116
117-func B (b,C,D,E) = {
117+func B (b,C,D) = {
118118 let f = b.data
119- let F = DataEntry(C, ((D + ",") + E)) :: f
120- let A = WriteSet(F)
119+ let E = DataEntry(C, D) :: f
120+ let A = WriteSet(E)
121121 A
122122 }
123123
124124
125-func G (b,H,I) = {
125+func F (b,G,H) = {
126126 let f = b.data
127- if ((H == 100))
127+ if ((G == 100))
128128 then {
129- let F = DataEntry("numberofround", (I + 1)) :: f
130- let A = WriteSet(F)
129+ let E = DataEntry("numberofround", (H + 1)) :: f
130+ let A = WriteSet(E)
131131 A
132132 }
133133 else b
134134 }
135135
136136
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 = O
143- if ((P > N))
137+@Callable(I)
138+func playbingo (J,K,d) = {
139+ let L = extract(I.payment)
140+ let M = (value(L.amount) / 100000000)
141+ let N = parseIntValue(K)
142+ let O = N
143+ if ((O > M))
144144 then throw("Ticket price is 1 WAVES")
145145 else {
146- let Q = {
146+ let P = {
147147 let h = getInteger(this, "fondprize")
148148 if ($isInstanceOf(h, "Int"))
149149 then {
152152 }
153153 else 0
154154 }
155- let R = DataEntry("fondprize", (Q + (P / 2)))
156- let m = WriteSet([R])
157- let S = {
155+ let Q = DataEntry("fondprize", (P + (O / 2)))
156+ let m = WriteSet([Q])
157+ let R = {
158158 let h = getInteger(this, "numberofround")
159159 if ($isInstanceOf(h, "Int"))
160160 then {
163163 }
164164 else 1
165165 }
166- let c = toString(J.caller)
166+ let c = toString(I.caller)
167167 let p = w(m, c, d)
168- let T = {
168+ let S = {
169169 let h = getInteger(this, "ticketcount")
170170 if ($isInstanceOf(h, "Int"))
171171 then {
174174 }
175175 else 0
176176 }
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
177+ let T = (S + 1)
178+ let t = x(p, T)
179+ let U = ((((("ticket_" + toString(R)) + "_") + toString(T)) + "_") + c)
180+ let v = B(t, U, J)
181+ let V = F(v, T, R)
182+ let W = ((O * 10) * N)
183+ let X = a(V, c, d, W)
184+ X
185185 }
186186 }
187187
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 }
3535 let l = {
3636 let h = getInteger(this, ((("refpay_" + d) + "_") + c))
3737 if ($isInstanceOf(h, "Int"))
3838 then {
3939 let i = h
4040 i
4141 }
4242 else 0
4343 }
4444 let m = DataEntry(("wallet_" + d), (j + e)) :: f
4545 let n = DataEntry(("refpay_" + d), (k + e)) :: m
4646 let o = DataEntry(((("refpay_" + d) + "_") + c), (l + e)) :: n
4747 let p = WriteSet(o)
4848 p
4949 }
5050 else {
5151 let q = {
5252 let h = getInteger(this, ("wallet_" + g))
5353 if ($isInstanceOf(h, "Int"))
5454 then {
5555 let i = h
5656 i
5757 }
5858 else 0
5959 }
6060 let r = {
6161 let h = getInteger(this, ("refpay_" + g))
6262 if ($isInstanceOf(h, "Int"))
6363 then {
6464 let i = h
6565 i
6666 }
6767 else 0
6868 }
6969 let s = {
7070 let h = getInteger(this, ((("refpay_" + g) + "_") + c))
7171 if ($isInstanceOf(h, "Int"))
7272 then {
7373 let i = h
7474 i
7575 }
7676 else 0
7777 }
7878 let t = DataEntry(("wallet_" + g), (q + e)) :: f
7979 let u = DataEntry(("refpay_" + g), (r + e)) :: t
8080 let o = DataEntry(((("refpay_" + g) + "_") + c), (s + e)) :: u
8181 let v = WriteSet(o)
8282 v
8383 }
8484 }
8585
8686
8787 func w (b,c,d) = {
8888 let f = b.data
8989 let g = {
9090 let h = getString(this, ("ref_" + c))
9191 if ($isInstanceOf(h, "String"))
9292 then {
9393 let i = h
9494 i
9595 }
9696 else ""
9797 }
9898 if ((g == ""))
9999 then {
100100 let m = DataEntry(("ref_" + c), d) :: f
101101 let n = DataEntry(((("refer_" + d) + "_") + c), c) :: m
102102 let p = WriteSet(n)
103103 p
104104 }
105105 else b
106106 }
107107
108108
109109 func x (b,y) = {
110110 let f = b.data
111111 let z = DataEntry("ticketcount", y) :: f
112112 let A = WriteSet(z)
113113 A
114114 }
115115
116116
117-func B (b,C,D,E) = {
117+func B (b,C,D) = {
118118 let f = b.data
119- let F = DataEntry(C, ((D + ",") + E)) :: f
120- let A = WriteSet(F)
119+ let E = DataEntry(C, D) :: f
120+ let A = WriteSet(E)
121121 A
122122 }
123123
124124
125-func G (b,H,I) = {
125+func F (b,G,H) = {
126126 let f = b.data
127- if ((H == 100))
127+ if ((G == 100))
128128 then {
129- let F = DataEntry("numberofround", (I + 1)) :: f
130- let A = WriteSet(F)
129+ let E = DataEntry("numberofround", (H + 1)) :: f
130+ let A = WriteSet(E)
131131 A
132132 }
133133 else b
134134 }
135135
136136
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 = O
143- if ((P > N))
137+@Callable(I)
138+func playbingo (J,K,d) = {
139+ let L = extract(I.payment)
140+ let M = (value(L.amount) / 100000000)
141+ let N = parseIntValue(K)
142+ let O = N
143+ if ((O > M))
144144 then throw("Ticket price is 1 WAVES")
145145 else {
146- let Q = {
146+ let P = {
147147 let h = getInteger(this, "fondprize")
148148 if ($isInstanceOf(h, "Int"))
149149 then {
150150 let i = h
151151 i
152152 }
153153 else 0
154154 }
155- let R = DataEntry("fondprize", (Q + (P / 2)))
156- let m = WriteSet([R])
157- let S = {
155+ let Q = DataEntry("fondprize", (P + (O / 2)))
156+ let m = WriteSet([Q])
157+ let R = {
158158 let h = getInteger(this, "numberofround")
159159 if ($isInstanceOf(h, "Int"))
160160 then {
161161 let i = h
162162 i
163163 }
164164 else 1
165165 }
166- let c = toString(J.caller)
166+ let c = toString(I.caller)
167167 let p = w(m, c, d)
168- let T = {
168+ let S = {
169169 let h = getInteger(this, "ticketcount")
170170 if ($isInstanceOf(h, "Int"))
171171 then {
172172 let i = h
173173 i
174174 }
175175 else 0
176176 }
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
177+ let T = (S + 1)
178+ let t = x(p, T)
179+ let U = ((((("ticket_" + toString(R)) + "_") + toString(T)) + "_") + c)
180+ let v = B(t, U, J)
181+ let V = F(v, T, R)
182+ let W = ((O * 10) * N)
183+ let X = a(V, c, d, W)
184+ X
185185 }
186186 }
187187
188188

github/deemru/w8io/169f3d6 
73.26 ms