tx · EGiRnhZ2zb6ppaNAcbGuqtdcXPPQGh8Edt8NcUDywvB6

3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT:  -0.01400000 Waves

2019.06.24 15:27 [556166] smart account 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT > SELF 0.00000000 Waves

{ "type": 13, "id": "EGiRnhZ2zb6ppaNAcbGuqtdcXPPQGh8Edt8NcUDywvB6", "fee": 1400000, "feeAssetId": null, "timestamp": 1561379230365, "version": 1, "sender": "3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT", "senderPublicKey": "Bhyvkx4xdbEi4KPJNZSzx9gZgzgyLEsavuj2kYSt7SST", "proofs": [ "4oYXNyaKL55TsrCvNQcjQzha2QMpRuWYJA4pJAF9vuW99kxeDUkPvTzDnKDg2PdgcCTPzG13ZPUXFMQ4bm4xHnLK" ], "script": "base64:AAIDAAAAAAAAAAAAAAAPAAAAAA9TZXJ2ZXJQdWJsaWNLZXkBAAAAIAQ1/gW4L6VUuKyMox3deX07Tu0dL8x1obg+vYqfUuwTAAAAABBSb3VsZXR0ZVNlY3Rpb25zAAAAAAAAAAAVAAAAABFEYXRhR2FtZU51bWJlcktleQIAAAALQVBQX0dBTUVfSUQAAAAADURhdGFBbW91bnRLZXkCAAAABkFNT1VOVAAAAAAORGF0YVNlY3Rpb25LZXkCAAAAB1NFQ1RJT04AAAAADURhdGFTdGF0dXNLZXkCAAAABlNUQVRVUwAAAAANRGF0YVN0YXR1c05ldwIAAAADTkVXAAAAABZFcnJvck9ubHlXYXZlc0FjY2VwdGVkAgAAABllcnJvcl9vbmx5X3dhdmVzX2FjY2VwdGVkAAAAABVFcnJvck11c3RHcmVhdGVyVGhhbjACAAAAJVBhcmFtZXRlciBzaXplIG11c3QgYmUgZ3JlYXRlciB0aGFuIDAAAAAAFEVycm9yTXVzdExlc3NUaGFuMTAwAgAAACRQYXJhbWV0ZXIgc2l6ZSBtdXN0IGJlIGxlc3MgdGhhbiAxMDAAAAAAFU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XRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHaUNugw==", "chainId": 84, "height": 556166, "spentComplexity": 0 } View: original | compacted Prev: 5tHV3wuijJHDsAixUxdf6yqZMs5kA1eFjWPLFtVoUUM3 Next: 7mVp76F4UpMeDWKvdDEYANqpQt8Ve2z29SWPoeifPe8m Diff:
OldNewDifferences
77
88 let c = "APP_GAME_ID"
99
10-let d = "error_only_waves_accepted"
10+let d = "AMOUNT"
1111
12-func e () = {
13- let f = {
14- let g = getInteger(this, c)
15- if ($isInstanceOf(g, "Int"))
12+let e = "SECTION"
13+
14+let f = "STATUS"
15+
16+let g = "NEW"
17+
18+let h = "error_only_waves_accepted"
19+
20+let i = "Parameter size must be greater than 0"
21+
22+let j = "Parameter size must be less than 100"
23+
24+let k = "Bet amount must be in Waves"
25+
26+let l = "Transaction's fee must be in Waves"
27+
28+let m = "Passed txId had been used before. Game aborted."
29+
30+func n (o,p,q) = DataEntry(((o + "_") + p), q)
31+
32+
33+func r () = {
34+ let s = {
35+ let t = getInteger(this, c)
36+ if ($isInstanceOf(t, "Int"))
1637 then {
17- let h = g
18- h
38+ let u = t
39+ u
1940 }
2041 else 0
2142 }
22- (f + 1)
43+ (s + 1)
2344 }
2445
2546
26-@Callable(i)
27-func GenerateRandInt (j,k) = {
28- let l = sigVerify(fromBase58String(j), fromBase58String(k), a)
29- if (l)
47+@Callable(v)
48+func GenerateRandInt (w,x) = {
49+ let y = sigVerify(fromBase58String(w), fromBase58String(x), a)
50+ if (y)
3051 then {
31- let m = (toInt(sha256(toBytes(k))) % b)
32- WriteSet([DataEntry("orig", toInt(sha256(toBytes(k)))), DataEntry("rand", m)])
52+ let z = (toInt(sha256(toBytes(x))) % b)
53+ WriteSet([DataEntry("orig", toInt(sha256(toBytes(x)))), DataEntry("rand", z)])
3354 }
3455 else throw("Invalid RSA signature")
3556 }
3657
3758
3859
39-@Callable(i)
40-func bet (n) = {
41- let o = e()
42- let j = toBase58String(i.transactionId)
43- let p = extract(i.payment)
44- WriteSet([DataEntry("orig", ""), DataEntry("rand", "")])
60+@Callable(v)
61+func bet (A) = {
62+ let B = r()
63+ let C = toBase58String(v.transactionId)
64+ let D = toBase58String(v.caller.bytes)
65+ let E = extract(v.payment)
66+ let F = isDefined(getString(this, C))
67+ let G = isDefined(E.assetId)
68+ let H = isDefined(E.assetId)
69+ let I = E.amount
70+ if (G)
71+ then throw(k)
72+ else if (H)
73+ then throw(l)
74+ else if (F)
75+ then throw(m)
76+ else WriteSet([DataEntry(C, D), DataEntry(c, toString(B)), n(C, d, toString(I)), n(C, e, toString(A)), n(C, f, g)])
4577 }
4678
4779
4880
49-@Callable(i)
50-func bet111 (n) = {
51- let q = "last_auction_id"
52- let r = {
53- let g = getInteger(this, q)
54- if ($isInstanceOf(g, "Int"))
81+@Callable(v)
82+func bet111 (A) = {
83+ let J = "last_auction_id"
84+ let K = {
85+ let t = getInteger(this, J)
86+ if ($isInstanceOf(t, "Int"))
5587 then {
56- let s = g
57- s
88+ let L = t
89+ L
5890 }
5991 else 0
6092 }
61- let t = (r + 1)
62- let u = toString(t)
63- let v = toBase58String(i.caller.bytes)
64- let p = value(i.payment)
65- if (isDefined(p.assetId))
66- then throw(d)
93+ let M = (K + 1)
94+ let N = toString(M)
95+ let O = toBase58String(v.caller.bytes)
96+ let E = value(v.payment)
97+ if (isDefined(E.assetId))
98+ then throw(h)
6799 else {
68- let w = toBase58String(value(p.assetId))
69- let x = (("auction_" + u) + "_duration")
70- let y = (("auction_" + u) + "_min_bid")
71- let z = (("auction_" + u) + "_last_bid")
72- let A = (("auction_" + u) + "_last_bid_owner")
73- let B = (("auction_" + u) + "_owner")
74- let C = (("auction_" + u) + "_amount")
75- let D = (("auction_" + u) + "_asset_id")
76- let E = (("auction_" + u) + "_is_active")
77- let F = ((("balance_" + v) + "_") + w)
78- let G = {
79- let g = getInteger(this, F)
80- if ($isInstanceOf(g, "Int"))
100+ let P = toBase58String(value(E.assetId))
101+ let Q = (("auction_" + N) + "_duration")
102+ let R = (("auction_" + N) + "_min_bid")
103+ let S = (("auction_" + N) + "_last_bid")
104+ let T = (("auction_" + N) + "_last_bid_owner")
105+ let U = (("auction_" + N) + "_owner")
106+ let V = (("auction_" + N) + "_amount")
107+ let W = (("auction_" + N) + "_asset_id")
108+ let X = (("auction_" + N) + "_is_active")
109+ let Y = ((("balance_" + O) + "_") + P)
110+ let Z = {
111+ let t = getInteger(this, Y)
112+ if ($isInstanceOf(t, "Int"))
81113 then {
82- let s = g
83- s
114+ let L = t
115+ L
84116 }
85117 else 0
86118 }
87- let H = (G + p.amount)
88- WriteSet([DataEntry(z, 0), DataEntry(B, v), DataEntry(C, p.amount), DataEntry(D, w), DataEntry(F, H), DataEntry(E, true), DataEntry(A, ""), DataEntry(q, t)])
119+ let aa = (Z + E.amount)
120+ WriteSet([DataEntry(S, 0), DataEntry(U, O), DataEntry(V, E.amount), DataEntry(W, P), DataEntry(Y, aa), DataEntry(X, true), DataEntry(T, ""), DataEntry(J, M)])
89121 }
90122 }
91123
92124
93-@Verifier(I)
94-func J () = if (sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey))
125+@Verifier(ab)
126+func ac () = if (sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey))
95127 then {
96- let g = I
97- if ($isInstanceOf(g, "SetScriptTransaction"))
128+ let t = ab
129+ if ($isInstanceOf(t, "SetScriptTransaction"))
98130 then {
99- let K = g
131+ let ad = t
100132 true
101133 }
102134 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HSP9V7edVKjfLJUfRkEF6vfV9Tyz4Us4yqH9rkwqnHY'
55
66 let b = 21
77
88 let c = "APP_GAME_ID"
99
10-let d = "error_only_waves_accepted"
10+let d = "AMOUNT"
1111
12-func e () = {
13- let f = {
14- let g = getInteger(this, c)
15- if ($isInstanceOf(g, "Int"))
12+let e = "SECTION"
13+
14+let f = "STATUS"
15+
16+let g = "NEW"
17+
18+let h = "error_only_waves_accepted"
19+
20+let i = "Parameter size must be greater than 0"
21+
22+let j = "Parameter size must be less than 100"
23+
24+let k = "Bet amount must be in Waves"
25+
26+let l = "Transaction's fee must be in Waves"
27+
28+let m = "Passed txId had been used before. Game aborted."
29+
30+func n (o,p,q) = DataEntry(((o + "_") + p), q)
31+
32+
33+func r () = {
34+ let s = {
35+ let t = getInteger(this, c)
36+ if ($isInstanceOf(t, "Int"))
1637 then {
17- let h = g
18- h
38+ let u = t
39+ u
1940 }
2041 else 0
2142 }
22- (f + 1)
43+ (s + 1)
2344 }
2445
2546
26-@Callable(i)
27-func GenerateRandInt (j,k) = {
28- let l = sigVerify(fromBase58String(j), fromBase58String(k), a)
29- if (l)
47+@Callable(v)
48+func GenerateRandInt (w,x) = {
49+ let y = sigVerify(fromBase58String(w), fromBase58String(x), a)
50+ if (y)
3051 then {
31- let m = (toInt(sha256(toBytes(k))) % b)
32- WriteSet([DataEntry("orig", toInt(sha256(toBytes(k)))), DataEntry("rand", m)])
52+ let z = (toInt(sha256(toBytes(x))) % b)
53+ WriteSet([DataEntry("orig", toInt(sha256(toBytes(x)))), DataEntry("rand", z)])
3354 }
3455 else throw("Invalid RSA signature")
3556 }
3657
3758
3859
39-@Callable(i)
40-func bet (n) = {
41- let o = e()
42- let j = toBase58String(i.transactionId)
43- let p = extract(i.payment)
44- WriteSet([DataEntry("orig", ""), DataEntry("rand", "")])
60+@Callable(v)
61+func bet (A) = {
62+ let B = r()
63+ let C = toBase58String(v.transactionId)
64+ let D = toBase58String(v.caller.bytes)
65+ let E = extract(v.payment)
66+ let F = isDefined(getString(this, C))
67+ let G = isDefined(E.assetId)
68+ let H = isDefined(E.assetId)
69+ let I = E.amount
70+ if (G)
71+ then throw(k)
72+ else if (H)
73+ then throw(l)
74+ else if (F)
75+ then throw(m)
76+ else WriteSet([DataEntry(C, D), DataEntry(c, toString(B)), n(C, d, toString(I)), n(C, e, toString(A)), n(C, f, g)])
4577 }
4678
4779
4880
49-@Callable(i)
50-func bet111 (n) = {
51- let q = "last_auction_id"
52- let r = {
53- let g = getInteger(this, q)
54- if ($isInstanceOf(g, "Int"))
81+@Callable(v)
82+func bet111 (A) = {
83+ let J = "last_auction_id"
84+ let K = {
85+ let t = getInteger(this, J)
86+ if ($isInstanceOf(t, "Int"))
5587 then {
56- let s = g
57- s
88+ let L = t
89+ L
5890 }
5991 else 0
6092 }
61- let t = (r + 1)
62- let u = toString(t)
63- let v = toBase58String(i.caller.bytes)
64- let p = value(i.payment)
65- if (isDefined(p.assetId))
66- then throw(d)
93+ let M = (K + 1)
94+ let N = toString(M)
95+ let O = toBase58String(v.caller.bytes)
96+ let E = value(v.payment)
97+ if (isDefined(E.assetId))
98+ then throw(h)
6799 else {
68- let w = toBase58String(value(p.assetId))
69- let x = (("auction_" + u) + "_duration")
70- let y = (("auction_" + u) + "_min_bid")
71- let z = (("auction_" + u) + "_last_bid")
72- let A = (("auction_" + u) + "_last_bid_owner")
73- let B = (("auction_" + u) + "_owner")
74- let C = (("auction_" + u) + "_amount")
75- let D = (("auction_" + u) + "_asset_id")
76- let E = (("auction_" + u) + "_is_active")
77- let F = ((("balance_" + v) + "_") + w)
78- let G = {
79- let g = getInteger(this, F)
80- if ($isInstanceOf(g, "Int"))
100+ let P = toBase58String(value(E.assetId))
101+ let Q = (("auction_" + N) + "_duration")
102+ let R = (("auction_" + N) + "_min_bid")
103+ let S = (("auction_" + N) + "_last_bid")
104+ let T = (("auction_" + N) + "_last_bid_owner")
105+ let U = (("auction_" + N) + "_owner")
106+ let V = (("auction_" + N) + "_amount")
107+ let W = (("auction_" + N) + "_asset_id")
108+ let X = (("auction_" + N) + "_is_active")
109+ let Y = ((("balance_" + O) + "_") + P)
110+ let Z = {
111+ let t = getInteger(this, Y)
112+ if ($isInstanceOf(t, "Int"))
81113 then {
82- let s = g
83- s
114+ let L = t
115+ L
84116 }
85117 else 0
86118 }
87- let H = (G + p.amount)
88- WriteSet([DataEntry(z, 0), DataEntry(B, v), DataEntry(C, p.amount), DataEntry(D, w), DataEntry(F, H), DataEntry(E, true), DataEntry(A, ""), DataEntry(q, t)])
119+ let aa = (Z + E.amount)
120+ WriteSet([DataEntry(S, 0), DataEntry(U, O), DataEntry(V, E.amount), DataEntry(W, P), DataEntry(Y, aa), DataEntry(X, true), DataEntry(T, ""), DataEntry(J, M)])
89121 }
90122 }
91123
92124
93-@Verifier(I)
94-func J () = if (sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey))
125+@Verifier(ab)
126+func ac () = if (sigVerify(ab.bodyBytes, ab.proofs[0], ab.senderPublicKey))
95127 then {
96- let g = I
97- if ($isInstanceOf(g, "SetScriptTransaction"))
128+ let t = ab
129+ if ($isInstanceOf(t, "SetScriptTransaction"))
98130 then {
99- let K = g
131+ let ad = t
100132 true
101133 }
102134 else false
103135 }
104136 else false
105137

github/deemru/w8io/169f3d6 
181.72 ms