tx · 3fma4CCNNreBFyq9zfCW6BG366CyqL2ELzK89QGWDeBD
3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9: -0.00100000 Waves
2022.07.27 15:17 [2158210] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "3fma4CCNNreBFyq9zfCW6BG366CyqL2ELzK89QGWDeBD",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1658924239580,
"version": 2,
"chainId": 84,
"sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9",
"senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU",
"proofs": [
"467Hhy4LMEEuHTPWTzNJtf8sqkSahJinHdMuWAraHXDzMU7NdThLqR2hBDUuKzgd9u69btByqHnJBu1av57VLifi"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgEAAAAKbGF6eUlzR29vZAAAAAAEAAAAAWECAAAAA0JvYgQAAAABYgQAAAABeAAAAAAAAAAAAQIAAAAFQWxpY2UGAQAAAApnZXRQYXltZW50AAAAAQAAAAFpAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAGFBheW1lbnQgbXVzdCBiZSBhdHRhY2hlZAQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACdUaGlzIGZ1bmN0aW9uIGFjY2VwdHMgV0FWRVMgdG9rZW5zIG9ubHkIBQAAAANwbXQAAAAGYW1vdW50AAAAAQAAAAFpAQAAAANwYXkAAAAABAAAAAZhbW91bnQJAQAAAApnZXRQYXltZW50AAAAAQUAAAABaQkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABmFtb3VudAUAAAADbmlsBQAAAAR1bml0AAAAAMG2hrA=",
"height": 2158210,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8CDSkyELmkU1XYj2dohrxU4LpKh4dwJS9688Z9eR5QJf
Next: 5UQ78zBbgLvtCfq8SBxWMJLUsKBn9kasdGgGQtPUhtNF
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func lazyIsGood () = { |
---|
| 5 | + | let a = "Bob" |
---|
| 6 | + | let b = { |
---|
| 7 | + | let x = 1 |
---|
| 8 | + | "Alice" |
---|
| 9 | + | } |
---|
| 10 | + | true |
---|
| 11 | + | } |
---|
| 12 | + | |
---|
| 13 | + | |
---|
4 | 14 | | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
5 | 15 | | then throw("Payment must be attached") |
---|
6 | 16 | | else { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func lazyIsGood () = { |
---|
| 5 | + | let a = "Bob" |
---|
| 6 | + | let b = { |
---|
| 7 | + | let x = 1 |
---|
| 8 | + | "Alice" |
---|
| 9 | + | } |
---|
| 10 | + | true |
---|
| 11 | + | } |
---|
| 12 | + | |
---|
| 13 | + | |
---|
4 | 14 | | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
5 | 15 | | then throw("Payment must be attached") |
---|
6 | 16 | | else { |
---|
7 | 17 | | let pmt = i.payments[0] |
---|
8 | 18 | | if (isDefined(pmt.assetId)) |
---|
9 | 19 | | then throw("This function accepts WAVES tokens only") |
---|
10 | 20 | | else pmt.amount |
---|
11 | 21 | | } |
---|
12 | 22 | | |
---|
13 | 23 | | |
---|
14 | 24 | | @Callable(i) |
---|
15 | 25 | | func pay () = { |
---|
16 | 26 | | let amount = getPayment(i) |
---|
17 | 27 | | $Tuple2([IntegerEntry(toBase58String(i.caller.bytes), amount)], unit) |
---|
18 | 28 | | } |
---|
19 | 29 | | |
---|
20 | 30 | | |
---|