tx · 8esqGdozpuPopFTCHVB5ffSe2jJQXrHJyP1RhgXjqwqS

3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9:  -0.01400000 Waves

2019.11.25 18:58 [781010] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves

{ "type": 13, "id": "8esqGdozpuPopFTCHVB5ffSe2jJQXrHJyP1RhgXjqwqS", "fee": 1400000, "feeAssetId": null, "timestamp": 1574697457690, "version": 1, "sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9", "senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW", "proofs": [ "CbuzibUZ5R919nFbmq7eH9U7yTb5YT1CzSdR4hk6xRiriGTt7oS9W1G8M3ctxZcUkYBKkSECRXhRdPc43YLrLhH" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEcmVmXwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dhbGxldF8FAAAABXJlZmVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdyZWZwYXlfBQAA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tldAQAAAAEZHNsNAkBAAAADmNoZWNrbmV4dHJvdW5kAAAAAwUAAAAEZHNsMwUAAAAObmV3VGlja2V0Y291bnQFAAAAC251bWJlcnJvdW5kBAAAAApyZWZwYXltZW50CQAAaAAAAAIJAABoAAAAAgUAAAAJcGF5dGlja2V0AAAAAAAAAAAKBQAAAAF4BAAAAARkc2w1CQEAAAAGcGF5cmVmAAAABAUAAAAEZHNsNAUAAAAEdXNlcgUAAAAFcmVmZXIFAAAACnJlZnBheW1lbnQFAAAABGRzbDUAAAAAh07jlA==", "chainId": 84, "height": 781010, "spentComplexity": 0 } View: original | compacted Prev: AoUKh4WyLa31VuvEbFYdd8VhD1yjTdMBAEzq72eUWNcc Next: FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX Diff:
OldNewDifferences
44 func a (b,c,d,e) = {
55 let f = b.data
66 let g = {
7- let h = getString(this, (c + "_ref"))
7+ let h = getString(this, ("ref_" + c))
88 if ($isInstanceOf(h, "String"))
99 then {
1010 let i = h
1515 if ((g == ""))
1616 then {
1717 let j = {
18- let h = getInteger(this, (d + "_wallet"))
18+ let h = getInteger(this, ("wallet_" + d))
1919 if ($isInstanceOf(h, "Int"))
2020 then {
2121 let i = h
2424 else 0
2525 }
2626 let k = {
27- let h = getInteger(this, (d + "_refpay"))
27+ let h = getInteger(this, ("refpay_" + d))
2828 if ($isInstanceOf(h, "Int"))
2929 then {
3030 let i = h
3232 }
3333 else 0
3434 }
35- let l = DataEntry((d + "_wallet"), (j + e)) :: f
36- let m = DataEntry((d + "_refpay"), (k + e)) :: l
35+ let l = DataEntry(("wallet_" + d), (j + e)) :: f
36+ let m = DataEntry(("refpay_" + d), (k + e)) :: l
3737 let n = WriteSet(m)
3838 n
3939 }
4040 else {
4141 let o = {
42- let h = getInteger(this, (g + "_wallet"))
42+ let h = getInteger(this, ("wallet_" + g))
4343 if ($isInstanceOf(h, "Int"))
4444 then {
4545 let i = h
4848 else 0
4949 }
5050 let p = {
51- let h = getInteger(this, (g + "_refpay"))
51+ let h = getInteger(this, ("refpay_" + g))
5252 if ($isInstanceOf(h, "Int"))
5353 then {
5454 let i = h
5656 }
5757 else 0
5858 }
59- let q = DataEntry((g + "_wallet"), (o + e)) :: f
60- let r = DataEntry((g + "_refpay"), (p + e)) :: q
59+ let q = DataEntry(("wallet_" + g), (o + e)) :: f
60+ let r = DataEntry(("refpay_" + g), (p + e)) :: q
6161 let s = WriteSet(r)
6262 s
6363 }
6767 func t (b,c,d) = {
6868 let f = b.data
6969 let g = {
70- let h = getString(this, (c + "_ref"))
70+ let h = getString(this, ("ref_" + c))
7171 if ($isInstanceOf(h, "String"))
7272 then {
7373 let i = h
7777 }
7878 if ((g == ""))
7979 then {
80- let l = DataEntry((c + "_ref"), d) :: f
81- let m = DataEntry((d + "_refer"), c) :: l
80+ let l = DataEntry(("ref_" + c), d) :: f
81+ let m = DataEntry(("refer_" + d), c) :: l
8282 let n = WriteSet(m)
8383 n
8484 }
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 = {
7- let h = getString(this, (c + "_ref"))
7+ 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 = {
18- let h = getInteger(this, (d + "_wallet"))
18+ 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 = {
27- let h = getInteger(this, (d + "_refpay"))
27+ 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((d + "_wallet"), (j + e)) :: f
36- let m = DataEntry((d + "_refpay"), (k + e)) :: l
35+ let l = DataEntry(("wallet_" + d), (j + e)) :: f
36+ let m = DataEntry(("refpay_" + d), (k + e)) :: l
3737 let n = WriteSet(m)
3838 n
3939 }
4040 else {
4141 let o = {
42- let h = getInteger(this, (g + "_wallet"))
42+ let h = getInteger(this, ("wallet_" + g))
4343 if ($isInstanceOf(h, "Int"))
4444 then {
4545 let i = h
4646 i
4747 }
4848 else 0
4949 }
5050 let p = {
51- let h = getInteger(this, (g + "_refpay"))
51+ let h = getInteger(this, ("refpay_" + g))
5252 if ($isInstanceOf(h, "Int"))
5353 then {
5454 let i = h
5555 i
5656 }
5757 else 0
5858 }
59- let q = DataEntry((g + "_wallet"), (o + e)) :: f
60- let r = DataEntry((g + "_refpay"), (p + e)) :: q
59+ let q = DataEntry(("wallet_" + g), (o + e)) :: f
60+ let r = DataEntry(("refpay_" + g), (p + e)) :: q
6161 let s = WriteSet(r)
6262 s
6363 }
6464 }
6565
6666
6767 func t (b,c,d) = {
6868 let f = b.data
6969 let g = {
70- let h = getString(this, (c + "_ref"))
70+ let h = getString(this, ("ref_" + c))
7171 if ($isInstanceOf(h, "String"))
7272 then {
7373 let i = h
7474 i
7575 }
7676 else ""
7777 }
7878 if ((g == ""))
7979 then {
80- let l = DataEntry((c + "_ref"), d) :: f
81- let m = DataEntry((d + "_refer"), c) :: l
80+ let l = DataEntry(("ref_" + c), d) :: f
81+ let m = DataEntry(("refer_" + d), c) :: l
8282 let n = WriteSet(m)
8383 n
8484 }
8585 else b
8686 }
8787
8888
8989 func u (b,v) = {
9090 let f = b.data
9191 let w = DataEntry("ticketcount", v) :: f
9292 let x = WriteSet(w)
9393 x
9494 }
9595
9696
9797 func y (b,z,A) = {
9898 let f = b.data
9999 let B = DataEntry(z, A) :: f
100100 let x = WriteSet(B)
101101 x
102102 }
103103
104104
105105 func C (b,D,E) = {
106106 let f = b.data
107107 if ((D == 100))
108108 then {
109109 let B = DataEntry("numberofround", (E + 1)) :: f
110110 let x = WriteSet(B)
111111 x
112112 }
113113 else b
114114 }
115115
116116
117117 @Callable(F)
118118 func playbingo (G,H,d) = {
119119 let I = extract(F.payment)
120120 let J = (value(I.amount) / 100000000)
121121 let K = parseIntValue(H)
122122 let L = (J * K)
123123 if ((L > J))
124124 then throw("Ticket price is 1 WAVES")
125125 else {
126126 let M = {
127127 let h = getInteger(this, "fondprize")
128128 if ($isInstanceOf(h, "Int"))
129129 then {
130130 let i = h
131131 i
132132 }
133133 else 0
134134 }
135135 let N = DataEntry("fondprize", (M + (L / 2)))
136136 let l = WriteSet([N])
137137 let O = {
138138 let h = getInteger(this, "numberofround")
139139 if ($isInstanceOf(h, "Int"))
140140 then {
141141 let i = h
142142 i
143143 }
144144 else 1
145145 }
146146 let c = toString(F.caller)
147147 let n = t(l, c, d)
148148 let P = {
149149 let h = getInteger(this, "ticketcount")
150150 if ($isInstanceOf(h, "Int"))
151151 then {
152152 let i = h
153153 i
154154 }
155155 else 0
156156 }
157157 let Q = (P + 1)
158158 let q = u(n, Q)
159159 let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c)
160160 let s = y(q, R, G)
161161 let S = C(s, Q, O)
162162 let T = ((L * 10) * K)
163163 let U = a(S, c, d, T)
164164 U
165165 }
166166 }
167167
168168

github/deemru/w8io/169f3d6 
36.99 ms