tx · 7nfTNxesZt2MhxgFEZy4neCXRMuHZF4YQs3B23cnDwe6
3MtU5aMPh2DbQuqyRG2EhuFDfKGWJPyG8Ag: -0.05000000 Waves
2020.10.14 09:50 [1219893] smart account 3MtU5aMPh2DbQuqyRG2EhuFDfKGWJPyG8Ag > SELF 0.00000000 Waves
{
"type": 13,
"id": "7nfTNxesZt2MhxgFEZy4neCXRMuHZF4YQs3B23cnDwe6",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1602658302771,
"version": 2,
"chainId": 84,
"sender": "3MtU5aMPh2DbQuqyRG2EhuFDfKGWJPyG8Ag",
"senderPublicKey": "4VnE4rPseWEMjS2DJxyRfQHc6uhMWjJJXkccAavqKU47",
"proofs": [
"3zYm6bZAJandNvT7d54JNCZEdikiaL7zvaMU93f6egrMHCfxU48k6d7iFfv4ipdp9GTDHNBvTa4ECRpAgCGbAjo7"
],
"script": "base64:AAIEAAAAAAAAAAgIAhIAEgASAAAAAAAAAAADAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAlnZXRIZWlnaHQAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZoZWlnaHQAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAxnZXRUaW1lc3RhbXAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAl0aW1lc3RhbXAAAAAAAAAAAAEFAAAAA25pbAAAAAAQ8YTV",
"height": 1219893,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 99YCqwqSHUcavV7vuCfj91gHXVozjsddKyvqZrcLnpiL
Next: 7r52KqzdooJgaX8nyND7HZM4WfvWX7FYvwCeDfr8s8fw
Diff:
Old | New | | Differences |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | @Callable(i) |
---|
32 | | - | func getTimestampt () = [IntegerEntry("timestamp", 1)] |
---|
| 32 | + | func getTimestamp () = [IntegerEntry("timestamp", 1)] |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let pmt = value(i.payments[0]) |
---|
9 | 9 | | if (isDefined(pmt.assetId)) |
---|
10 | 10 | | then throw("works with waves only") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let currentKey = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let currentAmount = match getInteger(this, currentKey) { |
---|
14 | 14 | | case a: Int => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let newAmount = (currentAmount + pmt.amount) |
---|
20 | 20 | | [IntegerEntry(currentKey, newAmount)] |
---|
21 | 21 | | } |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Callable(i) |
---|
27 | 27 | | func getHeight () = [IntegerEntry("height", 1)] |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | @Callable(i) |
---|
32 | | - | func getTimestampt () = [IntegerEntry("timestamp", 1)] |
---|
| 32 | + | func getTimestamp () = [IntegerEntry("timestamp", 1)] |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|