tx · 3pPtjPc6KGKkBNWzZTjp67Eyi97GiJjpk7cyHqPzXmdt

3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX:  -0.01000000 Waves

2021.06.21 17:23 [1580259] smart account 3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX > SELF 0.00000000 Waves

{ "type": 13, "id": "3pPtjPc6KGKkBNWzZTjp67Eyi97GiJjpk7cyHqPzXmdt", "fee": 1000000, "feeAssetId": null, "timestamp": 1624285348628, "version": 2, "chainId": 84, "sender": "3N4TEQzMSjr8dNSXeexyKmteC6coHneTydX", "senderPublicKey": "BLYPM7pr6zCdxj9zzANneoGVcDEwBnQApCEnR3BkNm68", "proofs": [ "62XADdJb184xmUkZTpXMy2zWpTHqWLKKVNnoZFuCGakRDT6sb7U6K8fncdyHC5GpjX8iauuT39cYqfagRMVYbS4F" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAGZmF1Y2V0AAAAAAQAAAANaXNLbm93bkNhbGxlcgQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAABGhpc3QFAAAAByRtYXRjaDAFAAAABGhpc3QHAwkBAAAAASEAAAABBQAAAA1pc0tub3duQ2FsbGVyCQAFFAAAAAIJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAF9eEABQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAR1bml0AAAAAO9vUKY=", "height": 1580259, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: De2gqFFLSc4XsrpYtG5NZ315XApq3XQRzmcczwCQfkPF Next: 76JmNXdk7GFDDbzGfERng5h7K2qWe1t6nmcbDMkNRq6J Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-func voterIsAllowedToVote (voterPublicKey) = {
5- let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e'
6- let annaPubKey = base58'BvJEWY79uQEFetuyiZAF5U4yjPioMj9J6ZrF9uTNfe3E'
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("Вы не можете голосовать, так как вас нет в списке голосующих!")
18- else {
19- let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey))
20- if (isDefined(dataFromStorage))
21- then throw("Вы уже голосовали! Повтороное голосование запрещено.")
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 
31.01 ms