tx · GY1d3fNpDDQpDPH6wfFoGwHj9uvXXbbXKQUxkzZi5sGX

3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs:  -0.01400000 Waves

2019.08.28 00:13 [650129] smart account 3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs > SELF 0.00000000 Waves

{ "type": 13, "id": "GY1d3fNpDDQpDPH6wfFoGwHj9uvXXbbXKQUxkzZi5sGX", "fee": 1400000, "feeAssetId": null, "timestamp": 1566940472872, "version": 1, "sender": "3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs", "senderPublicKey": "HSTmdhPrJF81ozDBaqVn8QVtV76oD7gzDfcHPQRdxdwW", "proofs": [ "2etvVF72EdnaWN1BSDabcjMAg3yXg9n1r7SGUQGAPoWLbmAMaMr1ZoYnhaC9pMsp1azcqV2cgDYSwJzjTXMJCt1P" ], "script": "base64:AAIDAAAAAAAAAAAAAAAQAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAKQ09NTUlTU0lPTgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAAUFAAAAB1dBVkVMRVQAAAAAAAAAA+gAAAAAClRva2VuUHJpY2UAAAAAAAAAAAoAAAAAEERPTkFURUNPVU5URVJLRVkCAAAACyRET05BVEVfTlVNAAAAAAdCVVlJVEVNAgAAAAkkQlVZX0lURU0AAAAABEJhZzEJAABoAAAAAgAAAAAAAAAAAQUAAAAHV0FWRUxFVAAAAAAEQmFnNQkAAGgAAAACAAAAAAAAAAAFBQAAAAdXQVZFTEVUAAAAAAVCYWcxMAkAAGgAAAACAAAAAAAAAAAKBQAAAAdXQVZFTEVUAAAAAAVCYWcyMAkAAGgAAAACAAAAAAAAAAAUBQAAAAdXQVZFTEVUAAAAAAVCYWc1MAkAAGgAAAACAAAAAAAAAAAyBQAAAAdXQVZFTEVUAAAAAAZCYWcxMDAJAABoAAAAAgAAAAAAAA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TZXQAAAABBQAAAApkb25hdGVEYXRhCQAAAgAAAAECAAAAGVlvdSBwYWlkIHRoZSB3cm9uZyBhbW91bnQAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHkSncpw==", "chainId": 84, "height": 650129, "spentComplexity": 0 } View: original | compacted Prev: 32kGkj89KUW4ci8NGuHUXTBrGhMScP865vLDZBkySyhT Next: GN8tJPmxbWbXtCRvcWaE56yjth8Czs26jZPd9K6X5FHb Diff:
OldNewDifferences
2323
2424 let k = (100 * a)
2525
26-func l () = {
27- let m = {
28- let n = getInteger(this, d)
29- if ($isInstanceOf(n, "Int"))
26+let l = 20
27+
28+let m = [1, 3, 5, 6, 2, 2, 4, 9, 10, 12, 5, 1, 9, 12, 5, 4, 1, 11, 12, 9]
29+
30+func n () = {
31+ let o = {
32+ let p = getInteger(this, d)
33+ if ($isInstanceOf(p, "Int"))
3034 then {
31- let o = n
32- o
35+ let q = p
36+ q
3337 }
3438 else 0
3539 }
36- (m + 1)
40+ (o + 1)
3741 }
3842
3943
40-func p (q) = {
41- let r = {
42- let n = getInteger(this, q)
43- if ($isInstanceOf(n, "Int"))
44+func r (s) = {
45+ let t = {
46+ let p = getInteger(this, s)
47+ if ($isInstanceOf(p, "Int"))
4448 then {
45- let r = n
46- r
49+ let t = p
50+ t
4751 }
4852 else 0
49- }
50- r
51- }
52-
53-
54-func s (q) = {
55- let t = {
56- let n = getString(this, q)
57- if ($isInstanceOf(n, "String"))
58- then {
59- let u = n
60- u
61- }
62- else ""
6353 }
6454 t
6555 }
6656
6757
68-func v (w) = if ((w == "1"))
69- then 1
70- else if ((w == "2"))
71- then 4
72- else if ((w == "3"))
73- then 6
74- else throw("Неверный ID item")
75-
76-
77-func x (y,w) = {
78- let t = {
79- let n = indexOf(y, (w + ":"))
80- if ($isInstanceOf(n, "Int"))
58+func u (v,w) = {
59+ let x = {
60+ let p = indexOf(v, (w + ":"))
61+ if ($isInstanceOf(p, "Int"))
8162 then {
82- let z = n
83- toString(z)
63+ let y = p
64+ toString(y)
8465 }
8566 else "undefined"
8667 }
87- t
68+ x
8869 }
8970
9071
91-@Callable(A)
92-func buy (w) = {
93- let B = toBase58String(A.transactionId)
94- let C = toString(A.caller)
95- let D = (C + "_items")
96- let E = v(w)
97- let F = (p((C + "_balance")) - E)
98- let G = DataEntry((C + "_balance"), F)
99- let y = s(D)
100- let H = x(y, w)
101- if ((H == "undefined"))
102- then throw("This item not exist")
103- else throw((("Новый список айтемов: " + w) + ":2"))
72+@Callable(z)
73+func buyItem (w) = {
74+ let A = toBase58String(z.transactionId)
75+ let B = toString(z.caller)
76+ if (if ((w > 0))
77+ then (l >= w)
78+ else false)
79+ then {
80+ let C = m[w]
81+ let D = (r((B + "_balance")) - C)
82+ let E = DataEntry((B + "_balance"), D)
83+ let F = ((B + "_itemID_") + toString(w))
84+ WriteSet([DataEntry(F, 1), DataEntry(((e + "_") + A), w), E])
85+ }
86+ else throw("Item has not found")
10487 }
10588
10689
10790
108-@Callable(A)
91+@Callable(z)
10992 func reset () = {
110- let C = toString(A.caller)
111- let I = [DataEntry(d, 0), DataEntry((C + "_balance"), 0)]
112- WriteSet(I)
93+ let B = toString(z.caller)
94+ let G = [DataEntry(d, 0), DataEntry((B + "_balance"), 0)]
95+ WriteSet(G)
11396 }
11497
11598
11699
117-@Callable(A)
100+@Callable(z)
118101 func donate () = {
119- let J = l()
120- let K = toBase58String(A.transactionId)
121- let L = extract(A.payment)
122- let C = toString(A.caller)
123- let M = isDefined(L.assetId)
124- let N = isDefined(L.assetId)
125- let O = L.amount
126- if (M)
102+ let H = n()
103+ let I = toBase58String(z.transactionId)
104+ let J = extract(z.payment)
105+ let B = toString(z.caller)
106+ let K = isDefined(J.assetId)
107+ let L = isDefined(J.assetId)
108+ let M = J.amount
109+ if (K)
127110 then throw("Bet amount must be in Waves")
128- else if (N)
111+ else if (L)
129112 then throw("Transaction's fee must be in Waves")
130113 else {
131- let P = if (if (if (if (if (if ((O == (f + b)))
114+ let N = if (if (if (if (if (if ((M == (f + b)))
132115 then true
133- else (O == (g + b)))
116+ else (M == (g + b)))
134117 then true
135- else (O == (h + b)))
118+ else (M == (h + b)))
136119 then true
137- else (O == (i + b)))
120+ else (M == (i + b)))
138121 then true
139- else (O == (j + b)))
122+ else (M == (j + b)))
140123 then true
141- else (O == (k + b)))
124+ else (M == (k + b)))
142125 then true
143126 else false
144- if (P)
127+ if (N)
145128 then {
146- let Q = ((O - b) / a)
147- let R = (C + "_balance")
148- let S = (p(R) + (Q * c))
149- let I = [DataEntry(d, J), DataEntry(R, S), DataEntry(K, Q)]
150- WriteSet(I)
129+ let O = ((M - b) / a)
130+ let P = (B + "_balance")
131+ let Q = (r(P) + (O * c))
132+ let G = [DataEntry(d, H), DataEntry(P, Q), DataEntry(I, O)]
133+ WriteSet(G)
151134 }
152135 else throw("You paid the wrong amount")
153136 }
154137 }
155138
156139
157-@Verifier(T)
158-func U () = if (sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey))
140+@Verifier(R)
141+func S () = if (sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey))
159142 then {
160- let n = T
161- if ($isInstanceOf(n, "TransferTransaction"))
143+ let p = R
144+ if ($isInstanceOf(p, "TransferTransaction"))
162145 then {
163- let V = n
146+ let T = p
164147 true
165148 }
166- else if ($isInstanceOf(n, "SetScriptTransaction"))
149+ else if ($isInstanceOf(p, "SetScriptTransaction"))
167150 then {
168- let W = n
151+ let U = p
169152 true
170153 }
171154 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ((100 * 1000) * 1000)
55
66 let b = ((5 * a) / 1000)
77
88 let c = 10
99
1010 let d = "$DONATE_NUM"
1111
1212 let e = "$BUY_ITEM"
1313
1414 let f = (1 * a)
1515
1616 let g = (5 * a)
1717
1818 let h = (10 * a)
1919
2020 let i = (20 * a)
2121
2222 let j = (50 * a)
2323
2424 let k = (100 * a)
2525
26-func l () = {
27- let m = {
28- let n = getInteger(this, d)
29- if ($isInstanceOf(n, "Int"))
26+let l = 20
27+
28+let m = [1, 3, 5, 6, 2, 2, 4, 9, 10, 12, 5, 1, 9, 12, 5, 4, 1, 11, 12, 9]
29+
30+func n () = {
31+ let o = {
32+ let p = getInteger(this, d)
33+ if ($isInstanceOf(p, "Int"))
3034 then {
31- let o = n
32- o
35+ let q = p
36+ q
3337 }
3438 else 0
3539 }
36- (m + 1)
40+ (o + 1)
3741 }
3842
3943
40-func p (q) = {
41- let r = {
42- let n = getInteger(this, q)
43- if ($isInstanceOf(n, "Int"))
44+func r (s) = {
45+ let t = {
46+ let p = getInteger(this, s)
47+ if ($isInstanceOf(p, "Int"))
4448 then {
45- let r = n
46- r
49+ let t = p
50+ t
4751 }
4852 else 0
49- }
50- r
51- }
52-
53-
54-func s (q) = {
55- let t = {
56- let n = getString(this, q)
57- if ($isInstanceOf(n, "String"))
58- then {
59- let u = n
60- u
61- }
62- else ""
6353 }
6454 t
6555 }
6656
6757
68-func v (w) = if ((w == "1"))
69- then 1
70- else if ((w == "2"))
71- then 4
72- else if ((w == "3"))
73- then 6
74- else throw("Неверный ID item")
75-
76-
77-func x (y,w) = {
78- let t = {
79- let n = indexOf(y, (w + ":"))
80- if ($isInstanceOf(n, "Int"))
58+func u (v,w) = {
59+ let x = {
60+ let p = indexOf(v, (w + ":"))
61+ if ($isInstanceOf(p, "Int"))
8162 then {
82- let z = n
83- toString(z)
63+ let y = p
64+ toString(y)
8465 }
8566 else "undefined"
8667 }
87- t
68+ x
8869 }
8970
9071
91-@Callable(A)
92-func buy (w) = {
93- let B = toBase58String(A.transactionId)
94- let C = toString(A.caller)
95- let D = (C + "_items")
96- let E = v(w)
97- let F = (p((C + "_balance")) - E)
98- let G = DataEntry((C + "_balance"), F)
99- let y = s(D)
100- let H = x(y, w)
101- if ((H == "undefined"))
102- then throw("This item not exist")
103- else throw((("Новый список айтемов: " + w) + ":2"))
72+@Callable(z)
73+func buyItem (w) = {
74+ let A = toBase58String(z.transactionId)
75+ let B = toString(z.caller)
76+ if (if ((w > 0))
77+ then (l >= w)
78+ else false)
79+ then {
80+ let C = m[w]
81+ let D = (r((B + "_balance")) - C)
82+ let E = DataEntry((B + "_balance"), D)
83+ let F = ((B + "_itemID_") + toString(w))
84+ WriteSet([DataEntry(F, 1), DataEntry(((e + "_") + A), w), E])
85+ }
86+ else throw("Item has not found")
10487 }
10588
10689
10790
108-@Callable(A)
91+@Callable(z)
10992 func reset () = {
110- let C = toString(A.caller)
111- let I = [DataEntry(d, 0), DataEntry((C + "_balance"), 0)]
112- WriteSet(I)
93+ let B = toString(z.caller)
94+ let G = [DataEntry(d, 0), DataEntry((B + "_balance"), 0)]
95+ WriteSet(G)
11396 }
11497
11598
11699
117-@Callable(A)
100+@Callable(z)
118101 func donate () = {
119- let J = l()
120- let K = toBase58String(A.transactionId)
121- let L = extract(A.payment)
122- let C = toString(A.caller)
123- let M = isDefined(L.assetId)
124- let N = isDefined(L.assetId)
125- let O = L.amount
126- if (M)
102+ let H = n()
103+ let I = toBase58String(z.transactionId)
104+ let J = extract(z.payment)
105+ let B = toString(z.caller)
106+ let K = isDefined(J.assetId)
107+ let L = isDefined(J.assetId)
108+ let M = J.amount
109+ if (K)
127110 then throw("Bet amount must be in Waves")
128- else if (N)
111+ else if (L)
129112 then throw("Transaction's fee must be in Waves")
130113 else {
131- let P = if (if (if (if (if (if ((O == (f + b)))
114+ let N = if (if (if (if (if (if ((M == (f + b)))
132115 then true
133- else (O == (g + b)))
116+ else (M == (g + b)))
134117 then true
135- else (O == (h + b)))
118+ else (M == (h + b)))
136119 then true
137- else (O == (i + b)))
120+ else (M == (i + b)))
138121 then true
139- else (O == (j + b)))
122+ else (M == (j + b)))
140123 then true
141- else (O == (k + b)))
124+ else (M == (k + b)))
142125 then true
143126 else false
144- if (P)
127+ if (N)
145128 then {
146- let Q = ((O - b) / a)
147- let R = (C + "_balance")
148- let S = (p(R) + (Q * c))
149- let I = [DataEntry(d, J), DataEntry(R, S), DataEntry(K, Q)]
150- WriteSet(I)
129+ let O = ((M - b) / a)
130+ let P = (B + "_balance")
131+ let Q = (r(P) + (O * c))
132+ let G = [DataEntry(d, H), DataEntry(P, Q), DataEntry(I, O)]
133+ WriteSet(G)
151134 }
152135 else throw("You paid the wrong amount")
153136 }
154137 }
155138
156139
157-@Verifier(T)
158-func U () = if (sigVerify(T.bodyBytes, T.proofs[0], T.senderPublicKey))
140+@Verifier(R)
141+func S () = if (sigVerify(R.bodyBytes, R.proofs[0], R.senderPublicKey))
159142 then {
160- let n = T
161- if ($isInstanceOf(n, "TransferTransaction"))
143+ let p = R
144+ if ($isInstanceOf(p, "TransferTransaction"))
162145 then {
163- let V = n
146+ let T = p
164147 true
165148 }
166- else if ($isInstanceOf(n, "SetScriptTransaction"))
149+ else if ($isInstanceOf(p, "SetScriptTransaction"))
167150 then {
168- let W = n
151+ let U = p
169152 true
170153 }
171154 else false
172155 }
173156 else false
174157

github/deemru/w8io/026f985 
48.76 ms