tx · 9pLz7eev4hTAbL6UederunZSrj6zHEg8pMaFjVMmHDXz

3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs:  -0.01400000 Waves

2019.09.07 03:55 [664963] smart account 3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs > SELF 0.00000000 Waves

{ "type": 13, "id": "9pLz7eev4hTAbL6UederunZSrj6zHEg8pMaFjVMmHDXz", "fee": 1400000, "feeAssetId": null, "timestamp": 1567817706403, "version": 1, "sender": "3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs", "senderPublicKey": "HSTmdhPrJF81ozDBaqVn8QVtV76oD7gzDfcHPQRdxdwW", "proofs": [ "4fJFttL4imVj811i7fgqk9knB9qiTTaP3H11w54m4j64qhYNvx5CmgFQn8vfZfCfk5872qjGBoUdZC1CPdJsxuwV" ], "script": "base64:AAIDAAAAAAAAAAAAAAALAAAAAAdXQVZFTEVUCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAZAAAAAAAAAAD6AAAAAAAAAAD6AAAAAAKQ09NTUlTU0lPTgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAAAUFAAAAB1dBVkVMRVQAAAAAAAAAA+gAAAAADlRpY2tldHNQZXJXYXZlAAAAAAAAAABkAAAAAAtDVVJSRU5UR0FNRQIAAAANJENVUlJFTlRfR0FNRQAAAAAPR0FNRVNDT1VOVEVSS0VZAgAAAAkkR0FNRV9OVU0AAAAACkxBU1RUSUNLRVQCAAAADCRMQVNUX1RJQ0tFVAEAAAAOZ2V0UGxheWVyc0xpc3QAAAACAAAABmdhbWVJZAAAAA1jdXJyZW50UGxheWVyBAAAABBwbGF5ZXJzUHJlc2VudGVkCQEAAAAJaXNEZWZpbmVkAAAAAQkABB0AAAACBQAAAAR0aGlzCQABLAAAAAIFAAAABmdhbWVJZAIAAAAIX3BsYXllcnMDCQEAAAABIQAAAAEFAAAAEHBsYXllcnNQcmVzZW50ZWQFAAAADWN1cnJlbnRQbGF5ZXIDC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MJAAACAAAAAQIAAAAiVHJhbnNhY3Rpb24ncyBmZWUgbXVzdCBiZSBpbiBXYXZlcwQAAAAQcGxheWVyQWRkcmVzc1N0cgkABCUAAAABBQAAAA1wbGF5ZXJBZGRyZXNzBAAAAAdiZXREYXRhCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAtDVVJSRU5UR0FNRQUAAAAGZ2FtZUlkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA9HQU1FU0NPVU5URVJLRVkFAAAAB2dhbWVOdW0JAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABmdhbWVJZAIAAAABXwUAAAAQcGxheWVyQWRkcmVzc1N0cgIAAAAIX3RpY2tldHMJAQAAAApnZXRUaWNrZXRzAAAAAwUAAAAGZ2FtZUlkBQAAABBwbGF5ZXJBZGRyZXNzU3RyCAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAZnYW1lSWQCAAAACF9wbGF5ZXJzCQEAAAAOZ2V0UGxheWVyc0xpc3QAAAACBQAAAAZnYW1lSWQFAAAAEHBsYXllckFkZHJlc3NTdHIFAAAAA25pbAkBAAAACFdyaXRlU2V0AAAAAQUAAAAHYmV0RGF0YQAAAACHZ1/t", "chainId": 84, "height": 664963, "spentComplexity": 0 } View: original | compacted Prev: 9pAnbzNCLGuURtfJX6wFQU47v6Pp24hYbU1EtHRbohjw Next: JBR3Ab46RRb7MWoEStof8mBaJAqHDJVY17wDZYUkWCwK Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = fromBase58String("7im9caiCmE4SL6jTm4KTicHH4bGPf5v59rnfUA3cCRDj")
4+let a = ((100 * 1000) * 1000)
55
6-let b = ((100 * 1000) * 1000)
6+let b = ((5 * a) / 1000)
77
8-let c = ((5 * b) / 1000)
8+let c = 100
99
10-let d = 100
10+let d = "$CURRENT_GAME"
1111
12-let e = "$CURRENT_GAME"
12+let e = "$GAME_NUM"
1313
14-let f = "$GAME_NUM"
14+let f = "$LAST_TICKET"
1515
16-let g = "$LAST_TICKET"
17-
18-func h (i,j) = {
19- let k = isDefined(getStringValue(this, (i + "_players")))
20- if (!(k))
21- then j
22- else if (isDefined(getStringValue(this, (((i + "_") + j) + "_tickets"))))
23- then getStringValue(this, (i + "_players"))
24- else ((getStringValue(this, (i + "_players")) + "_") + j)
16+func g (h,i) = {
17+ let j = isDefined(getString(this, (h + "_players")))
18+ if (!(j))
19+ then i
20+ else if (isDefined(getString(this, (((h + "_") + i) + "_tickets"))))
21+ then getStringValue(this, (h + "_players"))
22+ else ((getStringValue(this, (h + "_players")) + "_") + i)
2523 }
2624
2725
28-func l (m) = {
29- let n = getIntegerValue(this, g)
30- let o = (m / b)
31- let p = "011_03100__03101_03300__010_010__010_010__010_010"
32- p
26+func k (l) = {
27+ let m = size(l)
28+ if ((m == 0))
29+ then throw("Parameter size must be greater then 0")
30+ else if ((m > 99))
31+ then throw("Parameter size must be less then 100")
32+ else if ((10 > m))
33+ then (("0" + toString(m)) + l)
34+ else (toString(m) + l)
3335 }
3436
3537
36-func q (i,r) = if ((i == r))
38+func n (h,o,p) = {
39+ let q = getIntegerValue(this, f)
40+ let r = (p / a)
41+ let s = (q + 1)
42+ let t = (s + (r * c))
43+ let u = ((k(toString(s)) + "_") + k(toString(t)))
44+ let v = isDefined(getString(this, (((h + "_") + o) + "_tickets")))
45+ if (v)
46+ then {
47+ let w = getStringValue(this, (((h + "_") + o) + "_tickets"))
48+ ((w + " ") + u)
49+ }
50+ else u
51+ }
52+
53+
54+func x (h,y) = if ((h == y))
3755 then {
38- let s = {
39- let t = getInteger(this, f)
40- if ($isInstanceOf(t, "Int"))
56+ let z = {
57+ let A = getInteger(this, e)
58+ if ($isInstanceOf(A, "Int"))
4159 then {
42- let u = t
43- u
60+ let B = A
61+ B
4462 }
4563 else 0
4664 }
47- toString((s + 1))
65+ toString((z + 1))
4866 }
49- else toString(getIntegerValue(this, f))
67+ else toString(getIntegerValue(this, e))
5068
5169
52-func v (r) = {
53- let i = getStringValue(this, e)
54- let w = isDefined(getString(this, (i + "_result")))
55- if (w)
56- then i
57- else r
70+func C (y) = {
71+ let h = getStringValue(this, d)
72+ let D = isDefined(getString(this, (h + "_result")))
73+ if (D)
74+ then h
75+ else y
5876 }
5977
6078
61-@Callable(x)
79+@Callable(E)
6280 func bet () = {
63- let r = toBase58String(x.transactionId)
64- let i = v(r)
65- let s = q(i, r)
66- let y = extract(x.payment)
67- let z = isDefined(y.assetId)
68- let A = isDefined(y.assetId)
69- let B = toBase58String(x.callerPublicKey)
70- let C = addressFromPublicKey(fromBase58String(B))
71- if (z)
81+ let y = toBase58String(E.transactionId)
82+ let h = C(y)
83+ let z = x(h, y)
84+ let F = extract(E.payment)
85+ let G = isDefined(F.assetId)
86+ let H = isDefined(F.assetId)
87+ let I = toBase58String(E.callerPublicKey)
88+ let J = addressFromPublicKey(fromBase58String(I))
89+ if (G)
7290 then throw("Bet amount must be in Waves")
73- else if (A)
91+ else if (H)
7492 then throw("Transaction's fee must be in Waves")
7593 else {
76- let D = toString(C)
77- let E = [DataEntry(e, i), DataEntry(f, s), DataEntry((((i + "_") + D) + "_tickets"), l(y.amount)), DataEntry((i + "_players"), h(i, D))]
78- WriteSet(E)
94+ let o = toString(J)
95+ let K = [DataEntry(d, h), DataEntry(e, z), DataEntry((((h + "_") + o) + "_tickets"), n(h, o, F.amount)), DataEntry((h + "_players"), g(h, o))]
96+ WriteSet(K)
7997 }
8098 }
8199
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = fromBase58String("7im9caiCmE4SL6jTm4KTicHH4bGPf5v59rnfUA3cCRDj")
4+let a = ((100 * 1000) * 1000)
55
6-let b = ((100 * 1000) * 1000)
6+let b = ((5 * a) / 1000)
77
8-let c = ((5 * b) / 1000)
8+let c = 100
99
10-let d = 100
10+let d = "$CURRENT_GAME"
1111
12-let e = "$CURRENT_GAME"
12+let e = "$GAME_NUM"
1313
14-let f = "$GAME_NUM"
14+let f = "$LAST_TICKET"
1515
16-let g = "$LAST_TICKET"
17-
18-func h (i,j) = {
19- let k = isDefined(getStringValue(this, (i + "_players")))
20- if (!(k))
21- then j
22- else if (isDefined(getStringValue(this, (((i + "_") + j) + "_tickets"))))
23- then getStringValue(this, (i + "_players"))
24- else ((getStringValue(this, (i + "_players")) + "_") + j)
16+func g (h,i) = {
17+ let j = isDefined(getString(this, (h + "_players")))
18+ if (!(j))
19+ then i
20+ else if (isDefined(getString(this, (((h + "_") + i) + "_tickets"))))
21+ then getStringValue(this, (h + "_players"))
22+ else ((getStringValue(this, (h + "_players")) + "_") + i)
2523 }
2624
2725
28-func l (m) = {
29- let n = getIntegerValue(this, g)
30- let o = (m / b)
31- let p = "011_03100__03101_03300__010_010__010_010__010_010"
32- p
26+func k (l) = {
27+ let m = size(l)
28+ if ((m == 0))
29+ then throw("Parameter size must be greater then 0")
30+ else if ((m > 99))
31+ then throw("Parameter size must be less then 100")
32+ else if ((10 > m))
33+ then (("0" + toString(m)) + l)
34+ else (toString(m) + l)
3335 }
3436
3537
36-func q (i,r) = if ((i == r))
38+func n (h,o,p) = {
39+ let q = getIntegerValue(this, f)
40+ let r = (p / a)
41+ let s = (q + 1)
42+ let t = (s + (r * c))
43+ let u = ((k(toString(s)) + "_") + k(toString(t)))
44+ let v = isDefined(getString(this, (((h + "_") + o) + "_tickets")))
45+ if (v)
46+ then {
47+ let w = getStringValue(this, (((h + "_") + o) + "_tickets"))
48+ ((w + " ") + u)
49+ }
50+ else u
51+ }
52+
53+
54+func x (h,y) = if ((h == y))
3755 then {
38- let s = {
39- let t = getInteger(this, f)
40- if ($isInstanceOf(t, "Int"))
56+ let z = {
57+ let A = getInteger(this, e)
58+ if ($isInstanceOf(A, "Int"))
4159 then {
42- let u = t
43- u
60+ let B = A
61+ B
4462 }
4563 else 0
4664 }
47- toString((s + 1))
65+ toString((z + 1))
4866 }
49- else toString(getIntegerValue(this, f))
67+ else toString(getIntegerValue(this, e))
5068
5169
52-func v (r) = {
53- let i = getStringValue(this, e)
54- let w = isDefined(getString(this, (i + "_result")))
55- if (w)
56- then i
57- else r
70+func C (y) = {
71+ let h = getStringValue(this, d)
72+ let D = isDefined(getString(this, (h + "_result")))
73+ if (D)
74+ then h
75+ else y
5876 }
5977
6078
61-@Callable(x)
79+@Callable(E)
6280 func bet () = {
63- let r = toBase58String(x.transactionId)
64- let i = v(r)
65- let s = q(i, r)
66- let y = extract(x.payment)
67- let z = isDefined(y.assetId)
68- let A = isDefined(y.assetId)
69- let B = toBase58String(x.callerPublicKey)
70- let C = addressFromPublicKey(fromBase58String(B))
71- if (z)
81+ let y = toBase58String(E.transactionId)
82+ let h = C(y)
83+ let z = x(h, y)
84+ let F = extract(E.payment)
85+ let G = isDefined(F.assetId)
86+ let H = isDefined(F.assetId)
87+ let I = toBase58String(E.callerPublicKey)
88+ let J = addressFromPublicKey(fromBase58String(I))
89+ if (G)
7290 then throw("Bet amount must be in Waves")
73- else if (A)
91+ else if (H)
7492 then throw("Transaction's fee must be in Waves")
7593 else {
76- let D = toString(C)
77- let E = [DataEntry(e, i), DataEntry(f, s), DataEntry((((i + "_") + D) + "_tickets"), l(y.amount)), DataEntry((i + "_players"), h(i, D))]
78- WriteSet(E)
94+ let o = toString(J)
95+ let K = [DataEntry(d, h), DataEntry(e, z), DataEntry((((h + "_") + o) + "_tickets"), n(h, o, F.amount)), DataEntry((h + "_players"), g(h, o))]
96+ WriteSet(K)
7997 }
8098 }
8199
82100

github/deemru/w8io/026f985 
54.10 ms