tx · Ax85CEdgYmRjXHNy67kspuwdhZqtyvEexzptSw1BWp2D 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01400000 Waves 2019.01.30 10:23 [472692] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "Ax85CEdgYmRjXHNy67kspuwdhZqtyvEexzptSw1BWp2D", "fee": 1400000, "feeAssetId": null, "timestamp": 1548833062623, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "2Zt9YwyFxNjhr683cicHCuFTj5o8P4Qk5pYqMv4E2E9tgsZ6E1ca9poZkYFZviSjNj9rru73rHcQAKgBfeEHGux6" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADAwkAAAAAAAACCQABkAAAAAEIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAMJAAAAAAAAAgkAAZAAAAABCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAQHBAAAAA5hc3NldFRyYW5zZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAQQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAHJG1hdGNoMQUAAAAOYXNzZXRUcmFuc2VySWQDCQAAAQAAAAI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AAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQeOmP7w", "chainId": 84, "height": 472692, "spentComplexity": 0 } View: original | compacted Prev: 3jzSpKTVV2n1oc6ZTZahe9Fp6KnL7HMN6zdS1sohfUUt Next: 3EkXU1Qg5E3CC3QjuLBSWfo7xgaGTBshEayHyQL4vCNe Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let voteBank = addressFromPublicKey(fromBase58String(" | |
3 | + | let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe")) | |
4 | 4 | let minimalVotingHeight = 10 | |
5 | 5 | match tx { | |
6 | 6 | case d: DataTransaction => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let voteBank = addressFromPublicKey(fromBase58String(" | |
3 | + | let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe")) | |
4 | 4 | let minimalVotingHeight = 10 | |
5 | 5 | match tx { | |
6 | 6 | case d: DataTransaction => | |
7 | 7 | if (if ((size(d.data) == 3)) | |
8 | 8 | then (size(d.proofs) == 4) | |
9 | 9 | else false) | |
10 | 10 | then { | |
11 | 11 | let assetTranserId = transactionById(d.proofs[1]) | |
12 | 12 | let feeTransferId = transactionById(d.proofs[0]) | |
13 | 13 | match assetTranserId { | |
14 | 14 | case aT: TransferTransaction => | |
15 | 15 | let attach = toBase58String(sha256(aT.attachment)) | |
16 | 16 | match feeTransferId { | |
17 | 17 | case fT: TransferTransaction => | |
18 | 18 | if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
19 | 19 | then isDefined(getString(aT.sender, "YES")) | |
20 | 20 | else false) | |
21 | 21 | then isDefined(getString(aT.sender, "NO")) | |
22 | 22 | else false) | |
23 | 23 | then (aT.recipient == voteBank) | |
24 | 24 | else false) | |
25 | 25 | then (fT.recipient == voteBank) | |
26 | 26 | else false) | |
27 | 27 | then (fT.amount >= (aT.amount * 500000)) | |
28 | 28 | else false | |
29 | 29 | case _ => | |
30 | 30 | false | |
31 | 31 | } | |
32 | 32 | case _ => | |
33 | 33 | false | |
34 | 34 | } | |
35 | 35 | } | |
36 | 36 | else false | |
37 | 37 | case t: TransferTransaction => | |
38 | 38 | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
39 | 39 | then { | |
40 | 40 | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment)))))) | |
41 | 41 | if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height)) | |
42 | 42 | then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
43 | 43 | then true | |
44 | 44 | else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
45 | 45 | else false) | |
46 | 46 | then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset")))) | |
47 | 47 | else false) | |
48 | 48 | then (t.amount == 1) | |
49 | 49 | else false) | |
50 | 50 | then (t.fee == 500000) | |
51 | 51 | else false) | |
52 | 52 | then (wavesBalance(t.sender) > 100000000) | |
53 | 53 | else false) | |
54 | 54 | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
55 | 55 | else false | |
56 | 56 | } | |
57 | 57 | else false | |
58 | 58 | case s: SetScriptTransaction => | |
59 | 59 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
60 | 60 | case _ => | |
61 | 61 | false | |
62 | 62 | } |
github/deemru/w8io/026f985 27.86 ms ◑