tx · NR4GQqYLGivbNd9WFgjvZZPgqANfhUYq9QekWpGJogx
3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB: -0.01000000 Waves
2022.05.17 17:23 [2055775] smart account 3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB > SELF 0.00000000 Waves
{
"type": 13,
"id": "NR4GQqYLGivbNd9WFgjvZZPgqANfhUYq9QekWpGJogx",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1652797465173,
"version": 2,
"chainId": 84,
"sender": "3MtEFgs9JgvadLTPHxmNTLoYdWeb2q6S8NB",
"senderPublicKey": "1TPcHyMLh4VbFSScV3oHKxxgdSwY4XC6TaGyrqhFrhd",
"proofs": [
"5jf1gqH5HiopTdPXYkALCbwkhHuoMtZXjFH9dXkswutgbRQFRQxJdFz71g1DMuUUATQRb6RX9xQjrotSFJhvoiPE"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAgEAAAAPY2hlY2tGZWVBc3NldElkAAAAAQAAAAFpBAAAAAckbWF0Y2gwCAUAAAABaQAAAApmZWVBc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAVhc3NldAUAAAAHJG1hdGNoMAkABEwAAAACCQACWAAAAAEFAAAABWFzc2V0BQAAAANuaWwJAARMAAAAAgIAAAAFd2F2ZXMFAAAAA25pbAEAAAAMY2hlY2tQYXltZW50AAAAAQAAAAFpBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkAAGYAAAACCAUAAAABcAAAAAZhbW91bnQAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAABWFzc2V0BQAAAAckbWF0Y2gwCQAETAAAAAIJAAJYAAAAAQUAAAAFYXNzZXQFAAAAA25pbAkABEwAAAACAgAAAAV3YXZlcwUAAAADb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0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTIfrCE=",
"height": 2055775,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7Psy88zd6DWu3stqF38cLMkJvWPZa3tLyw265et97FQU
Next: 3ZoT7WiTHKzGU7ZT6PYfhBy7U8NQW8ut6iS3evdG6QdT
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = base58'emsY' |
---|
5 | | - | |
---|
6 | | - | let b = base58'HnU9jfhpMcQNaG5yQ46eR43RnkWKGxerw2zVrbpnbGof' |
---|
7 | | - | |
---|
8 | | - | let c = base58'4uXfw7162zaopAkTNa7eo6YK2mJsTiHGJL3dCtRRH63z1nrdoHBHyhbvrfZovkxf2jKsi2vPsaP2XykfZmUiwPeg' |
---|
9 | | - | |
---|
10 | | - | func d () = if (if (if (if (if (if (if (if (sigVerify(a, c, b)) |
---|
11 | | - | then sigVerify(a, c, b) |
---|
12 | | - | else false) |
---|
13 | | - | then sigVerify_128Kb(a, c, b) |
---|
14 | | - | else false) |
---|
15 | | - | then sigVerify(a, c, b) |
---|
16 | | - | else false) |
---|
17 | | - | then sigVerify(a, c, b) |
---|
18 | | - | else false) |
---|
19 | | - | then sigVerify_128Kb(a, c, b) |
---|
20 | | - | else false) |
---|
21 | | - | then sigVerify(a, c, b) |
---|
22 | | - | else false) |
---|
23 | | - | then sigVerify(a, c, b) |
---|
24 | | - | else false) |
---|
25 | | - | then sigVerify_128Kb(a, c, b) |
---|
26 | | - | else false |
---|
| 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 | + | } |
---|
27 | 13 | | |
---|
28 | 14 | | |
---|
29 | | - | @Callable(e) |
---|
30 | | - | func test (f) = if (f) |
---|
31 | | - | then if (d()) |
---|
32 | | - | then [ScriptTransfer(e.caller, 1, base58'FE8UCWLXCU2AKwv4LzZEMBLvVJCV9'), StringEntry("result", "should fail on 1.4")] |
---|
33 | | - | else nil |
---|
34 | | - | else [ScriptTransfer(e.caller, 1, base58'FE8UCWLXCU2AKwv4LzZEMBLvVJCV9'), StringEntry("result", "should be rejected on 1.4")] |
---|
| 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 | + | } |
---|
35 | 29 | | |
---|
36 | 30 | | |
---|
| 31 | + | @Callable(b) |
---|
| 32 | + | func call () = { |
---|
| 33 | + | let g = toBase58String(b.caller.bytes) |
---|
| 34 | + | let h = toBase58String(b.originCaller.bytes) |
---|
| 35 | + | let i = b.callerPublicKey |
---|
| 36 | + | let j = b.originCallerPublicKey |
---|
| 37 | + | let k = b.fee |
---|
| 38 | + | let l = a(b)[0] |
---|
| 39 | + | let m = b.transactionId |
---|
| 40 | + | [StringEntry("caller", g), StringEntry("originCaller", h), BinaryEntry("callerPK", i), BinaryEntry("originCallerPK", j), IntegerEntry("fee", k), StringEntry("feeAssetId", l), BinaryEntry("txId", m)] |
---|
| 41 | + | } |
---|
37 | 42 | | |
---|
38 | | - | @Callable(e) |
---|
39 | | - | func call () = nil |
---|
40 | 43 | | |
---|
| 44 | + | @Verifier(n) |
---|
| 45 | + | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) |
---|
41 | 46 | | |
---|