tx · 7edFwCNnCsBD6M72EQ3p8MdeN3nuKLoxcKAMFYLvRnAE 3N7FMWSc4rRY3Gd6FEbVwCAcexQjuy6Nk7i: -0.01400000 Waves 2019.01.27 18:49 [468835] smart account 3N7FMWSc4rRY3Gd6FEbVwCAcexQjuy6Nk7i > SELF 0.00000000 Waves
{ "type": 13, "id": "7edFwCNnCsBD6M72EQ3p8MdeN3nuKLoxcKAMFYLvRnAE", "fee": 1400000, "feeAssetId": null, "timestamp": 1548604212352, "version": 1, "sender": "3N7FMWSc4rRY3Gd6FEbVwCAcexQjuy6Nk7i", "senderPublicKey": "2JuqCboosjGdvPpspNEHLK7BvVwjYpGRXBngdz2LtTMX", "proofs": [ "1111111111111111111111111111111111111111111111111111111111111111" ], "script": "base64:AQQAAAALcGF5ZWRBbW91bnQJAABoAAAAAgAAAAAAAAAAAQAAAAAABfXhAAQAAAAKcGF5ZWRUeEZlZQAAAAAAAJiWgAQAAAAJZGF0YVR4RmVlAAAAAAAAmJaABAAAAAZzcXVhcmUAAAAAAAAAADIEAAAACHN0YXJ0UG9zAAAAAAAAAAAABAAAAAZlbmRQb3MJAABpAAAAAgkAAGkAAAACCQAAaAAAAAIAAAAAAAAAA+gAAAAAAAAAA+gFAAAABnNxdWFyZQUAAAAGc3F1YXJlBAAAAAJtZQgFAAAAAnR4AAAABnNlbmRlcgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAJaW5zZXJ0UG9zCQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAXQAAAAEZGF0YQIAAAADcG9zBAAAAAtwYXltZW50VHhJZAkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAF0AAAABGRhdGECAAAAC3BheW1lbnRUeElkBAAAAA9zYXRpc2ZpZXNGb3JtYXQDAwMDAwkAAAAAAAACCQABkAAAAAEIBQAAA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pZAkAAAAAAAACCAUAAAAJcGF5bWVudFR4AAAACXJlY2lwaWVudAUAAAACbWUHCQAAZwAAAAIIBQAAAAlwYXltZW50VHgAAAAGYW1vdW50CQAAZQAAAAIFAAAAC3BheWVkQW1vdW50BQAAAApwYXllZFR4RmVlBwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAACXBheW1lbnRUeAAAAAdhc3NldElkBwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAAJcGF5bWVudFR4AAAAD3NlbmRlclB1YmxpY0tleQcJAAAAAAAAAggFAAAAAXQAAAADZmVlBQAAAAlkYXRhVHhGZWUHBwaaNJYs", "chainId": 84, "height": 468835, "spentComplexity": 0 } View: original | compacted Prev: 5FPSSTe7t5Bq1G1rb3bTUK7BtRS9MhYsFGx3GKYkJqyV Next: DogFEx5xqcnJtjbDvr6dfBj88vrasuNiE4EUUEaCmTXK Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | case t: DataTransaction => | |
12 | 12 | let insertPos = extract(getInteger(t.data, "pos")) | |
13 | 13 | let paymentTxId = extract(getString(t.data, "paymentTxId")) | |
14 | - | let satisfiesFormat = if (if (if (if ((size(t.data) == 4)) | |
14 | + | let satisfiesFormat = if (if (if (if (if ((size(t.data) == 4)) | |
15 | 15 | then isDefined(getInteger(t.data, "pos")) | |
16 | 16 | else false) | |
17 | 17 | then isDefined(getString(t.data, "paymentTxId")) | |
19 | 19 | then isDefined(getString(t.data, toString(insertPos))) | |
20 | 20 | else false) | |
21 | 21 | then isDefined(getString(t.data, paymentTxId)) | |
22 | + | else false) | |
23 | + | then (getString(t.data, paymentTxId) == "u") | |
22 | 24 | else false | |
23 | 25 | let validPos = if ((insertPos >= startPos)) | |
24 | 26 | then (endPos > insertPos) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let payedAmount = (1 * 100000000) | |
4 | 4 | let payedTxFee = 10000000 | |
5 | 5 | let dataTxFee = 10000000 | |
6 | 6 | let square = 50 | |
7 | 7 | let startPos = 0 | |
8 | 8 | let endPos = (((1000 * 1000) / square) / square) | |
9 | 9 | let me = tx.sender | |
10 | 10 | match tx { | |
11 | 11 | case t: DataTransaction => | |
12 | 12 | let insertPos = extract(getInteger(t.data, "pos")) | |
13 | 13 | let paymentTxId = extract(getString(t.data, "paymentTxId")) | |
14 | - | let satisfiesFormat = if (if (if (if ((size(t.data) == 4)) | |
14 | + | let satisfiesFormat = if (if (if (if (if ((size(t.data) == 4)) | |
15 | 15 | then isDefined(getInteger(t.data, "pos")) | |
16 | 16 | else false) | |
17 | 17 | then isDefined(getString(t.data, "paymentTxId")) | |
18 | 18 | else false) | |
19 | 19 | then isDefined(getString(t.data, toString(insertPos))) | |
20 | 20 | else false) | |
21 | 21 | then isDefined(getString(t.data, paymentTxId)) | |
22 | + | else false) | |
23 | + | then (getString(t.data, paymentTxId) == "u") | |
22 | 24 | else false | |
23 | 25 | let validPos = if ((insertPos >= startPos)) | |
24 | 26 | then (endPos > insertPos) | |
25 | 27 | else false | |
26 | 28 | let posNotUsed = !(isDefined(getString(me, toString(insertPos)))) | |
27 | 29 | let txNotUsed = !(isDefined(getString(me, paymentTxId))) | |
28 | 30 | let dataTransactionValid = if (if (if (satisfiesFormat) | |
29 | 31 | then validPos | |
30 | 32 | else false) | |
31 | 33 | then posNotUsed | |
32 | 34 | else false) | |
33 | 35 | then txNotUsed | |
34 | 36 | else false | |
35 | 37 | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
36 | 38 | match paymentTx { | |
37 | 39 | case paymentTx: TransferTransaction => | |
38 | 40 | if (if (if (if (if (dataTransactionValid) | |
39 | 41 | then (paymentTx.recipient == me) | |
40 | 42 | else false) | |
41 | 43 | then (paymentTx.amount >= (payedAmount - payedTxFee)) | |
42 | 44 | else false) | |
43 | 45 | then !(isDefined(paymentTx.assetId)) | |
44 | 46 | else false) | |
45 | 47 | then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey) | |
46 | 48 | else false) | |
47 | 49 | then (t.fee == dataTxFee) | |
48 | 50 | else false | |
49 | 51 | case _ => | |
50 | 52 | false | |
51 | 53 | } | |
52 | 54 | case _ => | |
53 | 55 | true | |
54 | 56 | } |
github/deemru/w8io/169f3d6 37.69 ms ◑