tx · 2PjBwpUTwcW4x3qwpHtN5AQzZjg9gGy6gdLytKnnw7AD

3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki:  -0.01000000 Waves

2024.07.05 19:27 [3180934] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves

{ "type": 13, "id": "2PjBwpUTwcW4x3qwpHtN5AQzZjg9gGy6gdLytKnnw7AD", "fee": 1000000, "feeAssetId": null, "timestamp": 1720196897435, "version": 2, "chainId": 84, "sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki", "senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd", "proofs": [ "4bZ1uujCv7uB4xSoVcrAc8d4BH3rS1Aq4UnrG1d7j5YZDt6E9zp55mH2DTpCvvGP3G2fLMkNEmneXBzWQkWybusn" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAANaXNLbm93bkNhbGxlcgQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAABGhpc3QFAAAAByRtYXRjaDAFAAAABGhpc3QHAwkBAAAAASEAAAABBQAAAA1pc0tub3duQ2FsbGVyCQAFFAAAAAIJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAF9eEABQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAR1bml0AAAAAO9vUKY=", "height": 3180934, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D4tbYHsbXYRkLES6md1e1bvkrpTLo7Ds5hfiNvtsCZFf Next: D2e1ej1EQZYaDqLGCyZemf2nxBru6yWNtx1YfSiSMcEy Full:
OldNewDifferences
1-{-# STDLIB_VERSION 8 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki'
6- let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
7- if (if ((voterPublicKey != alekseiPubKey))
8- then (voterPublicKey != annaPubKey)
9- else false)
10- then false
11- else true
12- }
134
145
156 @Callable(i)
16-func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey)))
17- then throw("You can not vote because you are not in the list of voters!")
18- else {
19- let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
20- if (isDefined(dataFromStorage))
21- then throw("You have already voted! Voting the second time is not allowed.")
22- else $Tuple2([IntegerEntry(toBase58String(i.callerPublicKey), theVote)], unit)
23- }
7+func faucet () = {
8+ let isKnownCaller = match getBoolean(this, toBase58String(i.caller.bytes)) {
9+ case hist: Boolean =>
10+ hist
11+ case _ =>
12+ false
13+ }
14+ if (!(isKnownCaller))
15+ then $Tuple2([BooleanEntry(toBase58String(i.caller.bytes), true), ScriptTransfer(i.caller, 100000000, unit)], unit)
16+ else $Tuple2(nil, unit)
17+ }
2418
2519

github/deemru/w8io/026f985 
17.45 ms