tx · AaoFd94iTAgRqGYrawBrhqqUyPB6qYgPKc4q8BKbY4Re 3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK: -0.14000000 Waves 2019.01.10 19:31 [444085] smart account 3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK > SELF 0.00000000 Waves
{ "type": 13, "id": "AaoFd94iTAgRqGYrawBrhqqUyPB6qYgPKc4q8BKbY4Re", "fee": 14000000, "feeAssetId": null, "timestamp": 1547137906055, "version": 1, "sender": "3N2hBea4tJ4vmGdTnr7iGEfeCwsDkLyCbWK", "senderPublicKey": "9vCFiiQT1mT2SMoSSoShakxyfJND9mzVDfjiaiVdh7y5", "proofs": [ "4YU86KHYXjoSywwyk9VyR4YcvEWy1AmJDXCwgZAvkDXYmxYtuuDszxLGNPBKS2NYxQJ7nbxZt1Vwqof8d5DAAftj" ], "script": "base64:AQQAAAAEdGhpcwkBAAAAB2V4dHJhY3QAAAABCAUAAAACdHgAAAAGc2VuZGVyBAAAAAVhc3NldAEAAAAgz1Hyj72VAayH1f+fsT8H2BX9s7UsBMBBGx5z+HREnKcEAAAAAU4JAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAR0aGlzAgAAAAFOBAAAABBsYXN0VXBkYXRlSGVpZ2h0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAEdGhpcwIAAAAQbGFzdFVwZGF0ZUhlaWdodAQAAAARbGFzdFVwZGF0ZUJhbGFuY2UJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAR0aGlzAgAAABFsYXN0VXBkYXRlQmFsYW5jZQQAAAAOdmFsaWRpdHlQZXJpb2QAAAAAAAAAA+gEAAAADmN1cnJlbnRCYWxhbmNlCQAD6wAAAAIFAAAABHRoaXMFAAAABWFzc2V0BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByR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AAAgUAAAAEbmV3TgAAAAAAAAAAIAAAAAAAAAAAIAUAAAAEbmV3TgcJAAAAAAAAAgkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAJ0eAAAAARkYXRhAgAAABBsYXN0VXBkYXRlSGVpZ2h0BQAAAAZoZWlnaHQHCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACdHgAAAAEZGF0YQIAAAARbGFzdFVwZGF0ZUJhbGFuY2UFAAAADmN1cnJlbnRCYWxhbmNlBwkAAAAAAAACCAUAAAACdHgAAAADZmVlAAAAAAAAB6EgBwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXklZZ7X", "chainId": 84, "height": 444085, "spentComplexity": 0 } View: original | compacted Prev: 8MJc9xwiKtdAnPzsmmz64MTUoYm1U2PGDKPgLefXXKVh Next: H9eKnnZXbrgj5fVoq6Mb3Kwdzp1ZBeezT8b7SB71XFxX Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | true | |
3 | + | let this = extract(tx.sender) | |
4 | + | let asset = base58'ExHsMiLc9eWokuf95Xwpr2SosZ7FejAqGepk1wWXrQFQ' | |
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 | + | match tx { | |
11 | + | case tx: TransferTransaction => | |
12 | + | let firstBytes = toBase58String(take(tx.id, N)) | |
13 | + | let transferAmount = ((currentBalance / 100) + 1) | |
14 | + | if (if (if (if (if ((validityPeriod > (height - lastUpdateHeight))) | |
15 | + | then isDefined(getBoolean(this, firstBytes)) | |
16 | + | else false) | |
17 | + | then (tx.amount == transferAmount) | |
18 | + | else false) | |
19 | + | then (tx.assetId == asset) | |
20 | + | else false) | |
21 | + | then (tx.fee == 500000) | |
22 | + | else false) | |
23 | + | then !(isDefined(tx.feeAssetId)) | |
24 | + | else false | |
25 | + | case tx: DataTransaction => | |
26 | + | let newN = ((N + ((lastUpdateBalance - currentBalance) / 100)) - 1) | |
27 | + | if (if (if (if (if (((height - lastUpdateHeight) >= validityPeriod)) | |
28 | + | then (size(tx.data) == 3) | |
29 | + | else false) | |
30 | + | then (extract(getInteger(tx.data, "N")) == (if ((1 > newN)) | |
31 | + | then 1 | |
32 | + | else if ((newN > 32)) | |
33 | + | then 32 | |
34 | + | else newN)) | |
35 | + | else false) | |
36 | + | then (extract(getInteger(tx.data, "lastUpdateHeight")) == height) | |
37 | + | else false) | |
38 | + | then (extract(getInteger(tx.data, "lastUpdateBalance")) == currentBalance) | |
39 | + | else false) | |
40 | + | then (tx.fee == 500000) | |
41 | + | else false | |
42 | + | case _ => | |
43 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
44 | + | } |
github/deemru/w8io/026f985 25.15 ms ◑