tx · FTbJFGHsXz4rm2Z1CSjE9NwpKtSuq2FV4YhGFbTWjW1g 3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6: -0.01400000 Waves 2020.09.10 14:20 [1171148] smart account 3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6 > SELF 0.00000000 Waves
{ "type": 13, "id": "FTbJFGHsXz4rm2Z1CSjE9NwpKtSuq2FV4YhGFbTWjW1g", "fee": 1400000, "feeAssetId": null, "timestamp": 1599736836311, "version": 1, "sender": "3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6", "senderPublicKey": "8j6j7bNmpCteruuoKqKAsq5oFuacuU3rKg6UgCn7PeT", "proofs": [ "5cPy7A9QPiH32bmZZpsG3v1qir5kzaWNu6CuBrEX1VsTZkXVsW2pLxbAi3DTY1K4yaMvRPGGKGQMXcfx48iNDL2M" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAEAAAALAAAAAApNYXhDb25zdWxzAAAAAAAAAAAFAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AgAAAAABAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABdgUAAAAHJG1hdGNoMAUAAAABdgcAAAAAEUJmdENvZWZmaWNpZW50S2V5AgA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WducwAAAAAAAAAAAAkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAAACQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAABCQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAEJAQAAAAx2YWxpZGF0ZVNpZ24AAAADBQAAAANtc2cJAAGRAAAAAgUAAAAFc2lnbnMAAAAAAAAAAAIJAAGRAAAAAgUAAAAHY29uc3VscwAAAAAAAAAAAgkBAAAADHZhbGlkYXRlU2lnbgAAAAMFAAAAA21zZwkAAZEAAAACBQAAAAVzaWducwAAAAAAAAAAAwkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAADCQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAAECQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAQDCQAAZwAAAAIFAAAACWxhc3RSb3VuZAUAAAAFcm91bmQJAAACAAAAAQIAAAAVcm91bmQgbGVzcyBsYXN0IHJvdW5kAwkAAGYAAAACBQAAAA5iZnRDb2VmZmljaWVudAUAAAAFY291bnQJAAACAAAAAQIAAAARaW52YWxpZCBiZnQgY291bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAApDb25zdWxzS2V5AAAAAQUAAAAFcm91bmQFAAAACm5ld0NvbnN1bHMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADExhc3RSb3VuZEtleQUAAAAFcm91bmQFAAAAA25pbAAAAACdHM12", "chainId": 84, "height": 1171148, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B6pVG5dxn3XvKXae1LyuGcd5jY6k4p4BLBkLQQY3vZ6x Next: EfoKJQ5SshizVRQANBAknbvBUkb5TqApNNygrjwem6uf Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 5 | |
5 | 5 | ||
6 | 6 | func b (c) = { | |
7 | 7 | let d = getInteger(this, c) | |
8 | 8 | if ($isInstanceOf(d, "Int")) | |
9 | 9 | then { | |
10 | 10 | let e = d | |
11 | 11 | e | |
12 | 12 | } | |
13 | 13 | else 0 | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f (c) = { | |
18 | 18 | let d = getString(this, c) | |
19 | 19 | if ($isInstanceOf(d, "String")) | |
20 | 20 | then { | |
21 | 21 | let e = d | |
22 | 22 | e | |
23 | 23 | } | |
24 | 24 | else "" | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func g (c) = { | |
29 | 29 | let d = getBoolean(this, c) | |
30 | 30 | if ($isInstanceOf(d, "Boolean")) | |
31 | 31 | then { | |
32 | 32 | let e = d | |
33 | 33 | e | |
34 | 34 | } | |
35 | 35 | else false | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | let h = "bft_coefficient" | |
40 | 40 | ||
41 | 41 | let i = "last_round" | |
42 | 42 | ||
43 | 43 | func j (k) = ("consuls_" + toString(k)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | let l = b(h) | |
47 | 47 | ||
48 | 48 | let m = b(i) | |
49 | 49 | ||
50 | 50 | func n (k) = split(f(j(k)), ",") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func o (p,q,r) = if ((q != "nil")) | |
54 | 54 | then if (sigVerify(p, fromBase58String(q), fromBase58String(r))) | |
55 | 55 | then 1 | |
56 | 56 | else 0 | |
57 | 57 | else 0 | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(s) | |
61 | 61 | func updateConsuls (t,u,k) = { | |
62 | 62 | let v = n(m) | |
63 | 63 | let w = toBytes(((t + ",") + toString(k))) | |
64 | 64 | let x = split(u, ",") | |
65 | 65 | let y = ((((o(w, x[0], v[0]) + o(w, x[1], v[1])) + o(w, x[2], v[2])) + o(w, x[3], v[3])) + o(w, x[4], v[4])) | |
66 | 66 | if ((m >= k)) | |
67 | 67 | then throw("round less last round") | |
68 | 68 | else if ((l > y)) | |
69 | 69 | then throw("invalid bft count") | |
70 | 70 | else WriteSet([DataEntry(j(k), t), DataEntry(i, k)]) | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 |
github/deemru/w8io/026f985 20.55 ms ◑