tx · E1iszV6kWKYcWtWSeWB6D3jQ8a1Y6pS3rH3jrbxmuCGV
3N6CQf4joY8SHWGnVzf75sFv9auwTEjxB2q: -0.01000000 Waves
2019.08.05 01:54 [616775] smart account 3N6CQf4joY8SHWGnVzf75sFv9auwTEjxB2q > SELF 0.00000000 Waves
{
"type": 13,
"id": "E1iszV6kWKYcWtWSeWB6D3jQ8a1Y6pS3rH3jrbxmuCGV",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1564959315468,
"version": 1,
"sender": "3N6CQf4joY8SHWGnVzf75sFv9auwTEjxB2q",
"senderPublicKey": "A8MDzaEsKLop36itzQ8XKkeConRNXNkqt5abF1WDQont",
"proofs": [
"3EenAefrV5X9DvQYUgJ7SCkbSCPNdzvYeZBcqtPAJ6XNA1DUCCxNySqMujYscteQWQLsdL15XZV8vD5XDFkDaPd7"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAQAAAAxpc1NldEFsbG93ZWQAAAACAAAAEXByb2R1Y2VyUHVibGljS2V5AAAABWZpZWxkBgAAAAEAAAABaQEAAAAOc2V0RGF0ZU9mQmlydGgAAAABAAAABGRhdGUDCQEAAAABIQAAAAEJAQAAAAxpc1NldEFsbG93ZWQAAAACCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkCAAAAA2RvYgkAAAIAAAABAgAAADtZb3UgY2FuIG5vdCB2b3RlIGJlY2F1c2UgeW91IGFyZSBub3QgaW4gdGhlIGxpc3Qgb2Ygdm90ZXJzIQQAAAAPZGF0YUZyb21TdG9yYWdlCQAEGgAAAAIFAAAABHRoaXMJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AwkBAAAACWlzRGVmaW5lZAAAAAEFAAAAD2RhdGFGcm9tU3RvcmFnZQkAAAIAAAABAgAAAD5Zb3UgaGF2ZSBhbHJlYWR5IHZvdGVkISBWb3RpbmcgdGhlIHNlY29uZCB0aW1lIGlzIG5vdCBhbGxvd2VkLgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAABGRhdGUFAAAAA25pbAAAAACbd/5G",
"chainId": 84,
"height": 616775,
"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 isSetAllowed (producerPublicKey,field) = true |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Callable(i) |
---|
| 8 | + | func setDateOfBirth (date) = if (!(isSetAllowed(i.callerPublicKey, "dob"))) |
---|
| 9 | + | then throw("You can not vote because you are not in the list of voters!") |
---|
| 10 | + | else { |
---|
| 11 | + | let dataFromStorage = getInteger(this, toBase58String(i.callerPublicKey)) |
---|
| 12 | + | if (isDefined(dataFromStorage)) |
---|
| 13 | + | then throw("You have already voted! Voting the second time is not allowed.") |
---|
| 14 | + | else WriteSet([DataEntry(toBase58String(i.callerPublicKey), date)]) |
---|
| 15 | + | } |
---|
| 16 | + | |
---|
| 17 | + | |
---|