tx · 8CDSkyELmkU1XYj2dohrxU4LpKh4dwJS9688Z9eR5QJf
3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9: -0.00600000 Waves
2022.07.27 15:15 [2158209] smart account 3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "8CDSkyELmkU1XYj2dohrxU4LpKh4dwJS9688Z9eR5QJf",
"fee": 600000,
"feeAssetId": null,
"timestamp": 1658924150206,
"version": 2,
"chainId": 84,
"sender": "3MyY8HWSxxH8SLxnBHgYZQh26FVgybkTTp9",
"senderPublicKey": "69whdb3wz2NxWkDP633fGFWMnqmhZSDPJ5ThCu3x47jU",
"proofs": [
"2NBtKu6MxiG471nCr9BjWmAwA59xN5CZDcNfJoDcig239ciSd5kKeyL56UtSSWXUNJ3xYpXWu5FQ76JUXJZGUkzc"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQEAAAAKZ2V0UGF5bWVudAAAAAEAAAABaQMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABhQYXltZW50IG11c3QgYmUgYXR0YWNoZWQEAAAAA3BtdAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAnVGhpcyBmdW5jdGlvbiBhY2NlcHRzIFdBVkVTIHRva2VucyBvbmx5CAUAAAADcG10AAAABmFtb3VudAAAAAEAAAABaQEAAAADcGF5AAAAAAQAAAAGYW1vdW50CQEAAAAKZ2V0UGF5bWVudAAAAAEFAAAAAWkJAAUUAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBQAAAAZhbW91bnQFAAAAA25pbAUAAAAEdW5pdAAAAAAQNEP8",
"height": 2158209,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BoY2sGAJ1RcauuaDbxTqHGRfbJBWuD66KbW1q1hqu5wN
Next: 3fma4CCNNreBFyq9zfCW6BG366CyqL2ELzK89QGWDeBD
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | | - | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | | - | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func getPayment (i) = if ((size(i.payments) == 0)) |
---|
| 5 | + | then throw("Payment must be attached") |
---|
| 6 | + | else { |
---|
| 7 | + | let pmt = i.payments[0] |
---|
| 8 | + | if (isDefined(pmt.assetId)) |
---|
| 9 | + | then throw("This function accepts WAVES tokens only") |
---|
| 10 | + | else pmt.amount |
---|
| 11 | + | } |
---|
| 12 | + | |
---|
| 13 | + | |
---|
| 14 | + | @Callable(i) |
---|
| 15 | + | func pay () = { |
---|
| 16 | + | let amount = getPayment(i) |
---|
| 17 | + | $Tuple2([IntegerEntry(toBase58String(i.caller.bytes), amount)], unit) |
---|
| 18 | + | } |
---|
| 19 | + | |
---|
| 20 | + | |
---|