tx · 4pM6NhTb2xGyG1CPk2mkzax4ULioEDN6aWm9CygVDPsj 3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB: -0.00100000 Waves 2022.09.23 14:04 [2241706] smart account 3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB > SELF 0.00000000 Waves
{ "type": 13, "id": "4pM6NhTb2xGyG1CPk2mkzax4ULioEDN6aWm9CygVDPsj", "fee": 100000, "feeAssetId": null, "timestamp": 1663931152567, "version": 2, "chainId": 84, "sender": "3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB", "senderPublicKey": "1TPcHyMLh4VbFSScV3oHKxxgdSwY4XC6TaGyrqhFrhd", "proofs": [ "5qtwERox4GuNf3emPTpPff7bTFUSwrvoM8YyKVeh9HXXeH5uQrW5JoDSxSPeS4aov21J4QnYu5RMNP1cfRzAz9nV" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEZmFpbAAAAAAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAABdCgQcABQAAAAR1bml0BQAAAANuaWwAAAAAnnQB3g==", "height": 2241706, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ZoT7WiTHKzGU7ZT6PYfhBy7U8NQW8ut6iS3evdG6QdT Next: HzUpRNwXnL77XcpSzhjqe2XnGmH8RQegEPYv8XWjZypb Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func checkFeeAssetId (i) = match i.feeAssetId { | |
5 | - | case asset: ByteVector => | |
6 | - | [toBase58String(asset)] | |
7 | - | case _ => | |
8 | - | ["waves"] | |
9 | - | } | |
10 | - | ||
11 | - | ||
12 | - | func checkPayment (i) = { | |
13 | - | let p = i.payments[0] | |
14 | - | if ((p.amount > 0)) | |
15 | - | then match p.assetId { | |
16 | - | case asset: ByteVector => | |
17 | - | [toBase58String(asset)] | |
18 | - | case _ => | |
19 | - | ["waves"] | |
20 | - | } | |
21 | - | else [0] | |
22 | - | } | |
23 | 4 | ||
24 | 5 | ||
25 | 6 | @Callable(i) | |
26 | - | func call () = { | |
27 | - | let caller = toBase58String(i.caller.bytes) | |
28 | - | let originCaller = toBase58String(i.originCaller.bytes) | |
29 | - | let callerPK = toBase58String(i.callerPublicKey) | |
30 | - | let originCallerPK = toBase58String(i.originCallerPublicKey) | |
31 | - | let addressFromPK = addressFromPublicKey(i.callerPublicKey) | |
32 | - | let fee = i.fee | |
33 | - | let feeAssetId = checkFeeAssetId(i)[0] | |
34 | - | let txId = toBase58String(i.transactionId) | |
35 | - | [StringEntry("caller", caller), StringEntry("originCaller", originCaller), StringEntry("callerPK", callerPK), StringEntry("originCallerPK", originCallerPK), BooleanEntry("samePK", (callerPK == originCallerPK)), BooleanEntry("addressFromPKIsOk", (addressFromPK == i.caller)), IntegerEntry("fee", fee), StringEntry("feeAssetId", feeAssetId), StringEntry("txId", txId)] | |
36 | - | } | |
7 | + | func fail () = [ScriptTransfer(i.caller, 99900000000, unit)] | |
37 | 8 | ||
38 | 9 |
github/deemru/w8io/169f3d6 32.91 ms ◑