tx · CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves
2022.03.22 10:09 [1974817] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "CrrTsVjR69Xv7DcjnZY4SqRzhA7zyCUGy2GhvaaVWz4k",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1647932952003,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"4YhrSgt6L8WRseZge5SaxnfW4mRNdrHYLiND7PjycGZ1TWH3W8xF4q1YyruPiSLvcfkGVWfKP9fSaQBrfjZHoQxn"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAJdGhyb3dEaWNlAAAAAAQAAAADdW5pAAAAAAAAD0JABAAAAAN0aWMDCQAAZgAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAYTm8gTW9uZXkgTm8gRnVubnkgSG9uZXkuAwkAAGYAAAACCQAD8AAAAAIFAAAABHRoaXMJAAGbAAAAAQIAAAAFV0FWRVMAAAAAAAAAB9ADCQAAAAAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAmJaABAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAA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W0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABpAAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgIAAAABIAkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoCAAAAByBTZW50OiAJAAGkAAAAAQUAAAAHc2VudERpZgUAAAADbmlsCQAAAgAAAAECAAAAMFRpY2tldHMgYXJlIDAuMSBXQVZFUy4gUGxlYXNlIHNlbnQgZXhhY3QgYW1vdW50LgkAAAIAAAABAgAAAApDYXNhIGVtcHR5AAAAAA61n8w=",
"height": 1974817,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3yTCdmBr5ULbGrPVPiPhAub7GmUdGpgeENVS6Z5Guzat
Next: 7drve2Z3wND9fgzu4WdVLGy5fXM8q364Pd9N7cugyoKn
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 ((assetBalance(this, toBytes("WAVES")) > 20000000)) |
---|
| 12 | + | if ((assetBalance(this, toBytes("WAVES")) > 2000)) |
---|
13 | 13 | | then if ((c.amount == 10000000)) |
---|
14 | 14 | | then { |
---|
15 | 15 | | let d = 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 = if ((size(a.payments) > 0)) |
---|
10 | 10 | | then a.payments[0] |
---|
11 | 11 | | else throw("No Money No Funny Honey.") |
---|
12 | | - | if ((assetBalance(this, toBytes("WAVES")) > 20000000)) |
---|
| 12 | + | if ((assetBalance(this, toBytes("WAVES")) > 2000)) |
---|
13 | 13 | | then if ((c.amount == 10000000)) |
---|
14 | 14 | | then { |
---|
15 | 15 | | let d = toInt(a.transactionId) |
---|
16 | 16 | | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
17 | 17 | | let f = (((((toInt(lastBlock.generator.bytes) + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
18 | 18 | | let g = ((e * f) * b) |
---|
19 | 19 | | let h = ((e + f) * b) |
---|
20 | 20 | | if ((e == f)) |
---|
21 | 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 | 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 | 23 | | } |
---|
24 | 24 | | else throw("Tickets are 0.1 WAVES. Please sent exact amount.") |
---|
25 | 25 | | else throw("Casa empty") |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|