tx · A1pxvTVDUSNKKizP1fPa2CSaCt3MnpJyj7toGB8Zrpte
3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp: -0.05000000 Waves
2020.10.07 14:11 [1210070] smart account 3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp > SELF 0.00000000 Waves
{
"type": 13,
"id": "A1pxvTVDUSNKKizP1fPa2CSaCt3MnpJyj7toGB8Zrpte",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1602069104879,
"version": 2,
"chainId": 84,
"sender": "3MpCYRCcvnsGSt9HsY8EbziFE8aQsPBeGSp",
"senderPublicKey": "EDsT8xniB2ycm6wVZJ2XcrakhVsfC7vCemAx3gk3iopu",
"proofs": [
"5K7tTYqB5hCS7iWVchFErVr3QmtWMHo3PLQ5LQ4pCjBYh8bniKHpeLZhQFmHgVkKQuVB9swDVTqnEz1jzTYiC8yx"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAADWN1cnJlbnRBbW91bnQEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAABkAAAAAgUAAAANY3VycmVudEFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAlQL5AAFAAAABHVuaXQFAAAAA25pbAAAAACTn04x",
"height": 1210070,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Cr1mGJDBBCoqjv8LvKjhyt7aZbzbtJEKwaNDN44qyFMB
Next: 6MxU6oiSVqFD4p82gbUQ3KqbK1Bz6fiNT39LQy5uZLXX
Diff:
Old | New | | Differences |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let newAmount = (currentAmount + pmt.amount) |
---|
20 | | - | [IntegerEntry(currentKey, newAmount)] |
---|
| 20 | + | [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, 10000000000, unit)] |
---|
21 | 21 | | } |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
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 | | - | [IntegerEntry(currentKey, newAmount)] |
---|
| 20 | + | [IntegerEntry(currentKey, newAmount), ScriptTransfer(i.caller, 10000000000, unit)] |
---|
21 | 21 | | } |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|