tx · 7oC2n1UpQNyH3xQjGbK4ZsNcVcH5mvZvGuj7CVGLE2Lf

3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW:  -0.03000000 Waves

2019.02.11 16:49 [490564] smart account 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
23.89 ms