tx · H3LFZcb41G8rfWRbrRswFpPtCnEbfD98FRMP28CrUe4f
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves
2022.03.22 10:32 [1974841] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "H3LFZcb41G8rfWRbrRswFpPtCnEbfD98FRMP28CrUe4f",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1647934403800,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"68ucLPrDTV6PVsrBTSbZvENeTvVFSaZFPZtVQ1dHFkvh1QKyp5NQzjUA7c8zkqaqqqRaGcQjtREDTGyvTa9Jx5T"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAARjYXNhCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU8dUmfV9XTKe8QHJbnae4Yz5z2sr+mbGiBAAAAAtjYXNhQmFsYW5jZQkAA+8AAAABBQAAAARjYXNhBAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCAUAAAALY2FzYUJhbGFuY2UAAAAJYXZhaWxhYmxlAAAAAAB3NZQAAwkAAAAAAAACCAUAAAADdGljAAAABmFtb3VudAAAAAAAAJiWgAQAAAADZ0lECQAEsQAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQEAAAAAXIJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAA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ZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAB3NlbnREaWYFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAaQAAAABCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXICAAAAASAJAAGkAAAAAQUAAAABcgIAAAABIAkAAaQAAAABBQAAAAF6AgAAAAcgU2VudDogCQABpAAAAAEFAAAAB3NlbnREaWYFAAAAA25pbAkAAAIAAAABAgAAADBUaWNrZXRzIGFyZSAwLjEgV0FWRVMuIFBsZWFzZSBzZW50IGV4YWN0IGFtb3VudC4JAAACAAAAAQIAAAAKQ2FzYSBlbXB0eQAAAACM+TKt",
"height": 1974841,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn
Next: F94DCrJdxYqS5h9tEWmrEctF9rtKdjq2JRDYPjLPLBMj
Diff:
Old | New | | Differences |
---|
11 | 11 | | let e = if ((size(a.payments) > 0)) |
---|
12 | 12 | | then a.payments[0] |
---|
13 | 13 | | else throw("No Money No Funny Honey.") |
---|
14 | | - | if ((d.available > 20000000000)) |
---|
| 14 | + | if ((d.available > 2000000000)) |
---|
15 | 15 | | then if ((e.amount == 10000000)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let f = toInt(a.transactionId) |
---|
Full:
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 = Address(base58'3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB') |
---|
10 | 10 | | let d = wavesBalance(c) |
---|
11 | 11 | | let e = if ((size(a.payments) > 0)) |
---|
12 | 12 | | then a.payments[0] |
---|
13 | 13 | | else throw("No Money No Funny Honey.") |
---|
14 | | - | if ((d.available > 20000000000)) |
---|
| 14 | + | if ((d.available > 2000000000)) |
---|
15 | 15 | | then if ((e.amount == 10000000)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let f = toInt(a.transactionId) |
---|
18 | 18 | | let g = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + f) % 6) + 1) |
---|
19 | 19 | | let h = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + f) % 6) + 1) |
---|
20 | 20 | | let i = ((g * h) * b) |
---|
21 | 21 | | let j = ((g + h) * b) |
---|
22 | 22 | | if ((g == h)) |
---|
23 | 23 | | then [ScriptTransfer(a.caller, i, unit), StringEntry("Num", ((toString(g) + " ") + toString(h))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(g)) + " ") + toString(h)) + " Sent: ") + toString(i)))] |
---|
24 | 24 | | else [ScriptTransfer(a.caller, j, unit), StringEntry("Num", ((toString(g) + " ") + toString(h))), StringEntry(toString(lastBlock.timestamp), ((((((toString(a.caller) + " ") + toString(g)) + " ") + toString(h)) + " Sent: ") + toString(j)))] |
---|
25 | 25 | | } |
---|
26 | 26 | | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") |
---|
27 | 27 | | else throw("Casa empty") |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|