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