tx · 3P934np4V5zt8A7xYhGRfvkgtsUpu54kNmA8R4gcimLQ

3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E:  -0.01400000 Waves

2019.07.31 12:30 [610106] smart account 3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E > SELF 0.00000000 Waves

{ "type": 13, "id": "3P934np4V5zt8A7xYhGRfvkgtsUpu54kNmA8R4gcimLQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1564565507065, "version": 1, "sender": "3NB1cgveY8ad3Q3YPBb8W5P1wxXf4PBdv8E", "senderPublicKey": "G1dpAxHK3DuPvcCbAz7eTxXXmRmqqZL1JyDUbeBQTfpA", "proofs": [ "2Zkj56we5ni8H15XFFx8kcMeqCqYriD9e7w42dnH7V1w5afxJChAjHXRVJ4Cdg5FoPMYBuzCqUgknyHgQoUJrBRU" ], "script": "base64:AAIDAAAAAAAAAAAAAAAIAAAAAAdtaW5Wb3RlAAAAAAAAAAABAAAAAAdtYXhWb3RlAAAAAAAAAAAKAAAAABJzdG9wQmxvY2tUaW1lc3RhbXAAAAABbEqUuEoAAAAADnZvdGVyS2V5UHJlZml4AgAAAAZ2b3Rlcl8AAAAAD3N1Ym1pdEtleVByZWZpeAIAAAAHc3VibWl0XwEAAAALZ2V0Vm90ZXJLZXkAAAABAAAADHZvdGVyQWRkcmVzcwkAASwAAAACBQAAAA52b3RlcktleVByZWZpeAkAAlgAAAABBQAAAAx2b3RlckFkZHJlc3MBAAAADGdldFN1Ym1pdEtleQAAAAEAAAANY2FsbGVyQWRkcmVzcwkAASwAAAACBQAAAA9zdWJtaXRLZXlQcmVmaXgJAAJYAAAAAQUAAAANY2FsbGVyQWRkcmVzcwEAAAAUdm90ZXJJc0FsbG93ZWRUb1ZvdGUAAAABAAAADHZvdGVyQWRkcmVzcwQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzCQEAAAALZ2V0Vm90ZXJLZXkAAAABBQAAAAx2b3RlckFkZHJlc3MDCQAAA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EAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAAMZ2V0U3VibWl0S2V5AAAAAQgIBQAAAANjdHgAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAd0aGVWb3RlBQAAAANuaWwAAAABAAAAAXQBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAXQDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAFzAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABcwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFzAAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAWkFAAAAByRtYXRjaDAGCQAAAgAAAAECAAAAJlRoaXMgdHlwZSBvZiB0cmFuc2FjdGlvbiBpcyBwcm9oaWJpdGVkXac/Ew==", "chainId": 84, "height": 610106, "spentComplexity": 0 } View: original | compacted Prev: none Next: 9J18TPbv3kKpLB24i2L9cnwzkd8GUvxLCuvVQHNc5aFH Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = 1
5+
6+let b = 10
7+
8+let c = 1564619356234
9+
10+let d = "voter_"
11+
12+let e = "submit_"
13+
14+func f (g) = (d + toBase58String(g))
15+
16+
17+func h (i) = (e + toBase58String(i))
18+
19+
20+func j (g) = {
21+ let k = getBoolean(this, f(g))
22+ if ($isInstanceOf(k, "Boolean"))
23+ then {
24+ let l = k
25+ l
26+ }
27+ else false
28+ }
29+
30+
31+@Callable(m)
32+func addVoter () = WriteSet([DataEntry(f(m.caller.bytes), true)])
33+
34+
35+
36+@Callable(m)
37+func vote (n) = if ((lastBlock.timestamp >= c))
38+ then throw("Voting is over, since the stop block timestamp is reached")
39+ else if ((j(m.caller.bytes) == false))
40+ then throw("You are not allowed to vote, since your address is not present in our list of voters.")
41+ else {
42+ let o = getInteger(this, toBase58String(m.callerPublicKey))
43+ if (isDefined(o))
44+ then throw("You have already voted! Duplicate votes are prohibited.")
45+ else if (if ((a > n))
46+ then true
47+ else (n > b))
48+ then throw("Vote is out of range")
49+ else WriteSet([DataEntry(h(m.caller.bytes), n)])
50+ }
51+
52+
53+@Verifier(p)
54+func q () = {
55+ let k = p
56+ if (if ($isInstanceOf(k, "SetScriptTransaction"))
57+ then true
58+ else $isInstanceOf(k, "DataTransaction"))
59+ then {
60+ let r = k
61+ sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
62+ }
63+ else if ($isInstanceOf(k, "InvokeScriptTransaction"))
64+ then {
65+ let s = k
66+ true
67+ }
68+ else throw("This type of transaction is prohibited")
69+ }
70+

github/deemru/w8io/169f3d6 
19.47 ms