tx · 95BX68nGfxW8yzLec1AkM76Y6q4MmRwkwpggPQBaqjas 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.22 10:07 [1974815] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "95BX68nGfxW8yzLec1AkM76Y6q4MmRwkwpggPQBaqjas", "fee": 1000000, "feeAssetId": null, "timestamp": 1647932846576, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "4ym25Kmq2ZrNG8vz5CpAzZpGYEX1oHn2qfMPQsJW3n5akxdViQzNmpkgfpiRi2hTnCML3dLXcTAPdKtphNNnqThe" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCQAD8AAAAAIFAAAABHRoaXMJAAGbAAAAAQIAAAAFV0FWRVMAAAAABKgXyAADCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAmJaABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0BQAAA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CQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAE1hLfM=", "height": 1974815, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HoSs6jqLZ8PV4KxWVURhF3v3avrtAMFfx2WCJK2pmL5P Next: 9BaAtfY3YNG9xacyigkAkuBZemYXhGEGdnoCxJQgo6MW Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | let c = if ((size(a.payments) > 0)) | |
10 | 10 | then a.payments[0] | |
11 | 11 | else throw("No Money No Funny Honey.") | |
12 | - | if ((c.amount == 10000000)) | |
13 | - | then { | |
14 | - | let d = toInt(a.transactionId) | |
15 | - | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
16 | - | let f = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
17 | - | let g = ((e * f) * b) | |
18 | - | let h = ((e + f) * b) | |
19 | - | if ((e == f)) | |
20 | - | then [ScriptTransfer(a.caller, g, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(g)))] | |
21 | - | else [ScriptTransfer(a.caller, h, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(h)))] | |
22 | - | } | |
23 | - | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
12 | + | if ((assetBalance(this, toBytes("WAVES")) > 20000000000)) | |
13 | + | then if ((c.amount == 10000000)) | |
14 | + | then { | |
15 | + | let d = toInt(a.transactionId) | |
16 | + | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
17 | + | let f = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
18 | + | let g = ((e * f) * b) | |
19 | + | let h = ((e + f) * b) | |
20 | + | if ((e == f)) | |
21 | + | then [ScriptTransfer(a.caller, g, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(g)))] | |
22 | + | else [ScriptTransfer(a.caller, h, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(h)))] | |
23 | + | } | |
24 | + | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
25 | + | else throw("Casa empty") | |
24 | 26 | } | |
25 | 27 | ||
26 | 28 |
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(a) | |
7 | 7 | func throwDice () = { | |
8 | 8 | let b = 1000000 | |
9 | 9 | let c = if ((size(a.payments) > 0)) | |
10 | 10 | then a.payments[0] | |
11 | 11 | else throw("No Money No Funny Honey.") | |
12 | - | if ((c.amount == 10000000)) | |
13 | - | then { | |
14 | - | let d = toInt(a.transactionId) | |
15 | - | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
16 | - | let f = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
17 | - | let g = ((e * f) * b) | |
18 | - | let h = ((e + f) * b) | |
19 | - | if ((e == f)) | |
20 | - | then [ScriptTransfer(a.caller, g, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(g)))] | |
21 | - | else [ScriptTransfer(a.caller, h, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(h)))] | |
22 | - | } | |
23 | - | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
12 | + | if ((assetBalance(this, toBytes("WAVES")) > 20000000000)) | |
13 | + | then if ((c.amount == 10000000)) | |
14 | + | then { | |
15 | + | let d = toInt(a.transactionId) | |
16 | + | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
17 | + | let f = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) | |
18 | + | let g = ((e * f) * b) | |
19 | + | let h = ((e + f) * b) | |
20 | + | if ((e == f)) | |
21 | + | then [ScriptTransfer(a.caller, g, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(g)))] | |
22 | + | else [ScriptTransfer(a.caller, h, unit), StringEntry("Num", ((toString(e) + " ") + toString(f))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(e)) + " ") + toString(f)) + " Sent: ") + toString(h)))] | |
23 | + | } | |
24 | + | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
25 | + | else throw("Casa empty") | |
24 | 26 | } | |
25 | 27 | ||
26 | 28 |
github/deemru/w8io/169f3d6 63.48 ms ◑![]()