tx · G1EH4N8KD9iAgBFxQA8ee1P8D2jmJ1VMQaLpEFDDhT2H

3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6:  -0.01400000 Waves

2020.09.10 14:21 [1171149] smart account 3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6 > SELF 0.00000000 Waves

{ "type": 13, "id": "G1EH4N8KD9iAgBFxQA8ee1P8D2jmJ1VMQaLpEFDDhT2H", "fee": 1400000, "feeAssetId": null, "timestamp": 1599736908184, "version": 1, "sender": "3MyGHJgyds85p2nqZM5eMGfepRa91EiGiH6", "senderPublicKey": "8j6j7bNmpCteruuoKqKAsq5oFuacuU3rKg6UgCn7PeT", "proofs": [ "4RRMrna3g6vKDD3pMcFcrvtf9L1GD1BnqT9YivCuocxdw7dtYwhhNvpe2xfx7TTjhJRyYXd4XchQqAyNmmN8FZfh" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAEAAAALAAAAAApNYXhDb25zdWxzAAAAAAAAAAAFAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF2BQAAAAckbWF0Y2gwBQAAAAF2AgAAAAABAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABdgUAAAAHJG1hdGNoMAUAAAABdgcAAAAAEUJmdENvZWZmaWNpZW50S2V5AgA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WducwAAAAAAAAAAAAkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAAACQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAABCQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAEJAQAAAAx2YWxpZGF0ZVNpZ24AAAADBQAAAANtc2cJAAGRAAAAAgUAAAAFc2lnbnMAAAAAAAAAAAIJAAGRAAAAAgUAAAAHY29uc3VscwAAAAAAAAAAAgkBAAAADHZhbGlkYXRlU2lnbgAAAAMFAAAAA21zZwkAAZEAAAACBQAAAAVzaWducwAAAAAAAAAAAwkAAZEAAAACBQAAAAdjb25zdWxzAAAAAAAAAAADCQEAAAAMdmFsaWRhdGVTaWduAAAAAwUAAAADbXNnCQABkQAAAAIFAAAABXNpZ25zAAAAAAAAAAAECQABkQAAAAIFAAAAB2NvbnN1bHMAAAAAAAAAAAQDCQAAZwAAAAIFAAAACWxhc3RSb3VuZAUAAAAFcm91bmQJAAACAAAAAQIAAAAVcm91bmQgbGVzcyBsYXN0IHJvdW5kAwkAAGYAAAACBQAAAA5iZnRDb2VmZmljaWVudAUAAAAFY291bnQJAAACAAAAAQIAAAARaW52YWxpZCBiZnQgY291bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAApDb25zdWxzS2V5AAAAAQUAAAAFcm91bmQFAAAACm5ld0NvbnN1bHMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADExhc3RSb3VuZEtleQUAAAAFcm91bmQFAAAAA25pbAAAAACdHM12", "chainId": 84, "height": 1171149, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EfoKJQ5SshizVRQANBAknbvBUkb5TqApNNygrjwem6uf Next: 9k8XSufhHKdXnSBsUYuAG9PLuo7DZHL6adEQieUbX4ZG 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) = {
6262 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 ((l > y))
6969 then throw("invalid bft count")
7070 else WriteSet([DataEntry(j(k), t), DataEntry(i, k)])
7171 }
7272
7373

github/deemru/w8io/026f985 
20.84 ms