tx · Gw6EfokrkTREbcu1skchLFePZGivwwL9S3s4y4bLSDVc
3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5: -0.01400000 Waves
2019.09.17 17:59 [680394] smart account 3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "Gw6EfokrkTREbcu1skchLFePZGivwwL9S3s4y4bLSDVc",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1568732399347,
"version": 1,
"sender": "3NCN79gCSaKTFV6fDoEzELoxDMrAUTCekd5",
"senderPublicKey": "4tD3VgZ1AmHzY7q1KZpn2mAkpMbBoXVAKSw3FRP9EXfT",
"proofs": [
"3o7Tm7w1u1YyCkYCMLYKdxMbXK5tiwmfBTmBhpP96jG8ZyabRvZm4xXpyoEQAGiJUpbxLi4fs5heTJBoFxehtpRd"
],
"script": "base64:AgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAQAAAACazAICQABkQAAAAIIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAAAAAADa2V5BAAAAAVldmVudAkAAS8AAAACBQAAAAJrMAkAAGUAAAACCQABMQAAAAEFAAAAAmswAAAAAAAAAAAFBAAAAAR0eGlkCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAWQAAAAEZGF0YQkAASwAAAACBQAAAAVldmVudAIAAAADX3R4BAAAAApleGNoYW5nZVR4CQEAAAAHZXh0cmFjdAAAAAEEAAAAByRtYXRjaDEJAAPoAAAAAQkAAlkAAAABBQAAAAR0eGlkAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gxBQAAAAFlBQAAAAR1bml0BAAAAAZwcmV2VHMJAAQaAAAAAggFAAAAAnR4AAAABnNlbmRlcgkAASwAAAACBQAAAA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R4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleecdE7s=",
"chainId": 84,
"height": 680394,
"spentComplexity": 0
}
View: original | compacted
Prev: E59KCj3gZx9abvpfv5kqTmdaXopB5NQ5WVsjQ6aFBReJ
Next: ExZrFuz3hYZmFQEPrYyzh4jYfZ6UMW84bW4juuvPPiSt
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 ((size(d.data) == 4)) |
---|
| 16 | + | if (if (if (if (if (if (if (if ((size(d.data) == 4)) |
---|
17 | 17 | | then (d.data[0].key == (event + "_rate")) |
---|
18 | 18 | | else false) |
---|
19 | 19 | | then (d.data[1].key == (event + "_timestamp")) |
---|
|
27 | 27 | | then (d.data[1].value == exchangeTx.timestamp) |
---|
28 | 28 | | else false) |
---|
29 | 29 | | then (d.data[2].value == txid) |
---|
| 30 | + | else false) |
---|
| 31 | + | then if (!(isDefined(prevTs))) |
---|
| 32 | + | then true |
---|
| 33 | + | else (extract(prevTs) > exchangeTx.timestamp) |
---|
30 | 34 | | else false |
---|
31 | 35 | | case _ => |
---|
32 | 36 | | 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 ((size(d.data) == 4)) |
---|
| 16 | + | if (if (if (if (if (if (if (if ((size(d.data) == 4)) |
---|
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 | 24 | | else false) |
---|
25 | 25 | | then (d.data[0].value == exchangeTx.price) |
---|
26 | 26 | | else false) |
---|
27 | 27 | | then (d.data[1].value == exchangeTx.timestamp) |
---|
28 | 28 | | else false) |
---|
29 | 29 | | then (d.data[2].value == txid) |
---|
| 30 | + | else false) |
---|
| 31 | + | then if (!(isDefined(prevTs))) |
---|
| 32 | + | then true |
---|
| 33 | + | else (extract(prevTs) > exchangeTx.timestamp) |
---|
30 | 34 | | else false |
---|
31 | 35 | | case _ => |
---|
32 | 36 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
33 | 37 | | } |
---|