tx · 9hyMXNomGqCdMx9r1TWhFP1cVBKETBoafwK2Fmg9oTa1
3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB: -0.05000000 Waves
2022.03.21 22:49 [1974140] smart account 3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB > SELF 0.00000000 Waves
{
"type": 13,
"id": "9hyMXNomGqCdMx9r1TWhFP1cVBKETBoafwK2Fmg9oTa1",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1647892182368,
"version": 2,
"chainId": 84,
"sender": "3NBxmy6co128zY2x4nz4tdYE7LBLz2RXHuB",
"senderPublicKey": "5HaVHwTnAqmQF8TLd8vAqExCLoKuBKoJ4wXKhVbSSapf",
"proofs": [
"p3SnY7tG8AvxhLLZhyjUe9yPZZtqXcojntncU6NFGUYXyXcGJowrsi2ExuHdJjWX6CQREmkgBfhDrXyWM4cmWJb"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAFemFyQXQAAAAABAAAAAN1bmkAAAAAAAAPQkAEAAAAA3RpYwMJAABmAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhObyBNb25leSBObyBGdW5ueSBIb25leS4DCQAAZgAAAAIIBQAAAAN0aWMAAAAGYW1vdW50AAAAAAAAD0I/BAAAAANnSUQJAASxAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAABcgkAAGQAAAACCQAAagAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0CAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAgFAAAACWxhc3RCbG9jawAAAApiYXNlVGFyZ2V0BQAAAANnSUQAAAAAAAAAAAYAAAAAAAAAAAEEAAAAAXoJAABkAAAAAgkAAGoAAAACCQAAZAAAAAIJAABlAAAAAgkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAgFAAAACWxhc3RCbG9jawAAAAl0aW1lc3RhbXAIBQAAAAlsYXN0QmxvY2sAAAAKYmFzZVRhcmdldAUAAAADZ0lEAAAAAAAAAAAGAAAAAAAAAAABAwkAAAAAAAACBQAAAAFyBQAAAAF6CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGgAAAACCQAAaAAAAAIFAAAAAXIAAAAAAAAAAAMFAAAAA3VuaQUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANOdW0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegUAAAADbmlsCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAABcgUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANOdW0JAAEsAAAAAgkAASwAAAACCQABpAAAAAEFAAAAAXICAAAAASAJAAGkAAAAAQUAAAABegUAAAADbmlsCQAAAgAAAAECAAAAFlRpY2tldHMgYXJlIDAuMDEgV0FWRVMAAAAAcQTLFQ==",
"height": 1974140,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5CPFjjECF7DS9Xr2G3MRdgL5dnuv47k4crptHebLPjqx
Next: 7tDXtDJyNSYoNfKRLSYR2vm25tyrCQvdkdQrd1Pd93Zq
Diff:
Old | New | | Differences |
---|
13 | 13 | | then { |
---|
14 | 14 | | let gID = toInt(i.transactionId) |
---|
15 | 15 | | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
---|
16 | | - | [StringEntry(toString(i.caller), toString(i.fee)), ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", toString(r))] |
---|
| 16 | + | let z = (((((lastBlock.height + lastBlock.timestamp) - lastBlock.baseTarget) + gID) % 6) + 1) |
---|
| 17 | + | if ((r == z)) |
---|
| 18 | + | then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
| 19 | + | else [ScriptTransfer(i.caller, r, unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
17 | 20 | | } |
---|
18 | 21 | | else throw("Tickets are 0.01 WAVES") |
---|
19 | 22 | | } |
---|
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(i) |
---|
7 | 7 | | func zarAt () = { |
---|
8 | 8 | | let uni = 1000000 |
---|
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 > 999999)) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let gID = toInt(i.transactionId) |
---|
15 | 15 | | let r = (((((lastBlock.height + lastBlock.timestamp) + lastBlock.baseTarget) + gID) % 6) + 1) |
---|
16 | | - | [StringEntry(toString(i.caller), toString(i.fee)), ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", toString(r))] |
---|
| 16 | + | let z = (((((lastBlock.height + lastBlock.timestamp) - lastBlock.baseTarget) + gID) % 6) + 1) |
---|
| 17 | + | if ((r == z)) |
---|
| 18 | + | then [ScriptTransfer(i.caller, ((r * 3) * uni), unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
| 19 | + | else [ScriptTransfer(i.caller, r, unit), StringEntry("Num", ((toString(r) + " ") + toString(z)))] |
---|
17 | 20 | | } |
---|
18 | 21 | | else throw("Tickets are 0.01 WAVES") |
---|
19 | 22 | | } |
---|
20 | 23 | | |
---|
21 | 24 | | |
---|