tx · 2MmQnuJ4vcAVfvNn2FmshC9YYDp43QHc21LTJBZCHXhu 3N55QHceL4hgf9MUfJqSbtRppEgGu25MQv7: -0.01400000 Waves 2021.05.25 16:02 [1541219] smart account 3N55QHceL4hgf9MUfJqSbtRppEgGu25MQv7 > SELF 0.00000000 Waves
{ "type": 13, "id": "2MmQnuJ4vcAVfvNn2FmshC9YYDp43QHc21LTJBZCHXhu", "fee": 1400000, "feeAssetId": null, "timestamp": 1621947741656, "version": 2, "chainId": 84, "sender": "3N55QHceL4hgf9MUfJqSbtRppEgGu25MQv7", "senderPublicKey": "4rc8Aajc7YNqQXTNrzVvsTiZKzZwzKWZ4JXr4N34wxTJ", "proofs": [ "4cGLcQFkwoKCN1K2DhaDDMy1j4P95pnuSEmQKvXJypXLLdFvN2CCv4dqhmCyvZfhEaJZX51Tdc6rzHUfptr7cCZ7" ], "script": "base64:AAIEAAAAAAAAABcIAhIDCgEIEgMKAQESAwoBARIECgIIAQAAAAsBAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAABm51bWJlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAUAAAAGbnVtYmVyAAAAAAROT05FAgAAAARub25lAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAZzdHJpbmcEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEFAAAABE5PTkUFAAAABnN0cmluZwEAAAAPZ2V0S2V5VXNlckVtYWlsAAAAAQAAAAR1c2VyCQABLAAAAAIJAAEsAAAAAgIAAAAFdXNlcl8FAAAABHVzZXICAAAABl9lbWFpbAEAAAARZ2V0VmFsdWVVc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l0eQkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMJAAJZAAAAAQUAAAALZEFwcEFzc2V0SWQFAAAACHF1YW50aXR5BgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAEWdldEtleURBcHBCYWxhbmNlAAAAAAUAAAAKbmV3QmFsYW5jZQUAAAADbmlsAAAAAWkBAAAADXRyYW5zZmVyVG9rZW4AAAACAAAACXJlY2lwaWVudAAAAAZhbW91bnQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5ZNEOiA==", "height": 1541219, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = { | |
6 | + | let d = getInteger(this, b) | |
7 | + | if ($isInstanceOf(d, "Int")) | |
8 | + | then { | |
9 | + | let e = d | |
10 | + | e | |
11 | + | } | |
12 | + | else 0 | |
13 | + | } | |
14 | + | c | |
15 | + | } | |
16 | + | ||
17 | + | ||
18 | + | let f = "none" | |
19 | + | ||
20 | + | func g (b) = { | |
21 | + | let h = { | |
22 | + | let d = getString(this, b) | |
23 | + | if ($isInstanceOf(d, "String")) | |
24 | + | then { | |
25 | + | let e = d | |
26 | + | e | |
27 | + | } | |
28 | + | else f | |
29 | + | } | |
30 | + | h | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | func i (j) = (("user_" + j) + "_email") | |
35 | + | ||
36 | + | ||
37 | + | func k (j) = g(i(j)) | |
38 | + | ||
39 | + | ||
40 | + | func l (j) = (("user_" + j) + "_balance") | |
41 | + | ||
42 | + | ||
43 | + | func m (j) = a(l(j)) | |
44 | + | ||
45 | + | ||
46 | + | func n () = "dApp_assetId" | |
47 | + | ||
48 | + | ||
49 | + | func o () = g(n()) | |
50 | + | ||
51 | + | ||
52 | + | func p () = "dApp_balance" | |
53 | + | ||
54 | + | ||
55 | + | func q () = a(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)) | |
63 | + | then throw("user is already registered") | |
64 | + | else [StringEntry(i(t), s), IntegerEntry(l(t), 0)] | |
65 | + | } | |
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | @Callable(r) | |
70 | + | func issueToken (v) = { | |
71 | + | let w = o() | |
72 | + | if ((w != f)) | |
73 | + | then throw("token has already been issued") | |
74 | + | else { | |
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)] | |
78 | + | } | |
79 | + | } | |
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | @Callable(r) | |
84 | + | func reissueToken (v) = { | |
85 | + | let w = o() | |
86 | + | if ((w == f)) | |
87 | + | then throw("token has not been issued") | |
88 | + | else { | |
89 | + | let z = q() | |
90 | + | let A = (z + v) | |
91 | + | [Reissue(fromBase58String(w), v, true), IntegerEntry(p(), A)] | |
92 | + | } | |
93 | + | } | |
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | @Callable(r) | |
98 | + | func transferToken (B,C) = nil | |
99 | + | ||
100 | + | ||
101 | + | @Verifier(D) | |
102 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
103 | + |
github/deemru/w8io/026f985 14.53 ms ◑