tx · Cz2uiiaRUBv4hswsHp3994ohCCeZ2GDeVeuFV5G35tcC

3N1Ess2FjLbYhNN8EH2281Zig3iU7JFbgxS:  -0.01400000 Waves

2020.09.05 17:27 [1164203] smart account 3N1Ess2FjLbYhNN8EH2281Zig3iU7JFbgxS > SELF 0.00000000 Waves

{ "type": 13, "id": "Cz2uiiaRUBv4hswsHp3994ohCCeZ2GDeVeuFV5G35tcC", "fee": 1400000, "feeAssetId": null, "timestamp": 1599316027565, "version": 1, "sender": "3N1Ess2FjLbYhNN8EH2281Zig3iU7JFbgxS", "senderPublicKey": "GFDQU6mvL6dPRTRTFsGQd6UuPdXYekqv691fKLKaUMmJ", "proofs": [ "4og77kcRWCaZinEVEb3MrkvheYcTVxCyQUuaAy8bigQhFKjubrQ7MKohaUQUUEUM68Uw82pzhM7uWhVaBNWtxq1V" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAEAAAALAAAAAApNYXhDb25zdWxzAAAAAAAAAAAFAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AgAAAAABAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABdgUAAAAHJG1hdGNoMAUAAAABdgcAAAAAEUJmdENvZWZmaWNpZW50S2V5AgAAA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wAAAAAAAAAAAAkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAAACQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAABCQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAEJAQAAAAx2YWxpZGF0ZVNpZ24AAAADBQAAAANtc2cJAAGRAAAAAgUAAAAFc2lnbnMAAAAAAAAAAAIJAAGRAAAAAgUAAAAHY29uc3VscwAAAAAAAAAAAgkBAAAADHZhbGlkYXRlU2lnbgAAAAMFAAAAA21zZwkAAZEAAAACBQAAAAVzaWducwAAAAAAAAAAAwkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAADCQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAAECQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAQDCQAAZwAAAAIFAAAACWxhc3RSb3VuZAUAAAAFcm91bmQJAAACAAAAAQIAAAAVcm91bmQgbGVzcyBsYXN0IHJvdW5kAwkAAGYAAAACBQAAAAVjb3VudAUAAAAOYmZ0Q29lZmZpY2llbnQJAAACAAAAAQIAAAARaW52YWxpZCBiZnQgY291bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAApDb25zdWxzS2V5AAAAAQUAAAAFcm91bmQFAAAACm5ld0NvbnN1bHMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADExhc3RSb3VuZEtleQUAAAAFcm91bmQFAAAAA25pbAAAAACr8/Y1", "chainId": 84, "height": 1164203, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D187JZBjjhq79QDKr1NsqC7XhFrLwYqrs5JCh4qCvqLa Next: none Diff:
OldNewDifferences
5959
6060 @Callable(s)
6161 func updateConsuls (t,u,k) = {
62- let v = n(k)
62+ let v = n(m)
6363 let w = toBytes(((t + ",") + toString(k)))
6464 let x = split(u, ",")
6565 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]))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 5
55
66 func b (c) = {
77 let d = getInteger(this, c)
88 if ($isInstanceOf(d, "Int"))
99 then {
1010 let e = d
1111 e
1212 }
1313 else 0
1414 }
1515
1616
1717 func f (c) = {
1818 let d = getString(this, c)
1919 if ($isInstanceOf(d, "String"))
2020 then {
2121 let e = d
2222 e
2323 }
2424 else ""
2525 }
2626
2727
2828 func g (c) = {
2929 let d = getBoolean(this, c)
3030 if ($isInstanceOf(d, "Boolean"))
3131 then {
3232 let e = d
3333 e
3434 }
3535 else false
3636 }
3737
3838
3939 let h = "bft_coefficient"
4040
4141 let i = "last_round"
4242
4343 func j (k) = ("consuls_" + toString(k))
4444
4545
4646 let l = b(h)
4747
4848 let m = b(i)
4949
5050 func n (k) = split(f(j(k)), ",")
5151
5252
5353 func o (p,q,r) = if ((q != "nil"))
5454 then if (sigVerify(p, fromBase58String(q), fromBase58String(r)))
5555 then 1
5656 else 0
5757 else 0
5858
5959
6060 @Callable(s)
6161 func updateConsuls (t,u,k) = {
62- let v = n(k)
62+ let v = n(m)
6363 let w = toBytes(((t + ",") + toString(k)))
6464 let x = split(u, ",")
6565 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]))
6666 if ((m >= k))
6767 then throw("round less last round")
6868 else if ((y > l))
6969 then throw("invalid bft count")
7070 else WriteSet([DataEntry(j(k), t), DataEntry(i, k)])
7171 }
7272
7373

github/deemru/w8io/026f985 
28.46 ms