tx · uP74Wagis6MFRbPQrxNNnSvFLZvy4ASuXjcdATaPuPx

3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW:  -0.03000000 Waves

2019.02.11 16:44 [490559] smart account 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW > SELF 0.00000000 Waves

{ "type": 13, "id": "uP74Wagis6MFRbPQrxNNnSvFLZvy4ASuXjcdATaPuPx", "fee": 3000000, "feeAssetId": null, "timestamp": 1549892664581, "version": 1, "sender": "3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW", "senderPublicKey": "DuYXHBwHFjmpzaEXsnkX8Mo5MWHbs4rE8K2vA6GPXRSg", "proofs": [ "4n5yuMb68b6SX66C2hdsyxXAKkV9Ki1ELT5XqBBkcnzCeDmisU92vxwFD6TJzsV8NzxpBjLVxCpGytjRyBZkgCvt" ], "script": "base64:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4BQAAAAckbWF0Y2gxAwMJAABnAAAAAgAAAAAAAAAAAwUAAAAJdG1wQ2hvaWNlCQAAZwAAAAIFAAAACXRtcENob2ljZQAAAAAAAAAAAQcJAAAAAAAAAgkAAZAAAAABCAUAAAABdAAAAARkYXRhAAAAAAAAAAADBwYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAABnBheW91dAUAAAAHJG1hdGNoMAQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAZwbGF5ZXICAAAAC2xhc3RQYXltZW50BAAAAAlwYXltZW50VHgJAAPoAAAAAQkAAlkAAAABBQAAAAtwYXltZW50VHhJZAQAAAAMaGVpZ2h0Q2hvaWNlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAGcGxheWVyBQAAAAtwYXltZW50VHhJZAQAAAAHJG1hdGNoMQUAAAAJcGF5bWVudFR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAlwYXltZW50VHgFAAAAByRtYXRjaDEDCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZwbGF5ZXICAAAABkNob2ljZQUAAAADd2luCQAAAAAAAAIIBQAAAAlwYXltZW50VHgAAAAGc2VuZGVyCAUAAAAGcGF5b3V0AAAACXJlY2lwaWVudAcHBgpN3oM=", "chainId": 84, "height": 490559, "spentComplexity": 0 } View: original | compacted Prev: BCAtAYjChno7CEmfrS2RnHq7bJDq2zC3ztjL9hf9EwSu Next: 7oC2n1UpQNyH3xQjGbK4ZsNcVcH5mvZvGuj7CVGLE2Lf Diff:
OldNewDifferences
1212 let paymentTx = transactionById(fromBase58String(paymentTxId))
1313 match paymentTx {
1414 case paymentTx: TransferTransaction =>
15- if ((3 >= tmpChoice))
15+ if (if ((3 >= tmpChoice))
1616 then (tmpChoice >= 1)
17+ else false)
18+ then (size(t.data) == 3)
1719 else false
1820 case _ =>
1921 true
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- if ((3 >= tmpChoice))
15+ if (if ((3 >= tmpChoice))
1616 then (tmpChoice >= 1)
17+ else false)
18+ then (size(t.data) == 3)
1719 else false
1820 case _ =>
1921 true
2022 }
2123 case payout: TransferTransaction =>
2224 let paymentTxId = extract(getString(player, "lastPayment"))
2325 let paymentTx = transactionById(fromBase58String(paymentTxId))
2426 let heightChoice = extract(getInteger(player, paymentTxId))
2527 match paymentTx {
2628 case paymentTx: TransferTransaction =>
2729 if ((extract(getInteger(player, "Choice")) == win))
2830 then (paymentTx.sender == payout.recipient)
2931 else false
3032 case _ =>
3133 false
3234 }
3335 case _ =>
3436 true
3537 }

github/deemru/w8io/026f985 
23.23 ms