tx · DXY8TCXWozBjngRbSJaRhUd8SfqQRXcP48GVdMY9JjVf
3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91: -0.00100000 Waves
2022.09.16 22:55 [2232107] smart account 3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91 > SELF 0.00000000 Waves
{
"type": 13,
"id": "DXY8TCXWozBjngRbSJaRhUd8SfqQRXcP48GVdMY9JjVf",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1663358226961,
"version": 2,
"chainId": 84,
"sender": "3N3fWNbJVcZyxCQjpMJLwwrVddKFd1SMc91",
"senderPublicKey": "GypMGxbQ4XTzLQC4dL8QfQoxb5XcuZcYzWeRuWhNNvpf",
"proofs": [
"2MDZjeaT2WBDPEcrhNcS48DokVQQDSozdFYBofXBri4mAuoBT7ZdgGebxh3FJE7XSXYe6SUj9ojhHWhCiBQDLCe7"
],
"script": "base64:BgIHCAISAwoBCAEBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQABAgUHJG1hdGNoMAIDSW50BAFiBQckbWF0Y2gwBQFiAAABAWkBCXNhdmVfZGF0YQEEZGF0YQQCaWQJAQ10cnlHZXRJbnRlZ2VyAQICaWQEBm5ld19pZAkBDEludGVnZXJFbnRyeQICAmlkCQBkAgUCaWQAAQQKc2F2ZWRfZGF0YQkBC1N0cmluZ0VudHJ5AgkArAICAgNJRF8JAKQDAQUCaWQFBGRhdGEJAMwIAgUKc2F2ZWRfZGF0YQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleR175rc=",
"height": 2232107,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 443Ag56RHsFWQAGEg3gxKU4XGghnRcQsRZKKmqojUYxy
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func tryGetInteger (key) = match getInteger(this, key) { |
---|
| 5 | + | case b: Int => |
---|
| 6 | + | b |
---|
| 7 | + | case _ => |
---|
| 8 | + | 0 |
---|
| 9 | + | } |
---|
| 10 | + | |
---|
| 11 | + | |
---|
| 12 | + | @Callable(i) |
---|
| 13 | + | func save_data (data) = { |
---|
| 14 | + | let id = tryGetInteger("id") |
---|
| 15 | + | let new_id = IntegerEntry("id", (id + 1)) |
---|
| 16 | + | let saved_data = StringEntry(("ID_" + toString(id)), data) |
---|
| 17 | + | [saved_data] |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|
| 21 | + | @Verifier(tx) |
---|
| 22 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 23 | + | |
---|