tx · D4tbYHsbXYRkLES6md1e1bvkrpTLo7Ds5hfiNvtsCZFf
3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki: -0.01000000 Waves
2024.06.25 14:59 [3166239] smart account 3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki > SELF 0.00000000 Waves
{
"type": 13,
"id": "D4tbYHsbXYRkLES6md1e1bvkrpTLo7Ds5hfiNvtsCZFf",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1719316758191,
"version": 2,
"chainId": 84,
"sender": "3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki",
"senderPublicKey": "Em3xR3qCDVUJh4RYP61j2iaMKdEHYvyYEA4kmBMKQHLd",
"proofs": [
"5GLbVECTe8rFQpfxSoz6kX8JruhzQfMWTAeTEVBK1SRgGqPmtrBmG1amErxWxWLsdmG8DRXvUcZ3r69iXZ5U3uPv"
],
"script": "base64:CAIHCAISAwoBAQEBFHZvdGVySXNBbGxvd2VkVG9Wb3RlAQ52b3RlclB1YmxpY0tleQQNYWxla3NlaVB1YktleQEaAVRL82o5gOz3lqTb/kGhO6ljrmYJvKt/SJcECmFubmFQdWJLZXkBIJLt6fxA3eacJLG5vh+XqmU+fWUNDlcxUXVs3DZax3EPAwMJAQIhPQIFDnZvdGVyUHVibGljS2V5BQ1hbGVrc2VpUHViS2V5CQECIT0CBQ52b3RlclB1YmxpY0tleQUKYW5uYVB1YktleQcHBgEBaQEEdm90ZQEHdGhlVm90ZQMJAQEhAQkBFHZvdGVySXNBbGxvd2VkVG9Wb3RlAQgFAWkPY2FsbGVyUHVibGljS2V5CQACAQI7WW91IGNhbiBub3Qgdm90ZSBiZWNhdXNlIHlvdSBhcmUgbm90IGluIHRoZSBsaXN0IG9mIHZvdGVycyEED2RhdGFGcm9tU3RvcmFnZQkAmggCBQR0aGlzCQDYBAEIBQFpD2NhbGxlclB1YmxpY0tleQMJAQlpc0RlZmluZWQBBQ9kYXRhRnJvbVN0b3JhZ2UJAAIBAj5Zb3UgaGF2ZSBhbHJlYWR5IHZvdGVkISBWb3RpbmcgdGhlIHNlY29uZCB0aW1lIGlzIG5vdCBhbGxvd2VkLgkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQDYBAEIBQFpD2NhbGxlclB1YmxpY0tleQUHdGhlVm90ZQUDbmlsBQR1bml0AGNrxzA=",
"height": 3166239,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 69wgzt1EUdYZY3ku9gZhfj3NxcPr1tzLv2Gfcyp4tfNV
Next: 2PjBwpUTwcW4x3qwpHtN5AQzZjg9gGy6gdLytKnnw7AD
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func voterIsAllowedToVote (voterPublicKey) = { |
---|
5 | | - | let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e' |
---|
| 5 | + | let alekseiPubKey = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki' |
---|
6 | 6 | | let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x' |
---|
7 | 7 | | if (if ((voterPublicKey != alekseiPubKey)) |
---|
8 | 8 | | then (voterPublicKey != annaPubKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 8 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func voterIsAllowedToVote (voterPublicKey) = { |
---|
5 | | - | let alekseiPubKey = base58'8QvKvspfNF6cUv2DFMCfvT8SrbraERqXpNMEMqBfJZ3e' |
---|
| 5 | + | let alekseiPubKey = base58'3Mvqg45GNNEhYssByz8tT6BECpZd8wKyuki' |
---|
6 | 6 | | let annaPubKey = base58'AtYwJTqWNfwYrPnWVvfmnPTSTEioiLFzUTcZVttgDj1x' |
---|
7 | 7 | | if (if ((voterPublicKey != alekseiPubKey)) |
---|
8 | 8 | | then (voterPublicKey != annaPubKey) |
---|
9 | 9 | | else false) |
---|
10 | 10 | | then false |
---|
11 | 11 | | else true |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func vote (theVote) = if (!(voterIsAllowedToVote(i.callerPublicKey))) |
---|
17 | 17 | | then throw("You can not vote because you are not in the list of voters!") |
---|
18 | 18 | | else { |
---|
19 | 19 | | let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey)) |
---|
20 | 20 | | if (isDefined(dataFromStorage)) |
---|
21 | 21 | | then throw("You have already voted! Voting the second time is not allowed.") |
---|
22 | 22 | | else $Tuple2([IntegerEntry(toBase58String(i.callerPublicKey), theVote)], unit) |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|