tx · CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.22 10:09 [1974817] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k", "fee": 1000000, "feeAssetId": null, "timestamp": 1647932952003, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "4YhrSgt6L8WRseZge5SaxnfW4mRNdrHYLiND7PjycGZ1TWH3W8xF4q1YyruPiSLvcfkGVWfKP9fSaQBrfjZHoQxn" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCQAD8AAAAAIFAAAABHRoaXMJAAGbAAAAAQIAAAAFV0FWRVMAAAAAAAAAB9ADCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAmJaABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGF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AAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAA61n8w=", "height": 1974817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3yTCdmBr5ULbGrPVPiPhAub7GmUdGpgeENVS6Z5Guzat Next: 7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | let tic = if ((size(i.payments) > 0)) | |
10 | 10 | then i.payments[0] | |
11 | 11 | else throw("No Money No Funny Honey.") | |
12 | - | if ((assetBalance(this, toBytes("WAVES")) > | |
12 | + | if ((assetBalance(this, toBytes("WAVES")) > 2000)) | |
13 | 13 | then if ((tic.amount == 10000000)) | |
14 | 14 | then { | |
15 | 15 | let gID = toInt(i.transactionId) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func throwDice () = { | |
8 | 8 | let uni = 1000000 | |
9 | 9 | let tic = if ((size(i.payments) > 0)) | |
10 | 10 | then i.payments[0] | |
11 | 11 | else throw("No Money No Funny Honey.") | |
12 | - | if ((assetBalance(this, toBytes("WAVES")) > | |
12 | + | if ((assetBalance(this, toBytes("WAVES")) > 2000)) | |
13 | 13 | then if ((tic.amount == 10000000)) | |
14 | 14 | then { | |
15 | 15 | let gID = toInt(i.transactionId) | |
16 | 16 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
17 | 17 | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
18 | 18 | let sentSame = ((r * z) * uni) | |
19 | 19 | let sentDif = ((r + z) * uni) | |
20 | 20 | if ((r == z)) | |
21 | 21 | then [ScriptTransfer(i.caller, sentSame, unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentSame)))] | |
22 | 22 | else [ScriptTransfer(i.caller, sentDif, unit), StringEntry("Num", ((toString(r) + " ") + toString(z))), StringEntry(toString(lastBlock.timestamp), ((((((toString(i.caller) + " ") + toString(r)) + " ") + toString(z)) + " Sent: ") + toString(sentDif)))] | |
23 | 23 | } | |
24 | 24 | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
25 | 25 | else throw("Casa empty") | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 |
github/deemru/w8io/169f3d6 36.67 ms ◑