tx · G65XF1r2QV6hbrSmMNaGThHX95ar6fBuwSbSEjiM17DW
3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy: -0.01400000 Waves
2021.05.25 15:52 [1541212] smart account 3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy > SELF 0.00000000 Waves
{
"type": 13,
"id": "G65XF1r2QV6hbrSmMNaGThHX95ar6fBuwSbSEjiM17DW",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621947192737,
"version": 2,
"chainId": 84,
"sender": "3MuBakQdFAobmsHH371bKVYNed6yA9Y2Wfy",
"senderPublicKey": "9BAE85H9Tsey8NGdpT5HxdVYHBCmY1prGiG1TSQJxnZe",
"proofs": [
"61VhKaQs5ama9eub6ZguBwUMYBBqdc2wCx83AFmzCMw4R78TegeynifWFvxmxjF3c62phqbeBD9SQuwNnhnr8K8U"
],
"script": "base64:AAIEAAAAAAAAABcIAhIDCgEIEgMKAQESAwoBARIECgIIAQAAAAsBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAABm51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAAGbnVtYmVyAAAAAAROT05FAgAAAARub25lAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAZzdHJpbmcEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAABnN0cmluZwEAAAAPZ2V0S2V5VXNlckVtYWlsAAAAAQAAAAR1c2VyCQABLAAAAAIJAAEsAAAAAgIAAAAFdXNlcl8FAAAABHVzZXICAAAABl9lbWFpbAEAAAARZ2V0VmFsdWVVc2VyR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cEJhbGFuY2UAAAAABQAAAAhxdWFudGl0eQUAAAADbmlsAAAAAWkBAAAADXRyYW5zZmVyVG9rZW4AAAACAAAACXJlY2lwaWVudAAAAAZhbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5M+0zDQ==",
"height": 1541212,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 2haiFjzhL9m2D1FczgfTZssMfnSkqeUsu18v6sURC1jC
Next: GkugvFiuFa4mRTGcSj3TdPZ4oVe4MKa2gQfpYJr2uZ8f
Diff:
Old | New | | Differences |
---|
37 | 37 | | func k (j) = g(i(j)) |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | | - | func l () = "dApp_assetId" |
---|
| 40 | + | func l (j) = (("user_" + j) + "balance") |
---|
41 | 41 | | |
---|
42 | 42 | | |
---|
43 | | - | func m () = g(l()) |
---|
| 43 | + | func m (j) = a(l(j)) |
---|
44 | 44 | | |
---|
45 | 45 | | |
---|
46 | | - | @Callable(n) |
---|
47 | | - | func signUp (o) = { |
---|
48 | | - | let p = toBase58String(n.caller.bytes) |
---|
49 | | - | let q = k(p) |
---|
50 | | - | if ((q != f)) |
---|
| 46 | + | func n () = "dApp_assetId" |
---|
| 47 | + | |
---|
| 48 | + | |
---|
| 49 | + | func o () = g(n()) |
---|
| 50 | + | |
---|
| 51 | + | |
---|
| 52 | + | func p () = "dApp_assetId" |
---|
| 53 | + | |
---|
| 54 | + | |
---|
| 55 | + | func q () = g(p()) |
---|
| 56 | + | |
---|
| 57 | + | |
---|
| 58 | + | @Callable(r) |
---|
| 59 | + | func signUp (s) = { |
---|
| 60 | + | let t = toBase58String(r.caller.bytes) |
---|
| 61 | + | let u = k(t) |
---|
| 62 | + | if ((u != f)) |
---|
51 | 63 | | then throw("user is already registered") |
---|
52 | | - | else [StringEntry(i(p), o)] |
---|
| 64 | + | else [StringEntry(i(t), s), IntegerEntry(l(t), 0)] |
---|
53 | 65 | | } |
---|
54 | 66 | | |
---|
55 | 67 | | |
---|
56 | 68 | | |
---|
57 | | - | @Callable(n) |
---|
58 | | - | func issueToken (r) = { |
---|
59 | | - | let s = m() |
---|
60 | | - | if ((s != f)) |
---|
| 69 | + | @Callable(r) |
---|
| 70 | + | func issueToken (v) = { |
---|
| 71 | + | let w = o() |
---|
| 72 | + | if ((w != f)) |
---|
61 | 73 | | then throw("token has already been issued") |
---|
62 | 74 | | else { |
---|
63 | | - | let t = Issue("NYAN-25", "NYAN-25 token", r, 0, true) |
---|
64 | | - | let u = calculateAssetId(t) |
---|
65 | | - | [t, StringEntry(l(), toBase58String(u))] |
---|
| 75 | + | let x = Issue("NYAN-25", "NYAN-25 token", v, 0, true) |
---|
| 76 | + | let y = calculateAssetId(x) |
---|
| 77 | + | [x, StringEntry(n(), toBase58String(y)), IntegerEntry(p(), v)] |
---|
66 | 78 | | } |
---|
67 | 79 | | } |
---|
68 | 80 | | |
---|
69 | 81 | | |
---|
70 | 82 | | |
---|
71 | | - | @Callable(n) |
---|
72 | | - | func reissueToken (r) = { |
---|
73 | | - | let s = m() |
---|
74 | | - | if ((s == f)) |
---|
| 83 | + | @Callable(r) |
---|
| 84 | + | func reissueToken (v) = { |
---|
| 85 | + | let w = o() |
---|
| 86 | + | if ((w == f)) |
---|
75 | 87 | | then throw("token has not been issued") |
---|
76 | | - | else [Reissue(fromBase58String(s), r, true)] |
---|
| 88 | + | else [Reissue(fromBase58String(w), v, true), IntegerEntry(p(), v)] |
---|
77 | 89 | | } |
---|
78 | 90 | | |
---|
79 | 91 | | |
---|
80 | | - | @Verifier(v) |
---|
81 | | - | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
| 92 | + | |
---|
| 93 | + | @Callable(r) |
---|
| 94 | + | func transferToken (z,A) = nil |
---|
| 95 | + | |
---|
| 96 | + | |
---|
| 97 | + | @Verifier(B) |
---|
| 98 | + | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) |
---|
82 | 99 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = { |
---|
5 | 5 | | let c = { |
---|
6 | 6 | | let d = getInteger(this, b) |
---|
7 | 7 | | if ($isInstanceOf(d, "Int")) |
---|
8 | 8 | | then { |
---|
9 | 9 | | let e = d |
---|
10 | 10 | | e |
---|
11 | 11 | | } |
---|
12 | 12 | | else 0 |
---|
13 | 13 | | } |
---|
14 | 14 | | c |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | let f = "none" |
---|
19 | 19 | | |
---|
20 | 20 | | func g (b) = { |
---|
21 | 21 | | let h = { |
---|
22 | 22 | | let d = getString(this, b) |
---|
23 | 23 | | if ($isInstanceOf(d, "String")) |
---|
24 | 24 | | then { |
---|
25 | 25 | | let e = d |
---|
26 | 26 | | e |
---|
27 | 27 | | } |
---|
28 | 28 | | else f |
---|
29 | 29 | | } |
---|
30 | 30 | | h |
---|
31 | 31 | | } |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | func i (j) = (("user_" + j) + "_email") |
---|
35 | 35 | | |
---|
36 | 36 | | |
---|
37 | 37 | | func k (j) = g(i(j)) |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | | - | func l () = "dApp_assetId" |
---|
| 40 | + | func l (j) = (("user_" + j) + "balance") |
---|
41 | 41 | | |
---|
42 | 42 | | |
---|
43 | | - | func m () = g(l()) |
---|
| 43 | + | func m (j) = a(l(j)) |
---|
44 | 44 | | |
---|
45 | 45 | | |
---|
46 | | - | @Callable(n) |
---|
47 | | - | func signUp (o) = { |
---|
48 | | - | let p = toBase58String(n.caller.bytes) |
---|
49 | | - | let q = k(p) |
---|
50 | | - | if ((q != f)) |
---|
| 46 | + | func n () = "dApp_assetId" |
---|
| 47 | + | |
---|
| 48 | + | |
---|
| 49 | + | func o () = g(n()) |
---|
| 50 | + | |
---|
| 51 | + | |
---|
| 52 | + | func p () = "dApp_assetId" |
---|
| 53 | + | |
---|
| 54 | + | |
---|
| 55 | + | func q () = g(p()) |
---|
| 56 | + | |
---|
| 57 | + | |
---|
| 58 | + | @Callable(r) |
---|
| 59 | + | func signUp (s) = { |
---|
| 60 | + | let t = toBase58String(r.caller.bytes) |
---|
| 61 | + | let u = k(t) |
---|
| 62 | + | if ((u != f)) |
---|
51 | 63 | | then throw("user is already registered") |
---|
52 | | - | else [StringEntry(i(p), o)] |
---|
| 64 | + | else [StringEntry(i(t), s), IntegerEntry(l(t), 0)] |
---|
53 | 65 | | } |
---|
54 | 66 | | |
---|
55 | 67 | | |
---|
56 | 68 | | |
---|
57 | | - | @Callable(n) |
---|
58 | | - | func issueToken (r) = { |
---|
59 | | - | let s = m() |
---|
60 | | - | if ((s != f)) |
---|
| 69 | + | @Callable(r) |
---|
| 70 | + | func issueToken (v) = { |
---|
| 71 | + | let w = o() |
---|
| 72 | + | if ((w != f)) |
---|
61 | 73 | | then throw("token has already been issued") |
---|
62 | 74 | | else { |
---|
63 | | - | let t = Issue("NYAN-25", "NYAN-25 token", r, 0, true) |
---|
64 | | - | let u = calculateAssetId(t) |
---|
65 | | - | [t, StringEntry(l(), toBase58String(u))] |
---|
| 75 | + | let x = Issue("NYAN-25", "NYAN-25 token", v, 0, true) |
---|
| 76 | + | let y = calculateAssetId(x) |
---|
| 77 | + | [x, StringEntry(n(), toBase58String(y)), IntegerEntry(p(), v)] |
---|
66 | 78 | | } |
---|
67 | 79 | | } |
---|
68 | 80 | | |
---|
69 | 81 | | |
---|
70 | 82 | | |
---|
71 | | - | @Callable(n) |
---|
72 | | - | func reissueToken (r) = { |
---|
73 | | - | let s = m() |
---|
74 | | - | if ((s == f)) |
---|
| 83 | + | @Callable(r) |
---|
| 84 | + | func reissueToken (v) = { |
---|
| 85 | + | let w = o() |
---|
| 86 | + | if ((w == f)) |
---|
75 | 87 | | then throw("token has not been issued") |
---|
76 | | - | else [Reissue(fromBase58String(s), r, true)] |
---|
| 88 | + | else [Reissue(fromBase58String(w), v, true), IntegerEntry(p(), v)] |
---|
77 | 89 | | } |
---|
78 | 90 | | |
---|
79 | 91 | | |
---|
80 | | - | @Verifier(v) |
---|
81 | | - | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
| 92 | + | |
---|
| 93 | + | @Callable(r) |
---|
| 94 | + | func transferToken (z,A) = nil |
---|
| 95 | + | |
---|
| 96 | + | |
---|
| 97 | + | @Verifier(B) |
---|
| 98 | + | func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey) |
---|
82 | 99 | | |
---|