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 a (b) = {
5- let c = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki'
6- let d = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x'
7- if (if ((b != c))
8- then (b != d)
9- else false)
10- then false
11- else true
12- }
134
145
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)
6+@Callable(a)
7+func faucet () = {
8+ let b = {
9+ let c = getBoolean(this, toBase58String(a.caller.bytes))
10+ if ($isInstanceOf(c, "Boolean"))
11+ then {
12+ let d = c
13+ d
14+ }
15+ else false
2316 }
17+ if (!(b))
18+ then $Tuple2([BooleanEntry(toBase58String(a.caller.bytes), true), ScriptTransfer(a.caller, 100000000, unit)], unit)
19+ else $Tuple2(nil, unit)
20+ }
2421
2522

github/deemru/w8io/169f3d6 
36.27 ms