tx · 7rxVBJakzNRCBE3AwHfpKwGJT3eDXFwQY1oCCC5TbYme
3N2iEuRvwdhA9ap8MSjMUgoMJSBpEF7avj9: -0.00100000 Waves
2024.11.10 02:55 [3364603] smart account 3N2iEuRvwdhA9ap8MSjMUgoMJSBpEF7avj9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "7rxVBJakzNRCBE3AwHfpKwGJT3eDXFwQY1oCCC5TbYme",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1731196543643,
"version": 2,
"chainId": 84,
"sender": "3N2iEuRvwdhA9ap8MSjMUgoMJSBpEF7avj9",
"senderPublicKey": "8vZQY6hGrfbBRpQ8gJQ7QdWEyrgLXBNnf1Cv3QYgvm6F",
"proofs": [
"2uxZTawDFpsBSvZCqN1XD2xqtx1zRvBAtWJRXhHWo38uH8diLZ1XGnAn2JypscBwDDU9J6b1oNp14mSZfr9Fscy1"
],
"script": "base64:CAIICAISBAoCCAgBAQhnZXRDb3VudAELdmFjY2luYXRpb24EByRtYXRjaDAJAJ8IAQkArAICBQt2YWNjaW5hdGlvbgIGX2NvdW50AwkAAQIFByRtYXRjaDACA0ludAQBYQUHJG1hdGNoMAkAZAIFAWEAAQABAQFpAQl2YWNjaW5hdGUCC3ZhY2NpbmF0aW9uBGRhdGUEBWNvdW50CQEIZ2V0Q291bnQBBQt2YWNjaW5hdGlvbgkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFC3ZhY2NpbmF0aW9uAgZfY291bnQFBWNvdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgULdmFjY2luYXRpb24CBV9kYXRlBQRkYXRlBQNuaWwFBHVuaXQAe00NEg==",
"height": 3364603,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 8 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func getCount (vaccination) = match getInteger((vaccination + "_count")) { |
---|
| 5 | + | case a: Int => |
---|
| 6 | + | (a + 1) |
---|
| 7 | + | case _ => |
---|
| 8 | + | 1 |
---|
| 9 | + | } |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | @Callable(i) |
---|
| 13 | + | func vaccinate (vaccination,date) = { |
---|
| 14 | + | let count = getCount(vaccination) |
---|
| 15 | + | $Tuple2([IntegerEntry((vaccination + "_count"), count), StringEntry((vaccination + "_date"), date)], unit) |
---|
| 16 | + | } |
---|
| 17 | + | |
---|
| 18 | + | |
---|