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