tx · 6GAVkAAZtBeL2R3ht5NVYuKHTe19hQoNVzwM1SJnmfHi 3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP: -0.01400000 Waves 2019.02.08 02:48 [485347] smart account 3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP > SELF 0.00000000 Waves
{ "type": 13, "id": "6GAVkAAZtBeL2R3ht5NVYuKHTe19hQoNVzwM1SJnmfHi", "fee": 1400000, "feeAssetId": null, "timestamp": 1549583325610, "version": 1, "sender": "3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP", "senderPublicKey": "7MNJWcbtg9vUAPF7P7qnZfL5DwHwWhtnVXBEkDrMgVmD", "proofs": [ "dtCWcFfcydoYUt7PKYTS1zP37ruVm82hkRrvrXi7dk4Ej8C8pwmEXxfM8nrwjXtdpZCWYMMSvZ1sDwxTzbEQquJ" ], "script": "base64:AQQAAAAIb25lV2F2ZXMAAAAAAAX14QAEAAAAC3BheWVkQW1vdW50CQAAaAAAAAIAAAAAAAAAAAEFAAAACG9uZVdhdmVzBAAAAApwYXllZFR4RmVlCQAAaQAAAAIFAAAACG9uZVdhdmVzAAAAAAAAAAAKBAAAAAlkYXRhVHhGZWUJAABpAAAAAgUAAAAIb25lV2F2ZXMAAAAAAAAAAAoEAAAABnNxdWFyZQAAAAAAAAAAMgQAAAAIc3RhcnRQb3MAAAAAAAAAAAAEAAAABmVuZFBvcwkAAGkAAAACCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAD6AAAAAAAAAAD6AUAAAAGc3F1YXJlBQAAAAZzcXVhcmUEAAAAEWxhc3RIZWlnaHRGb3JTYWxlAAAAAAAAB25YBAAAABVhZGRyZXNzVG9QYXlQdWJsaWNLZXkBAAAAII59m1WbITiydrSsh5p7DTg06jWuC97IwDX0JxhY8UwtBAAAAAxhZGRyZXNzVG9QYXkJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFWFkZHJlc3NUb1BheVB1YmxpY0tleQQAAAALb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5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAACXBheW1lbnRUeAAAAA9zZW5kZXJQdWJsaWNLZXkHCQAAAAAAAAIIBQAAAAF0AAAAA2ZlZQUAAAAJZGF0YVR4RmVlBwcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAttZVB1YmxpY0tleX986YY=", "chainId": 84, "height": 485347, "spentComplexity": 0 } View: original | compacted Prev: none Next: AD1YgTuwL84uZ9gpSVht3tNpUPQNWh6MrrzgpeRNJDJD Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let oneWaves = 100000000 | |
4 | + | let payedAmount = (1 * oneWaves) | |
5 | + | let payedTxFee = (oneWaves / 10) | |
6 | + | let dataTxFee = (oneWaves / 10) | |
7 | + | let square = 50 | |
8 | + | let startPos = 0 | |
9 | + | let endPos = (((1000 * 1000) / square) / square) | |
10 | + | let lastHeightForSale = 487000 | |
11 | + | let addressToPayPublicKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU' | |
12 | + | let addressToPay = addressFromPublicKey(addressToPayPublicKey) | |
13 | + | let mePublicKey = base58'7MNJWcbtg9vUAPF7P7qnZfL5DwHwWhtnVXBEkDrMgVmD' | |
14 | + | let me = addressFromPublicKey(mePublicKey) | |
15 | + | match tx { | |
16 | + | case t: DataTransaction => | |
17 | + | let insertPos = extract(getInteger(t.data, "pos")) | |
18 | + | let paymentTxId = extract(getString(t.data, "pTxId")) | |
19 | + | let satisfiesFormat = if (if (if (if (if ((size(t.data) == 4)) | |
20 | + | then isDefined(getInteger(t.data, "pos")) | |
21 | + | else false) | |
22 | + | then isDefined(getString(t.data, toString(insertPos))) | |
23 | + | else false) | |
24 | + | then isDefined(getString(t.data, "pTxId")) | |
25 | + | else false) | |
26 | + | then isDefined(getBoolean(t.data, paymentTxId)) | |
27 | + | else false) | |
28 | + | then (extract(getBoolean(t.data, paymentTxId)) == true) | |
29 | + | else false | |
30 | + | let validPos = if ((insertPos >= startPos)) | |
31 | + | then (endPos >= insertPos) | |
32 | + | else false | |
33 | + | let posNotUsed = if (!(isDefined(getString(me, toString(insertPos))))) | |
34 | + | then true | |
35 | + | else (insertPos == endPos) | |
36 | + | let txIdNotUsed = !(isDefined(getBoolean(me, paymentTxId))) | |
37 | + | let dataTransactionIsValid = if (if (if (satisfiesFormat) | |
38 | + | then validPos | |
39 | + | else false) | |
40 | + | then posNotUsed | |
41 | + | else false) | |
42 | + | then txIdNotUsed | |
43 | + | else false | |
44 | + | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
45 | + | let heightOfTx = extract(transactionHeightById(fromBase58String(paymentTxId))) | |
46 | + | let payedAmountFinal = if ((heightOfTx > lastHeightForSale)) | |
47 | + | then payedAmount | |
48 | + | else ((payedAmount / 5) * 4) | |
49 | + | match paymentTx { | |
50 | + | case paymentTx: TransferTransaction => | |
51 | + | if (if (if (if (if (dataTransactionIsValid) | |
52 | + | then (paymentTx.recipient == addressToPay) | |
53 | + | else false) | |
54 | + | then (paymentTx.amount >= (payedAmountFinal - payedTxFee)) | |
55 | + | else false) | |
56 | + | then !(isDefined(paymentTx.assetId)) | |
57 | + | else false) | |
58 | + | then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey) | |
59 | + | else false) | |
60 | + | then (t.fee == dataTxFee) | |
61 | + | else false | |
62 | + | case _ => | |
63 | + | false | |
64 | + | } | |
65 | + | case _ => | |
66 | + | sigVerify(tx.bodyBytes, tx.proofs[0], mePublicKey) | |
67 | + | } |
github/deemru/w8io/026f985 22.14 ms ◑