tx · JEJvVXjE6X6LAhoYdjWPBpdWZodsk2Fd3VnH1GuLVWxW 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.28 23:00 [1984205] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "JEJvVXjE6X6LAhoYdjWPBpdWZodsk2Fd3VnH1GuLVWxW", "fee": 1000000, "feeAssetId": null, "timestamp": 1648497676104, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "fbAJDUzD6BQ38FtXrNn9kYhQLNmzZzdX5vAjBiYTin74nPUZgeTRY7t6GhGo1SUtAwvSDEhNcj2w68CsyPu8HYk" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAtjYXNhQmFsYW5jZQkAA+8AAAABBQAAAAR0aGlzBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAABycOAAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAJiWgAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAI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0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADBUaWNrZXRzIGFyZSAwLjEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4JAAACAAAAAQIAAAAKQ2FzYSBlbXB0eQAAAACJqThx", "height": 1984205, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZWmKBgqWA6y7zh3cgeCbkRc6EBwdXDqfYKHqiwkygfX Next: 6abvLuorEmW2UUBjRzrYLLhNWhZJkzZJiWP6F75bLYBY Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | then i.payments[0] | |
12 | 12 | else throw("No Money No Funny Honey.") | |
13 | 13 | if ((casaBalance.available > 30000000)) | |
14 | - | then if (if ((tic.amount == 10000000)) | |
15 | - | then isDefined(tic.assetId) | |
16 | - | else false) | |
14 | + | then if ((tic.amount == 10000000)) | |
17 | 15 | then { | |
18 | 16 | let gID = toInt(i.transactionId) | |
19 | 17 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
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 casaBalance = wavesBalance(this) | |
10 | 10 | let tic = if ((size(i.payments) > 0)) | |
11 | 11 | then i.payments[0] | |
12 | 12 | else throw("No Money No Funny Honey.") | |
13 | 13 | if ((casaBalance.available > 30000000)) | |
14 | - | then if (if ((tic.amount == 10000000)) | |
15 | - | then isDefined(tic.assetId) | |
16 | - | else false) | |
14 | + | then if ((tic.amount == 10000000)) | |
17 | 15 | then { | |
18 | 16 | let gID = toInt(i.transactionId) | |
19 | 17 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
20 | 18 | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
21 | 19 | let sentSame = ((r * z) * uni) | |
22 | 20 | let sentDif = ((r + z) * uni) | |
23 | 21 | if ((r == z)) | |
24 | 22 | 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)))] | |
25 | 23 | 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)))] | |
26 | 24 | } | |
27 | 25 | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") | |
28 | 26 | else throw("Casa empty") | |
29 | 27 | } | |
30 | 28 | ||
31 | 29 |
github/deemru/w8io/026f985 36.20 ms ◑