tx · EJaEdSpsUDVEAJosNz78jxtJuLGtgUmxkowTF2Yvbws7
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves
2022.03.20 21:18 [1972611] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "EJaEdSpsUDVEAJosNz78jxtJuLGtgUmxkowTF2Yvbws7",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1647800324825,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"57szNd7gVQUb5LjpHnfmPHeiP3iPatYbGXDexN7JwAz5pHkagNNgcKrdzHY8UrLBWXELR56EESXDYpe8m6DjSN6f"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAACYloAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQAAZgAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAmJZ/BAAAAAFyCQAAZAAAAAIJAABqAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0AAAAAAAAAAAGAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQABpAAAAAEIBQAAAAFpAAAAA2ZlZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAgkAAGgAAAACBQAAAAFyAAAAAAAAAAADBQAAAAN1bmkFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABpAAAAAEFAAAAAXIFAAAAA25pbAkAAAIAAAABAgAAABVUaWNrZXRzIGFyZSAwLjEgV0FWRVMAAAAAN2iACQ==",
"height": 1972611,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3kcsuPAZnnCheoqUjMDaa9ET79uq1GCDRhKHdhmpPkDE
Next: AYN5BhAF6DAYG7TdKPCPunwJZr9ZMQQAYxDEx41DPXjQ
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func zarAt () = { |
---|
8 | | - | let b = if ((size(a.payments) > 0)) |
---|
| 8 | + | let b = 10000000 |
---|
| 9 | + | let c = if ((size(a.payments) > 0)) |
---|
9 | 10 | | then a.payments[0] |
---|
10 | 11 | | else throw("No Money No Funny Honey.") |
---|
11 | | - | if ((b.amount > 9999999)) |
---|
| 12 | + | if ((c.amount > 9999999)) |
---|
12 | 13 | | then { |
---|
13 | | - | let c = ((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) % 6) + 1) |
---|
14 | | - | [StringEntry(toString(a.caller), toString(a.fee)), ScriptTransfer(a.caller, (c * 3), unit), StringEntry("Num", toString(c))] |
---|
| 14 | + | let d = ((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) % 6) + 1) |
---|
| 15 | + | [StringEntry(toString(a.caller), toString(a.fee)), ScriptTransfer(a.caller, ((d * 3) * b), unit), StringEntry("Num", toString(d))] |
---|
15 | 16 | | } |
---|
16 | 17 | | else throw("Tickets are 0.1 WAVES") |
---|
17 | 18 | | } |
---|
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 zarAt () = { |
---|
8 | | - | let b = if ((size(a.payments) > 0)) |
---|
| 8 | + | let b = 10000000 |
---|
| 9 | + | let c = if ((size(a.payments) > 0)) |
---|
9 | 10 | | then a.payments[0] |
---|
10 | 11 | | else throw("No Money No Funny Honey.") |
---|
11 | | - | if ((b.amount > 9999999)) |
---|
| 12 | + | if ((c.amount > 9999999)) |
---|
12 | 13 | | then { |
---|
13 | | - | let c = ((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) % 6) + 1) |
---|
14 | | - | [StringEntry(toString(a.caller), toString(a.fee)), ScriptTransfer(a.caller, (c * 3), unit), StringEntry("Num", toString(c))] |
---|
| 14 | + | let d = ((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) % 6) + 1) |
---|
| 15 | + | [StringEntry(toString(a.caller), toString(a.fee)), ScriptTransfer(a.caller, ((d * 3) * b), unit), StringEntry("Num", toString(d))] |
---|
15 | 16 | | } |
---|
16 | 17 | | else throw("Tickets are 0.1 WAVES") |
---|
17 | 18 | | } |
---|
18 | 19 | | |
---|
19 | 20 | | |
---|