tx · Eh4w7kajvoqxDsjdwzM2njedJm1aacTTVUcMR9CwzWLq
3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq: -0.01000000 Waves
2023.01.07 19:56 [2394808] smart account 3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq > SELF 0.00000000 Waves
{
"type": 13,
"id": "Eh4w7kajvoqxDsjdwzM2njedJm1aacTTVUcMR9CwzWLq",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1673110720935,
"version": 2,
"chainId": 84,
"sender": "3NCSUUm7nAFGsH6GPxDLxiQFgB1bvtn5BYq",
"senderPublicKey": "CBPmcb8KZMwhakNhECGYzad54tQXotGdRSngabhoym36",
"proofs": [
"5mL1d9rB127CChe9qBHTtW9EDx25ffy61tvVafnMv6bWAcx7caR8qkH7pEDEV5DG6Gw1MMv8R3qTdwPFHF35Zhnu"
],
"script": "base64:AwZd0cYf",
"height": 2394808,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8vSZhMVYor5ZbFVUfkxnzTwuu7unwBKQu9qS6QkSoD7b
Next: 5KhKZ2boWEpdbSAJg3h3GRCKk9cVHKfSTY64iaKLK5Cc
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | | - | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | | - | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
5 | | - | |
---|
6 | | - | @Callable(i) |
---|
7 | | - | func deposit () = { |
---|
8 | | - | let pmt = extract(i.payment) |
---|
9 | | - | if (isDefined(pmt.assetId)) |
---|
10 | | - | then throw("can hodl waves only at the moment") |
---|
11 | | - | else { |
---|
12 | | - | let currentKey = toBase58String(i.caller.bytes) |
---|
13 | | - | let currentAmount = match getInteger(this, currentKey) { |
---|
14 | | - | case a: Int => |
---|
15 | | - | a |
---|
16 | | - | case _ => |
---|
17 | | - | 0 |
---|
18 | | - | } |
---|
19 | | - | let newAmount = (currentAmount + pmt.amount) |
---|
20 | | - | WriteSet([DataEntry(currentKey, newAmount)]) |
---|
21 | | - | } |
---|
22 | | - | } |
---|
23 | | - | |
---|
24 | | - | |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | true |
---|