tx · 97Y8jvTMUHVqBFspy7zFr6a3BJmqcMdc9JnrkmiGXp9p

3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW:  -0.03000000 Waves

2019.02.11 16:51 [490565] smart account 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW > SELF 0.00000000 Waves

{ "type": 13, "id": "97Y8jvTMUHVqBFspy7zFr6a3BJmqcMdc9JnrkmiGXp9p", "fee": 3000000, "feeAssetId": null, "timestamp": 1549893098105, "version": 1, "sender": "3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW", "senderPublicKey": "DuYXHBwHFjmpzaEXsnkX8Mo5MWHbs4rE8K2vA6GPXRSg", "proofs": [ "pyJaAmPAjbCC1s2xomeX3UTfnQrR7nmPdp9HYDRaUL79K6jmm5sxqZYkNjbFa91bw8FGytJ2ErpSKk4WW3ubs2w" ], "script": "base64:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4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ldNewDifferences
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 =>
1515 if (if (if ((3 >= tmpChoice))
1616 then (tmpChoice >= 1)
1717 else false)
1818 then (size(t.data) == 3)
1919 else false)
2020 then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey)
2121 else false
2222 case _ =>
2323 true
2424 }
2525 case payout: TransferTransaction =>
2626 let paymentTxId = extract(getString(player, "lastPayment"))
2727 let paymentTx = transactionById(fromBase58String(paymentTxId))
2828 let heightChoice = extract(getInteger(player, paymentTxId))
2929 match paymentTx {
3030 case paymentTx: TransferTransaction =>
3131 if ((extract(getInteger(player, "Choice")) == win))
3232 then (paymentTx.sender == payout.recipient)
3333 else false
3434 case _ =>
3535 false
3636 }
3737 case _ =>
3838 true
3939 }

github/deemru/w8io/026f985 
20.22 ms