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:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4B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| New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let betAmount = 100000000 | |
4 | 4 | let dataTxFee = 10000000 | |
5 | 5 | let payoutFee = 500000 | |
6 | 6 | let player = tx.sender | |
7 | 7 | let win = 2 | |
8 | 8 | match tx { | |
9 | 9 | case t: DataTransaction => | |
10 | 10 | let tmpChoice = extract(getInteger(t.data, "Choice")) | |
11 | 11 | let paymentTxId = extract(getString(t.data, "lastPayment")) | |
12 | 12 | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
13 | 13 | match paymentTx { | |
14 | 14 | case paymentTx: TransferTransaction => | |
15 | 15 | if (if (if ((3 >= tmpChoice)) | |
16 | 16 | then (tmpChoice >= 1) | |
17 | 17 | else false) | |
18 | 18 | then (size(t.data) == 3) | |
19 | 19 | else false) | |
20 | 20 | then sigVerify(t.bodyBytes, t.proofs[0], paymentTx.senderPublicKey) | |
21 | 21 | else false | |
22 | 22 | case _ => | |
23 | 23 | true | |
24 | 24 | } | |
25 | 25 | case payout: TransferTransaction => | |
26 | 26 | let paymentTxId = extract(getString(player, "lastPayment")) | |
27 | 27 | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
28 | 28 | let heightChoice = extract(getInteger(player, paymentTxId)) | |
29 | 29 | match paymentTx { | |
30 | 30 | case paymentTx: TransferTransaction => | |
31 | 31 | if ((extract(getInteger(player, "Choice")) == win)) | |
32 | 32 | then (paymentTx.sender == payout.recipient) | |
33 | 33 | else false | |
34 | 34 | case _ => | |
35 | 35 | false | |
36 | 36 | } | |
37 | 37 | case _ => | |
38 | 38 | true | |
39 | 39 | } |
github/deemru/w8io/026f985 20.22 ms ◑