tx · 5LHCoHZy3LwanTubA5khGB5cQcsit3mJkevfYXFXsFAg
3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC: -0.04000000 Waves
2019.12.29 12:21 [830163] smart account 3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC > SELF 0.00000000 Waves
{
"type": 13,
"id": "5LHCoHZy3LwanTubA5khGB5cQcsit3mJkevfYXFXsFAg",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1577611373036,
"version": 1,
"sender": "3MxwtQTF1cHZBzHdVMmfdeeTJAoF58usNzC",
"senderPublicKey": "AtB1c3RaAbi5bMXf4twdpm182Pcj5tgADufjhfxjt5YP",
"proofs": [
"3gJkTwUAGwGAKA4kbAvGBeufeo6rgdkSdEjPGF69Hwq8gdFtow2BUPifNhc4hnM7PN3dAR2H6V2k1hy2EpcM2sgW"
],
"script": "base64:AAIDAAAAAAAAAA0IARIECgIBCBIDCgEBAAAABwAAAAALb3duZXJQdWJLZXkBAAAAIJLVH1aKS7GiLdMgBtKumrDgMoaT5BFPrNSzSjm7iLMkAAAAAAhsdmwxUmF0ZQAAAAAAAAAADAAAAAAIbHZsMlJhdGUAAAAAAAAAAA4AAAAACGx2bDNSYXRlAAAAAAAAAAAQAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAABHJhbmQJAABqAAAAAgkABLEAAAABCQAB9wAAAAEJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAggFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AAAAAAAAAAAEAwkAAGYAAAACAAAAAAAAAAAABQAAAARyYW5kCQAAZAAAAAIJAABoAAAAAgD//////////wUAAAA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AAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgeFXMOG",
"chainId": 84,
"height": 830163,
"spentComplexity": 0
}
View: original | compacted
Prev: ADNkzFtqETK4HxEUCFSA6oNyMhtTNzzADAHd7ELHFvSW
Next: none
Diff:
Old | New | | Differences |
---|
44 | 44 | | func start (q,r) = { |
---|
45 | 45 | | let s = addressFromPublicKey(f.callerPublicKey) |
---|
46 | 46 | | let t = toBase58String(f.transactionId) |
---|
47 | | - | let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + toString(r)) |
---|
| 47 | + | let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + r) |
---|
48 | 48 | | WriteSet([DataEntry(t, j)]) |
---|
49 | 49 | | } |
---|
50 | 50 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'AtB1c3RaAbi5bMXf4twdpm182Pcj5tgADufjhfxjt5YP' |
---|
5 | 5 | | |
---|
6 | 6 | | let b = 12 |
---|
7 | 7 | | |
---|
8 | 8 | | let c = 14 |
---|
9 | 9 | | |
---|
10 | 10 | | let d = 16 |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f) = { |
---|
13 | 13 | | let g = (toInt(sha256(((((f.transactionId + f.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))) % 4) |
---|
14 | 14 | | if ((0 > g)) |
---|
15 | 15 | | then ((-1 * g) + 1) |
---|
16 | 16 | | else (g + 1) |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func h (i) = { |
---|
21 | 21 | | let j = { |
---|
22 | 22 | | let k = getString(this, i) |
---|
23 | 23 | | if ($isInstanceOf(k, "String")) |
---|
24 | 24 | | then { |
---|
25 | 25 | | let l = k |
---|
26 | 26 | | l |
---|
27 | 27 | | } |
---|
28 | 28 | | else throw(("Couldn't find game by " + i)) |
---|
29 | 29 | | } |
---|
30 | 30 | | split(j, "_") |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | func m (n,o) = { |
---|
35 | 35 | | let g = e(n) |
---|
36 | 36 | | let p = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP") |
---|
37 | 37 | | if ((g == o)) |
---|
38 | 38 | | then (((((((p[0] + "_") + p[1]) + "_") + p[2]) + ":") + toString(o)) + ":") |
---|
39 | 39 | | else ((((p[0] + "_") + p[1]) + "") + p[2]) |
---|
40 | 40 | | } |
---|
41 | 41 | | |
---|
42 | 42 | | |
---|
43 | 43 | | @Callable(f) |
---|
44 | 44 | | func start (q,r) = { |
---|
45 | 45 | | let s = addressFromPublicKey(f.callerPublicKey) |
---|
46 | 46 | | let t = toBase58String(f.transactionId) |
---|
47 | | - | let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + toString(r)) |
---|
| 47 | + | let j = ((((toBase58String(f.callerPublicKey) + "_") + toString(q)) + "_") + r) |
---|
48 | 48 | | WriteSet([DataEntry(t, j)]) |
---|
49 | 49 | | } |
---|
50 | 50 | | |
---|
51 | 51 | | |
---|
52 | 52 | | |
---|
53 | 53 | | @Callable(f) |
---|
54 | 54 | | func choice (u) = { |
---|
55 | 55 | | let v = h("F63eyYX6NmXE3fgdYLyiFo8KLBzdxDesFRK2zYSP4CMP") |
---|
56 | 56 | | WriteSet([DataEntry(toString(f.caller), toString(u))]) |
---|
57 | 57 | | } |
---|
58 | 58 | | |
---|
59 | 59 | | |
---|
60 | 60 | | @Verifier(w) |
---|
61 | 61 | | func x () = { |
---|
62 | 62 | | let k = w |
---|
63 | 63 | | if ($isInstanceOf(k, "SetScriptTransaction")) |
---|
64 | 64 | | then { |
---|
65 | 65 | | let y = k |
---|
66 | 66 | | sigVerify(w.bodyBytes, w.proofs[0], a) |
---|
67 | 67 | | } |
---|
68 | 68 | | else if ($isInstanceOf(k, "InvokeScriptTransaction")) |
---|
69 | 69 | | then { |
---|
70 | 70 | | let o = k |
---|
71 | 71 | | true |
---|
72 | 72 | | } |
---|
73 | 73 | | else if ($isInstanceOf(k, "DataTransaction")) |
---|
74 | 74 | | then { |
---|
75 | 75 | | let z = k |
---|
76 | 76 | | true |
---|
77 | 77 | | } |
---|
78 | 78 | | else false |
---|
79 | 79 | | } |
---|
80 | 80 | | |
---|