tx · 6Mevjy3SaJ7ooS26zznLwyT7dv2ufNxtkAVFWGeiEWAW 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD: -0.01400000 Waves 2019.01.29 16:38 [471604] smart account 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD > SELF 0.00000000 Waves
{ "type": 13, "id": "6Mevjy3SaJ7ooS26zznLwyT7dv2ufNxtkAVFWGeiEWAW", "fee": 1400000, "feeAssetId": null, "timestamp": 1548769124306, "version": 1, "sender": "3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD", "senderPublicKey": "HMMwXJWPUWM7VKP5hJaoazWJiLMZZSta2F9AaWkUk1FX", "proofs": [], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBAAAAAJhYQIAAAADcXdlBAAAAAJycgkAAlgAAAABCQEAAAAHZXh0cmFjdAAAAAEJAAQcAAAAAggFAAAAAnR0AAAACXJlY2lwaWVudAIAAAAFYnl0ZXMJAAACAAAAAQUAAAACcnIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAACZHQFAAAAByRtYXRjaDAEAAAABGdhbWUJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAACZHQAAAAEZGF0YQIAAAAEaGFzaAQAAAAJYmV0QW1vdW50CQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGEJAAEsAAAAAgUAAAAEZ2FtZQIAAAAHX2Ftb3VudAQAAAALcGxheWVyMVR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAACZHQAAAAEZGF0YQkAASwAAAACBQAAAARnYW1lAgAAAARfdHgxBAAAAAlwbGF5ZXIxVHgJAAPoAAAAAQkAAlkAAAABBQAAAAtwbGF5ZXIxVHhJZAQAAAAHJG1hdGNoMQUAAAAJcGxheWVyMVR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAANwMXQFAAAAByRtYXRjaDEEAAAACXBsYXllcjFPawkAAAAAAAACCAUAAAADcDF0AAAABmFtb3VudAUAAAAJYmV0QW1vdW50BAAAAAtwbGF5ZXIyVHhJZAkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhCQABLAAAAAIFAAAABGdhbWUCAAAABF90eDIEAAAACXBsYXllcjJUeAkAA+gAAAABCQACWQAAAAEFAAAAC3BsYXllcjJUeElkBAAAAAckbWF0Y2gyBQAAAAlwbGF5ZXIyVHgDCQAAAQAAAAIFAAAAByRtYXRjaDICAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3AydAUAAAAHJG1hdGNoMgQAAAAJcGxheWVyMk9rCQAAAAAAAAIIBQAAAANwMnQAAAAGYW1vdW50BQAAAAliZXRBbW91bnQDBQAAAAlwbGF5ZXIxT2sFAAAACXBsYXllcjJPawcHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnN0BQAAAAckbWF0Y2gwBge4Q2rQ", "chainId": 84, "height": 471604, "spentComplexity": 0 } View: original | compacted Prev: 5JvnfiN6KQVJisgtdZ9NEVUcCFuLnJ16Q92mrk2bk74i Next: Bv2knVqRhM2WBjosXYpBysTFYevKrADLWTggDiiUpZME Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | match tx { | |
4 | 4 | case tt: TransferTransaction => | |
5 | 5 | let aa = "qwe" | |
6 | - | let rr = extract( | |
6 | + | let rr = toBase58String(extract(getBinary(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 = extract( | |
6 | + | let rr = toBase58String(extract(getBinary(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 55.41 ms ◑