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:AAIEAAAAAAAAADYIAhIDCgEIEgMKAQESAwoBARIECgIIARIHCgUICAEBCBIECgIIARIECgIIARIDCgEIEgMKAQgAAAATAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAZudW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAABm51bWJlcgAAAAAETk9ORQIAAAAEbm9uZQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAGc3RyaW5nBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAAZzdHJpbmcBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAdib29sZWFuBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRo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EFtb3VudENoYW5nZQUAAAAOcGF5bWVudEFzc2V0SWQJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAA5wYXltZW50QXNzZXRJZAUAAAALYXNzZXRBbW91bnQFAAAAA25pbAAAAAFpAQAAABRzZXRSZXNwb25zaWJsZVN0YXR1cwAAAAEAAAALdXNlckFkZHJlc3MEAAAADWlzUmVzcG9uc2libGUJAQAAABNnZXRSZXNwb25zaWJsZVZhbHVlAAAAAQUAAAALdXNlckFkZHJlc3MDBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAJFVzZXIgYWxyZWFkeSBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MGBQAAAANuaWwAAAABaQEAAAAXcmV2b2tlUmVzcG9uc2libGVTdGF0dXMAAAABAAAAC3VzZXJBZGRyZXNzBAAAAA1pc1Jlc3BvbnNpYmxlCQEAAAATZ2V0UmVzcG9uc2libGVWYWx1ZQAAAAEFAAAAC3VzZXJBZGRyZXNzAwkBAAAAASEAAAABBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAKlVzZXIgYWxyZWFkeSBkb24ndCBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MHBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTMzju8=", "height": 1766524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: eLACRAMPZ62dRnzrSdzF42Pp1AHbezpFzESnyVwiRdF Next: UaYfXpGPW1ZFbZ9i2gHtgUZz619DnCU5bb6V74bCjGh 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 (b) = {
3535 let j = {
3636 let d = getBoolean(this, b)
3737 if ($isInstanceOf(d, "Boolean"))
3838 then {
3939 let e = d
4040 e
4141 }
4242 else false
4343 }
4444 j
4545 }
4646
4747
4848 func k (l) = toBase58String(l.bytes)
4949
5050
5151 func m (h) = Address(fromBase58String(h))
5252
5353
5454 func n (o) = toBase58String(o)
5555
5656
5757 func p (h) = fromBase58String(h)
5858
5959
6060 func q (r) = (this == r)
6161
6262
6363 func s (t) = (("user_<" + t) + ">_email")
6464
6565
6666 func u (t) = g(s(t))
6767
6868
6969 func v (w) = (("dApp_<" + k(w)) + ">_tokenId")
7070
7171
7272 func x (w) = g(v(w))
7373
7474
7575 func y (z) = (("asset_<" + z) + ">_price")
7676
7777
7878 func A (z) = a(y(z))
7979
8080
8181 func B (z) = (("asset_<" + z) + ">_data")
8282
8383
8484 func C (z) = g(y(z))
8585
8686
8787 func D (t) = (("dApp_<" + t) + ">_responsible")
8888
8989
9090 func E (t) = i(D(t))
9191
9292
9393 @Callable(F)
9494 func signUp (G) = {
9595 let t = k(F.caller)
9696 let H = u(t)
9797 if ((H != f))
9898 then throw((("User " + H) + " is already registered"))
9999 else [StringEntry(s(t), G)]
100100 }
101101
102102
103103
104104 @Callable(F)
105105 func issueNyanToken (I) = {
106106 let J = x(this)
107107 if (!(q(F.caller)))
108108 then throw("Function invoke not allowed, requested from non-admin address")
109109 else if ((J != f))
110110 then throw("NYAN Token is already issued")
111111 else {
112112 let K = Issue("NYAN Token", "NYAN Token is a cryptocurrency token that operates on the Waves platform", I, 0, true)
113113 let L = calculateAssetId(K)
114114 [K, StringEntry(v(this), n(L))]
115115 }
116116 }
117117
118118
119119
120120 @Callable(F)
121121 func reissueNyanToken (I) = {
122122 let J = x(this)
123123 if (!(q(F.caller)))
124124 then throw("Function invoke not allowed, requested from non-admin address")
125125 else if ((J == f))
126126 then throw("NYAN Token was not issued")
127127 else [Reissue(p(J), I, true)]
128128 }
129129
130130
131131
132132 @Callable(F)
133133 func transferNyanToken (M,N) = {
134134 let H = u(M)
135135 let L = p(x(this))
136136 let O = assetBalance(this, L)
137137 let P = (O - N)
138138 if (!(q(F.caller)))
139139 then throw("Function invoke not allowed, requested from non-admin address")
140140 else if ((H == f))
141141 then throw("You cannot transfer NYAN Token to an unregistered user")
142142 else if ((0 > N))
143143 then throw("You cannot transfer a negative amount")
144144 else if ((0 > P))
145145 then throw("Not enough NYAN Token to transfer")
146146 else [ScriptTransfer(m(M), N, L)]
147147 }
148148
149149
150150
151151 @Callable(F)
152152 func issueAssetToken (Q,R,I,S,T) = {
153153 let U = Issue(Q, R, I, 0, true)
154154 let V = calculateAssetId(U)
155155 let W = n(V)
156156 if (!(q(F.caller)))
157157 then throw("Function invoke not allowed, requested from non-admin address")
158158 else if ((I == 0))
159159 then [U, IntegerEntry(y(W), S), StringEntry(B(W), T)]
160160 else {
161161 let L = p(x(this))
162162 let O = assetBalance(this, L)
163163 let N = (I * S)
164164 let P = (O - N)
165165 if ((0 > P))
166166 then throw("Not enough NYAN Token to issue an asset")
167167 else [U, Burn(L, N), IntegerEntry(y(W), S), StringEntry(B(W), T)]
168168 }
169169 }
170170
171171
172172
173173 @Callable(F)
174174 func reissueAssetToken (z,I) = {
175175 let L = p(x(this))
176176 let O = assetBalance(this, L)
177177 let S = A(z)
178178 let N = (I * S)
179179 let P = (O - N)
180180 if (!(q(F.caller)))
181181 then throw("Function invoke not allowed, requested from non-admin address")
182182 else if ((0 > P))
183183 then throw("Not enough NYAN Token to reissue an asset")
184184 else [Reissue(p(z), I, true), Burn(L, N)]
185185 }
186186
187187
188188
189189 @Callable(F)
190190 func exchangeAssetToken (z,N) = {
191191 let X = F.payments
192192 if ((size(X) == 0))
193193 then throw("You need to attach the payment")
194194 else {
195195 let Y = X[0].amount
196196 let Z = value(X[0].assetId)
197197 let aa = A(z)
198198 let ab = (N * aa)
199199 let t = F.caller
200200 let V = p(z)
201201 if ((ab > Y))
202202 then throw("Not enough NYAN Token to exchange an asset")
203203 else if ((Y == ab))
204204 then [ScriptTransfer(t, N, V), Burn(Z, Y)]
205205 else {
206206 let ac = (Y - ab)
207207 [ScriptTransfer(t, N, V), ScriptTransfer(t, ac, Z), Burn(Z, ab)]
208208 }
209209 }
210210 }
211211
212212
213213
214214 @Callable(F)
215215 func setResponsibleStatus (t) = {
216216 let ad = E(t)
217217 if (ad)
218218 then throw("User already have responsible status")
219219 else [BooleanEntry(D(t), true)]
220220 }
221221
222222
223223
224224 @Callable(F)
225225 func revokeResponsibleStatus (t) = {
226226 let ad = E(t)
227227 if (!(ad))
228228 then throw("User already don't have responsible status")
229229 else [BooleanEntry(D(t), false)]
230230 }
231231
232232
233233 @Verifier(ae)
234234 func af () = sigVerify(ae.bodyBytes, ae.proofs[0], ae.senderPublicKey)
235235

github/deemru/w8io/026f985 
30.64 ms