tx · D221jKhmsK5PXwMWdi9S9DzLVxNjwJB7AJo7VWfReqXP

3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n:  -0.01400000 Waves

2021.10.28 21:35 [1766521] smart account 3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n > SELF 0.00000000 Waves

{ "type": 13, "id": "D221jKhmsK5PXwMWdi9S9DzLVxNjwJB7AJo7VWfReqXP", "fee": 1400000, "feeAssetId": null, "timestamp": 1635446171779, "version": 2, "chainId": 84, "sender": "3ND7koq1CpoHCrLv833dEWPcC8ygda22q3n", "senderPublicKey": "5jZ49iFWx2PFcwiMSEcqEgkXUebfs8Cn4P2H8nzenoPt", "proofs": [ "2oT298GnCRoLta9HYVH7hwrhQRQmFa5G6R8GGJKsJEgfChXcJsF9doW3HdgWzBSpuunN194yCHrmnz8R5uTAfYgQ" ], "script": "base64:AAIEAAAAAAAAADYIAhIDCgEIEgMKAQESAwoBARIECgIIARIHCgUICAEBCBIECgIIARIECgIIARIDCgEIEgMKAQgAAAATAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAZudW1iZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAABm51bWJlcgAAAAAETk9ORQIAAAAEbm9uZQEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAGc3RyaW5nBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAAZzdHJpbmcBAAAAD2dldEJvb2xlYW5CeUtleQAAAAEAAAADa2V5BAAAAAdib29sZWFuBAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoa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Ftb3VudENoYW5nZQUAAAAOcGF5bWVudEFzc2V0SWQJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAA5wYXltZW50QXNzZXRJZAUAAAALYXNzZXRBbW91bnQFAAAAA25pbAAAAAFpAQAAABRzZXRSZXNwb25zaWJsZVN0YXR1cwAAAAEAAAALdXNlckFkZHJlc3MEAAAADWlzUmVzcG9uc2libGUJAQAAABNnZXRSZXNwb25zaWJsZVZhbHVlAAAAAQUAAAALdXNlckFkZHJlc3MDBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAJFVzZXIgYWxyZWFkeSBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MGBQAAAANuaWwAAAABaQEAAAAXcmV2b2tlUmVzcG9uc2libGVTdGF0dXMAAAABAAAAC3VzZXJBZGRyZXNzBAAAAA1pc1Jlc3BvbnNpYmxlCQEAAAATZ2V0UmVzcG9uc2libGVWYWx1ZQAAAAEFAAAAC3VzZXJBZGRyZXNzAwkBAAAAASEAAAABBQAAAA1pc1Jlc3BvbnNpYmxlCQAAAgAAAAECAAAAKlVzZXIgYWxyZWFkeSBkb24ndCBoYXZlIHJlc3BvbnNpYmxlIHN0YXR1cwkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAAEWdldFJlc3BvbnNpYmxlS2V5AAAAAQUAAAALdXNlckFkZHJlc3MHBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleTMzju8=", "height": 1766521, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: tGz4apaVCZVrodofdZvLDopLdtXzuTSKbRDQa4jFubA Next: EKDsBqJmGQrAMg47NDXwuz8b3gApJgRGGkmpJSBkCkBS Diff:
OldNewDifferences
2525 }
2626
2727
28+func getBooleanByKey (key) = {
29+ let boolean = match getBoolean(this, key) {
30+ case a: Boolean =>
31+ a
32+ case _ =>
33+ false
34+ }
35+ boolean
36+ }
37+
38+
2839 func addressToString (address) = toBase58String(address.bytes)
2940
3041
4051 func isAdmin (caller) = (this == caller)
4152
4253
43-func getUserEmailKey (userEmail) = (("user_<" + userEmail) + ">_email")
54+func getUserEmailKey (userAddress) = (("user_<" + userAddress) + ">_email")
4455
4556
46-func getUserEmailValue (userEmail) = getStringByKey(getUserEmailKey(userEmail))
57+func getUserEmailValue (userAddress) = getStringByKey(getUserEmailKey(userAddress))
4758
4859
4960 func getNyanTokenKey (dAppAddress) = (("dApp_<" + addressToString(dAppAddress)) + ">_tokenId")
6273
6374
6475 func getAssetDataValue (assetId) = getStringByKey(getAssetPriceKey(assetId))
76+
77+
78+func getResponsibleKey (userAddress) = (("dApp_<" + userAddress) + ">_responsible")
79+
80+
81+func getResponsibleValue (userAddress) = getBooleanByKey(getResponsibleKey(userAddress))
6582
6683
6784 @Callable(i)
184201 }
185202
186203
204+
205+@Callable(i)
206+func setResponsibleStatus (userAddress) = {
207+ let isResponsible = getResponsibleValue(userAddress)
208+ if (isResponsible)
209+ then throw("User already have responsible status")
210+ else [BooleanEntry(getResponsibleKey(userAddress), true)]
211+ }
212+
213+
214+
215+@Callable(i)
216+func revokeResponsibleStatus (userAddress) = {
217+ let isResponsible = getResponsibleValue(userAddress)
218+ if (!(isResponsible))
219+ then throw("User already don't have responsible status")
220+ else [BooleanEntry(getResponsibleKey(userAddress), false)]
221+ }
222+
223+
187224 @Verifier(tx)
188225 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
189226
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getNumberByKey (key) = {
55 let number = match getInteger(this, key) {
66 case a: Int =>
77 a
88 case _ =>
99 0
1010 }
1111 number
1212 }
1313
1414
1515 let NONE = "none"
1616
1717 func getStringByKey (key) = {
1818 let string = match getString(this, key) {
1919 case a: String =>
2020 a
2121 case _ =>
2222 NONE
2323 }
2424 string
2525 }
2626
2727
28+func getBooleanByKey (key) = {
29+ let boolean = match getBoolean(this, key) {
30+ case a: Boolean =>
31+ a
32+ case _ =>
33+ false
34+ }
35+ boolean
36+ }
37+
38+
2839 func addressToString (address) = toBase58String(address.bytes)
2940
3041
3142 func stringToAddress (string) = Address(fromBase58String(string))
3243
3344
3445 func byteVectorToString (byteVector) = toBase58String(byteVector)
3546
3647
3748 func stringToByteVector (string) = fromBase58String(string)
3849
3950
4051 func isAdmin (caller) = (this == caller)
4152
4253
43-func getUserEmailKey (userEmail) = (("user_<" + userEmail) + ">_email")
54+func getUserEmailKey (userAddress) = (("user_<" + userAddress) + ">_email")
4455
4556
46-func getUserEmailValue (userEmail) = getStringByKey(getUserEmailKey(userEmail))
57+func getUserEmailValue (userAddress) = getStringByKey(getUserEmailKey(userAddress))
4758
4859
4960 func getNyanTokenKey (dAppAddress) = (("dApp_<" + addressToString(dAppAddress)) + ">_tokenId")
5061
5162
5263 func getNyanTokenValue (dAppAddress) = getStringByKey(getNyanTokenKey(dAppAddress))
5364
5465
5566 func getAssetPriceKey (assetId) = (("asset_<" + assetId) + ">_price")
5667
5768
5869 func getAssetPriceValue (assetId) = getNumberByKey(getAssetPriceKey(assetId))
5970
6071
6172 func getAssetDataKey (assetId) = (("asset_<" + assetId) + ">_data")
6273
6374
6475 func getAssetDataValue (assetId) = getStringByKey(getAssetPriceKey(assetId))
76+
77+
78+func getResponsibleKey (userAddress) = (("dApp_<" + userAddress) + ">_responsible")
79+
80+
81+func getResponsibleValue (userAddress) = getBooleanByKey(getResponsibleKey(userAddress))
6582
6683
6784 @Callable(i)
6885 func signUp (email) = {
6986 let userAddress = addressToString(i.caller)
7087 let userEmail = getUserEmailValue(userAddress)
7188 if ((userEmail != NONE))
7289 then throw((("User " + userEmail) + " is already registered"))
7390 else [StringEntry(getUserEmailKey(userAddress), email)]
7491 }
7592
7693
7794
7895 @Callable(i)
7996 func issueNyanToken (quantity) = {
8097 let nyanToken = getNyanTokenValue(this)
8198 if (!(isAdmin(i.caller)))
8299 then throw("Function invoke not allowed, requested from non-admin address")
83100 else if ((nyanToken != NONE))
84101 then throw("NYAN Token is already issued")
85102 else {
86103 let nyanTokenIssue = Issue("NYAN Token", "NYAN Token is a cryptocurrency token that operates on the Waves platform", quantity, 0, true)
87104 let nyanTokenAssetId = calculateAssetId(nyanTokenIssue)
88105 [nyanTokenIssue, StringEntry(getNyanTokenKey(this), byteVectorToString(nyanTokenAssetId))]
89106 }
90107 }
91108
92109
93110
94111 @Callable(i)
95112 func reissueNyanToken (quantity) = {
96113 let nyanToken = getNyanTokenValue(this)
97114 if (!(isAdmin(i.caller)))
98115 then throw("Function invoke not allowed, requested from non-admin address")
99116 else if ((nyanToken == NONE))
100117 then throw("NYAN Token was not issued")
101118 else [Reissue(stringToByteVector(nyanToken), quantity, true)]
102119 }
103120
104121
105122
106123 @Callable(i)
107124 func transferNyanToken (recipient,amount) = {
108125 let userEmail = getUserEmailValue(recipient)
109126 let nyanTokenAssetId = stringToByteVector(getNyanTokenValue(this))
110127 let currentDAppBalance = assetBalance(this, nyanTokenAssetId)
111128 let newDAppBalance = (currentDAppBalance - amount)
112129 if (!(isAdmin(i.caller)))
113130 then throw("Function invoke not allowed, requested from non-admin address")
114131 else if ((userEmail == NONE))
115132 then throw("You cannot transfer NYAN Token to an unregistered user")
116133 else if ((0 > amount))
117134 then throw("You cannot transfer a negative amount")
118135 else if ((0 > newDAppBalance))
119136 then throw("Not enough NYAN Token to transfer")
120137 else [ScriptTransfer(stringToAddress(recipient), amount, nyanTokenAssetId)]
121138 }
122139
123140
124141
125142 @Callable(i)
126143 func issueAssetToken (name,description,quantity,price,data) = {
127144 let assetTokenIssue = Issue(name, description, quantity, 0, true)
128145 let assetTokenAssetId = calculateAssetId(assetTokenIssue)
129146 let assetToken = byteVectorToString(assetTokenAssetId)
130147 if (!(isAdmin(i.caller)))
131148 then throw("Function invoke not allowed, requested from non-admin address")
132149 else if ((quantity == 0))
133150 then [assetTokenIssue, IntegerEntry(getAssetPriceKey(assetToken), price), StringEntry(getAssetDataKey(assetToken), data)]
134151 else {
135152 let nyanTokenAssetId = stringToByteVector(getNyanTokenValue(this))
136153 let currentDAppBalance = assetBalance(this, nyanTokenAssetId)
137154 let amount = (quantity * price)
138155 let newDAppBalance = (currentDAppBalance - amount)
139156 if ((0 > newDAppBalance))
140157 then throw("Not enough NYAN Token to issue an asset")
141158 else [assetTokenIssue, Burn(nyanTokenAssetId, amount), IntegerEntry(getAssetPriceKey(assetToken), price), StringEntry(getAssetDataKey(assetToken), data)]
142159 }
143160 }
144161
145162
146163
147164 @Callable(i)
148165 func reissueAssetToken (assetId,quantity) = {
149166 let nyanTokenAssetId = stringToByteVector(getNyanTokenValue(this))
150167 let currentDAppBalance = assetBalance(this, nyanTokenAssetId)
151168 let price = getAssetPriceValue(assetId)
152169 let amount = (quantity * price)
153170 let newDAppBalance = (currentDAppBalance - amount)
154171 if (!(isAdmin(i.caller)))
155172 then throw("Function invoke not allowed, requested from non-admin address")
156173 else if ((0 > newDAppBalance))
157174 then throw("Not enough NYAN Token to reissue an asset")
158175 else [Reissue(stringToByteVector(assetId), quantity, true), Burn(nyanTokenAssetId, amount)]
159176 }
160177
161178
162179
163180 @Callable(i)
164181 func exchangeAssetToken (assetId,amount) = {
165182 let payments = i.payments
166183 if ((size(payments) == 0))
167184 then throw("You need to attach the payment")
168185 else {
169186 let paymentAmount = payments[0].amount
170187 let paymentAssetId = value(payments[0].assetId)
171188 let assetPrice = getAssetPriceValue(assetId)
172189 let assetAmount = (amount * assetPrice)
173190 let userAddress = i.caller
174191 let assetTokenAssetId = stringToByteVector(assetId)
175192 if ((assetAmount > paymentAmount))
176193 then throw("Not enough NYAN Token to exchange an asset")
177194 else if ((paymentAmount == assetAmount))
178195 then [ScriptTransfer(userAddress, amount, assetTokenAssetId), Burn(paymentAssetId, paymentAmount)]
179196 else {
180197 let paymentAmountChange = (paymentAmount - assetAmount)
181198 [ScriptTransfer(userAddress, amount, assetTokenAssetId), ScriptTransfer(userAddress, paymentAmountChange, paymentAssetId), Burn(paymentAssetId, assetAmount)]
182199 }
183200 }
184201 }
185202
186203
204+
205+@Callable(i)
206+func setResponsibleStatus (userAddress) = {
207+ let isResponsible = getResponsibleValue(userAddress)
208+ if (isResponsible)
209+ then throw("User already have responsible status")
210+ else [BooleanEntry(getResponsibleKey(userAddress), true)]
211+ }
212+
213+
214+
215+@Callable(i)
216+func revokeResponsibleStatus (userAddress) = {
217+ let isResponsible = getResponsibleValue(userAddress)
218+ if (!(isResponsible))
219+ then throw("User already don't have responsible status")
220+ else [BooleanEntry(getResponsibleKey(userAddress), false)]
221+ }
222+
223+
187224 @Verifier(tx)
188225 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
189226

github/deemru/w8io/169f3d6 
55.79 ms