tx · CRAbo5DSKmeBN36XMpzcv7aQgrEDHEXSVQ6tocMh4vkL

3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD:  -0.01400000 Waves

2019.01.29 13:29 [471413] smart account 3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD > SELF 0.00000000 Waves

{ "type": 13, "id": "CRAbo5DSKmeBN36XMpzcv7aQgrEDHEXSVQ6tocMh4vkL", "fee": 1400000, "feeAssetId": null, "timestamp": 1548757691804, "version": 1, "sender": "3N5ezXT9QVpBcxseKRkqbLdTRSUkbMJLzbD", "senderPublicKey": "HMMwXJWPUWM7VKP5hJaoazWJiLMZZSta2F9AaWkUk1FX", "proofs": [], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAJkdAUAAAAHJG1hdGNoMAQAAAAJYmV0QW1vdW50CQEAAAAHZXh0cmFjdAAAAAEJAAQQAAAAAggFAAAAAmR0AAAABGRhdGECAAAABmFtb3VudAQAAAALcGxheWVyMVR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAACZHQAAAAEZGF0YQIAAAADdHgxBAAAAAlwbGF5ZXIxVHgJAAPoAAAAAQkAAlkAAAABBQAAAAtwbGF5ZXIxVHhJZAQAAAAHJG1hdGNoMQUAAAAJcGxheWVyMVR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAANwMXQFAAAAByRtYXRjaDEEAAAACXBsYXllcjFPawkAAAAAAAACCAUAAAADcDF0AAAABmFtb3VudAUAAAAJYmV0QW1vdW50BAAAAAtwbGF5ZXIyVHhJZAkBAAAAB2V4dHJhY3QAAAABCQAEEwAAAAIIBQAAAAJkdAAAAARkYXRhAgAAAAN0eDIEAAAACXBsYXllcjJUeAkAA+gAAAABCQACWQAAAAEFAAAAC3BsYXllcjJUeElkBAAAAAckbWF0Y2gyBQAAAAlwbGF5ZXIyVHgDCQAAAQAAAAIFAAAAByRtYXRjaDICAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3AydAUAAAAHJG1hdGNoMgQAAAAJcGxheWVyMk9rCQAAAAAAAAIIBQAAAANwMnQAAAAGYW1vdW50BQAAAAliZXRBbW91bnQDBQAAAAlwbGF5ZXIxT2sFAAAACXBsYXllcjJPawcHBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnN0BQAAAAckbWF0Y2gwBgdhrzQB", "chainId": 84, "height": 471413, "spentComplexity": 0 } View: original | compacted Prev: 44NMdNcgW35b7nuBcXNm8JFacigkG9xfT5QKjx5uaZim Next: H9yKDBySh99gjZSjiFKGUuN8cbzUwvaNE3BYv2KRJRLT Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 match tx {
4- case a: SetScriptTransaction =>
4+ case tt: TransferTransaction =>
55 true
6- case b: TransferTransaction =>
7- true
8- case c: DataTransaction =>
6+ case dt: DataTransaction =>
7+ let betAmount = extract(getInteger(dt.data, "amount"))
8+ let player1TxId = extract(getString(dt.data, "tx1"))
9+ let player1Tx = transactionById(fromBase58String(player1TxId))
10+ match player1Tx {
11+ case p1t: TransferTransaction =>
12+ let player1Ok = (p1t.amount == betAmount)
13+ let player2TxId = extract(getString(dt.data, "tx2"))
14+ let player2Tx = transactionById(fromBase58String(player2TxId))
15+ match player2Tx {
16+ case p2t: TransferTransaction =>
17+ let player2Ok = (p2t.amount == betAmount)
18+ if (player1Ok)
19+ then player2Ok
20+ else false
21+ case _ =>
22+ false
23+ }
24+ case _ =>
25+ false
26+ }
27+ case st: SetScriptTransaction =>
928 true
1029 case _ =>
11- throw("This is not SetScriptTransaction or TransferTransaction")
30+ false
1231 }

github/deemru/w8io/169f3d6 
27.68 ms