tx · AD1YgTuwL84uZ9gpSVht3tNpUPQNWh6MrrzgpeRNJDJD

3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP:  -0.01400000 Waves

2019.02.10 18:18 [489212] smart account 3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP > SELF 0.00000000 Waves

{ "type": 13, "id": "AD1YgTuwL84uZ9gpSVht3tNpUPQNWh6MrrzgpeRNJDJD", "fee": 1400000, "feeAssetId": null, "timestamp": 1549811908135, "version": 1, "sender": "3N2NxFvbt7RQaebRczCfLyjWZrYXkPBXbwP", "senderPublicKey": "7MNJWcbtg9vUAPF7P7qnZfL5DwHwWhtnVXBEkDrMgVmD", "proofs": [ "2GmsdSmAUvMCzvKGLS24tvMLeEMizmmMGNYUEKYaENs5s8vsPwJoygCgQ5NJHii2tC64T4oHBAyvkftZjPdEqEZZ" ], "script": "base64:AQQAAAAIb25lV2F2ZXMAAAAAAAX14QAEAAAAC3BheWVkQW1vdW50CQAAaAAAAAIAAAAAAAAAAAEFAAAACG9uZVdhdmVzBAAAAApwYXllZFR4RmVlCQAAaQAAAAIFAAAACG9uZVdhdmVzAAAAAAAAAAAKBAAAAAlkYXRhVHhGZWUJAABpAAAAAgUAAAAIb25lV2F2ZXMAAAAAAAAAAAoEAAAABnNxdWFyZQAAAAAAAAAAMgQAAAAIc3RhcnRQb3MAAAAAAAAAAAAEAAAABmVuZFBvcwkAAGkAAAACCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAD6AAAAAAAAAAD6AUAAAAGc3F1YXJlBQAAAAZzcXVhcmUEAAAAEWxhc3RIZWlnaHRGb3JTYWxlAAAAAAAAB3oQBAAAABVhZGRyZXNzVG9QYXlQdWJsaWNLZXkBAAAAII59m1WbITiydrSsh5p7DTg06jWuC97IwDX0JxhY8UwtBAAAAAxhZGRyZXNzVG9QYXkJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAFWFkZHJlc3NUb1BheVB1YmxpY0tleQQAAAALbWV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dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAACXBheW1lbnRUeAAAAA9zZW5kZXJQdWJsaWNLZXkHCQAAAAAAAAIIBQAAAAF0AAAAA2ZlZQUAAAAJZGF0YVR4RmVlBwcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAttZVB1YmxpY0tleRTi/kY=", "chainId": 84, "height": 489212, "spentComplexity": 0 } View: original | compacted Prev: 6GAVkAAZtBeL2R3ht5NVYuKHTe19hQoNVzwM1SJnmfHi Next: none Diff:
OldNewDifferences
77 let square = 50
88 let startPos = 0
99 let endPos = (((1000 * 1000) / square) / square)
10-let lastHeightForSale = 487000
10+let lastHeightForSale = 490000
1111 let addressToPayPublicKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU'
1212 let addressToPay = addressFromPublicKey(addressToPayPublicKey)
1313 let mePublicKey = base58'7MNJWcbtg9vUAPF7P7qnZfL5DwHwWhtnVXBEkDrMgVmD'
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let oneWaves = 100000000
44 let payedAmount = (1 * oneWaves)
55 let payedTxFee = (oneWaves / 10)
66 let dataTxFee = (oneWaves / 10)
77 let square = 50
88 let startPos = 0
99 let endPos = (((1000 * 1000) / square) / square)
10-let lastHeightForSale = 487000
10+let lastHeightForSale = 490000
1111 let addressToPayPublicKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU'
1212 let addressToPay = addressFromPublicKey(addressToPayPublicKey)
1313 let mePublicKey = base58'7MNJWcbtg9vUAPF7P7qnZfL5DwHwWhtnVXBEkDrMgVmD'
1414 let me = addressFromPublicKey(mePublicKey)
1515 match tx {
1616 case t: DataTransaction =>
1717 let insertPos = extract(getInteger(t.data, "pos"))
1818 let paymentTxId = extract(getString(t.data, "pTxId"))
1919 let satisfiesFormat = if (if (if (if (if ((size(t.data) == 4))
2020 then isDefined(getInteger(t.data, "pos"))
2121 else false)
2222 then isDefined(getString(t.data, toString(insertPos)))
2323 else false)
2424 then isDefined(getString(t.data, "pTxId"))
2525 else false)
2626 then isDefined(getBoolean(t.data, paymentTxId))
2727 else false)
2828 then (extract(getBoolean(t.data, paymentTxId)) == true)
2929 else false
3030 let validPos = if ((insertPos >= startPos))
3131 then (endPos >= insertPos)
3232 else false
3333 let posNotUsed = if (!(isDefined(getString(me, toString(insertPos)))))
3434 then true
3535 else (insertPos == endPos)
3636 let txIdNotUsed = !(isDefined(getBoolean(me, paymentTxId)))
3737 let dataTransactionIsValid = if (if (if (satisfiesFormat)
3838 then validPos
3939 else false)
4040 then posNotUsed
4141 else false)
4242 then txIdNotUsed
4343 else false
4444 let paymentTx = transactionById(fromBase58String(paymentTxId))
4545 let heightOfTx = extract(transactionHeightById(fromBase58String(paymentTxId)))
4646 let payedAmountFinal = if ((heightOfTx > lastHeightForSale))
4747 then payedAmount
4848 else ((payedAmount / 5) * 4)
4949 match paymentTx {
5050 case paymentTx: TransferTransaction =>
5151 if (if (if (if (if (dataTransactionIsValid)
5252 then (paymentTx.recipient == addressToPay)
5353 else false)
5454 then (paymentTx.amount >= (payedAmountFinal - payedTxFee))
5555 else false)
5656 then !(isDefined(paymentTx.assetId))
5757 else false)
5858 then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey)
5959 else false)
6060 then (t.fee == dataTxFee)
6161 else false
6262 case _ =>
6363 false
6464 }
6565 case _ =>
6666 sigVerify(tx.bodyBytes, tx.proofs[0], mePublicKey)
6767 }

github/deemru/w8io/026f985 
24.31 ms