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 a (b) = { | |
5 | - | let c = b.feeAssetId | |
6 | - | if ($isInstanceOf(c, "ByteVector")) | |
7 | - | then { | |
8 | - | let d = c | |
9 | - | [toBase58String(d)] | |
10 | - | } | |
11 | - | else ["waves"] | |
12 | - | } | |
13 | 4 | ||
14 | 5 | ||
15 | - | func e (b) = { | |
16 | - | let f = b.payments[0] | |
17 | - | if ((f.amount > 0)) | |
18 | - | then { | |
19 | - | let c = f.assetId | |
20 | - | if ($isInstanceOf(c, "ByteVector")) | |
21 | - | then { | |
22 | - | let d = c | |
23 | - | [toBase58String(d)] | |
24 | - | } | |
25 | - | else ["waves"] | |
26 | - | } | |
27 | - | else [0] | |
28 | - | } | |
29 | - | ||
30 | - | ||
31 | - | @Callable(b) | |
32 | - | func call () = { | |
33 | - | let g = toBase58String(b.caller.bytes) | |
34 | - | let h = toBase58String(b.originCaller.bytes) | |
35 | - | let i = toBase58String(b.callerPublicKey) | |
36 | - | let j = toBase58String(b.originCallerPublicKey) | |
37 | - | let k = addressFromPublicKey(b.callerPublicKey) | |
38 | - | let l = b.fee | |
39 | - | let m = a(b)[0] | |
40 | - | let n = toBase58String(b.transactionId) | |
41 | - | [StringEntry("caller", g), StringEntry("originCaller", h), StringEntry("callerPK", i), StringEntry("originCallerPK", j), BooleanEntry("samePK", (i == j)), BooleanEntry("addressFromPKIsOk", (k == b.caller)), IntegerEntry("fee", l), StringEntry("feeAssetId", m), StringEntry("txId", n)] | |
42 | - | } | |
6 | + | @Callable(a) | |
7 | + | func fail () = [ScriptTransfer(a.caller, 99900000000, unit)] | |
43 | 8 | ||
44 | 9 |
github/deemru/w8io/169f3d6 57.16 ms ◑