tx · 8eaLZzgLHpmbskNovUWJEuvStBDGaU4dBUVJTaSetnxp
3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv: -0.01400000 Waves
2019.11.08 12:49 [755818] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves
{
"type": 13,
"id": "8eaLZzgLHpmbskNovUWJEuvStBDGaU4dBUVJTaSetnxp",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1573206632586,
"version": 1,
"sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv",
"senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT",
"proofs": [
"4tMHskuh3MCnFbpMqJyfMjeNpWmhdSE3hfECUaqTp5JtbewZXJQkGPcwz1GSD2cmSF7ir3Jvaq8vsM4T548mmfVY"
],
"script": "base64:AAIDAAAAAAAAAAgIARIECgIICAAAAAEBAAAACGFzU3RyaW5nAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAADYnYwBQAAAAckbWF0Y2gwBQAAAANidjAJAAACAAAAAQIAAAATQnl0ZVZlY3RvciBleHBlY3RlZAAAAAEAAAABaQEAAAAHcmVnVXNlcgAAAAIAAAAKdXNlclB1YktleQAAAAdtZXNzYWdlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAC3VzZXJQdWJLZXlfBQAAAAp1c2VyUHViS2V5BQAAAAp1c2VyUHViS2V5CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAB21lc3NhZ2UFAAAACnVzZXJQdWJLZXkFAAAAB21lc3NhZ2UFAAAAA25pbAAAAAEAAAACdHgBAAAACHZlcmlmaWVyAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAANpbnYAAAAIZnVuY3Rpb24CAAAAB3JlZ1VzZXIJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEJAQAAAAhhc1N0cmluZwAAAAEJAAGRAAAAAggFAAAAA2ludgAAAARhcmdzAAAAAAAAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl6b/t2",
"chainId": 84,
"height": 755818,
"spentComplexity": 0
}
View: original | compacted
Prev: 65FSLcRGS9dwGoQN4CS8TDR9hDBwpsaA35AuDfZwrGqB
Next: none
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | | - | let c = b |
---|
6 | | - | if ($isInstanceOf(c, "ByteVector")) |
---|
7 | | - | then { |
---|
8 | | - | let d = c |
---|
9 | | - | d |
---|
10 | | - | } |
---|
11 | | - | else throw("ByteVector expected") |
---|
12 | | - | } |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | func e (b) = { |
---|
16 | 5 | | let c = b |
---|
17 | 6 | | if ($isInstanceOf(c, "String")) |
---|
18 | 7 | | then { |
---|
|
23 | 12 | | } |
---|
24 | 13 | | |
---|
25 | 14 | | |
---|
26 | | - | @Callable(f) |
---|
27 | | - | func regUser (g,h) = WriteSet([DataEntry(("userPubKey_" + g), g), DataEntry("message", h)]) |
---|
| 15 | + | @Callable(e) |
---|
| 16 | + | func regUser (f,g) = WriteSet([DataEntry(("userPubKey_" + f), f), DataEntry(("message" + f), g)]) |
---|
28 | 17 | | |
---|
29 | 18 | | |
---|
30 | | - | @Verifier(i) |
---|
31 | | - | func j () = { |
---|
32 | | - | let c = i |
---|
| 19 | + | @Verifier(h) |
---|
| 20 | + | func i () = { |
---|
| 21 | + | let c = h |
---|
33 | 22 | | if ($isInstanceOf(c, "InvokeScriptTransaction")) |
---|
34 | 23 | | then { |
---|
35 | | - | let k = c |
---|
36 | | - | if ((k.function == "regUser")) |
---|
37 | | - | then sigVerify(i.bodyBytes, i.proofs[0], fromBase58String(e(k.args[0]))) |
---|
38 | | - | else sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 24 | + | let j = c |
---|
| 25 | + | if ((j.function == "regUser")) |
---|
| 26 | + | then sigVerify(h.bodyBytes, h.proofs[0], fromBase58String(a(j.args[0]))) |
---|
| 27 | + | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
39 | 28 | | } |
---|
40 | | - | else sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 29 | + | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
41 | 30 | | } |
---|
42 | 31 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | | - | let c = b |
---|
6 | | - | if ($isInstanceOf(c, "ByteVector")) |
---|
7 | | - | then { |
---|
8 | | - | let d = c |
---|
9 | | - | d |
---|
10 | | - | } |
---|
11 | | - | else throw("ByteVector expected") |
---|
12 | | - | } |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | func e (b) = { |
---|
16 | 5 | | let c = b |
---|
17 | 6 | | if ($isInstanceOf(c, "String")) |
---|
18 | 7 | | then { |
---|
19 | 8 | | let d = c |
---|
20 | 9 | | d |
---|
21 | 10 | | } |
---|
22 | 11 | | else throw("ByteVector expected") |
---|
23 | 12 | | } |
---|
24 | 13 | | |
---|
25 | 14 | | |
---|
26 | | - | @Callable(f) |
---|
27 | | - | func regUser (g,h) = WriteSet([DataEntry(("userPubKey_" + g), g), DataEntry("message", h)]) |
---|
| 15 | + | @Callable(e) |
---|
| 16 | + | func regUser (f,g) = WriteSet([DataEntry(("userPubKey_" + f), f), DataEntry(("message" + f), g)]) |
---|
28 | 17 | | |
---|
29 | 18 | | |
---|
30 | | - | @Verifier(i) |
---|
31 | | - | func j () = { |
---|
32 | | - | let c = i |
---|
| 19 | + | @Verifier(h) |
---|
| 20 | + | func i () = { |
---|
| 21 | + | let c = h |
---|
33 | 22 | | if ($isInstanceOf(c, "InvokeScriptTransaction")) |
---|
34 | 23 | | then { |
---|
35 | | - | let k = c |
---|
36 | | - | if ((k.function == "regUser")) |
---|
37 | | - | then sigVerify(i.bodyBytes, i.proofs[0], fromBase58String(e(k.args[0]))) |
---|
38 | | - | else sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 24 | + | let j = c |
---|
| 25 | + | if ((j.function == "regUser")) |
---|
| 26 | + | then sigVerify(h.bodyBytes, h.proofs[0], fromBase58String(a(j.args[0]))) |
---|
| 27 | + | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
39 | 28 | | } |
---|
40 | | - | else sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 29 | + | else sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
41 | 30 | | } |
---|
42 | 31 | | |
---|