tx · 431NQGi4fRG5G7GQEsSAuRnkvADkg8Eae6PZRseSVr3K
3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww: -0.01400000 Waves
2020.10.06 15:42 [1208715] smart account 3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww > SELF 0.00000000 Waves
{
"type": 13,
"id": "431NQGi4fRG5G7GQEsSAuRnkvADkg8Eae6PZRseSVr3K",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1601988145555,
"version": 2,
"chainId": 84,
"sender": "3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww",
"senderPublicKey": "CNQtsB6HAGUVvb5L3NshmGW2pD94ysV6dzV6Zcf6BFCq",
"proofs": [
"5CW66MNjk9S7HkVu3LasNjtZFM5ctmESEit3WTZ5xRsHaPPVWEuHTb2iirw7RVFqicWHzMi91SEkevHN1KeHg9Yk"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQUAAAANY3VycmVudEFtb3VudAIAAAABXwkAAaQAAAABCAUAAAADcG10AAAABmFtb3VudAIAAAABXwkAAaQAAAABCQAAaAAAAAIJAABpAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQAAAAAAAAAAHgCAAAAAV8JAAGkAAAAAQkAAGkAAAACCQAAaAAAAAIJAABpAAAAAggFAAAAA3BtdAAAAAZhbW91bnQAAAAAAAAAAGQAAAAAAAAAAHgAAAAAAAAAABICAAAAA18wXwkAAaQAAAABBQAAAANsYmgCAAAAA18xMAUAAAADbmlsAAAAAHp0ZmQ=",
"height": 1208715,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6LXguuSvnAfubUNFFWoxAc55QXzaPM8S6S1YPo4krp86
Next: G7yyagkjjQBoYYNqLk9rPWUvE2EHy7aR28wHSrSJ5QA7
Diff:
Old | New | | Differences |
---|
20 | 20 | | } |
---|
21 | 21 | | else 0 |
---|
22 | 22 | | } |
---|
23 | | - | WriteSet([DataEntry(d, (((((((((toString(e) + ",") + toString(b.amount)) + ",") + toString(((b.amount / 100) * 120))) + ",") + toString((((b.amount / 100) * 120) / 18))) + ",0,") + toString(c)) + ",10"))]) |
---|
| 23 | + | WriteSet([DataEntry(d, (((((((((toString(e) + "_") + toString(b.amount)) + "_") + toString(((b.amount / 100) * 120))) + "_") + toString((((b.amount / 100) * 120) / 18))) + "_0_") + toString(c)) + "_10"))]) |
---|
24 | 24 | | } |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let b = extract(a.payment) |
---|
9 | 9 | | let c = lastBlock.height |
---|
10 | 10 | | if (isDefined(b.assetId)) |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let d = toBase58String(a.caller.bytes) |
---|
14 | 14 | | let e = { |
---|
15 | 15 | | let f = getInteger(this, d) |
---|
16 | 16 | | if ($isInstanceOf(f, "Int")) |
---|
17 | 17 | | then { |
---|
18 | 18 | | let g = f |
---|
19 | 19 | | g |
---|
20 | 20 | | } |
---|
21 | 21 | | else 0 |
---|
22 | 22 | | } |
---|
23 | | - | WriteSet([DataEntry(d, (((((((((toString(e) + ",") + toString(b.amount)) + ",") + toString(((b.amount / 100) * 120))) + ",") + toString((((b.amount / 100) * 120) / 18))) + ",0,") + toString(c)) + ",10"))]) |
---|
| 23 | + | WriteSet([DataEntry(d, (((((((((toString(e) + "_") + toString(b.amount)) + "_") + toString(((b.amount / 100) * 120))) + "_") + toString((((b.amount / 100) * 120) / 18))) + "_0_") + toString(c)) + "_10"))]) |
---|
24 | 24 | | } |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|