tx · DTvQbjMJ3XYp8kGaynns5NLc3Ejan4EFQnugEFh3mWCz
3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp: -0.04000000 Waves
2020.10.14 14:02 [1220137] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves
{
"type": 13,
"id": "DTvQbjMJ3XYp8kGaynns5NLc3Ejan4EFQnugEFh3mWCz",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1602673318589,
"version": 2,
"chainId": 84,
"sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp",
"senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu",
"proofs": [
"4o24ZVKAuAkJtbuNETm8hnjW1mtPjPDBJRaTMvCo1j3YDoddGoriVhsyTTwprxJKkQDQdmAcwxC2SetEtbW3UszW"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIAEgASABIAAAAAAgAAAAAJbWluSGVpZ2h0AAAAAAAAEp14AAAAAAxtaW5UaW1lc3RhbXAAAAABdSaBNxUAAAAEAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAApjdXJyZW50S2V5BQAAAAluZXdBbW91bnQFAAAAA25pbAAAAAFpAQAAAAlnZXRIZWlnaHQAAAAAAwkAAGcAAAACBQAAAAZoZWlnaHQFAAAACW1pbkhlaWdodAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGaGVpZ2h0BQAAAAZoZWlnaHQFAAAAA25pbAkAAAIAAAABAgAAABhNaW4gSGVpZ2h0IGlzIG1pbkhlaWdodCAAAAABaQEAAAAMZ2V0VGltZXN0YW1wAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAJdGltZXN0YW1wAAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAANaW5jcmVhc2VDb3VudAAAAAAEAAAABWNvdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAABWNvdW50AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAABWNvdW50BQAAAAckbWF0Y2gwBQAAAAVjb3VudAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFY291bnQJAABkAAAAAgUAAAAFY291bnQAAAAAAAAAAAEFAAAAA25pbAAAAAA9+8lE",
"height": 1220137,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: GNd1RP7zU6YP5hpUP8Pnq6VL4r41oK3hZ14ASoqjoaeE
Next: C4yXHaBAyrJSTp55dwpCMQg7rwmJuTnJfZ3WpZiRtr5p
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = 1219960 |
---|
5 | 5 | | |
---|
6 | | - | @Callable(b) |
---|
| 6 | + | let b = 1602668803861 |
---|
| 7 | + | |
---|
| 8 | + | @Callable(c) |
---|
7 | 9 | | func deposit () = { |
---|
8 | | - | let c = value(b.payments[0]) |
---|
9 | | - | if (isDefined(c.assetId)) |
---|
| 10 | + | let d = value(c.payments[0]) |
---|
| 11 | + | if (isDefined(d.assetId)) |
---|
10 | 12 | | then throw("works with waves only") |
---|
11 | 13 | | else { |
---|
12 | | - | let d = toBase58String(b.caller.bytes) |
---|
13 | | - | let e = { |
---|
14 | | - | let f = getInteger(this, d) |
---|
15 | | - | if ($isInstanceOf(f, "Int")) |
---|
| 14 | + | let e = toBase58String(c.caller.bytes) |
---|
| 15 | + | let f = { |
---|
| 16 | + | let g = getInteger(this, e) |
---|
| 17 | + | if ($isInstanceOf(g, "Int")) |
---|
16 | 18 | | then { |
---|
17 | | - | let g = f |
---|
18 | | - | g |
---|
| 19 | + | let h = g |
---|
| 20 | + | h |
---|
19 | 21 | | } |
---|
20 | 22 | | else 0 |
---|
21 | 23 | | } |
---|
22 | | - | let h = (e + c.amount) |
---|
23 | | - | [IntegerEntry(d, h)] |
---|
| 24 | + | let i = (f + d.amount) |
---|
| 25 | + | [IntegerEntry(e, i)] |
---|
24 | 26 | | } |
---|
25 | 27 | | } |
---|
26 | 28 | | |
---|
27 | 29 | | |
---|
28 | 30 | | |
---|
29 | | - | @Callable(b) |
---|
| 31 | + | @Callable(c) |
---|
30 | 32 | | func getHeight () = if ((height >= a)) |
---|
31 | 33 | | then [IntegerEntry("height", height)] |
---|
32 | 34 | | else throw("Min Height is minHeight ") |
---|
33 | 35 | | |
---|
34 | 36 | | |
---|
35 | 37 | | |
---|
36 | | - | @Callable(b) |
---|
| 38 | + | @Callable(c) |
---|
37 | 39 | | func getTimestamp () = [IntegerEntry("timestamp", 1)] |
---|
| 40 | + | |
---|
| 41 | + | |
---|
| 42 | + | |
---|
| 43 | + | @Callable(c) |
---|
| 44 | + | func increaseCount () = { |
---|
| 45 | + | let j = { |
---|
| 46 | + | let g = getInteger(this, "count") |
---|
| 47 | + | if ($isInstanceOf(g, "Int")) |
---|
| 48 | + | then { |
---|
| 49 | + | let j = g |
---|
| 50 | + | j |
---|
| 51 | + | } |
---|
| 52 | + | else 0 |
---|
| 53 | + | } |
---|
| 54 | + | [IntegerEntry("count", (j + 1))] |
---|
| 55 | + | } |
---|
38 | 56 | | |
---|
39 | 57 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = 1219960 |
---|
5 | 5 | | |
---|
6 | | - | @Callable(b) |
---|
| 6 | + | let b = 1602668803861 |
---|
| 7 | + | |
---|
| 8 | + | @Callable(c) |
---|
7 | 9 | | func deposit () = { |
---|
8 | | - | let c = value(b.payments[0]) |
---|
9 | | - | if (isDefined(c.assetId)) |
---|
| 10 | + | let d = value(c.payments[0]) |
---|
| 11 | + | if (isDefined(d.assetId)) |
---|
10 | 12 | | then throw("works with waves only") |
---|
11 | 13 | | else { |
---|
12 | | - | let d = toBase58String(b.caller.bytes) |
---|
13 | | - | let e = { |
---|
14 | | - | let f = getInteger(this, d) |
---|
15 | | - | if ($isInstanceOf(f, "Int")) |
---|
| 14 | + | let e = toBase58String(c.caller.bytes) |
---|
| 15 | + | let f = { |
---|
| 16 | + | let g = getInteger(this, e) |
---|
| 17 | + | if ($isInstanceOf(g, "Int")) |
---|
16 | 18 | | then { |
---|
17 | | - | let g = f |
---|
18 | | - | g |
---|
| 19 | + | let h = g |
---|
| 20 | + | h |
---|
19 | 21 | | } |
---|
20 | 22 | | else 0 |
---|
21 | 23 | | } |
---|
22 | | - | let h = (e + c.amount) |
---|
23 | | - | [IntegerEntry(d, h)] |
---|
| 24 | + | let i = (f + d.amount) |
---|
| 25 | + | [IntegerEntry(e, i)] |
---|
24 | 26 | | } |
---|
25 | 27 | | } |
---|
26 | 28 | | |
---|
27 | 29 | | |
---|
28 | 30 | | |
---|
29 | | - | @Callable(b) |
---|
| 31 | + | @Callable(c) |
---|
30 | 32 | | func getHeight () = if ((height >= a)) |
---|
31 | 33 | | then [IntegerEntry("height", height)] |
---|
32 | 34 | | else throw("Min Height is minHeight ") |
---|
33 | 35 | | |
---|
34 | 36 | | |
---|
35 | 37 | | |
---|
36 | | - | @Callable(b) |
---|
| 38 | + | @Callable(c) |
---|
37 | 39 | | func getTimestamp () = [IntegerEntry("timestamp", 1)] |
---|
| 40 | + | |
---|
| 41 | + | |
---|
| 42 | + | |
---|
| 43 | + | @Callable(c) |
---|
| 44 | + | func increaseCount () = { |
---|
| 45 | + | let j = { |
---|
| 46 | + | let g = getInteger(this, "count") |
---|
| 47 | + | if ($isInstanceOf(g, "Int")) |
---|
| 48 | + | then { |
---|
| 49 | + | let j = g |
---|
| 50 | + | j |
---|
| 51 | + | } |
---|
| 52 | + | else 0 |
---|
| 53 | + | } |
---|
| 54 | + | [IntegerEntry("count", (j + 1))] |
---|
| 55 | + | } |
---|
38 | 56 | | |
---|
39 | 57 | | |
---|