tx · C2xjrxTYy2F73NVnsT7PnJ5Ss2HmjEfzApNxxtBU4sG6

3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F:  -0.01400000 Waves

2019.02.11 19:26 [490719] smart account 3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F > SELF 0.00000000 Waves

{ "type": 13, "id": "C2xjrxTYy2F73NVnsT7PnJ5Ss2HmjEfzApNxxtBU4sG6", "fee": 1400000, "feeAssetId": null, "timestamp": 1549902384388, "version": 1, "sender": "3Mqa3Toa6jKf2wF8ma5b2XMUPn64p7cgL6F", "senderPublicKey": "4k4xRPnrDM243pRAvYhicyD5EJeypAuyLvpFYyWbV5au", "proofs": [ "4ncr9xx7rp2ZHrdMQexAstkNVcsiwZB7gxv19zxCbiFcNAmBNcqA9LMc9hFrVtKUAkkfNZqwttzNBqcZL78cavs7" ], "script": "base64:AQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkIbc0v", "chainId": 84, "height": 490719, "spentComplexity": 0 } View: original | compacted Prev: DjQ2m2Fd8bj2GBETWfgkMe9HU7E1otPpBRNU8pyjFEH3 Next: BpxiwGefKWE2KwsKY3ZoXQyaexrJ1ACe7sCYMWzCa2Z Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
3-let this = extract(tx.sender)
4-let asset = base58'GY6oRoaAE1Fx4HpE7PRDCGhGM4cfPSzCmMm7q2jSq3MJ'
5-let N = extract(getInteger(this, "N"))
6-let lastUpdateHeight = extract(getInteger(this, "lastUpdateHeight"))
7-let lastUpdateBalance = extract(getInteger(this, "lastUpdateBalance"))
8-let validityPeriod = 1000
9-let currentBalance = assetBalance(this, asset)
10-let minN = 1
11-let maxN = 5
12-match tx {
13- case tx: TransferTransaction =>
14- let firstBytes = toBase58String(take(tx.id, N))
15- let transferAmount = ((currentBalance / 1000) + 1)
16- if (if (if (if (if ((validityPeriod > (height - lastUpdateHeight)))
17- then isDefined(getBoolean(this, firstBytes))
18- else false)
19- then (tx.amount == transferAmount)
20- else false)
21- then (tx.assetId == asset)
22- else false)
23- then (tx.fee == 500000)
24- else false)
25- then !(isDefined(tx.feeAssetId))
26- else false
27- case tx: DataTransaction =>
28- let deltaN = (((lastUpdateBalance - currentBalance) / 1000) - 1)
29- let newN = if ((minN > (N + deltaN)))
30- then minN
31- else if (((N + deltaN) > maxN))
32- then maxN
33- else (N + deltaN)
34- if (if (if (if (if (((height - lastUpdateHeight) >= validityPeriod))
35- then (size(tx.data) == 3)
36- else false)
37- then (extract(getInteger(tx.data, "N")) == newN)
38- else false)
39- then (extract(getInteger(tx.data, "lastUpdateHeight")) == height)
40- else false)
41- then (extract(getInteger(tx.data, "lastUpdateBalance")) == currentBalance)
42- else false)
43- then (tx.fee == 500000)
44- else false
45- case _ =>
46- sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
47-}
3+sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)

github/deemru/w8io/169f3d6 
19.49 ms