tx · CPMAhrWJrvtNvhzcfrsLnPMbWgnQ1MwuWo4AunxW2oeY

3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc:  -0.01100000 Waves

2022.10.14 13:12 [2271881] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves

{ "type": 13, "id": "CPMAhrWJrvtNvhzcfrsLnPMbWgnQ1MwuWo4AunxW2oeY", "fee": 1100000, "feeAssetId": null, "timestamp": 1665742393717, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "3ojzhHTUvdZRyD4zaErDNTBfT51czj8592jePLkUYkH5ee5xiPH6wM1hdGZsin3fmiwNPXBjzPhHB578whWDtmRD" ], "script": "base64:AAIFAAAAAAAAADsIAhIDCgEBEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBQoDCAgBEgMKAQgSAwoBCAAAACQBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABFnZXRJbnRlZ2VyT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3B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A25pbAkABRYAAAAEBQAAAApyZWdpc3RyYW50BQAAAAhyZXNvbHZlcgUAAAALbmFtZUNyZWF0ZWQFAAAAC25hbWVFeHBpcmVzAAAAAEDOSlc=", "height": 2271881, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 632aNsgstRdDpTr99wUrx2D8k5Lon7uwRnKrf5gan3Cm Next: 88N9etBM8frPBZgfv3L6mrYP6c8fm142DNj9H7fEw7Ad Diff:
OldNewDifferences
206206
207207
208208 @Callable(inv)
209+func owner (name) = $Tuple2(nil, _getOwner(name))
210+
211+
212+
213+@Callable(inv)
214+func nameCreated (name) = $Tuple2(nil, _getCreatedAt(name))
215+
216+
217+
218+@Callable(inv)
219+func nameExpires (name) = $Tuple2(nil, _getExpiresAt(name))
220+
221+
222+
223+@Callable(inv)
209224 func register (name,owner,createdAt) = valueOrElse(modifiers([onlyController(inv), if (isAvailableName(name))
210225 then unit
211226 else throw((("`" + name) + "` cannot be registered")), validAddress(owner), if ((createdAt > 0))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStringOrThrow (address,key) = valueOrErrorMessage(getString(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
55
66
77 func getIntegerOrThrow (address,key) = valueOrErrorMessage(getInteger(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
88
99
1010 func parseAddressOrThrow (maybeAddress) = valueOrErrorMessage(addressFromString(maybeAddress), (("Can't parse address from '" + maybeAddress) + "'"))
1111
1212
1313 func key_entity (name,pk,property) = ((((name + "_") + pk) + "_") + property)
1414
1515
1616 func key_Token_name (tokenId) = key_entity("Token", tokenId, "name")
1717
1818
1919 func key_Name_token (name) = key_entity("Name", name, "token")
2020
2121
2222 func key_Name_owner (name) = key_entity("Name", name, "owner")
2323
2424
2525 func key_Name_expiresAt (name) = key_entity("Name", name, "expiresAt")
2626
2727
2828 func key_Name_createdAt (name) = key_entity("Name", name, "createdAt")
2929
3030
3131 let key_nameTTL = "nameTTL"
3232
3333 let key_controllers = "controllers"
3434
3535 func _setOwner (name,owner) = [StringEntry(key_Name_owner(name), owner)]
3636
3737
3838 func _getOwner (name) = getString(this, key_Name_owner(name))
3939
4040
4141 func _getToken (name) = getString(this, key_Name_token(name))
4242
4343
4444 func _getCreatedAt (name) = getInteger(this, key_Name_createdAt(name))
4545
4646
4747 func _getExpiresAt (name) = getInteger(this, key_Name_expiresAt(name))
4848
4949
5050 func _getControllers () = getString(this, key_controllers)
5151
5252
5353 let controllers = match _getControllers() {
5454 case repr: String =>
5555 split(repr, ",")
5656 case _ =>
5757 nil
5858 }
5959
6060 let nameTTL = getIntegerOrThrow(this, key_nameTTL)
6161
6262 func isRegisteredName (name) = isDefined(getString(this, key_Name_token(name)))
6363
6464
6565 func isCreatedName (name) = isDefined(_getCreatedAt(name))
6666
6767
6868 func isExpiredName (name) = match _getExpiresAt(name) {
6969 case expiresAt: Int =>
7070 (lastBlock.timestamp > expiresAt)
7171 case _ =>
7272 false
7373 }
7474
7575
7676 func isActiveName (name) = if (if (isRegisteredName(name))
7777 then isCreatedName(name)
7878 else false)
7979 then !(isExpiredName(name))
8080 else false
8181
8282
8383 func isAvailableName (name) = {
8484 let symbols = "abcdefghijklmnopqrstuvwxyz1234567890-"
8585 func validateChars (isValid,char) = if (isValid)
8686 then contains(symbols, char)
8787 else false
8888
8989 let isValidName = if (if (if (if (if ((size(name) > 0))
9090 then (63 >= size(name))
9191 else false)
9292 then (indexOf(name, "--") != 2)
9393 else false)
9494 then (indexOf(name, "-") != 0)
9595 else false)
9696 then (lastIndexOf(name, "-") != (size(name) - 1))
9797 else false)
9898 then {
9999 let $l = split(name, "")
100100 let $s = size($l)
101101 let $acc0 = true
102102 func $f0_1 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else validateChars($a, $l[$i])
105105
106106 func $f0_2 ($a,$i) = if (($i >= $s))
107107 then $a
108108 else throw("List size exceeds 63")
109109
110110 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63)
111111 }
112112 else false
113113 let inUse = if (isRegisteredName(name))
114114 then !(isExpiredName(name))
115115 else false
116116 if (!(inUse))
117117 then isValidName
118118 else false
119119 }
120120
121121
122122 func isAdmin (inv) = (inv.caller == this)
123123
124124
125125 func isOwner (inv,name) = (toString(inv.caller) == valueOrElse(_getOwner(name), ""))
126126
127127
128128 func isController (address) = containsElement(controllers, address)
129129
130130
131131 func _splitLastLabel (name) = {
132132 let labels = split(name, ".")
133133 let lastIndex = (size(labels) - 1)
134134 let lastLabel = labels[lastIndex]
135135 let restLabels = makeString(removeByIndex(labels, lastIndex), ".")
136136 $Tuple2(lastLabel, restLabels)
137137 }
138138
139139
140140 func _issueNameToken (name) = [Issue(if ((size(name) > 16))
141141 then (take(name, 15) + "~")
142142 else take(name, 16), (name + ".waves"), 1, 0, false)]
143143
144144
145145 func _registerNameWithToken (name,tokenId,createdAt) = [StringEntry(key_Name_token(name), tokenId), StringEntry(key_Token_name(tokenId), name), IntegerEntry(key_Name_createdAt(name), createdAt), IntegerEntry(key_Name_expiresAt(name), (createdAt + nameTTL))]
146146
147147
148148 func _restoreNameWithToken (name,tokenId) = [StringEntry(key_Name_token(name), tokenId), StringEntry(key_Token_name(tokenId), name)]
149149
150150
151151 func _transferTokenToOwner (tokenId,owner) = [ScriptTransfer(parseAddressOrThrow(owner), 1, fromBase58String(tokenId))]
152152
153153
154154 func modifiers (validations) = unit
155155
156156
157157 func onlyAdmin (inv) = if (isAdmin(inv))
158158 then unit
159159 else throw("Permission denied")
160160
161161
162162 func onlyController (inv) = if (if (isAdmin(inv))
163163 then true
164164 else isController(toString(inv.caller)))
165165 then unit
166166 else throw("Permission denied")
167167
168168
169169 func validAddress (address) = if (isDefined(addressFromString(address)))
170170 then unit
171171 else throw("The address must be valid")
172172
173173
174174 @Callable(inv)
175175 func init (nameTTL) = valueOrElse(modifiers([onlyAdmin(inv), if ((nameTTL > 0))
176176 then unit
177177 else throw("TTL cannot be negative")]), [IntegerEntry(key_nameTTL, nameTTL)])
178178
179179
180180
181181 @Callable(inv)
182182 func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "whoIs"))
183183
184184
185185
186186 @Callable(inv)
187187 func addController (address) = valueOrElse(modifiers([onlyAdmin(inv), validAddress(address), if (!(isController(address)))
188188 then unit
189189 else throw((("Controller `" + address) + "` is already registered"))]), [StringEntry(key_controllers, makeString((controllers :+ address), ","))])
190190
191191
192192
193193 @Callable(inv)
194194 func removeController (address) = valueOrElse(modifiers([onlyAdmin(inv), validAddress(address), if (isController(address))
195195 then unit
196196 else throw((("Controller `" + address) + "` is not registered"))]), {
197197 let controllerIndex = value(indexOf(controllers, address))
198198 [StringEntry(key_controllers, makeString(removeByIndex(controllers, controllerIndex), ","))]
199199 })
200200
201201
202202
203203 @Callable(inv)
204204 func available (name) = $Tuple2(nil, isAvailableName(name))
205205
206206
207207
208208 @Callable(inv)
209+func owner (name) = $Tuple2(nil, _getOwner(name))
210+
211+
212+
213+@Callable(inv)
214+func nameCreated (name) = $Tuple2(nil, _getCreatedAt(name))
215+
216+
217+
218+@Callable(inv)
219+func nameExpires (name) = $Tuple2(nil, _getExpiresAt(name))
220+
221+
222+
223+@Callable(inv)
209224 func register (name,owner,createdAt) = valueOrElse(modifiers([onlyController(inv), if (isAvailableName(name))
210225 then unit
211226 else throw((("`" + name) + "` cannot be registered")), validAddress(owner), if ((createdAt > 0))
212227 then unit
213228 else throw("CreatedAt cannot be negative"), if ((lastBlock.timestamp >= createdAt))
214229 then unit
215230 else throw("CreatedAt cannot be in the future")]), {
216231 let issueNameToken = _issueNameToken(name)
217232 let tokenId = calculateAssetId(issueNameToken[0])
218233 let tokenStr = toBase58String(tokenId)
219234 let registerNameWithToken = _registerNameWithToken(name, tokenStr, createdAt)
220235 let transferTokenToOwner = _transferTokenToOwner(tokenStr, owner)
221236 let setOwnership = _setOwner(name, owner)
222237 (((issueNameToken ++ registerNameWithToken) ++ transferTokenToOwner) ++ setOwnership)
223238 })
224239
225240
226241
227242 @Callable(inv)
228243 func reclaim (name) = valueOrElse(modifiers([if (isActiveName(name))
229244 then unit
230245 else throw((("`" + name) + "` is not active"))]), {
231246 let newOwner = inv.caller
232247 let newOwnerAddress = toString(newOwner)
233248 let tokenStr = valueOrErrorMessage(_getToken(name), (("No token is issued for `" + name) + "`"))
234249 let tokenId = fromBase58String(tokenStr)
235250 let hasToken = (assetBalance(newOwner, tokenId) == 1)
236251 let isTokenOwner = isOwner(inv, name)
237252 let isTokenExists = match assetInfo(tokenId) {
238253 case token: Asset =>
239254 (token.quantity == 1)
240255 case _ =>
241256 false
242257 }
243258 if (if (isTokenOwner)
244259 then !(isTokenExists)
245260 else false)
246261 then {
247262 let issueNewToken = _issueNameToken(name)
248263 let newTokenId = calculateAssetId(issueNewToken[0])
249264 let newTokenStr = toBase58String(newTokenId)
250265 let restoreNameWithNewToken = _restoreNameWithToken(name, newTokenStr)
251266 let transferNewTokenToOwner = _transferTokenToOwner(newTokenStr, newOwnerAddress)
252267 ((issueNewToken ++ restoreNameWithNewToken) ++ transferNewTokenToOwner)
253268 }
254269 else if (if (isTokenOwner)
255270 then hasToken
256271 else false)
257272 then throw("You already own a name token")
258273 else if (!(hasToken))
259274 then throw("You don't have a name token")
260275 else _setOwner(name, newOwnerAddress)
261276 })
262277
263278
264279
265280 @Callable(inv)
266281 func whoIs (name) = valueOrElse(modifiers([if ((size(name) > 0))
267282 then unit
268283 else throw("Name cannot be empty")]), {
269284 let lastLabel = _splitLastLabel(name)._1
270285 let registrant = _getOwner(lastLabel)
271286 let resolver = unit
272287 let nameCreated = _getCreatedAt(lastLabel)
273288 let nameExpires = _getExpiresAt(lastLabel)
274289 $Tuple2(nil, $Tuple4(registrant, resolver, nameCreated, nameExpires))
275290 })
276291
277292

github/deemru/w8io/026f985 
46.45 ms