tx · 5tHV3wuijJHDsAixUxdf6yqZMs5kA1eFjWPLFtVoUUM3 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT: -0.01400000 Waves 2019.06.23 18:13 [554856] smart account 3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT > SELF 0.00000000 Waves
{ "type": 13, "id": "5tHV3wuijJHDsAixUxdf6yqZMs5kA1eFjWPLFtVoUUM3", "fee": 1400000, "feeAssetId": null, "timestamp": 1561302868689, "version": 1, "sender": "3N8M61KCm8G72mK8PjacFbnnxdbFsyqQDeT", "senderPublicKey": "Bhyvkx4xdbEi4KPJNZSzx9gZgzgyLEsavuj2kYSt7SST", "proofs": [ "3DbSFZ9URWCz8dRgWFhyBBxPJG88NBstsZwuBii2f3W1a9cfWNysa7amkj1YMP9rRk1U16Ufy2XMWK3WN1F2W5KE" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAA9TZXJ2ZXJQdWJsaWNLZXkBAAAAIAQ1/gW4L6VUuKyMox3deX07Tu0dL8x1obg+vYqfUuwTAAAAABBSb3VsZXR0ZVNlY3Rpb25zAAAAAAAAAAAVAAAAAA1EYXRhR2FtZUlkS2V5AgAAAAtBUFBfR0FNRV9JRAAAAAAWRXJyb3JPbmx5V2F2ZXNBY2NlcHRlZAIAAAAZZXJyb3Jfb25seV93YXZlc19hY2NlcHRlZAEAAAAJTmV3R2FtZUlkAAAAAAQAAAAHZ2FtZU51bQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAA1EYXRhR2FtZUlkS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAA251bQUAAAAHJG1hdGNoMAUAAAADbnVtAAAAAAAAAAAACQAAZAAAAAIFAAAAB2dhbWVOdW0AAAAAAAAAAAEAAAADAAAAAWkBAAAAD0dlbmVyYXRlUmFuZEludAAAAAIAAAAGZ2FtZUlkAAAAB3JzYVNpZ24EAAAAC3JzYVNpZ1ZhbGlkCQAB9AAAAAM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cnkAAAACBQAAABZhdWN0aW9uTGFzdEJpZE93bmVyS2V5AgAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAEGxhc3RBdWN0aW9uSWRLZXkFAAAAAmlkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHhh+/4Q==", "chainId": 84, "height": 554856, "spentComplexity": 0 } View: original | compacted Prev: HpPrfjz2L5zZGPnf32hwtTd8qAKEZ8PYYpMPw2UXytSR Next: EGiRnhZ2zb6ppaNAcbGuqtdcXPPQGh8Edt8NcUDywvB6 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'HSP9V7edVKjfLJUfRkEF6vfV9Tyz4Us4yqH9rkwqnHY' | |
5 | 5 | ||
6 | 6 | let b = 21 | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'HSP9V7edVKjfLJUfRkEF6vfV9Tyz4Us4yqH9rkwqnHY' | |
5 | 5 | ||
6 | 6 | let b = 21 | |
7 | 7 | ||
8 | 8 | let c = "APP_GAME_ID" | |
9 | 9 | ||
10 | 10 | let d = "error_only_waves_accepted" | |
11 | 11 | ||
12 | 12 | func e () = { | |
13 | 13 | let f = { | |
14 | 14 | let g = getInteger(this, c) | |
15 | 15 | if ($isInstanceOf(g, "Int")) | |
16 | 16 | then { | |
17 | 17 | let h = g | |
18 | 18 | h | |
19 | 19 | } | |
20 | 20 | else 0 | |
21 | 21 | } | |
22 | 22 | (f + 1) | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func GenerateRandInt (j,k) = { | |
28 | 28 | let l = sigVerify(fromBase58String(j), fromBase58String(k), a) | |
29 | 29 | if (l) | |
30 | 30 | then { | |
31 | 31 | let m = (toInt(sha256(toBytes(k))) % b) | |
32 | 32 | WriteSet([DataEntry("orig", toInt(sha256(toBytes(k)))), DataEntry("rand", m)]) | |
33 | 33 | } | |
34 | 34 | else throw("Invalid RSA signature") | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(i) | |
40 | 40 | func bet (n) = { | |
41 | 41 | let o = e() | |
42 | 42 | let j = toBase58String(i.transactionId) | |
43 | 43 | let p = extract(i.payment) | |
44 | 44 | WriteSet([DataEntry("orig", ""), DataEntry("rand", "")]) | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(i) | |
50 | 50 | func bet111 (n) = { | |
51 | 51 | let q = "last_auction_id" | |
52 | 52 | let r = { | |
53 | 53 | let g = getInteger(this, q) | |
54 | 54 | if ($isInstanceOf(g, "Int")) | |
55 | 55 | then { | |
56 | 56 | let s = g | |
57 | 57 | s | |
58 | 58 | } | |
59 | 59 | else 0 | |
60 | 60 | } | |
61 | 61 | let t = (r + 1) | |
62 | 62 | let u = toString(t) | |
63 | 63 | let v = toBase58String(i.caller.bytes) | |
64 | 64 | let p = value(i.payment) | |
65 | 65 | if (isDefined(p.assetId)) | |
66 | 66 | then throw(d) | |
67 | 67 | else { | |
68 | 68 | let w = toBase58String(value(p.assetId)) | |
69 | 69 | let x = (("auction_" + u) + "_duration") | |
70 | 70 | let y = (("auction_" + u) + "_min_bid") | |
71 | 71 | let z = (("auction_" + u) + "_last_bid") | |
72 | 72 | let A = (("auction_" + u) + "_last_bid_owner") | |
73 | 73 | let B = (("auction_" + u) + "_owner") | |
74 | 74 | let C = (("auction_" + u) + "_amount") | |
75 | 75 | let D = (("auction_" + u) + "_asset_id") | |
76 | 76 | let E = (("auction_" + u) + "_is_active") | |
77 | 77 | let F = ((("balance_" + v) + "_") + w) | |
78 | 78 | let G = { | |
79 | 79 | let g = getInteger(this, F) | |
80 | 80 | if ($isInstanceOf(g, "Int")) | |
81 | 81 | then { | |
82 | 82 | let s = g | |
83 | 83 | s | |
84 | 84 | } | |
85 | 85 | else 0 | |
86 | 86 | } | |
87 | 87 | let H = (G + p.amount) | |
88 | 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)]) | |
89 | 89 | } | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Verifier(I) | |
94 | 94 | func J () = if (sigVerify(I.bodyBytes, I.proofs[0], I.senderPublicKey)) | |
95 | 95 | then { | |
96 | 96 | let g = I | |
97 | 97 | if ($isInstanceOf(g, "SetScriptTransaction")) | |
98 | 98 | then { | |
99 | 99 | let K = g | |
100 | 100 | true | |
101 | 101 | } | |
102 | 102 | else false | |
103 | 103 | } | |
104 | 104 | else false | |
105 | 105 |
github/deemru/w8io/169f3d6 44.31 ms ◑