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+8AAAABBQAAAAR0aGlzBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAABycOAAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAJiWgAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXA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0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADBUaWNrZXRzIGFyZSAwLjEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4JAAACAAAAAQIAAAAKQ2FzYSBlbXB0eQAAAACJqThx", "height": 1984205, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZWmKBgqWA6y7zh3cgeCbkRc6EBwdXDqfYKHqiwkygfX Next: 6abvLuorEmW2UUBjRzrYLLhNWhZJkzZJiWP6F75bLYBY Diff:
OldNewDifferences
1111 then i.payments[0]
1212 else throw("No Money No Funny Honey.")
1313 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))
1715 then {
1816 let gID = toInt(i.transactionId)
1917 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func throwDice () = {
88 let uni = 1000000
99 let casaBalance = wavesBalance(this)
1010 let tic = if ((size(i.payments) > 0))
1111 then i.payments[0]
1212 else throw("No Money No Funny Honey.")
1313 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))
1715 then {
1816 let gID = toInt(i.transactionId)
1917 let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
2018 let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1)
2119 let sentSame = ((r * z) * uni)
2220 let sentDif = ((r + z) * uni)
2321 if ((r == z))
2422 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)))]
2523 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)))]
2624 }
2725 else throw("Tickets are 0.1 WAVES. Please sent exact amount.")
2826 else throw("Casa empty")
2927 }
3028
3129

github/deemru/w8io/026f985 
36.20 ms