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 |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | func toByteVector (bv) = match bv { |
---|
5 | | - | case bv0: ByteVector => |
---|
6 | | - | bv0 |
---|
7 | | - | case _ => |
---|
8 | | - | throw("ByteVector expected") |
---|
9 | | - | } |
---|
10 | | - | |
---|
11 | | - | |
---|
12 | 4 | | func asString (bv) = match bv { |
---|
13 | 5 | | case bv0: String => |
---|
14 | 6 | | bv0 |
---|
|
18 | 10 | | |
---|
19 | 11 | | |
---|
20 | 12 | | @Callable(i) |
---|
21 | | - | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry("message", message)]) |
---|
| 13 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry(("message" + userPubKey), message)]) |
---|
22 | 14 | | |
---|
23 | 15 | | |
---|
24 | 16 | | @Verifier(tx) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | func toByteVector (bv) = match bv { |
---|
5 | | - | case bv0: ByteVector => |
---|
6 | | - | bv0 |
---|
7 | | - | case _ => |
---|
8 | | - | throw("ByteVector expected") |
---|
9 | | - | } |
---|
10 | | - | |
---|
11 | | - | |
---|
12 | 4 | | func asString (bv) = match bv { |
---|
13 | 5 | | case bv0: String => |
---|
14 | 6 | | bv0 |
---|
15 | 7 | | case _ => |
---|
16 | 8 | | throw("ByteVector expected") |
---|
17 | 9 | | } |
---|
18 | 10 | | |
---|
19 | 11 | | |
---|
20 | 12 | | @Callable(i) |
---|
21 | | - | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry("message", message)]) |
---|
| 13 | + | func regUser (userPubKey,message) = WriteSet([DataEntry(("userPubKey_" + userPubKey), userPubKey), DataEntry(("message" + userPubKey), message)]) |
---|
22 | 14 | | |
---|
23 | 15 | | |
---|
24 | 16 | | @Verifier(tx) |
---|
25 | 17 | | func verifier () = match tx { |
---|
26 | 18 | | case inv: InvokeScriptTransaction => |
---|
27 | 19 | | if ((inv.function == "regUser")) |
---|
28 | 20 | | then sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(asString(inv.args[0]))) |
---|
29 | 21 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
30 | 22 | | case _ => |
---|
31 | 23 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
32 | 24 | | } |
---|
33 | 25 | | |
---|