tx · 7tDXtDJyNSYoNfKRLSYR2vm25tyrCQvdkdQrd1Pd93Zq
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.01000000 Waves
2022.03.21 22:51 [1974142] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "7tDXtDJyNSYoNfKRLSYR2vm25tyrCQvdkdQrd1Pd93Zq",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1647892385475,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"3ytagACFdMAzcA8vhaXteVW5sukdkUXiVdtV4qDwTrqA5s3KWMTAvU3SaFRJx78RwMXwKBEM11TfvpbxoVVKJxoR"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAAAPQkAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQAAZgAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAD0I/BAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0BQAAAANnSUQAAAAAAAAAAAYAAAAAAAAAAAEEAAAAAXoJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQAAaAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AAAAAAAAAAACCQAAaAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAACCAUAAAAJbGFzdEJsb2NrAAAACmJhc2VUYXJnZXQFAAAAA2dJRAAAAAAAAAAABgAAAAAAAAAAAQMJAAAAAAAAAgUAAAABcgUAAAABegkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAgkAAGgAAAACBQAAAAFyAAAAAAAAAAADBQAAAAN1bmkFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAAXIFAAAABHVuaXQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADTnVtCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAFyAgAAAAEgCQABpAAAAAEFAAAAAXoFAAAAA25pbAkAAAIAAAABAgAAABZUaWNrZXRzIGFyZSAwLjAxIFdBVkVTAAAAABr9eXc=",
"height": 1974142,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9hyMXNomGqCdMx9r1TWhFP1cVBKETBoafwK2Fmg9oTa1
Next: AJZXKNCizsxCqGcn56AsdhJ4Zdab8ZCmz21hLHuxnWMC
Diff:
Old | New | | Differences |
---|
13 | 13 | | then { |
---|
14 | 14 | | let d = toInt(a.transactionId) |
---|
15 | 15 | | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
16 | | - | let f = (((((lastBlock.height + lastBlock.timestamp) - lastBlock.baseTarget) + d) % 6) + 1) |
---|
| 16 | + | let f = ((((((lastBlock.height * 2) + (lastBlock.timestamp * 2)) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
17 | 17 | | if ((e == f)) |
---|
18 | 18 | | then [ScriptTransfer(a.caller, ((e * 3) * b), unit), StringEntry("Num", ((toString(e) + " ") + toString(f)))] |
---|
19 | 19 | | else [ScriptTransfer(a.caller, e, unit), StringEntry("Num", ((toString(e) + " ") + toString(f)))] |
---|
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 | 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 | 12 | | if ((c.amount > 999999)) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let d = toInt(a.transactionId) |
---|
15 | 15 | | let e = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
16 | | - | let f = (((((lastBlock.height + lastBlock.timestamp) - lastBlock.baseTarget) + d) % 6) + 1) |
---|
| 16 | + | let f = ((((((lastBlock.height * 2) + (lastBlock.timestamp * 2)) + lastBlock.baseTarget) + d) % 6) + 1) |
---|
17 | 17 | | if ((e == f)) |
---|
18 | 18 | | then [ScriptTransfer(a.caller, ((e * 3) * b), unit), StringEntry("Num", ((toString(e) + " ") + toString(f)))] |
---|
19 | 19 | | else [ScriptTransfer(a.caller, e, unit), StringEntry("Num", ((toString(e) + " ") + toString(f)))] |
---|
20 | 20 | | } |
---|
21 | 21 | | else throw("Tickets are 0.01 WAVES") |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|