tx · DBoibHSauK7HCqAZCnJf4igFtEdWzinSrSt7FAjbkQ9

3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs:  -0.01400000 Waves

2019.09.07 15:35 [665656] smart account 3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs > SELF 0.00000000 Waves

{ "type": 13, "id": "DBoibHSauK7HCqAZCnJf4igFtEdWzinSrSt7FAjbkQ9", "fee": 1400000, "feeAssetId": null, "timestamp": 1567859755038, "version": 1, "sender": "3N2Z6EjzrzaCpD8ypDYLWDKe2PPVU8y9dJs", "senderPublicKey": "HSTmdhPrJF81ozDBaqVn8QVtV76oD7gzDfcHPQRdxdwW", "proofs": [ "CYATda9bAK1j5t2hithbj3b7VVfBrbwX97uT9yenVtekRAeKsKAfLb9Gh1oWUgwTFVezbwxJgqW6Lftx2cbFZjQ" ], "script": "base64:AAIDAAAAAAAAAAAAAAANAAAAAAlXaW5TZXJ2ZXIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM045WG55UHBXeFlvaEtIN3o1ZEV1cThycG5vYnB5elByekUAAAAAB1dBVkVMRVQJAABoAAAAAgkAAGgAAAACAAAAAAAAAABkAAAAAAAAAAPoAAAAAAAAAAPoAAAAAApDT01NSVNTSU9OCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAHV0FWRUxFVAAAAAAAAAAD6AAAAAAOVGlja2V0c1BlcldhdmUAAAAAAAAAAGQAAAAAC0NVUlJFTlRHQU1FAgAAAA0kQ1VSUkVOVF9HQU1FAAAAAA9HQU1FU0NPVU5URVJLRVkCAAAACSRHQU1FX05VTQAAAAAKTEFTVFRJQ0tFVAIAAAAMJExBU1RfVElDS0VUAQAAAA5nZXRQbGF5ZXJzTGlzdAAAAAIAAAAGZ2FtZUlkAAAADWN1cnJlbnRQbGF5ZXIEAAAAEHBsYXllcnNQcmVzZW50ZWQJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAA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UlkBQAAABBwbGF5ZXJBZGRyZXNzU3RyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAApMQVNUVElDS0VUCQEAAAANZ2V0TGFzdFRpY2tldAAAAAEIBQAAAANwbXQAAAAGYW1vdW50BQAAAANuaWwEAAAAC3RvV2luU2VydmVyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAACVdpblNlcnZlcggFAAAAA3BtdAAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEFAAAAB2JldERhdGEJAQAAAAtUcmFuc2ZlclNldAAAAAEFAAAAC3RvV2luU2VydmVyAAAAAKupMGE=", "chainId": 84, "height": 665656, "spentComplexity": 0 } View: original | compacted Prev: AVLttHkisLVeoL8fufv1bjmXiFcWnQyPL2ELJooyTAYg Next: 8b1BJtEMgpZip6FxXTscqCWGKbhNgvFnJ9p8xfvbh9vi Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ((100 * 1000) * 1000)
4+let a = addressFromStringValue("3N9XnyPpWxYohKH7z5dEuq8rpnobpyzPrzE")
55
6-let b = ((5 * a) / 1000)
6+let b = ((100 * 1000) * 1000)
77
8-let c = 100
8+let c = ((5 * b) / 1000)
99
10-let d = "$CURRENT_GAME"
10+let d = 100
1111
12-let e = "$GAME_NUM"
12+let e = "$CURRENT_GAME"
1313
14-let f = "$LAST_TICKET"
14+let f = "$GAME_NUM"
1515
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)
16+let g = "$LAST_TICKET"
17+
18+func h (i,j) = {
19+ let k = isDefined(getString(this, (i + "_players")))
20+ if (!(k))
21+ then j
22+ else if (isDefined(getString(this, (((i + "_") + j) + "_tickets"))))
23+ then getStringValue(this, (i + "_players"))
24+ else ((getStringValue(this, (i + "_players")) + "_") + j)
2325 }
2426
2527
26-func k (l) = {
27- let m = size(l)
28- if ((m == 0))
28+func l (m) = {
29+ let n = size(m)
30+ if ((n == 0))
2931 then throw("Parameter size must be greater then 0")
30- else if ((m > 99))
32+ else if ((n > 99))
3133 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)
34+ else if ((10 > n))
35+ then (("0" + toString(n)) + m)
36+ else (toString(n) + m)
3537 }
3638
3739
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)
40+func o (i,p,q) = {
41+ let r = getIntegerValue(this, g)
42+ let s = (q / b)
43+ let t = (r + 1)
44+ let u = (t + (s * d))
45+ let v = ((l(toString(t)) + "_") + l(toString(u)))
46+ let w = isDefined(getString(this, (((i + "_") + p) + "_tickets")))
47+ if (w)
4648 then {
47- let w = getStringValue(this, (((h + "_") + o) + "_tickets"))
48- ((w + " ") + u)
49+ let x = getStringValue(this, (((i + "_") + p) + "_tickets"))
50+ ((x + " ") + v)
4951 }
50- else u
52+ else v
5153 }
5254
5355
54-func x (p) = {
55- let q = getIntegerValue(this, f)
56- let r = (p / a)
57- (q + (r * c))
56+func y (q) = {
57+ let r = getIntegerValue(this, g)
58+ let s = (q / b)
59+ (r + (s * d))
5860 }
5961
6062
61-func y (h,z) = if ((h == z))
63+func z (i,A) = if ((i == A))
6264 then {
63- let A = {
64- let B = getInteger(this, e)
65- if ($isInstanceOf(B, "Int"))
65+ let B = {
66+ let C = getInteger(this, f)
67+ if ($isInstanceOf(C, "Int"))
6668 then {
67- let C = B
68- C
69+ let D = C
70+ D
6971 }
7072 else 0
7173 }
72- toString((A + 1))
74+ toString((B + 1))
7375 }
74- else toString(getIntegerValue(this, e))
76+ else toString(getIntegerValue(this, f))
7577
7678
77-func D (z) = {
78- let h = getStringValue(this, d)
79- let E = isDefined(getString(this, (h + "_result")))
80- if (E)
81- then h
82- else z
79+func E (A) = {
80+ let i = getStringValue(this, e)
81+ let F = isDefined(getString(this, (i + "_result")))
82+ if (F)
83+ then i
84+ else A
8385 }
8486
8587
86-@Callable(F)
88+@Callable(G)
8789 func bet () = {
88- let z = toBase58String(F.transactionId)
89- let h = D(z)
90- let A = y(h, z)
91- let G = extract(F.payment)
92- let H = isDefined(G.assetId)
93- let I = isDefined(G.assetId)
94- let J = toBase58String(F.callerPublicKey)
95- let K = addressFromPublicKey(fromBase58String(J))
96- if (H)
90+ let A = toBase58String(G.transactionId)
91+ let i = E(A)
92+ let B = z(i, A)
93+ let H = extract(G.payment)
94+ let I = isDefined(H.assetId)
95+ let J = isDefined(H.assetId)
96+ let K = toBase58String(G.callerPublicKey)
97+ let L = addressFromPublicKey(fromBase58String(K))
98+ if (I)
9799 then throw("Bet amount must be in Waves")
98- else if (I)
100+ else if (J)
99101 then throw("Transaction's fee must be in Waves")
100102 else {
101- let o = toString(K)
102- let L = [DataEntry(d, h), DataEntry(e, A), DataEntry((((h + "_") + o) + "_tickets"), n(h, o, G.amount)), DataEntry((h + "_players"), g(h, o)), DataEntry(f, x(G.amount))]
103- WriteSet(L)
103+ let p = toString(L)
104+ let M = [DataEntry(e, i), DataEntry(f, B), DataEntry((((i + "_") + p) + "_tickets"), o(i, p, H.amount)), DataEntry((i + "_players"), h(i, p)), DataEntry(g, y(H.amount))]
105+ let N = [ScriptTransfer(a, H.amount, unit)]
106+ ScriptResult(WriteSet(M), TransferSet(N))
104107 }
105108 }
106109
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ((100 * 1000) * 1000)
4+let a = addressFromStringValue("3N9XnyPpWxYohKH7z5dEuq8rpnobpyzPrzE")
55
6-let b = ((5 * a) / 1000)
6+let b = ((100 * 1000) * 1000)
77
8-let c = 100
8+let c = ((5 * b) / 1000)
99
10-let d = "$CURRENT_GAME"
10+let d = 100
1111
12-let e = "$GAME_NUM"
12+let e = "$CURRENT_GAME"
1313
14-let f = "$LAST_TICKET"
14+let f = "$GAME_NUM"
1515
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)
16+let g = "$LAST_TICKET"
17+
18+func h (i,j) = {
19+ let k = isDefined(getString(this, (i + "_players")))
20+ if (!(k))
21+ then j
22+ else if (isDefined(getString(this, (((i + "_") + j) + "_tickets"))))
23+ then getStringValue(this, (i + "_players"))
24+ else ((getStringValue(this, (i + "_players")) + "_") + j)
2325 }
2426
2527
26-func k (l) = {
27- let m = size(l)
28- if ((m == 0))
28+func l (m) = {
29+ let n = size(m)
30+ if ((n == 0))
2931 then throw("Parameter size must be greater then 0")
30- else if ((m > 99))
32+ else if ((n > 99))
3133 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)
34+ else if ((10 > n))
35+ then (("0" + toString(n)) + m)
36+ else (toString(n) + m)
3537 }
3638
3739
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)
40+func o (i,p,q) = {
41+ let r = getIntegerValue(this, g)
42+ let s = (q / b)
43+ let t = (r + 1)
44+ let u = (t + (s * d))
45+ let v = ((l(toString(t)) + "_") + l(toString(u)))
46+ let w = isDefined(getString(this, (((i + "_") + p) + "_tickets")))
47+ if (w)
4648 then {
47- let w = getStringValue(this, (((h + "_") + o) + "_tickets"))
48- ((w + " ") + u)
49+ let x = getStringValue(this, (((i + "_") + p) + "_tickets"))
50+ ((x + " ") + v)
4951 }
50- else u
52+ else v
5153 }
5254
5355
54-func x (p) = {
55- let q = getIntegerValue(this, f)
56- let r = (p / a)
57- (q + (r * c))
56+func y (q) = {
57+ let r = getIntegerValue(this, g)
58+ let s = (q / b)
59+ (r + (s * d))
5860 }
5961
6062
61-func y (h,z) = if ((h == z))
63+func z (i,A) = if ((i == A))
6264 then {
63- let A = {
64- let B = getInteger(this, e)
65- if ($isInstanceOf(B, "Int"))
65+ let B = {
66+ let C = getInteger(this, f)
67+ if ($isInstanceOf(C, "Int"))
6668 then {
67- let C = B
68- C
69+ let D = C
70+ D
6971 }
7072 else 0
7173 }
72- toString((A + 1))
74+ toString((B + 1))
7375 }
74- else toString(getIntegerValue(this, e))
76+ else toString(getIntegerValue(this, f))
7577
7678
77-func D (z) = {
78- let h = getStringValue(this, d)
79- let E = isDefined(getString(this, (h + "_result")))
80- if (E)
81- then h
82- else z
79+func E (A) = {
80+ let i = getStringValue(this, e)
81+ let F = isDefined(getString(this, (i + "_result")))
82+ if (F)
83+ then i
84+ else A
8385 }
8486
8587
86-@Callable(F)
88+@Callable(G)
8789 func bet () = {
88- let z = toBase58String(F.transactionId)
89- let h = D(z)
90- let A = y(h, z)
91- let G = extract(F.payment)
92- let H = isDefined(G.assetId)
93- let I = isDefined(G.assetId)
94- let J = toBase58String(F.callerPublicKey)
95- let K = addressFromPublicKey(fromBase58String(J))
96- if (H)
90+ let A = toBase58String(G.transactionId)
91+ let i = E(A)
92+ let B = z(i, A)
93+ let H = extract(G.payment)
94+ let I = isDefined(H.assetId)
95+ let J = isDefined(H.assetId)
96+ let K = toBase58String(G.callerPublicKey)
97+ let L = addressFromPublicKey(fromBase58String(K))
98+ if (I)
9799 then throw("Bet amount must be in Waves")
98- else if (I)
100+ else if (J)
99101 then throw("Transaction's fee must be in Waves")
100102 else {
101- let o = toString(K)
102- let L = [DataEntry(d, h), DataEntry(e, A), DataEntry((((h + "_") + o) + "_tickets"), n(h, o, G.amount)), DataEntry((h + "_players"), g(h, o)), DataEntry(f, x(G.amount))]
103- WriteSet(L)
103+ let p = toString(L)
104+ let M = [DataEntry(e, i), DataEntry(f, B), DataEntry((((i + "_") + p) + "_tickets"), o(i, p, H.amount)), DataEntry((i + "_players"), h(i, p)), DataEntry(g, y(H.amount))]
105+ let N = [ScriptTransfer(a, H.amount, unit)]
106+ ScriptResult(WriteSet(M), TransferSet(N))
104107 }
105108 }
106109
107110

github/deemru/w8io/026f985 
56.47 ms