tx · BYj2ZGR8nNnWvJu6UPGcAM4Q3DbWhwnpCsePuEXpkiah
3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9: -0.00100000 Waves
2022.07.27 18:52 [2158421] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "BYj2ZGR8nNnWvJu6UPGcAM4Q3DbWhwnpCsePuEXpkiah",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1658937205100,
"version": 2,
"chainId": 84,
"sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9",
"senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU",
"proofs": [
"5myMqSju3RVwjHEDgMAQTU5jRNL5GQCm3j64bP2X8hHZFyBBfZy9HLoKSMo4omPdKL41ohWj4ysA3eQPgTacMpJh"
],
"script": "base64:AAIFAAAAAAAAAA0IAhIAEgASAwoBGBIAAAAABAAAAAACYWQCAAAAA0JvYgAAAAACYmQAAAAAAAAAAAEBAAAACmxhenlJc0dvb2QAAAAABAAAAAFhAgAAAANCb2IEAAAAAWIEAAAAAXgAAAAAAAAAAAECAAAABUFsaWNlBgEAAAAKZ2V0UGF5bWVudAAAAAEAAAABaQMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAnVGhpcyBmdW5jdGlvbiBhY2NlcHRzIFdBVkVTIHRva2VucyBvbmx5CAUAAAADcG10AAAABmFtb3VudAAAAAQAAAABaQEAAAADcGF5AAAAAAQAAAAGYW1vdW50CQEAAAAKZ2V0UGF5bWVudAAAAAEFAAAAAWkJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZhbW91bnQFAAAAA25pbAUAAAAEdW5pdAAAAAFpAQAAAARjYWxjAAAAAAkAAAIAAAABAgAAAA0xMjMxMjMyMTMxMzIxAAAAAWkBAAAAAWYAAAABAAAABGFyZ3MJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAGZW50cnkxCQABkQAAAAIFAAAABGFyZ3MAAAAAAAAAAAEFAAAAA25pbAAAAAFpAQAAAAJmZAAAAAAJAAUUAAAAAgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAZlbnRyeTICAAAAAzEyMwUAAAADbmlsAAAAAAAAAB5hAAAAAAMF4HY=",
"height": 2158421,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: H7S7F5AzSCA21BbWpiAWsA96cFDS6iGirUr74wvVJcBK
Next: EwpbvEakt2FJ8LGHtfwx5Wk4mn9sBfHyZ8o5m8zRLZ2n
Diff:
Old | New | | Differences |
---|
44 | 44 | | |
---|
45 | 45 | | |
---|
46 | 46 | | @Callable(i) |
---|
47 | | - | func fd () = $Tuple2([StringEntry("entry2", "123")], 42) |
---|
| 47 | + | func fd () = $Tuple2([StringEntry("entry2", "123")], 7777) |
---|
48 | 48 | | |
---|
49 | 49 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let ad = "Bob" |
---|
5 | 5 | | |
---|
6 | 6 | | let bd = 1 |
---|
7 | 7 | | |
---|
8 | 8 | | func lazyIsGood () = { |
---|
9 | 9 | | let a = "Bob" |
---|
10 | 10 | | let b = { |
---|
11 | 11 | | let x = 1 |
---|
12 | 12 | | "Alice" |
---|
13 | 13 | | } |
---|
14 | 14 | | true |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
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 | 37 | | func calc () = throw("1231232131321") |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | @Callable(i) |
---|
42 | 42 | | func f (args) = [StringEntry("entry1", args[0]), StringEntry("entry1", args[1])] |
---|
43 | 43 | | |
---|
44 | 44 | | |
---|
45 | 45 | | |
---|
46 | 46 | | @Callable(i) |
---|
47 | | - | func fd () = $Tuple2([StringEntry("entry2", "123")], 42) |
---|
| 47 | + | func fd () = $Tuple2([StringEntry("entry2", "123")], 7777) |
---|
48 | 48 | | |
---|
49 | 49 | | |
---|