tx · 49ThPpxWEWBjzbBt38ac9KSxHVCYmXoTwnVvPdAjphtp

3My65c8nCks1s6cZVcazLrCPG9MJumcYQq4:  -0.01000000 Waves

2021.12.03 13:59 [1818004] smart account 3My65c8nCks1s6cZVcazLrCPG9MJumcYQq4 > SELF 0.00000000 Waves

{ "type": 13, "id": "49ThPpxWEWBjzbBt38ac9KSxHVCYmXoTwnVvPdAjphtp", "fee": 1000000, "feeAssetId": null, "timestamp": 1638529135183, "version": 2, "chainId": 84, "sender": "3My65c8nCks1s6cZVcazLrCPG9MJumcYQq4", "senderPublicKey": "GxvLEZMN5oYgGEaxaC1fcccmtiwQ9USMwTRzc7XtHi24", "proofs": [ "3tL1GnWswgz3CXsbjX6WaRMzfqpwZiRZ6fp1S3HoaHcGYUKfGDAWEF9MBtuzWk4Fdj43m1aM5dkz4uDRvuMy9ux8" ], "script": "base64:AAIFAAAAAAAAAIYIAhIDCgEBGhoKAmExEhR2b3RlcklzQWxsb3dlZFRvVm90ZRoUCgJhMhIOdm90ZXJQdWJsaWNLZXkaEwoCYTMSDWFsZWtzZWlQdWJLZXkaEAoCYTQSCmFubmFQdWJLZXkaDQoCYTUSB3RoZVZvdGUaFQoCYTYSD2RhdGFGcm9tU3RvcmFnZQAAAAEBAAAAAmExAAAAAQAAAAJhMgQAAAACYTMBAAAAIG4idqFz7Mjvs1MsFn1xPcPZDW/VBsQ1GKmMyjsnDmlhBAAAAAJhNAEAAAAgku3p/EDd5pwksbm+H5eqZT59ZQ0OVzFRdWzcNlrHcQ8DAwkBAAAAAiE9AAAAAgUAAAACYTIFAAAAAmEzCQEAAAACIT0AAAACBQAAAAJhMgUAAAACYTQHBwYAAAABAAAAAWkBAAAABHZvdGUAAAABAAAAAmE1AwkBAAAAASEAAAABCQEAAAACYTEAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAA7WW91IGNhbiBub3Qgdm90ZSBiZWNhdXNlIHlvdSBhcmUgbm90IGluIHRoZSBsaXN0IG9mIHZvdGVycyEEAAAAAmE2CQAEGgAAAAIFAAAABHRoaXMJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAAmE2CQAAAgAAAAECAAAAPllvdSBoYXZlIGFscmVhZHkgdm90ZWQhIFZvdGluZyB0aGUgc2Vjb25kIHRpbWUgaXMgbm90IGFsbG93ZWQuCQAFFAAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAJhNQUAAAADbmlsBQAAAAR1bml0AAAAAJrA80w=", "height": 1818004, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func a (b) = {
5+ let c = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6+ let d = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
7+ if (if ((b != c))
8+ then (b != d)
9+ else false)
10+ then false
11+ else true
12+ }
13+
14+
15+@Callable(e)
16+func vote (f) = if (!(a(e.callerPublicKey)))
17+ then throw("You can not vote because you are not in the list of voters!")
18+ else {
19+ let g = getInteger(this, toBase58String(e.callerPublicKey))
20+ if (isDefined(g))
21+ then throw("You have already voted! Voting the second time is not allowed.")
22+ else $Tuple2([IntegerEntry(toBase58String(e.callerPublicKey), f)], unit)
23+ }
24+
25+

github/deemru/w8io/026f985 
14.42 ms