tx · EwpbvEakt2FJ8LGHtfwx5Wk4mn9sBfHyZ8o5m8zRLZ2n
3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9: -0.00100000 Waves
2022.07.29 10:51 [2160832] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EwpbvEakt2FJ8LGHtfwx5Wk4mn9sBfHyZ8o5m8zRLZ2n",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1659081079541,
"version": 2,
"chainId": 84,
"sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9",
"senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU",
"proofs": [
"4Dsu8w9hcMegb56jEDvM6GJ5XTXMddkHuPqmZ8Cp6KaxQJMnNSwRXvFw6N3jGFRyRN7uNwsjbFfkpMzQwYbMedws"
],
"script": "base64:AAIFAAAAAAAAAA0IAhIAEgASAwoBGBIAAAAABAEAAAAKbGF6eUlzR29vZAAAAAAEAAAAAWECAAAAA0JvYgQAAAABYgQAAAABeAAAAAAAAAAAAQIAAAAFQWxpY2UGAAAAAAJhZAIAAAADQm9iAAAAAAJiZAAAAAAAAAAAAQEAAAAKZ2V0UGF5bWVudAAAAAEAAAABaQMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAnVGhpcyBmdW5jdGlvbiBhY2NlcHRzIFdBVkVTIHRva2VucyBvbmx5CAUAAAADcG10AAAABmFtb3VudAAAAAQAAAABaQEAAAADcGF5AAAAAAQAAAAGYW1vdW50CQEAAAAKZ2V0UGF5bWVudAAAAAEFAAAAAWkJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZhbW91bnQFAAAAA25pbAUAAAAEdW5pdAAAAAFpAQAAAARjYWxjAAAAAAMJAQAAAApsYXp5SXNHb29kAAAAAAkAAAIAAAABAgAAAAIyMQkAAAIAAAABAgAAAA0xMjMxMjMyMTMxMzIxAAAAAWkBAAAAAWYAAAABAAAABGFyZ3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAJmZAAAAAAJAAUUAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAZlbnRyeTICAAAAAzEyMwUAAAADbmlsAAAAAAAAAB5hAAAAAAzElTg=",
"height": 2160832,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BYj2ZGR8nNnWvJu6UPGcAM4Q3DbWhwnpCsePuEXpkiah
Next: 8Qbk4mC5ghFZr3w7i8EvyJ9gb3M9d17dVUG6TUMX3pso
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ad = "Bob" |
---|
5 | | - | |
---|
6 | | - | let bd = 1 |
---|
7 | | - | |
---|
8 | 4 | | func lazyIsGood () = { |
---|
9 | 5 | | let a = "Bob" |
---|
10 | 6 | | let b = { |
---|
|
14 | 10 | | true |
---|
15 | 11 | | } |
---|
16 | 12 | | |
---|
| 13 | + | |
---|
| 14 | + | let ad = "Bob" |
---|
| 15 | + | |
---|
| 16 | + | let bd = 1 |
---|
17 | 17 | | |
---|
18 | 18 | | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
19 | 19 | | then throw("Payment must be attached") |
---|
|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Callable(i) |
---|
37 | | - | func calc () = throw("1231232131321") |
---|
| 37 | + | func calc () = if (lazyIsGood()) |
---|
| 38 | + | then throw("21") |
---|
| 39 | + | else throw("1231232131321") |
---|
38 | 40 | | |
---|
39 | 41 | | |
---|
40 | 42 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ad = "Bob" |
---|
5 | | - | |
---|
6 | | - | let bd = 1 |
---|
7 | | - | |
---|
8 | 4 | | func lazyIsGood () = { |
---|
9 | 5 | | let a = "Bob" |
---|
10 | 6 | | let b = { |
---|
11 | 7 | | let x = 1 |
---|
12 | 8 | | "Alice" |
---|
13 | 9 | | } |
---|
14 | 10 | | true |
---|
15 | 11 | | } |
---|
16 | 12 | | |
---|
| 13 | + | |
---|
| 14 | + | let ad = "Bob" |
---|
| 15 | + | |
---|
| 16 | + | let bd = 1 |
---|
17 | 17 | | |
---|
18 | 18 | | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
19 | 19 | | then throw("Payment must be attached") |
---|
20 | 20 | | else { |
---|
21 | 21 | | let pmt = i.payments[0] |
---|
22 | 22 | | if (isDefined(pmt.assetId)) |
---|
23 | 23 | | then throw("This function accepts WAVES tokens only") |
---|
24 | 24 | | else pmt.amount |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(i) |
---|
29 | 29 | | func pay () = { |
---|
30 | 30 | | let amount = getPayment(i) |
---|
31 | 31 | | $Tuple2([IntegerEntry(toBase58String(i.caller.bytes), amount)], unit) |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | 36 | | @Callable(i) |
---|
37 | | - | func calc () = throw("1231232131321") |
---|
| 37 | + | func calc () = if (lazyIsGood()) |
---|
| 38 | + | then throw("21") |
---|
| 39 | + | else throw("1231232131321") |
---|
38 | 40 | | |
---|
39 | 41 | | |
---|
40 | 42 | | |
---|
41 | 43 | | @Callable(i) |
---|
42 | 44 | | func f (args) = [StringEntry("entry1", args[0]), StringEntry("entry1", args[1])] |
---|
43 | 45 | | |
---|
44 | 46 | | |
---|
45 | 47 | | |
---|
46 | 48 | | @Callable(i) |
---|
47 | 49 | | func fd () = $Tuple2([StringEntry("entry2", "123")], 7777) |
---|
48 | 50 | | |
---|
49 | 51 | | |
---|