tx · 6nwBgnCgfZfLCD4jPvfrwL6At3KySamj7GkD7u621P5S 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves 2022.03.22 09:21 [1974774] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{ "type": 13, "id": "6nwBgnCgfZfLCD4jPvfrwL6At3KySamj7GkD7u621P5S", "fee": 1000000, "feeAssetId": null, "timestamp": 1647930113280, "version": 2, "chainId": 84, "sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB", "senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf", "proofs": [ "65QSAqD81bmD5YRT4wYeXZidiDdNCsoc9y7TrZh8zLPaYgi3u8pbc64Fo2HbsG9SYwVQrsySvRN81ipaf7SFM7Gi" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAAYagBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAA9CQAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAIBQAAAAlsYXN0QmxvY2sAAAAKYmFzZVRhcmdldAUAAAADZ0lEAAAAAAAAAAAGAAAAAAAAAAABBAAAAAF6CQAAZAAAAAIJAABqAAAAAgkAAGQAAAACCQAA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VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADFUaWNrZXRzIGFyZSAwLjAxIFdBVkVTLiBQbGVhc2Ugc2VudCBleGFjdCBhbW91bnQuAAAAAMq0Ogk=", "height": 1974774, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Q84CWTGwzBuhqkns2uA3tREcCWmG4d6Wq8oPh2BDXxi Next: HoSs6jqLZ8PV4KxWVURhF3v3avrtAMFfx2WCJK2pmL5P Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | - | func | |
7 | + | func throwDice () = { | |
8 | 8 | let uni = 100000 | |
9 | 9 | let tic = if ((size(i.payments) > 0)) | |
10 | 10 | then i.payments[0] |
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 | - | func | |
7 | + | func throwDice () = { | |
8 | 8 | let uni = 100000 | |
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 | 12 | if ((tic.amount == 1000000)) | |
13 | 13 | then { | |
14 | 14 | let gID = toInt(i.transactionId) | |
15 | 15 | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
16 | 16 | let z = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) | |
17 | 17 | let sentSame = ((r * z) * uni) | |
18 | 18 | let sentDif = ((r + z) * uni) | |
19 | 19 | if ((r == z)) | |
20 | 20 | 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)))] | |
21 | 21 | 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)))] | |
22 | 22 | } | |
23 | 23 | else throw("Tickets are 0.01 WAVES. Please sent exact amount.") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 |
github/deemru/w8io/169f3d6 26.13 ms ◑