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:AAIEAAAAAAAAABcIAhIDCgEIEgMKAQESAwoBARIECgIIAQAAAAsBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAABm51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAAGbnVtYmVyAAAAAAROT05FAgAAAARub25lAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAZzdHJpbmcEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAABnN0cmluZwEAAAAPZ2V0S2V5VXNlckVtYWlsAAAAAQAAAAR1c2VyCQABLAAAAAIJAAEsAAAAAgIAAAAFdXNlcl8FAAAABHVzZXICAAAABl9lbWFpbAEAAAARZ2V0VmFsdWVVc2VyRW1haWwAAAAB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2UAAAAABQAAAAhxdWFudGl0eQUAAAADbmlsAAAAAWkBAAAADXRyYW5zZmVyVG9rZW4AAAACAAAACXJlY2lwaWVudAAAAAZhbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5M+0zDQ==", "height": 1541212, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2haiFjzhL9m2D1FczgfTZssMfnSkqeUsu18v6sURC1jC Next: GkugvFiuFa4mRTGcSj3TdPZ4oVe4MKa2gQfpYJr2uZ8f Diff:
OldNewDifferences
3737 func k (j) = g(i(j))
3838
3939
40-func l () = "dApp_assetId"
40+func l (j) = (("user_" + j) + "balance")
4141
4242
43-func m () = g(l())
43+func m (j) = a(l(j))
4444
4545
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))
5163 then throw("user is already registered")
52- else [StringEntry(i(p), o)]
64+ else [StringEntry(i(t), s), IntegerEntry(l(t), 0)]
5365 }
5466
5567
5668
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))
6173 then throw("token has already been issued")
6274 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)]
6678 }
6779 }
6880
6981
7082
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))
7587 then throw("token has not been issued")
76- else [Reissue(fromBase58String(s), r, true)]
88+ else [Reissue(fromBase58String(w), v, true), IntegerEntry(p(), v)]
7789 }
7890
7991
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)
8299
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getInteger(this, b)
77 if ($isInstanceOf(d, "Int"))
88 then {
99 let e = d
1010 e
1111 }
1212 else 0
1313 }
1414 c
1515 }
1616
1717
1818 let f = "none"
1919
2020 func g (b) = {
2121 let h = {
2222 let d = getString(this, b)
2323 if ($isInstanceOf(d, "String"))
2424 then {
2525 let e = d
2626 e
2727 }
2828 else f
2929 }
3030 h
3131 }
3232
3333
3434 func i (j) = (("user_" + j) + "_email")
3535
3636
3737 func k (j) = g(i(j))
3838
3939
40-func l () = "dApp_assetId"
40+func l (j) = (("user_" + j) + "balance")
4141
4242
43-func m () = g(l())
43+func m (j) = a(l(j))
4444
4545
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))
5163 then throw("user is already registered")
52- else [StringEntry(i(p), o)]
64+ else [StringEntry(i(t), s), IntegerEntry(l(t), 0)]
5365 }
5466
5567
5668
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))
6173 then throw("token has already been issued")
6274 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)]
6678 }
6779 }
6880
6981
7082
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))
7587 then throw("token has not been issued")
76- else [Reissue(fromBase58String(s), r, true)]
88+ else [Reissue(fromBase58String(w), v, true), IntegerEntry(p(), v)]
7789 }
7890
7991
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)
8299

github/deemru/w8io/169f3d6 
32.31 ms