tx · 8VYmKQsJ7Dp1JcYTbCc2YwiWfBsqrYSdCgxSbF3F5rG

3MwWvDePA5vipvRqhbWrJvpsWnPjxjdCcaX:  -0.09000000 Waves

2019.02.10 22:10 [489439] smart account 3MwWvDePA5vipvRqhbWrJvpsWnPjxjdCcaX > SELF 0.00000000 Waves

{ "type": 13, "id": "8VYmKQsJ7Dp1JcYTbCc2YwiWfBsqrYSdCgxSbF3F5rG", "fee": 9000000, "feeAssetId": null, "timestamp": 1549825887683, "version": 1, "sender": "3MwWvDePA5vipvRqhbWrJvpsWnPjxjdCcaX", "senderPublicKey": "7asSJP84cZwrG4NBRL1GecsYCx8p3hvndTzr5NSMvEJW", "proofs": [ "3KPrHfxZGC6txvXpGj37UeomX2oQxnQ9c2cvQVjnmPkHNWBaWPKiC3MjXF7gnK63uTJcoUct1KWqK38QPwWWiaM2" ], "script": "base64:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWV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ZXIFAAAAC3BheW1lbnRUeElkBAAAAAckbWF0Y2gxBQAAAAlwYXltZW50VHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAACXBheW1lbnRUeAUAAAAHJG1hdGNoMQMDAwMJAABnAAAAAgkAAGQAAAACBQAAAAxoZWlnaHRDaG9pY2UAAAAAAAAAAAIFAAAABmhlaWdodAkAAAAAAAACCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAGcGxheWVyAgAAAAZDaG9pY2UFAAAAA3dpbgcJAAAAAAAAAggFAAAACXBheW1lbnRUeAAAAAZzZW5kZXIIBQAAAAZwYXlvdXQAAAAJcmVjaXBpZW50BwkAAGcAAAACCAUAAAAGcGF5b3V0AAAAA2ZlZQUAAAAJcGF5b3V0RmVlBwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABnBheW91dAAAAApmZWVBc3NldElkBwcH5d69Cg==", "chainId": 84, "height": 489439, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 1 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let betAmount = 100000000
4+let dataTxFee = 10000000
5+let payoutFee = 500000
6+let player = tx.sender
7+let win = 2
8+match tx {
9+ case t: DataTransaction =>
10+ let tmpChoice = extract(getInteger(t.data, "Choice"))
11+ let paymentTxId = extract(getString(t.data, "lastPayment"))
12+ let paymentTx = transactionById(fromBase58String(paymentTxId))
13+ match paymentTx {
14+ case paymentTx: TransferTransaction =>
15+ if (if (if (if (if (if (if (if (if ((3 >= tmpChoice))
16+ then (tmpChoice >= 1)
17+ else false)
18+ then !(isDefined(getString(player, paymentTxId)))
19+ else false)
20+ then (paymentTx.recipient == player)
21+ else false)
22+ then (paymentTx.amount >= (betAmount + dataTxFee))
23+ else false)
24+ then !(isDefined(paymentTx.assetId))
25+ else false)
26+ then (size(t.data) == 3)
27+ else false)
28+ then (height >= extract(getInteger(t.data, paymentTxId)))
29+ else false)
30+ then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey)
31+ else false)
32+ then (t.fee >= dataTxFee)
33+ else false
34+ case _ =>
35+ false
36+ }
37+ case payout: TransferTransaction =>
38+ let paymentTxId = extract(getString(player, "lastPayment"))
39+ let paymentTx = transactionById(fromBase58String(paymentTxId))
40+ let heightChoice = extract(getInteger(player, paymentTxId))
41+ match paymentTx {
42+ case paymentTx: TransferTransaction =>
43+ if (if (if (if (((heightChoice + 2) >= height))
44+ then (extract(getInteger(player, "Choice")) == win)
45+ else false)
46+ then (paymentTx.sender == payout.recipient)
47+ else false)
48+ then (payout.fee >= payoutFee)
49+ else false)
50+ then !(isDefined(payout.feeAssetId))
51+ else false
52+ case _ =>
53+ false
54+ }
55+ case _ =>
56+ false
57+}

github/deemru/w8io/169f3d6 
23.80 ms