tx · 9kvzSHWQt4mfmBeB9987ZVMrKpcbK3CzKvam8718eot9
3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5: -0.01400000 Waves
2019.09.17 20:10 [680527] smart account 3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9kvzSHWQt4mfmBeB9987ZVMrKpcbK3CzKvam8718eot9",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1568740245168,
"version": 1,
"sender": "3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5",
"senderPublicKey": "4tD3VgZ1AmHzY7q1KZpn2mAkpMbBoXVAKSw3FRP9EXfT",
"proofs": [
"3CAYEAJ2sb9boJrXLQPk8TpRbtDmGEsNvXDADhGsjeesYgciC17HKkbJ94ee9ZdobBfuenGGZpzjGd4m1y1bsYKf"
],
"script": "base64:AgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAQAAAACazAICQABkQAAAAIIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAAAAAADa2V5BAAAAAVldmVudAkAAS8AAAACBQAAAAJrMAkAAGUAAAACCQABMQAAAAEFAAAAAmswAAAAAAAAAAAFBAAAAAR0eGlkCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAWQAAAAEZGF0YQkAASwAAAACBQAAAAVldmVudAIAAAADX3R4BAAAAApleGNoYW5nZVR4CQEAAAAHZXh0cmFjdAAAAAEEAAAAByRtYXRjaDEJAAPoAAAAAQkAAlkAAAABBQAAAAR0eGlkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gxBQAAAAFlBQAAAAR1bml0BAAAAAZwcmV2VHMJAAQaAAAAAggFAAAAAnR4AAAABnNlbmRlcgkAASwAAAACBQAAAAVld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5nZVR4AAAACXRpbWVzdGFtcAcJAAAAAAAAAgkAAaQAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAWQAAAAEZGF0YQkAASwAAAACBQAAAAVldmVudAIAAAAIX2V2ZW50dHMFAAAAB2V2ZW50VHMHCQAAZwAAAAIIBQAAAApleGNoYW5nZVR4AAAACXRpbWVzdGFtcAkAAGgAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAWQAAAAEZGF0YQkAASwAAAACBQAAAAVldmVudAIAAAAIX2V2ZW50dHMAAAAAAAAAA+gHCQAAAAAAAAIICQABkQAAAAIIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAQAAAAFdmFsdWUJAAPpAAAAAQkAAlkAAAABBQAAAAR0eGlkBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXls0YZw",
"chainId": 84,
"height": 680527,
"spentComplexity": 0
}
View: original | compacted
Prev: 9kv45cS7rjYqnvq9q7wPjWPDdfA886F1vAM6Y8iUUAAD
Next: none
Diff:
Old | New | | Differences |
---|
13 | 13 | | }) |
---|
14 | 14 | | let prevTs = getInteger(tx.sender, (event + "_timestamp")) |
---|
15 | 15 | | let eventTs = takeRight(event, 10) |
---|
16 | | - | if (if (if (if (if (if (if (if (if (if ((size(d.data) == 4)) |
---|
| 16 | + | if (if (if (if (if (if (if (if (if (if (if (if ((size(d.data) == 5)) |
---|
17 | 17 | | then (d.data[0].key == (event + "_rate")) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (d.data[1].key == (event + "_timestamp")) |
---|
|
21 | 21 | | then (d.data[2].key == (event + "_tx")) |
---|
22 | 22 | | else false) |
---|
23 | 23 | | then (d.data[3].key == (event + "_eventts")) |
---|
| 24 | + | else false) |
---|
| 25 | + | then (d.data[4].key == (event + "_height")) |
---|
24 | 26 | | else false) |
---|
25 | 27 | | then (d.data[0].value == exchangeTx.price) |
---|
26 | 28 | | else false) |
---|
|
35 | 37 | | then (toString(extract(getInteger(d.data, (event + "_eventts")))) == eventTs) |
---|
36 | 38 | | else false) |
---|
37 | 39 | | then (exchangeTx.timestamp >= (extract(getInteger(d.data, (event + "_eventts"))) * 1000)) |
---|
| 40 | + | else false) |
---|
| 41 | + | then (d.data[4].value == transactionHeightById(fromBase58String(txid))) |
---|
38 | 42 | | else false |
---|
39 | 43 | | case _ => |
---|
40 | 44 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case d: DataTransaction => |
---|
5 | 5 | | let k0 = d.data[0].key |
---|
6 | 6 | | let event = take(k0, (size(k0) - 5)) |
---|
7 | 7 | | let txid = extract(getString(d.data, (event + "_tx"))) |
---|
8 | 8 | | let exchangeTx = extract( match transactionById(fromBase58String(txid)) { |
---|
9 | 9 | | case e: ExchangeTransaction => |
---|
10 | 10 | | e |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | unit |
---|
13 | 13 | | }) |
---|
14 | 14 | | let prevTs = getInteger(tx.sender, (event + "_timestamp")) |
---|
15 | 15 | | let eventTs = takeRight(event, 10) |
---|
16 | | - | if (if (if (if (if (if (if (if (if (if ((size(d.data) == 4)) |
---|
| 16 | + | if (if (if (if (if (if (if (if (if (if (if (if ((size(d.data) == 5)) |
---|
17 | 17 | | then (d.data[0].key == (event + "_rate")) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (d.data[1].key == (event + "_timestamp")) |
---|
20 | 20 | | else false) |
---|
21 | 21 | | then (d.data[2].key == (event + "_tx")) |
---|
22 | 22 | | else false) |
---|
23 | 23 | | then (d.data[3].key == (event + "_eventts")) |
---|
| 24 | + | else false) |
---|
| 25 | + | then (d.data[4].key == (event + "_height")) |
---|
24 | 26 | | else false) |
---|
25 | 27 | | then (d.data[0].value == exchangeTx.price) |
---|
26 | 28 | | else false) |
---|
27 | 29 | | then (d.data[1].value == exchangeTx.timestamp) |
---|
28 | 30 | | else false) |
---|
29 | 31 | | then (d.data[2].value == txid) |
---|
30 | 32 | | else false) |
---|
31 | 33 | | then if (!(isDefined(prevTs))) |
---|
32 | 34 | | then true |
---|
33 | 35 | | else (extract(prevTs) > exchangeTx.timestamp) |
---|
34 | 36 | | else false) |
---|
35 | 37 | | then (toString(extract(getInteger(d.data, (event + "_eventts")))) == eventTs) |
---|
36 | 38 | | else false) |
---|
37 | 39 | | then (exchangeTx.timestamp >= (extract(getInteger(d.data, (event + "_eventts"))) * 1000)) |
---|
| 40 | + | else false) |
---|
| 41 | + | then (d.data[4].value == transactionHeightById(fromBase58String(txid))) |
---|
38 | 42 | | else false |
---|
39 | 43 | | case _ => |
---|
40 | 44 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
41 | 45 | | } |
---|