tx · Bv2knVqRhM2WBjosXYpBysTFYevKrADLWTggDiiUpZME 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD: -0.01400000 Waves 2019.01.29 16:44 [471608] smart account 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD > SELF 0.00000000 Waves
{ "type": 13, "id": "Bv2knVqRhM2WBjosXYpBysTFYevKrADLWTggDiiUpZME", "fee": 1400000, "feeAssetId": null, "timestamp": 1548769422096, "version": 1, "sender": "3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD", "senderPublicKey": "HMMwXJWPUWM7VKP5hJaoazWJiLMZZSta2F9AaWkUk1FX", "proofs": [], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBAAAAAJhYQIAAAADcXdlBAAAAAJycgkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAgkABCQAAAABCAUAAAACdHQAAAAJcmVjaXBpZW50AgAAAAVieXRlcwkAAAIAAAABBQAAAAJycgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJkdAUAAAAHJG1hdGNoMAQAAAAEZ2FtZQkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAARoYXNoBAAAAAliZXRBbW91bnQJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAACZHQAAAAEZGF0YQkAASwAAAACBQAAAARnYW1lAgAAAAdfYW1vdW50BAAAAAtwbGF5ZXIxVHhJZAkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhCQABLAAAAAIFAAAABGdhbWUCAAAABF90eDEEAAAACXBsYXllcjFUeAkAA+gAAAABCQACWQAAAAEFAAAAC3BsYXllcjFUeElkBAAAAAckbWF0Y2gxBQAAAAlwbGF5ZXIxVHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3AxdAUAAAAHJG1hdGNoMQQAAAAJcGxheWVyMU9rCQAAAAAAAAIIBQAAAANwMXQAAAAGYW1vdW50BQAAAAliZXRBbW91bnQEAAAAC3BsYXllcjJUeElkCQEAAAAHZXh0cmFjdAAAAAEJAAQTAAAAAggFAAAAAmR0AAAABGRhdGEJAAEsAAAAAgUAAAAEZ2FtZQIAAAAEX3R4MgQAAAAJcGxheWVyMlR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGxheWVyMlR4SWQEAAAAByRtYXRjaDIFAAAACXBsYXllcjJUeAMJAAABAAAAAgUAAAAHJG1hdGNoMgIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAADcDJ0BQAAAAckbWF0Y2gyBAAAAAlwbGF5ZXIyT2sJAAAAAAAAAggFAAAAA3AydAAAAAZhbW91bnQFAAAACWJldEFtb3VudAMFAAAACXBsYXllcjFPawUAAAAJcGxheWVyMk9rBwcHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACc3QFAAAAByRtYXRjaDAGByY9Tqk=", "chainId": 84, "height": 471608, "spentComplexity": 0 } View: original | compacted Prev: 6Mevjy3SaJ7ooS26zznLwyT7dv2ufNxtkAVFWGeiEWAW Next: FcbqZpeNLWmKxPiRtiHeRYRtfHGR76TMcFfz4zPY6HH8 Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | match tx { | |
4 | 4 | case tt: TransferTransaction => | |
5 | 5 | let aa = "qwe" | |
6 | - | let rr = toBase58String(extract(getBinary(tt.recipient, "bytes"))) | |
6 | + | let rr = toBase58String(extract(getBinary(addressFromRecipient(tt.recipient), "bytes"))) | |
7 | 7 | throw(rr) | |
8 | 8 | case dt: DataTransaction => | |
9 | 9 | let game = extract(getString(dt.data, "hash")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | match tx { | |
4 | 4 | case tt: TransferTransaction => | |
5 | 5 | let aa = "qwe" | |
6 | - | let rr = toBase58String(extract(getBinary(tt.recipient, "bytes"))) | |
6 | + | let rr = toBase58String(extract(getBinary(addressFromRecipient(tt.recipient), "bytes"))) | |
7 | 7 | throw(rr) | |
8 | 8 | case dt: DataTransaction => | |
9 | 9 | let game = extract(getString(dt.data, "hash")) | |
10 | 10 | let betAmount = extract(getInteger(dt.data, (game + "_amount"))) | |
11 | 11 | let player1TxId = extract(getString(dt.data, (game + "_tx1"))) | |
12 | 12 | let player1Tx = transactionById(fromBase58String(player1TxId)) | |
13 | 13 | match player1Tx { | |
14 | 14 | case p1t: TransferTransaction => | |
15 | 15 | let player1Ok = (p1t.amount == betAmount) | |
16 | 16 | let player2TxId = extract(getString(dt.data, (game + "_tx2"))) | |
17 | 17 | let player2Tx = transactionById(fromBase58String(player2TxId)) | |
18 | 18 | match player2Tx { | |
19 | 19 | case p2t: TransferTransaction => | |
20 | 20 | let player2Ok = (p2t.amount == betAmount) | |
21 | 21 | if (player1Ok) | |
22 | 22 | then player2Ok | |
23 | 23 | else false | |
24 | 24 | case _ => | |
25 | 25 | false | |
26 | 26 | } | |
27 | 27 | case _ => | |
28 | 28 | false | |
29 | 29 | } | |
30 | 30 | case st: SetScriptTransaction => | |
31 | 31 | true | |
32 | 32 | case _ => | |
33 | 33 | false | |
34 | 34 | } |
github/deemru/w8io/169f3d6 28.26 ms ◑