tx · FhwQFK96xg4hXNP23xSCd1rBqWYJvRvM6yCpsinPreZT
3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D: -0.02000000 Waves
2019.10.11 10:17 [714889] smart account 3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D > SELF 0.00000000 Waves
{
"type": 13,
"id": "FhwQFK96xg4hXNP23xSCd1rBqWYJvRvM6yCpsinPreZT",
"fee": 2000000,
"feeAssetId": null,
"timestamp": 1570778255147,
"version": 1,
"sender": "3N3wG59BhyFv6WpcU4ufQwEKQc3P2EgdM3D",
"senderPublicKey": "Hxqy6r7HGZfDUPVgADrFFRvbDErnK5HxWVeskMxaNSSK",
"proofs": [
"3iJH98nQ5Kg5TRw2Q8SVrF7BohJ6ZBCtAVAQ3FFCDxKeAeY15cRBGcaH9v9MWs3a32r7B286xK3C6hz5ciSMFBwG"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAFb3duZXIBAAAAIPwJTYKEsuntn/tcgnkI9gmYhsnCV0IADAkWhSTj0ER4AAAAAQAAAAFpAQAAAAR2b3RlAAAAAQAAAAF2BAAAAA9kYXRhRnJvbVN0b3JhZ2UJAAQdAAAAAgUAAAAEdGhpcwkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAPZGF0YUZyb21TdG9yYWdlCQAAAgAAAAECAAAAINCS0Ysg0YPQttC1INCz0L7Qu9C+0YHQvtCy0LDQu9C4CQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAABdgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAFb3duZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAAFjBQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBge68/z5",
"chainId": 84,
"height": 714889,
"spentComplexity": 0
}
View: original | compacted
Prev: 9Qg5SBQ1QwQ4YavpPMc9WHYKMRzZiXit5XRYcneNKbMD
Next: CR6jc2Av9in7ZJWVpUs6HpkcvE6Hpmp56qSJfYGqd3XA
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'Hxqy6r7HGZfDUPVgADrFFRvbDErnK5HxWVeskMxaNSSK' |
---|
5 | 5 | | |
---|
| 6 | + | @Callable(b) |
---|
| 7 | + | func vote (c) = { |
---|
| 8 | + | let d = getString(this, toBase58String(b.callerPublicKey)) |
---|
| 9 | + | if (isDefined(d)) |
---|
| 10 | + | then throw("Вы уже голосовали") |
---|
| 11 | + | else WriteSet([DataEntry(toBase58String(b.callerPublicKey), c)]) |
---|
| 12 | + | } |
---|
6 | 13 | | |
---|
7 | | - | @Verifier(b) |
---|
8 | | - | func c () = { |
---|
9 | | - | let d = b |
---|
10 | | - | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(e) |
---|
| 16 | + | func f () = { |
---|
| 17 | + | let g = e |
---|
| 18 | + | if ($isInstanceOf(g, "SetScriptTransaction")) |
---|
11 | 19 | | then { |
---|
12 | | - | let e = d |
---|
13 | | - | sigVerify(b.bodyBytes, b.proofs[0], a) |
---|
| 20 | + | let h = g |
---|
| 21 | + | sigVerify(e.bodyBytes, e.proofs[0], a) |
---|
14 | 22 | | } |
---|
15 | | - | else false |
---|
| 23 | + | else if ($isInstanceOf(g, "InvokeScriptTransaction")) |
---|
| 24 | + | then { |
---|
| 25 | + | let i = g |
---|
| 26 | + | true |
---|
| 27 | + | } |
---|
| 28 | + | else if ($isInstanceOf(g, "DataTransaction")) |
---|
| 29 | + | then { |
---|
| 30 | + | let j = g |
---|
| 31 | + | true |
---|
| 32 | + | } |
---|
| 33 | + | else false |
---|
16 | 34 | | } |
---|
17 | 35 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'Hxqy6r7HGZfDUPVgADrFFRvbDErnK5HxWVeskMxaNSSK' |
---|
5 | 5 | | |
---|
| 6 | + | @Callable(b) |
---|
| 7 | + | func vote (c) = { |
---|
| 8 | + | let d = getString(this, toBase58String(b.callerPublicKey)) |
---|
| 9 | + | if (isDefined(d)) |
---|
| 10 | + | then throw("Вы уже голосовали") |
---|
| 11 | + | else WriteSet([DataEntry(toBase58String(b.callerPublicKey), c)]) |
---|
| 12 | + | } |
---|
6 | 13 | | |
---|
7 | | - | @Verifier(b) |
---|
8 | | - | func c () = { |
---|
9 | | - | let d = b |
---|
10 | | - | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(e) |
---|
| 16 | + | func f () = { |
---|
| 17 | + | let g = e |
---|
| 18 | + | if ($isInstanceOf(g, "SetScriptTransaction")) |
---|
11 | 19 | | then { |
---|
12 | | - | let e = d |
---|
13 | | - | sigVerify(b.bodyBytes, b.proofs[0], a) |
---|
| 20 | + | let h = g |
---|
| 21 | + | sigVerify(e.bodyBytes, e.proofs[0], a) |
---|
14 | 22 | | } |
---|
15 | | - | else false |
---|
| 23 | + | else if ($isInstanceOf(g, "InvokeScriptTransaction")) |
---|
| 24 | + | then { |
---|
| 25 | + | let i = g |
---|
| 26 | + | true |
---|
| 27 | + | } |
---|
| 28 | + | else if ($isInstanceOf(g, "DataTransaction")) |
---|
| 29 | + | then { |
---|
| 30 | + | let j = g |
---|
| 31 | + | true |
---|
| 32 | + | } |
---|
| 33 | + | else false |
---|
16 | 34 | | } |
---|
17 | 35 | | |
---|