tx · 73Yp1EKZ5Xt5AdMGc3zGjus6NtWDCiYozq7XTwHaLExM
3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy: -0.01400000 Waves
2021.05.25 12:25 [1541000] smart account 3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy > SELF 0.00000000 Waves
{
"type": 13,
"id": "73Yp1EKZ5Xt5AdMGc3zGjus6NtWDCiYozq7XTwHaLExM",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621934717618,
"version": 2,
"chainId": 84,
"sender": "3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy",
"senderPublicKey": "9BAE85H9Tsey8NGdpT5HxdVYHBCmY1prGiG1TSQJxnZe",
"proofs": [
"4TxXohdLjqjLRR5a7J4GGRwWuTnvoSegeFhqmhLqLhg88bN37cR5Y3gKaeuUMyMzm4tG4Vg1kzxcyd1BZ1HQCCFp"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAGbnVtYmVyBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABQAAAAZudW1iZXIAAAAABE5PTkUCAAAABG5vbmUBAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAABnN0cmluZwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQUAAAAGc3RyaW5nAQAAAA9nZXRLZXlVc2VyRW1haWwAAAABAAAABHVzZXIJAAEsAAAAAgkAASwAAAACAgAAAAV1c2VyXwUAAAAEdXNlcgIAAAAGX2VtYWlsAQAAABFnZXRWYWx1ZVVzZXJFbWFpbAAAAAEAAAAEdXNlcgkBAAAADmdldFN0cmluZ0J5S2V5AAAAAQkBAAAAD2dldEtleVVzZXJFbWFpbAAAAAEFAAAABHVzZXIAAAABAAAAAWkBAAAABnNpZ25VcAAAAAEAAAAFZW1haWwEAAAAEWN1cnJlbnRVc2VyQWRkcmVzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAD2dldEtleVVzZXJFbWFpbAAAAAEFAAAAEWN1cnJlbnRVc2VyQWRkcmVzBQAAAAVlbWFpbAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkNaGy+",
"height": 1541000,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: B45hT1QWc2zagDgg5yBELzPQRFUxtFfebi6PSrnYVXSi
Next: CqTNAzrYTqVVZfRaGpb624TCuEjB3ZwsBdMsj6o8i3CN
Diff:
Old | New | | Differences |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | | - | func getKeyUserEmail (user) = (user + "_email") |
---|
| 28 | + | func getKeyUserEmail (user) = (("user_" + user) + "_email") |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | func getValueUserEmail (user) = getStringByKey(getKeyUserEmail(user)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func getNumberByKey (key) = { |
---|
5 | 5 | | let number = match getInteger(this, key) { |
---|
6 | 6 | | case a: Int => |
---|
7 | 7 | | a |
---|
8 | 8 | | case _ => |
---|
9 | 9 | | 0 |
---|
10 | 10 | | } |
---|
11 | 11 | | number |
---|
12 | 12 | | } |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | let NONE = "none" |
---|
16 | 16 | | |
---|
17 | 17 | | func getStringByKey (key) = { |
---|
18 | 18 | | let string = match getString(this, key) { |
---|
19 | 19 | | case a: String => |
---|
20 | 20 | | a |
---|
21 | 21 | | case _ => |
---|
22 | 22 | | NONE |
---|
23 | 23 | | } |
---|
24 | 24 | | string |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | | - | func getKeyUserEmail (user) = (user + "_email") |
---|
| 28 | + | func getKeyUserEmail (user) = (("user_" + user) + "_email") |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | func getValueUserEmail (user) = getStringByKey(getKeyUserEmail(user)) |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | @Callable(i) |
---|
35 | 35 | | func signUp (email) = { |
---|
36 | 36 | | let currentUserAddres = toBase58String(i.caller.bytes) |
---|
37 | 37 | | [StringEntry(getKeyUserEmail(currentUserAddres), email)] |
---|
38 | 38 | | } |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | @Verifier(tx) |
---|
42 | 42 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
43 | 43 | | |
---|