tx · 3Se6Fwc3iVtAqE8Qp95JfNK22aZkNNVyx4raRCSkvB4U
3N7rkeQ2uyC9MX2ktNvt16TAKqLthhXBcPs: -0.01000000 Waves
2019.09.17 15:33 [680254] smart account 3N7rkeQ2uyC9MX2ktNvt16TAKqLthhXBcPs > SELF 0.00000000 Waves
{
"type": 13,
"id": "3Se6Fwc3iVtAqE8Qp95JfNK22aZkNNVyx4raRCSkvB4U",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1568723441035,
"version": 1,
"sender": "3N7rkeQ2uyC9MX2ktNvt16TAKqLthhXBcPs",
"senderPublicKey": "B7V4utAe11j3KAFodLy8eP88a746JB2MYE3UMFpENcem",
"proofs": [
"2WTnfvuH6x1ejwNYzH7yNUSsAhPnp7sGiobyyj3K1f1Vdi4xuXCxPJV5UDHnBvJr5PRfJVyL3EDy7u8EyB6tyCgP"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABR2b3RlcklzQWxsb3dlZFRvVm90ZQAAAAEAAAAOdm90ZXJQdWJsaWNLZXkEAAAADWFsZWtzZWlQdWJLZXkBAAAAIG4idqFz7Mjvs1MsFn1xPcPZDW/VBsQ1GKmMyjsnDmlhBAAAAAphbm5hUHViS2V5AQAAACCS7en8QN3mnCSxub4fl6plPn1lDQ5XMVF1bNw2WsdxDwMDCQEAAAACIT0AAAACBQAAAA52b3RlclB1YmxpY0tleQUAAAANYWxla3NlaVB1YktleQkBAAAAAiE9AAAAAgUAAAAOdm90ZXJQdWJsaWNLZXkFAAAACmFubmFQdWJLZXkHBwYAAAABAAAAAWkBAAAABHZvdGUAAAABAAAAB3RoZVZvdGUDCQEAAAABIQAAAAEJAQAAABR2b3RlcklzQWxsb3dlZFRvVm90ZQAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAAG7QktGLINC90LUg0LzQvtC20LXRgtC1INCz0L7Qu9C+0YHQvtCy0LDRgtGMLCDRgtCw0Log0LrQsNC6INCy0LDRgSDQvdC10YIg0LIg0YHQv9C40YHQutC1INCz0L7Qu9C+0YHRg9GO0YnQuNGFIQQAAAAPZGF0YUZyb21TdG9yYWdlCQAEGgAAAAIFAAAABHRoaXMJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAD2RhdGFGcm9tU3RvcmFnZQkAAAIAAAABAgAAAGHQktGLINGD0LbQtSDQs9C+0LvQvtGB0L7QstCw0LvQuCEg0J/QvtCy0YLQvtGA0L7QvdC+0LUg0LPQvtC70L7RgdC+0LLQsNC90LjQtSDQt9Cw0L/RgNC10YnQtdC90L4uCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAHdGhlVm90ZQUAAAADbmlsAAAAAL1ug64=",
"chainId": 84,
"height": 680254,
"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 | + | func a (b) = { |
---|
| 5 | + | let c = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e' |
---|
| 6 | + | let d = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x' |
---|
| 7 | + | if (if ((b != c)) |
---|
| 8 | + | then (b != d) |
---|
| 9 | + | else false) |
---|
| 10 | + | then false |
---|
| 11 | + | else true |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
| 14 | + | |
---|
| 15 | + | @Callable(e) |
---|
| 16 | + | func vote (f) = if (!(a(e.callerPublicKey))) |
---|
| 17 | + | then throw("Вы не можете голосовать, так как вас нет в списке голосующих!") |
---|
| 18 | + | else { |
---|
| 19 | + | let g = getInteger(this, toBase58String(e.callerPublicKey)) |
---|
| 20 | + | if (isDefined(g)) |
---|
| 21 | + | then throw("Вы уже голосовали! Повтороное голосование запрещено.") |
---|
| 22 | + | else WriteSet([DataEntry(toBase58String(e.callerPublicKey), f)]) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|