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