tx · G7yyagkjjQBoYYNqLk9rPWUvE2EHy7aR28wHSrSJ5QA7
3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww: -0.01400000 Waves
2020.10.06 15:46 [1208720] smart account 3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww > SELF 0.00000000 Waves
{
"type": 13,
"id": "G7yyagkjjQBoYYNqLk9rPWUvE2EHy7aR28wHSrSJ5QA7",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1601988389189,
"version": 2,
"chainId": 84,
"sender": "3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww",
"senderPublicKey": "CNQtsB6HAGUVvb5L3NshmGW2pD94ysV6dzV6Zcf6BFCq",
"proofs": [
"5MaNrriMQKRxsYsLsLcmGSxikbJcJh1AdF4Q2eNi89Vx84MAAd9buAz85QmMmXFUAqLDirM34dk6aESBVyMNK26V"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAlpc0RlZmluZWQAAAABCQAEHQAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAQyMjJfCQABpAAAAAEIBQAAAANwbXQAAAAGYW1vdW50AgAAAAFfCQABpAAAAAEJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABCQAAaQAAAAIJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAAAAAAAAAAAEgIAAAADXzBfCQABpAAAAAEFAAAAA2xiaAIAAAADXzEwBQAAAANuaWwJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAQzMzNfCQABpAAAAAEIBQAAAANwbXQAAAAGYW1vdW50AgAAAAFfCQABpAAAAAEJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABCQAAaQAAAAIJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAAAAAAAAAAAEgIAAAADXzBfCQABpAAAAAEFAAAAA2xiaAIAAAADXzEwBQAAAANuaWwAAAAAkC9nEA==",
"height": 1208720,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 431NQGi4fRG5G7GQEsSAuRnkvADkg8Eae6PZRseSVr3K
Next: AtFHYfBKVmSmwYDuSsw43oseM6tZ3nK1YxZGV4XyMnVU
Diff:
Old | New | | Differences |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
14 | | - | let currentAmount = match getInteger(this, currentKey) { |
---|
15 | | - | case a: Int => |
---|
16 | | - | a |
---|
17 | | - | case _ => |
---|
18 | | - | 0 |
---|
19 | | - | } |
---|
20 | | - | WriteSet([DataEntry(currentKey, (((((((((toString(currentAmount) + "_") + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 14 | + | if (isDefined(getString(this, currentKey))) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((("222_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else WriteSet([DataEntry(currentKey, (((((((("333_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
21 | 17 | | } |
---|
22 | 18 | | } |
---|
23 | 19 | | |
---|
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(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let pmt = extract(i.payment) |
---|
9 | 9 | | let lbh = lastBlock.height |
---|
10 | 10 | | if (isDefined(pmt.assetId)) |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
14 | | - | let currentAmount = match getInteger(this, currentKey) { |
---|
15 | | - | case a: Int => |
---|
16 | | - | a |
---|
17 | | - | case _ => |
---|
18 | | - | 0 |
---|
19 | | - | } |
---|
20 | | - | WriteSet([DataEntry(currentKey, (((((((((toString(currentAmount) + "_") + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 14 | + | if (isDefined(getString(this, currentKey))) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((("222_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else WriteSet([DataEntry(currentKey, (((((((("333_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
21 | 17 | | } |
---|
22 | 18 | | } |
---|
23 | 19 | | |
---|
24 | 20 | | |
---|