tx · 3GDUNy4FGeuW1PfjGTvddUm7wc8bJQVbuEjRpQgYBZNW 3N4ySQzCBcAwgvYiFPKcvQ512cVQPVvvXZQ: -0.01000000 Waves 2020.06.11 15:55 [1038769] smart account 3N4ySQzCBcAwgvYiFPKcvQ512cVQPVvvXZQ > SELF 0.00000000 Waves
{ "type": 13, "id": "3GDUNy4FGeuW1PfjGTvddUm7wc8bJQVbuEjRpQgYBZNW", "fee": 1000000, "feeAssetId": null, "timestamp": 1591880168524, "version": 1, "sender": "3N4ySQzCBcAwgvYiFPKcvQ512cVQPVvvXZQ", "senderPublicKey": "DgKfXby4fAAE1SGP3qHJ1aDoTi2XVFrLLv9tEScF8h1e", "proofs": [ "4iGYzfhNg1GDBSG6tLYmuURPfN7q885pPZYECcestzevqXC1wHgbHRdxaaNigHrG6udFfqGVYCiMUNkQYrsy1Wga" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAQAAAAAOb3duZXJwdWJsaWNrZXkBAAAAITj7kWUP0pKme3sohAkT0lgPnahaj+soYTdCrpyVbfs8fgAAAAEAAAABaQEAAAAEdm90ZQAAAAEAAAABdgQAAAAPZGF0YUZyb21TdG9yYWdlCQAEHQAAAAIFAAAABHRoaXMJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAD2RhdGFGcm9tU3RvcmFnZQkAAAIAAAABAgAAACDQktGLINGD0LbQtSDQs9C+0LvQvtGB0L7QstCw0LvQuAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAAXYFAAAAA25pbAAAAAEAAAACdHgBAAAABmZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVycHVibGlja2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABYwUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAYHM+wqIA==", "chainId": 84, "height": 1038769, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let ownerpublickey = base58'HvnkgA6Vnx12exK6rALBojC1Y2zfnrjPmoYBGtFHFGzdT' | |
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 ferify () = match tx { | |
17 | + | case t: SetScriptTransaction => | |
18 | + | sigVerify(tx.bodyBytes, tx.proofs[0], ownerpublickey) | |
19 | + | case c: InvokeScriptTransaction => | |
20 | + | true | |
21 | + | case d: DataTransaction => | |
22 | + | true | |
23 | + | case _ => | |
24 | + | false | |
25 | + | } | |
26 | + |
github/deemru/w8io/169f3d6 20.58 ms ◑