tx · 9fHjzUmquse45XJer8WxjM4s4xMcwH94MiyL11Pmwpqp
3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9: -0.00100000 Waves
2022.07.27 15:22 [2158214] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9fHjzUmquse45XJer8WxjM4s4xMcwH94MiyL11Pmwpqp",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1658924563948,
"version": 2,
"chainId": 84,
"sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9",
"senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU",
"proofs": [
"4uRUwhrUaPokq112P6FVUjnrNyF5eHxqUt9u9zgubb9ALE7azutpBEatoJrVywSiP6jF3nXDMicpAq891Ld7R7B5"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAAEAAAAAAJhZAIAAAADQm9iAAAAAAJiZAAAAAAAAAAAAQEAAAAKbGF6eUlzR29vZAAAAAAEAAAAAWECAAAAA0JvYgQAAAABYgQAAAABeAAAAAAAAAAAAQIAAAAFQWxpY2UGAQAAAApnZXRQYXltZW50AAAAAQAAAAFpAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAGFBheW1lbnQgbXVzdCBiZSBhdHRhY2hlZAQAAAADcG10CQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACdUaGlzIGZ1bmN0aW9uIGFjY2VwdHMgV0FWRVMgdG9rZW5zIG9ubHkIBQAAAANwbXQAAAAGYW1vdW50AAAAAgAAAAFpAQAAAANwYXkAAAAABAAAAAZhbW91bnQJAQAAAApnZXRQYXltZW50AAAAAQUAAAABaQkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABmFtb3VudAUAAAADbmlsBQAAAAR1bml0AAAAAWkBAAAABGNhbGMAAAAACQEAAAAFdGhyb3cAAAAAAAAAAHcXdAA=",
"height": 2158214,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5UQ78zBbgLvtCfq8SBxWMJLUsKBn9kasdGgGQtPUhtNF
Next: 3tyh8W9sbFLwHCoJCLPMw6XzDhDYnfhrMwGfmatUXazU
Diff:
Old | New | | Differences |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
| 35 | + | |
---|
| 36 | + | @Callable(i) |
---|
| 37 | + | func calc () = throw() |
---|
| 38 | + | |
---|
| 39 | + | |
---|
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 | + | |
---|
| 36 | + | @Callable(i) |
---|
| 37 | + | func calc () = throw() |
---|
| 38 | + | |
---|
| 39 | + | |
---|