tx · CEqU3DyWQKgcnKDSjTxbq1ZrY49oZfdeQNhULVYVamUv
3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww: -0.01400000 Waves
2020.10.06 15:49 [1208724] smart account 3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww > SELF 0.00000000 Waves
{
"type": 13,
"id": "CEqU3DyWQKgcnKDSjTxbq1ZrY49oZfdeQNhULVYVamUv",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1601988571559,
"version": 2,
"chainId": 84,
"sender": "3NCv9hyL5NUbMMkTXYnN9hL9AMQd6f2eVww",
"senderPublicKey": "CNQtsB6HAGUVvb5L3NshmGW2pD94ysV6dzV6Zcf6BFCq",
"proofs": [
"3HiXyZFE4mFjdvhmGLPE2gQRMPvgJo4Z8Q3mmskaAL35snqRCfXHhaz7rcUq9eVPaTJvimraz5eFtbDWHjjoFM2h"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABG5ld18JAAGkAAAAAQgFAAAAA3BtdAAAAAZhbW91bnQCAAAAAV8JAAGkAAAAAQkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEJAABpAAAAAgkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AAAAAAAAAAASAgAAAANfMF8JAAGkAAAAAQUAAAADbGJoAgAAAANfMTAFAAAAA25pbAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAABG9sZF8JAAGkAAAAAQgFAAAAA3BtdAAAAAZhbW91bnQCAAAAAV8JAAGkAAAAAQkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEJAABpAAAAAgkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AAAAAAAAAAASAgAAAANfMF8JAAGkAAAAAQUAAAADbGJoAgAAAANfMTAFAAAAA25pbAAAAADYDvYs",
"height": 1208724,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AtFHYfBKVmSmwYDuSsw43oseM6tZ3nK1YxZGV4XyMnVU
Next: He1ZULkxXitzLNcGVSLhTpTFJmRb7QuJgUuEzD8rHQBN
Diff:
Old | New | | Differences |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
14 | 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"))]) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((("new_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else WriteSet([DataEntry(currentKey, (((((((("old_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 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 | 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"))]) |
---|
| 15 | + | then WriteSet([DataEntry(currentKey, (((((((("new_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
| 16 | + | else WriteSet([DataEntry(currentKey, (((((((("old_" + toString(pmt.amount)) + "_") + toString(((pmt.amount / 100) * 120))) + "_") + toString((((pmt.amount / 100) * 120) / 18))) + "_0_") + toString(lbh)) + "_10"))]) |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|