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:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEcmVmXwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dhbGxldF8FAAAABXJlZmVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdyZWZwYXlfBQAAA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ldAQAAAAEZHNsNAkBAAAADmNoZWNrbmV4dHJvdW5kAAAAAwUAAAAEZHNsMwUAAAAObmV3VGlja2V0Y291bnQFAAAAC251bWJlcnJvdW5kBAAAAApyZWZwYXltZW50CQAAaAAAAAIJAABoAAAAAgUAAAAJcGF5dGlja2V0AAAAAAAAAAAKBQAAAAF4BAAAAARkc2w1CQEAAAAGcGF5cmVmAAAABAUAAAAEZHNsNAUAAAAEdXNlcgUAAAAFcmVmZXIFAAAACnJlZnBheW1lbnQFAAAABGRzbDUAAAAAh07jlA==", "chainId": 84, "height": 781010, "spentComplexity": 0 } View: original | compacted Prev: AoUKh4WyLa31VuvEbFYdd8VhD1yjTdMBAEzq72eUWNcc Next: FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | func a (b,c,d,e) = { | |
5 | 5 | let f = b.data | |
6 | 6 | let g = { | |
7 | - | let h = getString(this, ( | |
7 | + | let h = getString(this, ("ref_" + c)) | |
8 | 8 | if ($isInstanceOf(h, "String")) | |
9 | 9 | then { | |
10 | 10 | let i = h | |
15 | 15 | if ((g == "")) | |
16 | 16 | then { | |
17 | 17 | let j = { | |
18 | - | let h = getInteger(this, ( | |
18 | + | let h = getInteger(this, ("wallet_" + d)) | |
19 | 19 | if ($isInstanceOf(h, "Int")) | |
20 | 20 | then { | |
21 | 21 | let i = h | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | let k = { | |
27 | - | let h = getInteger(this, ( | |
27 | + | let h = getInteger(this, ("refpay_" + d)) | |
28 | 28 | if ($isInstanceOf(h, "Int")) | |
29 | 29 | then { | |
30 | 30 | let i = h | |
32 | 32 | } | |
33 | 33 | else 0 | |
34 | 34 | } | |
35 | - | let l = DataEntry(( | |
36 | - | let m = DataEntry(( | |
35 | + | let l = DataEntry(("wallet_" + d), (j + e)) :: f | |
36 | + | let m = DataEntry(("refpay_" + d), (k + e)) :: l | |
37 | 37 | let n = WriteSet(m) | |
38 | 38 | n | |
39 | 39 | } | |
40 | 40 | else { | |
41 | 41 | let o = { | |
42 | - | let h = getInteger(this, ( | |
42 | + | let h = getInteger(this, ("wallet_" + g)) | |
43 | 43 | if ($isInstanceOf(h, "Int")) | |
44 | 44 | then { | |
45 | 45 | let i = h | |
48 | 48 | else 0 | |
49 | 49 | } | |
50 | 50 | let p = { | |
51 | - | let h = getInteger(this, ( | |
51 | + | let h = getInteger(this, ("refpay_" + g)) | |
52 | 52 | if ($isInstanceOf(h, "Int")) | |
53 | 53 | then { | |
54 | 54 | let i = h | |
56 | 56 | } | |
57 | 57 | else 0 | |
58 | 58 | } | |
59 | - | let q = DataEntry(( | |
60 | - | let r = DataEntry(( | |
59 | + | let q = DataEntry(("wallet_" + g), (o + e)) :: f | |
60 | + | let r = DataEntry(("refpay_" + g), (p + e)) :: q | |
61 | 61 | let s = WriteSet(r) | |
62 | 62 | s | |
63 | 63 | } | |
67 | 67 | func t (b,c,d) = { | |
68 | 68 | let f = b.data | |
69 | 69 | let g = { | |
70 | - | let h = getString(this, ( | |
70 | + | let h = getString(this, ("ref_" + c)) | |
71 | 71 | if ($isInstanceOf(h, "String")) | |
72 | 72 | then { | |
73 | 73 | let i = h | |
77 | 77 | } | |
78 | 78 | if ((g == "")) | |
79 | 79 | then { | |
80 | - | let l = DataEntry(( | |
81 | - | let m = DataEntry(( | |
80 | + | let l = DataEntry(("ref_" + c), d) :: f | |
81 | + | let m = DataEntry(("refer_" + d), c) :: l | |
82 | 82 | let n = WriteSet(m) | |
83 | 83 | n | |
84 | 84 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c,d,e) = { | |
5 | 5 | let f = b.data | |
6 | 6 | let g = { | |
7 | - | let h = getString(this, ( | |
7 | + | let h = getString(this, ("ref_" + c)) | |
8 | 8 | if ($isInstanceOf(h, "String")) | |
9 | 9 | then { | |
10 | 10 | let i = h | |
11 | 11 | i | |
12 | 12 | } | |
13 | 13 | else "" | |
14 | 14 | } | |
15 | 15 | if ((g == "")) | |
16 | 16 | then { | |
17 | 17 | let j = { | |
18 | - | let h = getInteger(this, ( | |
18 | + | let h = getInteger(this, ("wallet_" + d)) | |
19 | 19 | if ($isInstanceOf(h, "Int")) | |
20 | 20 | then { | |
21 | 21 | let i = h | |
22 | 22 | i | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | let k = { | |
27 | - | let h = getInteger(this, ( | |
27 | + | let h = getInteger(this, ("refpay_" + d)) | |
28 | 28 | if ($isInstanceOf(h, "Int")) | |
29 | 29 | then { | |
30 | 30 | let i = h | |
31 | 31 | i | |
32 | 32 | } | |
33 | 33 | else 0 | |
34 | 34 | } | |
35 | - | let l = DataEntry(( | |
36 | - | let m = DataEntry(( | |
35 | + | let l = DataEntry(("wallet_" + d), (j + e)) :: f | |
36 | + | let m = DataEntry(("refpay_" + d), (k + e)) :: l | |
37 | 37 | let n = WriteSet(m) | |
38 | 38 | n | |
39 | 39 | } | |
40 | 40 | else { | |
41 | 41 | let o = { | |
42 | - | let h = getInteger(this, ( | |
42 | + | let h = getInteger(this, ("wallet_" + g)) | |
43 | 43 | if ($isInstanceOf(h, "Int")) | |
44 | 44 | then { | |
45 | 45 | let i = h | |
46 | 46 | i | |
47 | 47 | } | |
48 | 48 | else 0 | |
49 | 49 | } | |
50 | 50 | let p = { | |
51 | - | let h = getInteger(this, ( | |
51 | + | let h = getInteger(this, ("refpay_" + g)) | |
52 | 52 | if ($isInstanceOf(h, "Int")) | |
53 | 53 | then { | |
54 | 54 | let i = h | |
55 | 55 | i | |
56 | 56 | } | |
57 | 57 | else 0 | |
58 | 58 | } | |
59 | - | let q = DataEntry(( | |
60 | - | let r = DataEntry(( | |
59 | + | let q = DataEntry(("wallet_" + g), (o + e)) :: f | |
60 | + | let r = DataEntry(("refpay_" + g), (p + e)) :: q | |
61 | 61 | let s = WriteSet(r) | |
62 | 62 | s | |
63 | 63 | } | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func t (b,c,d) = { | |
68 | 68 | let f = b.data | |
69 | 69 | let g = { | |
70 | - | let h = getString(this, ( | |
70 | + | let h = getString(this, ("ref_" + c)) | |
71 | 71 | if ($isInstanceOf(h, "String")) | |
72 | 72 | then { | |
73 | 73 | let i = h | |
74 | 74 | i | |
75 | 75 | } | |
76 | 76 | else "" | |
77 | 77 | } | |
78 | 78 | if ((g == "")) | |
79 | 79 | then { | |
80 | - | let l = DataEntry(( | |
81 | - | let m = DataEntry(( | |
80 | + | let l = DataEntry(("ref_" + c), d) :: f | |
81 | + | let m = DataEntry(("refer_" + d), c) :: l | |
82 | 82 | let n = WriteSet(m) | |
83 | 83 | n | |
84 | 84 | } | |
85 | 85 | else b | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func u (b,v) = { | |
90 | 90 | let f = b.data | |
91 | 91 | let w = DataEntry("ticketcount", v) :: f | |
92 | 92 | let x = WriteSet(w) | |
93 | 93 | x | |
94 | 94 | } | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func y (b,z,A) = { | |
98 | 98 | let f = b.data | |
99 | 99 | let B = DataEntry(z, A) :: f | |
100 | 100 | let x = WriteSet(B) | |
101 | 101 | x | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func C (b,D,E) = { | |
106 | 106 | let f = b.data | |
107 | 107 | if ((D == 100)) | |
108 | 108 | then { | |
109 | 109 | let B = DataEntry("numberofround", (E + 1)) :: f | |
110 | 110 | let x = WriteSet(B) | |
111 | 111 | x | |
112 | 112 | } | |
113 | 113 | else b | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | @Callable(F) | |
118 | 118 | func playbingo (G,H,d) = { | |
119 | 119 | let I = extract(F.payment) | |
120 | 120 | let J = (value(I.amount) / 100000000) | |
121 | 121 | let K = parseIntValue(H) | |
122 | 122 | let L = (J * K) | |
123 | 123 | if ((L > J)) | |
124 | 124 | then throw("Ticket price is 1 WAVES") | |
125 | 125 | else { | |
126 | 126 | let M = { | |
127 | 127 | let h = getInteger(this, "fondprize") | |
128 | 128 | if ($isInstanceOf(h, "Int")) | |
129 | 129 | then { | |
130 | 130 | let i = h | |
131 | 131 | i | |
132 | 132 | } | |
133 | 133 | else 0 | |
134 | 134 | } | |
135 | 135 | let N = DataEntry("fondprize", (M + (L / 2))) | |
136 | 136 | let l = WriteSet([N]) | |
137 | 137 | let O = { | |
138 | 138 | let h = getInteger(this, "numberofround") | |
139 | 139 | if ($isInstanceOf(h, "Int")) | |
140 | 140 | then { | |
141 | 141 | let i = h | |
142 | 142 | i | |
143 | 143 | } | |
144 | 144 | else 1 | |
145 | 145 | } | |
146 | 146 | let c = toString(F.caller) | |
147 | 147 | let n = t(l, c, d) | |
148 | 148 | let P = { | |
149 | 149 | let h = getInteger(this, "ticketcount") | |
150 | 150 | if ($isInstanceOf(h, "Int")) | |
151 | 151 | then { | |
152 | 152 | let i = h | |
153 | 153 | i | |
154 | 154 | } | |
155 | 155 | else 0 | |
156 | 156 | } | |
157 | 157 | let Q = (P + 1) | |
158 | 158 | let q = u(n, Q) | |
159 | 159 | let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c) | |
160 | 160 | let s = y(q, R, G) | |
161 | 161 | let S = C(s, Q, O) | |
162 | 162 | let T = ((L * 10) * K) | |
163 | 163 | let U = a(S, c, d, T) | |
164 | 164 | U | |
165 | 165 | } | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 |
github/deemru/w8io/169f3d6 36.99 ms ◑