tx · J9NDqsA8wbsHZKK4BhmvRpGy3ZyLWaw13ZN68C56viWK

3N85YpFCsBfFVgqrSpSS4KF7f1f3ZwzHzkE:  -0.01000000 Waves

2019.10.04 23:36 [705489] smart account 3N85YpFCsBfFVgqrSpSS4KF7f1f3ZwzHzkE > SELF 0.00000000 Waves

{ "type": 13, "id": "J9NDqsA8wbsHZKK4BhmvRpGy3ZyLWaw13ZN68C56viWK", "fee": 1000000, "feeAssetId": null, "timestamp": 1570221430847, "version": 1, "sender": "3N85YpFCsBfFVgqrSpSS4KF7f1f3ZwzHzkE", "senderPublicKey": "CvFa3r6HUXWadfxzZhcqWFvphNdRK2H7c78dkAX734Dd", "proofs": [ "4Raz7DitcHJzYynvzDM6TEXhxRXa241PcDybJJiyEYyveHjbrkXhNtUkRJsS1da5x8JLN6X9r6a4ibuL3Lxd6oiY" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAFb3duZXIBAAAAGgFUxzyUZtLPMIrbfnYGFc9uO6CXdUj77hyfAAAAAQAAAAFpAQAAAAR2b3RlAAAAAQAAAAF2BAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQdAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlCQAAAgAAAAECAAAAINCS0Ysg0YPQttC1INCz0L7Qu9C+0YHQvtCy0LDQu9C4CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAABdgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAFb3duZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAAFjBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBgevIHcJ", "chainId": 84, "height": 705489, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let owner = base58'3N85YpFCsBfFVgqrSpSS4KF7f1f3ZwzHzkE'
5+
6+@Callable(i)
7+func vote (v) = {
8+ let dataFromStorage = getString(this, toBase58String(i.callerPublicKey))
9+ if (isDefined(dataFromStorage))
10+ then throw("Вы уже голосовали")
11+ else WriteSet([DataEntry(toBase58String(i.callerPublicKey), v)])
12+ }
13+
14+
15+@Verifier(tx)
16+func verify () = match tx {
17+ case t: SetScriptTransaction =>
18+ sigVerify(tx.bodyBytes, tx.proofs[0], owner)
19+ case c: InvokeScriptTransaction =>
20+ true
21+ case d: DataTransaction =>
22+ true
23+ case _ =>
24+ false
25+}
26+

github/deemru/w8io/169f3d6 
36.25 ms