tx · 7EqykozJ4VHrdwCrVUQZC6JU5gsL1jfARGevWkNQGbJ9 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp: -0.05000000 Waves 2020.10.14 14:15 [1220148] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves
{ "type": 13, "id": "7EqykozJ4VHrdwCrVUQZC6JU5gsL1jfARGevWkNQGbJ9", "fee": 5000000, "feeAssetId": null, "timestamp": 1602674094403, "version": 2, "chainId": 84, "sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp", "senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu", "proofs": [ "37cQExvmH9v7HwRSud85E8hZWYW1HNEyAhv1LM1VJMx6Uk2Ee5y1jp9R2pSMHvP2j9iJLYuUj6Ahw32hJQR7T8bi" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAAAgAAAAAJbWluSGVpZ2h0AAAAAAAAEp14AAAAAAxtaW5UaW1lc3RhbXAAAAABdSaBNxUAAAAEAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAlnZXRIZWlnaHQAAAAAAwkAAGcAAAACBQAAAAZoZWlnaHQFAAAACW1pbkhlaWdodAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGaGVpZ2h0BQAAAAZoZWlnaHQFAAAAA25pbAkAAAIAAAABAgAAABhNaW4gSGVpZ2h0IGlzIG1pbkhlaWdodCAAAAABaQEAAAAMZ2V0VGltZXN0YW1wAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJdGltZXN0YW1wAAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAANaW5jcmVhc2VDb3VudAAAAAAEAAAABWNvdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAABWNvdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAABWNvdW50BQAAAAckbWF0Y2gwBQAAAAVjb3VudAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFY291bnQJAABkAAAAAgUAAAAFY291bnQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAA7msoABQAAAAR1bml0BQAAAANuaWwAAAAAfHXFAw==", "height": 1220148, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C4yXHaBAyrJSTp55dwpCMQg7rwmJuTnJfZ3WpZiRtr5p Next: 2RMkPCwfTz32e1MMvUFrFArgMnCCkrJ1CFpUyhiNkfcm Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | case _ => | |
46 | 46 | 0 | |
47 | 47 | } | |
48 | - | [IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, | |
48 | + | [IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, 1000000000, unit)] | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let minHeight = 1219960 | |
5 | 5 | ||
6 | 6 | let minTimestamp = 1602668803861 | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func deposit () = { | |
10 | 10 | let pmt = value(i.payments[0]) | |
11 | 11 | if (isDefined(pmt.assetId)) | |
12 | 12 | then throw("works with waves only") | |
13 | 13 | else { | |
14 | 14 | let currentKey = toBase58String(i.caller.bytes) | |
15 | 15 | let currentAmount = match getInteger(this, currentKey) { | |
16 | 16 | case a: Int => | |
17 | 17 | a | |
18 | 18 | case _ => | |
19 | 19 | 0 | |
20 | 20 | } | |
21 | 21 | let newAmount = (currentAmount + pmt.amount) | |
22 | 22 | [IntegerEntry(currentKey, newAmount)] | |
23 | 23 | } | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(i) | |
29 | 29 | func getHeight () = if ((height >= minHeight)) | |
30 | 30 | then [IntegerEntry("height", height)] | |
31 | 31 | else throw("Min Height is minHeight ") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | ||
35 | 35 | @Callable(i) | |
36 | 36 | func getTimestamp () = [IntegerEntry("timestamp", 1)] | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | ||
40 | 40 | @Callable(i) | |
41 | 41 | func increaseCount () = { | |
42 | 42 | let count = match getInteger(this, "count") { | |
43 | 43 | case count: Int => | |
44 | 44 | count | |
45 | 45 | case _ => | |
46 | 46 | 0 | |
47 | 47 | } | |
48 | - | [IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, | |
48 | + | [IntegerEntry("count", (count + 1)), ScriptTransfer(i.caller, 1000000000, unit)] | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 |
github/deemru/w8io/169f3d6 33.28 ms ◑