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