tx · E546ioYN6xvrpW6DvTAdKTxEerJEi2zmXAYmpngLLQjg 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW: -0.03000000 Waves 2019.02.11 16:33 [490546] smart account 3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW > SELF 0.00000000 Waves
{ "type": 13, "id": "E546ioYN6xvrpW6DvTAdKTxEerJEi2zmXAYmpngLLQjg", "fee": 3000000, "feeAssetId": null, "timestamp": 1549891971324, "version": 1, "sender": "3NALVonJ2gukqfMxzNJNSd3mb4GrinLExbW", "senderPublicKey": "DuYXHBwHFjmpzaEXsnkX8Mo5MWHbs4rE8K2vA6GPXRSg", "proofs": [ "u4UnjaRB8wdjDqbYai5zoyiaLMZMc8hA7KECyrGn9WUyHQ5iojodJScqPFGyw1SgVK4h8CkB6BKYqEpqpPEGyGV" ], "script": "base64:AQQAAAAJYmV0QW1vdW50AAAAAAAF9eEABAAAAAlkYXRhVHhGZWUAAAAAAACYloAEAAAACXBheW91dEZlZQAAAAAAAAehIAQAAAAGcGxheWVyCAUAAAACdHgAAAAGc2VuZGVyBAAAAAN3aW4AAAAAAAAAAAIEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACXRtcENob2ljZQkBAAAAB2V4dHJhY3QAAAABCQAEEAAAAAIIBQAAAAF0AAAABGRhdGECAAAABkNob2ljZQQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAAtsYXN0UGF5bWVudAQAAAAJcGF5bWVudFR4CQAD6AAAAAEJAAJZAAAAAQUAAAALcGF5bWVudFR4SWQEAAAAByRtYXRjaDEFAAAACXBheW1lbnRUeAMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAJcGF5bWVudFR4BQAAAAckbWF0Y2gxBgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAABnBheW91dAUAAAAHJG1hdGNoMAQAAAALcGF5bWVudFR4SWQJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAZwbGF5ZXICAAAAC2xhc3RQYXltZW50BAAAAAlwYXltZW50VHgJAAPoAAAAAQkAAlkAAAABBQAAAAtwYXltZW50VHhJZAQAAAAMaGVpZ2h0Q2hvaWNlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAGcGxheWVyBQAAAAtwYXltZW50VHhJZAQAAAAHJG1hdGNoMQUAAAAJcGF5bWVudFR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAlwYXltZW50VHgFAAAAByRtYXRjaDEDCQAAAAAAAAIJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZwbGF5ZXICAAAABkNob2ljZQUAAAADd2luCQAAAAAAAAIIBQAAAAlwYXltZW50VHgAAAAGc2VuZGVyCAUAAAAGcGF5b3V0AAAACXJlY2lwaWVudAcHBiqLF14=", "chainId": 84, "height": 490546, "spentComplexity": 0 } View: original | compacted Prev: none Next: BCAtAYjChno7CEmfrS2RnHq7bJDq2zC3ztjL9hf9EwSu Full:
Old | New | Differences | |
---|---|---|---|
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 | + | true | |
16 | + | case _ => | |
17 | + | true | |
18 | + | } | |
19 | + | case payout: TransferTransaction => | |
20 | + | let paymentTxId = extract(getString(player, "lastPayment")) | |
21 | + | let paymentTx = transactionById(fromBase58String(paymentTxId)) | |
22 | + | let heightChoice = extract(getInteger(player, paymentTxId)) | |
23 | + | match paymentTx { | |
24 | + | case paymentTx: TransferTransaction => | |
25 | + | if ((extract(getInteger(player, "Choice")) == win)) | |
26 | + | then (paymentTx.sender == payout.recipient) | |
27 | + | else false | |
28 | + | case _ => | |
29 | + | false | |
30 | + | } | |
31 | + | case _ => | |
32 | + | true | |
33 | + | } |
github/deemru/w8io/026f985 13.80 ms ◑