tx · ADNkzFtqETK4HxEUCFSA6oNyMhtTNzzADAHd7ELHFvSW

3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC:  -0.04000000 Waves

2019.12.29 12:21 [830163] smart account 3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC > SELF 0.00000000 Waves

{ "type": 13, "id": "ADNkzFtqETK4HxEUCFSA6oNyMhtTNzzADAHd7ELHFvSW", "fee": 4000000, "feeAssetId": null, "timestamp": 1577611246172, "version": 1, "sender": "3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC", "senderPublicKey": "AtB1c3RaAbi5bMXf4twdpm182Pcj5tgADufjhfxjt5YP", "proofs": [ "63ZwD9p6NGEDYiRFqx46u7W6H9oZxMEx7cuUzPuw3oU1FFTMtgFJH3jD6k3aDV8HHB2ZLhCUbgQVCsVRybRAwhwp" ], "script": "base64:AAIDAAAAAAAAAA0IARIECgIBARIDCgEBAAAABwAAAAALb3duZXJQdWJLZXkBAAAAIJLVH1aKS7GiLdMgBtKumrDgMoaT5BFPrNSzSjm7iLMkAAAAAAhsdmwxUmF0ZQAAAAAAAAAADAAAAAAIbHZsMlJhdGUAAAAAAAAAAA4AAAAACGx2bDNSYXRlAAAAAAAAAAAQAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAABHJhbmQJAABqAAAAAgkABLEAAAABCQAB9wAAAAEJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAggFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AAAAAAAAAAAEAwkAAGYAAAACAAAAAAAAAAAABQAAAARyYW5kCQAAZAAAAAIJAABoAAAAAgD//////////wUAAAAEc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wkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB6n3SDY=", "chainId": 84, "height": 830163, "spentComplexity": 0 } View: original | compacted Prev: HpgiXGSmMeh1roErunGtudBRPM6cjxFVn5kB4WQyidDo Next: 5LHCoHZy3LwanTubA5khGB5cQcsit3mJkevfYXFXsFAg Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AtB1c3RaAbi5bMXf4twdpm182Pcj5tgADufjhfxjt5YP'
55
6-let b = 4
6+let b = 12
77
8-let c = 3
8+let c = 14
99
10-let d = 2
10+let d = 16
1111
12-let e = 12
13-
14-let f = 14
15-
16-let g = 16
17-
18-func h (i) = {
19- let j = (toInt(sha256(((((i.transactionId + i.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))) % 6)
20- if ((0 > j))
21- then ((-1 * j) + 1)
22- else (j + 1)
12+func e (f) = {
13+ let g = (toInt(sha256(((((f.transactionId + f.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))) % 4)
14+ if ((0 > g))
15+ then ((-1 * g) + 1)
16+ else (g + 1)
2317 }
2418
2519
26-@Callable(i)
27-func start (k) = {
28- let l = addressFromPublicKey(i.callerPublicKey)
29- let m = toBase58String(i.transactionId)
30- let n = ((toBase58String(i.callerPublicKey) + "_") + toString(k))
31- WriteSet([DataEntry(m, (n + "_0"))])
20+func h (i) = {
21+ let j = {
22+ let k = getString(this, i)
23+ if ($isInstanceOf(k, "String"))
24+ then {
25+ let l = k
26+ l
27+ }
28+ else throw(("Couldn't find game by " + i))
29+ }
30+ split(j, "_")
3231 }
3332
3433
35-@Verifier(o)
36-func p () = {
37- let q = o
38- if ($isInstanceOf(q, "SetScriptTransaction"))
34+func m (n,o) = {
35+ let g = e(n)
36+ let p = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP")
37+ if ((g == o))
38+ then (((((((p[0] + "_") + p[1]) + "_") + p[2]) + ":") + toString(o)) + ":")
39+ else ((((p[0] + "_") + p[1]) + "") + p[2])
40+ }
41+
42+
43+@Callable(f)
44+func start (q,r) = {
45+ let s = addressFromPublicKey(f.callerPublicKey)
46+ let t = toBase58String(f.transactionId)
47+ let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + toString(r))
48+ WriteSet([DataEntry(t, j)])
49+ }
50+
51+
52+
53+@Callable(f)
54+func choice (u) = {
55+ let v = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP")
56+ WriteSet([DataEntry(toString(f.caller), toString(u))])
57+ }
58+
59+
60+@Verifier(w)
61+func x () = {
62+ let k = w
63+ if ($isInstanceOf(k, "SetScriptTransaction"))
3964 then {
40- let r = q
41- sigVerify(o.bodyBytes, o.proofs[0], a)
65+ let y = k
66+ sigVerify(w.bodyBytes, w.proofs[0], a)
4267 }
43- else if ($isInstanceOf(q, "InvokeScriptTransaction"))
68+ else if ($isInstanceOf(k, "InvokeScriptTransaction"))
4469 then {
45- let s = q
70+ let o = k
4671 true
4772 }
48- else if ($isInstanceOf(q, "DataTransaction"))
73+ else if ($isInstanceOf(k, "DataTransaction"))
4974 then {
50- let t = q
75+ let z = k
5176 true
5277 }
5378 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'AtB1c3RaAbi5bMXf4twdpm182Pcj5tgADufjhfxjt5YP'
55
6-let b = 4
6+let b = 12
77
8-let c = 3
8+let c = 14
99
10-let d = 2
10+let d = 16
1111
12-let e = 12
13-
14-let f = 14
15-
16-let g = 16
17-
18-func h (i) = {
19- let j = (toInt(sha256(((((i.transactionId + i.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))) % 6)
20- if ((0 > j))
21- then ((-1 * j) + 1)
22- else (j + 1)
12+func e (f) = {
13+ let g = (toInt(sha256(((((f.transactionId + f.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))) % 4)
14+ if ((0 > g))
15+ then ((-1 * g) + 1)
16+ else (g + 1)
2317 }
2418
2519
26-@Callable(i)
27-func start (k) = {
28- let l = addressFromPublicKey(i.callerPublicKey)
29- let m = toBase58String(i.transactionId)
30- let n = ((toBase58String(i.callerPublicKey) + "_") + toString(k))
31- WriteSet([DataEntry(m, (n + "_0"))])
20+func h (i) = {
21+ let j = {
22+ let k = getString(this, i)
23+ if ($isInstanceOf(k, "String"))
24+ then {
25+ let l = k
26+ l
27+ }
28+ else throw(("Couldn't find game by " + i))
29+ }
30+ split(j, "_")
3231 }
3332
3433
35-@Verifier(o)
36-func p () = {
37- let q = o
38- if ($isInstanceOf(q, "SetScriptTransaction"))
34+func m (n,o) = {
35+ let g = e(n)
36+ let p = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP")
37+ if ((g == o))
38+ then (((((((p[0] + "_") + p[1]) + "_") + p[2]) + ":") + toString(o)) + ":")
39+ else ((((p[0] + "_") + p[1]) + "") + p[2])
40+ }
41+
42+
43+@Callable(f)
44+func start (q,r) = {
45+ let s = addressFromPublicKey(f.callerPublicKey)
46+ let t = toBase58String(f.transactionId)
47+ let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + toString(r))
48+ WriteSet([DataEntry(t, j)])
49+ }
50+
51+
52+
53+@Callable(f)
54+func choice (u) = {
55+ let v = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP")
56+ WriteSet([DataEntry(toString(f.caller), toString(u))])
57+ }
58+
59+
60+@Verifier(w)
61+func x () = {
62+ let k = w
63+ if ($isInstanceOf(k, "SetScriptTransaction"))
3964 then {
40- let r = q
41- sigVerify(o.bodyBytes, o.proofs[0], a)
65+ let y = k
66+ sigVerify(w.bodyBytes, w.proofs[0], a)
4267 }
43- else if ($isInstanceOf(q, "InvokeScriptTransaction"))
68+ else if ($isInstanceOf(k, "InvokeScriptTransaction"))
4469 then {
45- let s = q
70+ let o = k
4671 true
4772 }
48- else if ($isInstanceOf(q, "DataTransaction"))
73+ else if ($isInstanceOf(k, "DataTransaction"))
4974 then {
50- let t = q
75+ let z = k
5176 true
5277 }
5378 else false
5479 }
5580

github/deemru/w8io/026f985 
67.22 ms