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 a = base58'HvnkgA6Vnx12exK6rALBojC1Y2zfnrjPmoYBGtFHFGzdT' |
---|
| 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 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
| 15 | + | @Verifier(e) |
---|
| 16 | + | func f () = { |
---|
| 17 | + | let g = e |
---|
| 18 | + | if ($isInstanceOf(g, "SetScriptTransaction")) |
---|
| 19 | + | then { |
---|
| 20 | + | let h = g |
---|
| 21 | + | sigVerify(e.bodyBytes, e.proofs[0], a) |
---|
| 22 | + | } |
---|
| 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 |
---|
| 34 | + | } |
---|
| 35 | + | |
---|