tx · 83geuWDdtp2aDqcmBo8swMRtoJoYyMxqj7uXH5LxpQp6

3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj:  -0.01400000 Waves

2020.12.09 07:30 [1300648] smart account 3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj > SELF 0.00000000 Waves

{ "type": 13, "id": "83geuWDdtp2aDqcmBo8swMRtoJoYyMxqj7uXH5LxpQp6", "fee": 1400000, "feeAssetId": null, "timestamp": 1607488264629, "version": 2, "chainId": 84, "sender": "3N8xXaYjE27Aa79d5hHrhHu9HaFoTBmhDEj", "senderPublicKey": "A2m227AHcq7gWfSU59Q3UJaqkEa7SccFYmJuWHbFrrKE", "proofs": [ "5zw8Nank4v7PvkctHQoB3FSG28F3RnkS1fyFqEGdJZFWsBeeoRBBgp4atGk5bayPhfB666kZepK8EjV39rkdmLKB" ], "script": "base64:AAIEAAAAAAAAADIIAhIECgIECBIDCgEEEgYKBAgICAgSBgoECAgICBIECgIICBIDCgEIEgMKAQgSAwoBCAAAABwAAAAADmRhcHBSdW5uaW5nS2V5AgAAABRjb25mX2RhcHBfaXNfcnVubmluZwAAAAARbWFpbnRlbmFuY2VNU0dLZXkCAAAAFGNvbmZfbWFpbnRlbmFuY2VfbXNnAAAAABJ3aGl0ZWxpc3RlZG9ubHlLZXkCAAAAFWNvbmZfd2hpdGVsaXN0ZWRfb25seQAAAAALZGFwcFJ1bm5pbmcEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAAEdGhpcwUAAAAOZGFwcFJ1bm5pbmdLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEGAAAAAA5tYWludGVuYW5jZU1TRwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAABFtYWludGVuYW5jZU1TR0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQA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ZUVudHJ5AAAAAQkBAAAAC2tleVVzZXJBZGRyAAAAAQUAAAAHYWRkcmVzcwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAALa2V5VXNlck5hbWUAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAtrZXlVc2VyRGVzYwAAAAEFAAAAB2FkZHJlc3MJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAADWtleVVzZXJTb2NpYWwAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAxrZXlVc2VyVGh1bWIAAAABBQAAAAdhZGRyZXNzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAA1rZXlVc2VyU3RhdHVzAAAAAQUAAAAHYWRkcmVzcwUAAAALdXNlclJlbW92ZWQFAAAAA25pbAkAAAIAAAABAgAAAAtOb3QgYWxsb3dlZAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAAFZW50cnkEAAAABmNhbGxlcgkABCUAAAABCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkDCQAAAAAAAAIFAAAABmNhbGxlcgUAAAAFY2hyaXMJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAFZW50cnkFAAAAA25pbAkAAAIAAAABAgAAAAJubwAAAADEMq4w", "height": 1300648, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FnXXQH1q98dBfE2dCUdkaUivuDJuzMLFmG2BGN2T9tyr Next: 3DoAavhzuc2ypXbtqW7qNxgTr2MrLF5nXUPawTWq7zYE Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let dappRunningKey = "conf_dapp_is_running"
5+
6+let maintenanceMSGKey = "conf_maintenance_msg"
7+
8+let whitelistedonlyKey = "conf_whitelisted_only"
9+
10+let dappRunning = match getBoolean(this, dappRunningKey) {
11+ case a: Boolean =>
12+ a
13+ case _ =>
14+ true
15+}
16+
17+let maintenanceMSG = match getString(this, maintenanceMSGKey) {
18+ case a: String =>
19+ a
20+ case _ =>
21+ ""
22+}
23+
24+let whitelistedonly = match getBoolean(this, whitelistedonlyKey) {
25+ case a: Boolean =>
26+ a
27+ case _ =>
28+ true
29+}
30+
31+let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
32+
33+let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
34+
35+let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
36+
37+let userAllowed = "ALLOWED"
38+
39+let userRegistered = "REGISTERED"
40+
41+let userVerified = "VERIFIED"
42+
43+let userSuspended = "SUSPENDED"
44+
45+let userRemoved = "REMOVED"
46+
47+let userChangeRequired = "CHANGE_REQUIRED"
48+
49+let userUnregistered = "UNREGISTERED"
50+
51+let userReset = "RESET"
52+
453 func getStringByKey (key) = match getString(this, key) {
554 case a: String =>
655 a
3281 else false
3382
3483
35-let dappRunningKey = "conf_dapp_is_running"
36-
37-let maintenanceMSGKey = "conf_maintenance_msg"
38-
39-let whitelistedonlyKey = "conf_whitelisted_only"
40-
41-let dappRunning = getBooleanByKey(dappRunningKey)
42-
43-let maintenanceMSG = getStringByKey(maintenanceMSGKey)
44-
45-let whitelistedonly = getBooleanByKey(whitelistedonlyKey)
46-
47-let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
48-
49-let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
50-
51-let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
52-
53-let userAllowed = "ALLOWED"
54-
55-let userRegistered = "REGISTERED"
56-
57-let userVerified = "VERIFIED"
58-
59-let userSuspended = "SUSPENDED"
60-
61-let userRemoved = "REMOVED"
62-
63-let userChangeRequired = "CHANGE_REQUIRED"
64-
65-let userUnregistered = "UNREGISTERED"
66-
67-let userReset = "RESET"
68-
6984 func keyUserAddr (caller) = ("user_" + caller)
7085
7186
92107 let caller = toString(addressFromPublicKey(i.callerPublicKey))
93108 let id = toBase58String(i.transactionId)
94109 if (containsElement([chris, joep, toString(this)], caller))
95- then [BooleanEntry("conf_dapp_is_running", isLive), StringEntry("conf_maintenance_msg", message)]
110+ then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
96111 else throw("You are not allowed to change this")
97112 }
98113
103118 let caller = toString(addressFromPublicKey(i.callerPublicKey))
104119 let id = toBase58String(i.transactionId)
105120 if (containsElement([chris, joep, toString(this)], caller))
106- then [BooleanEntry("conf_whitelisted_only", whitelistedonly)]
121+ then [BooleanEntry(whitelistedonlyKey, whitelistedonly)]
107122 else throw("You are not allowed to change this")
108123 }
109124
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let dappRunningKey = "conf_dapp_is_running"
5+
6+let maintenanceMSGKey = "conf_maintenance_msg"
7+
8+let whitelistedonlyKey = "conf_whitelisted_only"
9+
10+let dappRunning = match getBoolean(this, dappRunningKey) {
11+ case a: Boolean =>
12+ a
13+ case _ =>
14+ true
15+}
16+
17+let maintenanceMSG = match getString(this, maintenanceMSGKey) {
18+ case a: String =>
19+ a
20+ case _ =>
21+ ""
22+}
23+
24+let whitelistedonly = match getBoolean(this, whitelistedonlyKey) {
25+ case a: Boolean =>
26+ a
27+ case _ =>
28+ true
29+}
30+
31+let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
32+
33+let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
34+
35+let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
36+
37+let userAllowed = "ALLOWED"
38+
39+let userRegistered = "REGISTERED"
40+
41+let userVerified = "VERIFIED"
42+
43+let userSuspended = "SUSPENDED"
44+
45+let userRemoved = "REMOVED"
46+
47+let userChangeRequired = "CHANGE_REQUIRED"
48+
49+let userUnregistered = "UNREGISTERED"
50+
51+let userReset = "RESET"
52+
453 func getStringByKey (key) = match getString(this, key) {
554 case a: String =>
655 a
756 case _ =>
857 ""
958 }
1059
1160
1261 func getBooleanByKey (key) = match getBoolean(this, key) {
1362 case a: Boolean =>
1463 a
1564 case _ =>
1665 false
1766 }
1867
1968
2069 func getIntegerByKey (key) = match getInteger(this, key) {
2170 case i: Int =>
2271 i
2372 case _ =>
2473 0
2574 }
2675
2776
2877 func validateCID (cid) = if (if ((75 > size(cid)))
2978 then (60 > size(split(cid, "/")[0]))
3079 else false)
3180 then (16 > size(split(cid, "/")[1]))
3281 else false
3382
3483
35-let dappRunningKey = "conf_dapp_is_running"
36-
37-let maintenanceMSGKey = "conf_maintenance_msg"
38-
39-let whitelistedonlyKey = "conf_whitelisted_only"
40-
41-let dappRunning = getBooleanByKey(dappRunningKey)
42-
43-let maintenanceMSG = getStringByKey(maintenanceMSGKey)
44-
45-let whitelistedonly = getBooleanByKey(whitelistedonlyKey)
46-
47-let signAssetId = base58'Gf9t8FA4H3ssoZPCwrg3KwUFCci8zuUFP9ssRsUY3s6a'
48-
49-let chris = "3MsG6jPNCrVJUtYB7XJBxS7utWsXAf4n9Vp"
50-
51-let joep = "3Mzm4VLwsN9uZwbTMzPj3XuxV6kEfAR8UDN"
52-
53-let userAllowed = "ALLOWED"
54-
55-let userRegistered = "REGISTERED"
56-
57-let userVerified = "VERIFIED"
58-
59-let userSuspended = "SUSPENDED"
60-
61-let userRemoved = "REMOVED"
62-
63-let userChangeRequired = "CHANGE_REQUIRED"
64-
65-let userUnregistered = "UNREGISTERED"
66-
67-let userReset = "RESET"
68-
6984 func keyUserAddr (caller) = ("user_" + caller)
7085
7186
7287 func keyUserName (caller) = ("user_name_" + caller)
7388
7489
7590 func keyUserDesc (caller) = ("user_desc_" + caller)
7691
7792
7893 func keyUserSocial (caller) = ("user_social_" + caller)
7994
8095
8196 func keyUserThumb (caller) = ("user_thumb_" + caller)
8297
8398
8499 func keyUserStatus (caller) = ("user_status_" + caller)
85100
86101
87102 func keyUserDate (caller) = ("user_date_" + caller)
88103
89104
90105 @Callable(i)
91106 func appRunning (isLive,message) = {
92107 let caller = toString(addressFromPublicKey(i.callerPublicKey))
93108 let id = toBase58String(i.transactionId)
94109 if (containsElement([chris, joep, toString(this)], caller))
95- then [BooleanEntry("conf_dapp_is_running", isLive), StringEntry("conf_maintenance_msg", message)]
110+ then [BooleanEntry(dappRunningKey, isLive), StringEntry(maintenanceMSGKey, message)]
96111 else throw("You are not allowed to change this")
97112 }
98113
99114
100115
101116 @Callable(i)
102117 func registrationMode (WLonly) = {
103118 let caller = toString(addressFromPublicKey(i.callerPublicKey))
104119 let id = toBase58String(i.transactionId)
105120 if (containsElement([chris, joep, toString(this)], caller))
106- then [BooleanEntry("conf_whitelisted_only", whitelistedonly)]
121+ then [BooleanEntry(whitelistedonlyKey, whitelistedonly)]
107122 else throw("You are not allowed to change this")
108123 }
109124
110125
111126
112127 @Callable(i)
113128 func registerUser (name,description,thumb,social) = if (!(dappRunning))
114129 then throw(maintenanceMSG)
115130 else {
116131 let caller = toString(addressFromPublicKey(i.callerPublicKey))
117132 let canRegister = getStringByKey(keyUserStatus(caller))
118133 let id = toBase58String(i.transactionId)
119134 let timestamp = lastBlock.timestamp
120135 if (if ((canRegister == userSuspended))
121136 then true
122137 else (canRegister == userRemoved))
123138 then throw("Account suspended/ removed.")
124139 else if ((canRegister == userRegistered))
125140 then throw("Already registered")
126141 else if (if ((canRegister == ""))
127142 then whitelistedonly
128143 else false)
129144 then throw("Can't register, get approved first.")
130145 else if (if ((name == ""))
131146 then true
132147 else (description == ""))
133148 then throw("Name and description cannot be empty")
134149 else if ((size(description) > 600))
135150 then throw("600 Char. max description")
136151 else if ((size(name) > 45))
137152 then throw("45 Char. max name")
138153 else [IntegerEntry(keyUserDate(caller), timestamp), StringEntry(keyUserAddr(caller), ((id + "_") + toString(timestamp))), StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb), StringEntry(keyUserStatus(caller), userRegistered)]
139154 }
140155
141156
142157
143158 @Callable(i)
144159 func updateUser (name,description,thumb,social) = if (!(dappRunning))
145160 then throw(maintenanceMSG)
146161 else {
147162 let caller = toString(addressFromPublicKey(i.callerPublicKey))
148163 let id = toBase58String(i.transactionId)
149164 let canUpdate = getStringByKey(keyUserStatus(caller))
150165 if (if ((canUpdate == userSuspended))
151166 then true
152167 else (canUpdate == userRemoved))
153168 then throw("Account suspended/ removed.")
154169 else if (if ((canUpdate == ""))
155170 then true
156171 else (canUpdate == userAllowed))
157172 then throw("Register first")
158173 else if (if ((name == ""))
159174 then true
160175 else (description == ""))
161176 then throw("Name & description cannot be empty")
162177 else if ((size(description) > 600))
163178 then throw("600 Char. max for description")
164179 else if ((size(name) > 45))
165180 then throw("45 Char. max name")
166181 else [StringEntry(keyUserName(caller), name), StringEntry(keyUserDesc(caller), description), StringEntry(keyUserSocial(caller), social), StringEntry(keyUserThumb(caller), thumb)]
167182 }
168183
169184
170185
171186 @Callable(i)
172187 func changeUserStatus (address,status) = if (!(dappRunning))
173188 then throw(maintenanceMSG)
174189 else {
175190 let caller = toString(addressFromPublicKey(i.callerPublicKey))
176191 let id = toBase58String(i.transactionId)
177192 let currentStatus = getStringByKey(keyUserStatus(address))
178193 let statusToSet = if ((status == userVerified))
179194 then userVerified
180195 else if ((status == userRegistered))
181196 then userRegistered
182197 else if ((status == userSuspended))
183198 then userSuspended
184199 else if ((status == userRemoved))
185200 then userRemoved
186201 else if ((status == userAllowed))
187202 then userAllowed
188203 else if ((status == userChangeRequired))
189204 then userChangeRequired
190205 else if (if ((status == userReset))
191206 then (currentStatus == userAllowed)
192207 else false)
193208 then ""
194209 else throw("Unknown status")
195210 let userIsRegistered = getIntegerByKey(keyUserDate(address))
196211 if (if ((userIsRegistered == 0))
197212 then (status != userAllowed)
198213 else false)
199214 then throw("You cant set this status, user is not registered.")
200215 else if (if ((currentStatus == userAllowed))
201216 then (status == userAllowed)
202217 else false)
203218 then throw("User already allowed")
204219 else if (if ((currentStatus == userRegistered))
205220 then (status == userAllowed)
206221 else false)
207222 then throw("User already allowed & registered")
208223 else if (if ((currentStatus == userVerified))
209224 then (status == userAllowed)
210225 else false)
211226 then throw("User already allowed & verified")
212227 else if (containsElement([chris, joep, toString(this)], caller))
213228 then [StringEntry(keyUserStatus(address), statusToSet)]
214229 else throw("Not allowed to change user status")
215230 }
216231
217232
218233
219234 @Callable(i)
220235 func creditUser (address) = {
221236 let caller = toString(addressFromPublicKey(i.callerPublicKey))
222237 let id = toBase58String(i.transactionId)
223238 if (containsElement([chris, joep], caller))
224239 then [ScriptTransfer(Address(fromBase58String(address)), 30000000000, signAssetId)]
225240 else throw("Not allowed")
226241 }
227242
228243
229244
230245 @Callable(i)
231246 func deleteUser (address) = {
232247 let caller = toString(addressFromPublicKey(i.callerPublicKey))
233248 let id = toBase58String(i.transactionId)
234249 if (containsElement([chris, joep, toString(this)], caller))
235250 then [DeleteEntry(keyUserDate(address)), DeleteEntry(keyUserAddr(address)), DeleteEntry(keyUserName(address)), DeleteEntry(keyUserDesc(address)), DeleteEntry(keyUserSocial(address)), DeleteEntry(keyUserThumb(address)), StringEntry(keyUserStatus(address), userRemoved)]
236251 else throw("Not allowed")
237252 }
238253
239254
240255
241256 @Callable(i)
242257 func deleteEntry (entry) = {
243258 let caller = toString(addressFromPublicKey(i.callerPublicKey))
244259 if ((caller == chris))
245260 then [DeleteEntry(entry)]
246261 else throw("no")
247262 }
248263
249264

github/deemru/w8io/026f985 
52.15 ms