tx · BCAtAYjChno7CEmfrS2RnHq7bJDq2zC3ztjL9hf9EwSu

3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW:  -0.03000000 Waves

2019.02.11 16:40 [490557] smart account 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW > SELF 0.00000000 Waves

{ "type": 13, "id": "BCAtAYjChno7CEmfrS2RnHq7bJDq2zC3ztjL9hf9EwSu", "fee": 3000000, "feeAssetId": null, "timestamp": 1549892468482, "version": 1, "sender": "3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW", "senderPublicKey": "DuYXHBwHFjmpzaEXsnkX8Mo5MWHbs4rE8K2vA6GPXRSg", "proofs": [ "3sdsbjFCiazLnXJ5sZoNznPqevnsPekreHkmvooukit3h1ChswY8oeHBTUM5n31NDBNwJDJ9NpS4k32HesSRLjPH" ], "script": "base64:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4BQAAAAckbWF0Y2gxAwkAAGcAAAACAAAAAAAAAAADBQAAAAl0bXBDaG9pY2UJAABnAAAAAgUAAAAJdG1wQ2hvaWNlAAAAAAAAAAABBwYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAABnBheW91dAUAAAAHJG1hdGNoMAQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAZwbGF5ZXICAAAAC2xhc3RQYXltZW50BAAAAAlwYXltZW50VHgJAAPoAAAAAQkAAlkAAAABBQAAAAtwYXltZW50VHhJZAQAAAAMaGVpZ2h0Q2hvaWNlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAGcGxheWVyBQAAAAtwYXltZW50VHhJZAQAAAAHJG1hdGNoMQUAAAAJcGF5bWVudFR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAlwYXltZW50VHgFAAAAByRtYXRjaDEDCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZwbGF5ZXICAAAABkNob2ljZQUAAAADd2luCQAAAAAAAAIIBQAAAAlwYXltZW50VHgAAAAGc2VuZGVyCAUAAAAGcGF5b3V0AAAACXJlY2lwaWVudAcHBmNlAKE=", "chainId": 84, "height": 490557, "spentComplexity": 0 } View: original | compacted Prev: E546ioYN6xvrpW6DvTAdKTxEerJEi2zmXAYmpngLLQjg Next: uP74Wagis6MFRbPQrxNNnSvFLZvy4ASuXjcdATaPuPx Diff:
OldNewDifferences
1212 let paymentTx = transactionById(fromBase58String(paymentTxId))
1313 match paymentTx {
1414 case paymentTx: TransferTransaction =>
15- true
15+ if ((3 >= tmpChoice))
16+ then (tmpChoice >= 1)
17+ else false
1618 case _ =>
1719 true
1820 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let betAmount = 100000000
44 let dataTxFee = 10000000
55 let payoutFee = 500000
66 let player = tx.sender
77 let win = 2
88 match tx {
99 case t: DataTransaction =>
1010 let tmpChoice = extract(getInteger(t.data, "Choice"))
1111 let paymentTxId = extract(getString(t.data, "lastPayment"))
1212 let paymentTx = transactionById(fromBase58String(paymentTxId))
1313 match paymentTx {
1414 case paymentTx: TransferTransaction =>
15- true
15+ if ((3 >= tmpChoice))
16+ then (tmpChoice >= 1)
17+ else false
1618 case _ =>
1719 true
1820 }
1921 case payout: TransferTransaction =>
2022 let paymentTxId = extract(getString(player, "lastPayment"))
2123 let paymentTx = transactionById(fromBase58String(paymentTxId))
2224 let heightChoice = extract(getInteger(player, paymentTxId))
2325 match paymentTx {
2426 case paymentTx: TransferTransaction =>
2527 if ((extract(getInteger(player, "Choice")) == win))
2628 then (paymentTx.sender == payout.recipient)
2729 else false
2830 case _ =>
2931 false
3032 }
3133 case _ =>
3234 true
3335 }

github/deemru/w8io/026f985 
32.14 ms