tx · 7PzUvaX22dr81KFCJqkjinBLEtvX47LnpP5sqJdV7nV8 3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n: -0.01400000 Waves 2021.10.28 21:38 [1766524] smart account 3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n > SELF 0.00000000 Waves
{ "type": 13, "id": "7PzUvaX22dr81KFCJqkjinBLEtvX47LnpP5sqJdV7nV8", "fee": 1400000, "feeAssetId": null, "timestamp": 1635446348075, "version": 2, "chainId": 84, "sender": "3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n", "senderPublicKey": "5jZ49iFWx2PFcwiMSEcqEgkXUebfs8Cn4P2H8nzenoPt", "proofs": [ "4pjt2fYxmHrJKSS6cb5fMfExRHZ82qyDYBVisjAKhafovxPz1Uk546FCr4cGUzqk9t5mr3GixKa6Cz77jHJ8hGMU" ], "script": "base64:AAIEAAAAAAAAADYIAhIDCgEIEgMKAQESAwoBARIECgIIARIHCgUICAEBCBIECgIIARIECgIIARIDCgEIEgMKAQgAAAATAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAZudW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAABm51bWJlcgAAAAAETk9ORQIAAAAEbm9uZQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAGc3RyaW5nBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAAZzdHJpbmcBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAdib29sZWFuBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoa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Ftb3VudENoYW5nZQUAAAAOcGF5bWVudEFzc2V0SWQJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAA5wYXltZW50QXNzZXRJZAUAAAALYXNzZXRBbW91bnQFAAAAA25pbAAAAAFpAQAAABRzZXRSZXNwb25zaWJsZVN0YXR1cwAAAAEAAAALdXNlckFkZHJlc3MEAAAADWlzUmVzcG9uc2libGUJAQAAABNnZXRSZXNwb25zaWJsZVZhbHVlAAAAAQUAAAALdXNlckFkZHJlc3MDBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAJFVzZXIgYWxyZWFkeSBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MGBQAAAANuaWwAAAABaQEAAAAXcmV2b2tlUmVzcG9uc2libGVTdGF0dXMAAAABAAAAC3VzZXJBZGRyZXNzBAAAAA1pc1Jlc3BvbnNpYmxlCQEAAAATZ2V0UmVzcG9uc2libGVWYWx1ZQAAAAEFAAAAC3VzZXJBZGRyZXNzAwkBAAAAASEAAAABBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAKlVzZXIgYWxyZWFkeSBkb24ndCBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MHBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTMzju8=", "height": 1766524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: eLACRAMPZ62dRnzrSdzF42Pp1AHbezpFzESnyVwiRdF Next: UaYfXpGPW1ZFbZ9i2gHtgUZz619DnCU5bb6V74bCjGh 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 (b) = { | |
35 | 35 | let j = { | |
36 | 36 | let d = getBoolean(this, b) | |
37 | 37 | if ($isInstanceOf(d, "Boolean")) | |
38 | 38 | then { | |
39 | 39 | let e = d | |
40 | 40 | e | |
41 | 41 | } | |
42 | 42 | else false | |
43 | 43 | } | |
44 | 44 | j | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func k (l) = toBase58String(l.bytes) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func m (h) = Address(fromBase58String(h)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func n (o) = toBase58String(o) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func p (h) = fromBase58String(h) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func q (r) = (this == r) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func s (t) = (("user_<" + t) + ">_email") | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func u (t) = g(s(t)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func v (w) = (("dApp_<" + k(w)) + ">_tokenId") | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func x (w) = g(v(w)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func y (z) = (("asset_<" + z) + ">_price") | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func A (z) = a(y(z)) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func B (z) = (("asset_<" + z) + ">_data") | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func C (z) = g(y(z)) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func D (t) = (("dApp_<" + t) + ">_responsible") | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func E (t) = i(D(t)) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(F) | |
94 | 94 | func signUp (G) = { | |
95 | 95 | let t = k(F.caller) | |
96 | 96 | let H = u(t) | |
97 | 97 | if ((H != f)) | |
98 | 98 | then throw((("User " + H) + " is already registered")) | |
99 | 99 | else [StringEntry(s(t), G)] | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(F) | |
105 | 105 | func issueNyanToken (I) = { | |
106 | 106 | let J = x(this) | |
107 | 107 | if (!(q(F.caller))) | |
108 | 108 | then throw("Function invoke not allowed, requested from non-admin address") | |
109 | 109 | else if ((J != f)) | |
110 | 110 | then throw("NYAN Token is already issued") | |
111 | 111 | else { | |
112 | 112 | let K = Issue("NYAN Token", "NYAN Token is a cryptocurrency token that operates on the Waves platform", I, 0, true) | |
113 | 113 | let L = calculateAssetId(K) | |
114 | 114 | [K, StringEntry(v(this), n(L))] | |
115 | 115 | } | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | ||
120 | 120 | @Callable(F) | |
121 | 121 | func reissueNyanToken (I) = { | |
122 | 122 | let J = x(this) | |
123 | 123 | if (!(q(F.caller))) | |
124 | 124 | then throw("Function invoke not allowed, requested from non-admin address") | |
125 | 125 | else if ((J == f)) | |
126 | 126 | then throw("NYAN Token was not issued") | |
127 | 127 | else [Reissue(p(J), I, true)] | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(F) | |
133 | 133 | func transferNyanToken (M,N) = { | |
134 | 134 | let H = u(M) | |
135 | 135 | let L = p(x(this)) | |
136 | 136 | let O = assetBalance(this, L) | |
137 | 137 | let P = (O - N) | |
138 | 138 | if (!(q(F.caller))) | |
139 | 139 | then throw("Function invoke not allowed, requested from non-admin address") | |
140 | 140 | else if ((H == f)) | |
141 | 141 | then throw("You cannot transfer NYAN Token to an unregistered user") | |
142 | 142 | else if ((0 > N)) | |
143 | 143 | then throw("You cannot transfer a negative amount") | |
144 | 144 | else if ((0 > P)) | |
145 | 145 | then throw("Not enough NYAN Token to transfer") | |
146 | 146 | else [ScriptTransfer(m(M), N, L)] | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(F) | |
152 | 152 | func issueAssetToken (Q,R,I,S,T) = { | |
153 | 153 | let U = Issue(Q, R, I, 0, true) | |
154 | 154 | let V = calculateAssetId(U) | |
155 | 155 | let W = n(V) | |
156 | 156 | if (!(q(F.caller))) | |
157 | 157 | then throw("Function invoke not allowed, requested from non-admin address") | |
158 | 158 | else if ((I == 0)) | |
159 | 159 | then [U, IntegerEntry(y(W), S), StringEntry(B(W), T)] | |
160 | 160 | else { | |
161 | 161 | let L = p(x(this)) | |
162 | 162 | let O = assetBalance(this, L) | |
163 | 163 | let N = (I * S) | |
164 | 164 | let P = (O - N) | |
165 | 165 | if ((0 > P)) | |
166 | 166 | then throw("Not enough NYAN Token to issue an asset") | |
167 | 167 | else [U, Burn(L, N), IntegerEntry(y(W), S), StringEntry(B(W), T)] | |
168 | 168 | } | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Callable(F) | |
174 | 174 | func reissueAssetToken (z,I) = { | |
175 | 175 | let L = p(x(this)) | |
176 | 176 | let O = assetBalance(this, L) | |
177 | 177 | let S = A(z) | |
178 | 178 | let N = (I * S) | |
179 | 179 | let P = (O - N) | |
180 | 180 | if (!(q(F.caller))) | |
181 | 181 | then throw("Function invoke not allowed, requested from non-admin address") | |
182 | 182 | else if ((0 > P)) | |
183 | 183 | then throw("Not enough NYAN Token to reissue an asset") | |
184 | 184 | else [Reissue(p(z), I, true), Burn(L, N)] | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(F) | |
190 | 190 | func exchangeAssetToken (z,N) = { | |
191 | 191 | let X = F.payments | |
192 | 192 | if ((size(X) == 0)) | |
193 | 193 | then throw("You need to attach the payment") | |
194 | 194 | else { | |
195 | 195 | let Y = X[0].amount | |
196 | 196 | let Z = value(X[0].assetId) | |
197 | 197 | let aa = A(z) | |
198 | 198 | let ab = (N * aa) | |
199 | 199 | let t = F.caller | |
200 | 200 | let V = p(z) | |
201 | 201 | if ((ab > Y)) | |
202 | 202 | then throw("Not enough NYAN Token to exchange an asset") | |
203 | 203 | else if ((Y == ab)) | |
204 | 204 | then [ScriptTransfer(t, N, V), Burn(Z, Y)] | |
205 | 205 | else { | |
206 | 206 | let ac = (Y - ab) | |
207 | 207 | [ScriptTransfer(t, N, V), ScriptTransfer(t, ac, Z), Burn(Z, ab)] | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(F) | |
215 | 215 | func setResponsibleStatus (t) = { | |
216 | 216 | let ad = E(t) | |
217 | 217 | if (ad) | |
218 | 218 | then throw("User already have responsible status") | |
219 | 219 | else [BooleanEntry(D(t), true)] | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(F) | |
225 | 225 | func revokeResponsibleStatus (t) = { | |
226 | 226 | let ad = E(t) | |
227 | 227 | if (!(ad)) | |
228 | 228 | then throw("User already don't have responsible status") | |
229 | 229 | else [BooleanEntry(D(t), false)] | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Verifier(ae) | |
234 | 234 | func af () = sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey) | |
235 | 235 |
github/deemru/w8io/026f985 30.64 ms ◑