tx · 67CL4ykCEXAiVgq857v7a6AV5g4W4Ym2V6wrszbeH6hF

3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc:  -0.01100000 Waves

2022.10.09 18:44 [2264987] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves

{ "type": 13, "id": "67CL4ykCEXAiVgq857v7a6AV5g4W4Ym2V6wrszbeH6hF", "fee": 1100000, "feeAssetId": null, "timestamp": 1665330298274, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "32zdDB42WeLHzahodiyVA3NYc9b2jA6QiqrzkwRzJXeJcNpR4kswUVJsiTXW2zwBAPS6MB7driJz5HJVR2kNUcun" ], "script": "base64:AAIFAAAAAAAAADcIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgUKAwgIARIDCgEIAAAAJQEAAAAQZ2V0U3RyaW5nT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAEWdldEludGVnZXJPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2V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yZU5hbWVXaXRoTmV3VG9rZW4FAAAAF3RyYW5zZmVyTmV3VG9rZW5Ub093bmVyAwMFAAAADGlzVG9rZW5Pd25lcgUAAAAIaGFzVG9rZW4HCQAAAgAAAAECAAAAHFlvdSBhbHJlYWR5IG93biBhIG5hbWUgdG9rZW4DCQEAAAABIQAAAAEFAAAACGhhc1Rva2VuCQAAAgAAAAECAAAAG1lvdSBkb24ndCBoYXZlIGEgbmFtZSB0b2tlbgkBAAAACV9zZXRPd25lcgAAAAIFAAAABG5hbWUFAAAAD25ld093bmVyQWRkcmVzcwAAAABjE02C", "height": 2264987, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AxC6Eq7fsuYbjDZaAB9VXNwcdsP6SHQpGKPtsr1JBegJ Next: 632aNsgstRdDpTr99wUrx2D8k5Lon7uwRnKrf5gan3Cm Diff:
OldNewDifferences
194194
195195
196196 @Callable(inv)
197+func nameCreated (name) = $Tuple2(nil, _getCreatedAt(name))
198+
199+
200+
201+@Callable(inv)
202+func nameExpires (name) = $Tuple2(nil, _getExpiresAt(name))
203+
204+
205+
206+@Callable(inv)
207+func nameStatus (name) = $Tuple2(nil, if (!(isRegisteredName(name)))
208+ then "NOT_REGISTERED"
209+ else if (isExpiredName(name))
210+ then "EXPIRED"
211+ else if ((assetBalance(value(addressFromString(value(_getOwner(name)))), fromBase58String(value(_getToken(name)))) == 0))
212+ then "SUSPENDED"
213+ else "ACTIVE")
214+
215+
216+
217+@Callable(inv)
197218 func register (name,owner,createdAt) = valueOrElse(modifiers([onlyController(inv), if (isAvailableName(name))
198219 then unit
199220 else throw((("`" + name) + "` cannot be registered")), if ((lastBlock.timestamp >= createdAt))
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_rootAddress = "rootAddress"
3232
3333 let key_nameTTL = "nameTTL"
3434
3535 let key_controllers = "controllers"
3636
3737 func _setOwner (name,owner) = [StringEntry(key_Name_owner(name), owner)]
3838
3939
4040 func _getOwner (name) = getString(this, key_Name_owner(name))
4141
4242
4343 func _getToken (name) = getString(this, key_Name_token(name))
4444
4545
4646 func _getCreatedAt (name) = getInteger(this, key_Name_createdAt(name))
4747
4848
4949 func _getExpiresAt (name) = getInteger(this, key_Name_expiresAt(name))
5050
5151
5252 func _getControllers () = getString(this, key_controllers)
5353
5454
5555 let rootAddress = getStringOrThrow(this, key_rootAddress)
5656
5757 let root = parseAddressOrThrow(rootAddress)
5858
5959 let controllers = match _getControllers() {
6060 case repr: String =>
6161 split(repr, ",")
6262 case _ =>
6363 nil
6464 }
6565
6666 let nameTTL = getIntegerOrThrow(this, key_nameTTL)
6767
6868 func isRegisteredName (name) = isDefined(getString(this, key_Name_token(name)))
6969
7070
7171 func isCreatedName (name) = isDefined(_getCreatedAt(name))
7272
7373
7474 func isExpiredName (name) = match _getExpiresAt(name) {
7575 case expiresAt: Int =>
7676 (lastBlock.timestamp > expiresAt)
7777 case _ =>
7878 false
7979 }
8080
8181
8282 func isActiveName (name) = if (if (isRegisteredName(name))
8383 then isCreatedName(name)
8484 else false)
8585 then !(isExpiredName(name))
8686 else false
8787
8888
8989 func isAvailableName (name) = {
9090 let symbols = "abcdefghijklmnopqrstuvwxyz1234567890-"
9191 func validateChars (isValid,char) = if (isValid)
9292 then contains(symbols, char)
9393 else false
9494
9595 let isValidName = if (if (if (if ((size(name) > 0))
9696 then (63 >= size(name))
9797 else false)
9898 then (indexOf(name, "-") != 0)
9999 else false)
100100 then (lastIndexOf(name, "-") != (size(name) - 1))
101101 else false)
102102 then {
103103 let $l = split(name, "")
104104 let $s = size($l)
105105 let $acc0 = true
106106 func $f0_1 ($a,$i) = if (($i >= $s))
107107 then $a
108108 else validateChars($a, $l[$i])
109109
110110 func $f0_2 ($a,$i) = if (($i >= $s))
111111 then $a
112112 else throw("List size exceeds 63")
113113
114114 $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)
115115 }
116116 else false
117117 let inUse = if (isRegisteredName(name))
118118 then !(isExpiredName(name))
119119 else false
120120 if (!(inUse))
121121 then isValidName
122122 else false
123123 }
124124
125125
126126 func isAdmin (inv) = (inv.caller == this)
127127
128128
129129 func isOwner (inv,name) = (toString(inv.caller) == valueOrErrorMessage(_getOwner(name), (("Owner for `" + name) + "` is not found")))
130130
131131
132132 func isController (address) = containsElement(controllers, address)
133133
134134
135135 func _issueNameToken (name) = [Issue(if ((size(name) > 16))
136136 then (take(name, 15) + "~")
137137 else take(name, 16), name, 1, 0, false)]
138138
139139
140140 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))]
141141
142142
143143 func _restoreNameWithToken (name,tokenId) = [StringEntry(key_Name_token(name), tokenId), StringEntry(key_Token_name(tokenId), name)]
144144
145145
146146 func _transferTokenToOwner (tokenId,owner) = [ScriptTransfer(parseAddressOrThrow(owner), 1, fromBase58String(tokenId))]
147147
148148
149149 func modifiers (validations) = unit
150150
151151
152152 func onlyAdmin (inv) = if (isAdmin(inv))
153153 then unit
154154 else throw("Permission denied")
155155
156156
157157 func onlyController (inv) = if (if (isAdmin(inv))
158158 then true
159159 else isController(toString(inv.caller)))
160160 then unit
161161 else throw("Permission denied")
162162
163163
164164 @Callable(inv)
165165 func init (rootAddress,nameTTL) = valueOrElse(modifiers([onlyAdmin(inv)]), [StringEntry(key_rootAddress, rootAddress), IntegerEntry(key_nameTTL, nameTTL)])
166166
167167
168168
169169 @Callable(inv)
170170 func addController (address) = valueOrElse(modifiers([onlyAdmin(inv), if (!(isController(address)))
171171 then unit
172172 else throw((("Controller `" + address) + "` is already registered"))]), [StringEntry(key_controllers, makeString((controllers :+ address), ","))])
173173
174174
175175
176176 @Callable(inv)
177177 func removeController (address) = valueOrElse(modifiers([onlyAdmin(inv), if (isController(address))
178178 then unit
179179 else throw((("Controller `" + address) + "` is not registered"))]), {
180180 let controllerIndex = value(indexOf(controllers, address))
181181 [StringEntry(key_controllers, makeString(removeByIndex(controllers, controllerIndex), ","))]
182182 })
183183
184184
185185
186186 @Callable(inv)
187187 func available (name) = $Tuple2(nil, isAvailableName(name))
188188
189189
190190
191191 @Callable(inv)
192192 func owner (name) = $Tuple2(nil, _getOwner(name))
193193
194194
195195
196196 @Callable(inv)
197+func nameCreated (name) = $Tuple2(nil, _getCreatedAt(name))
198+
199+
200+
201+@Callable(inv)
202+func nameExpires (name) = $Tuple2(nil, _getExpiresAt(name))
203+
204+
205+
206+@Callable(inv)
207+func nameStatus (name) = $Tuple2(nil, if (!(isRegisteredName(name)))
208+ then "NOT_REGISTERED"
209+ else if (isExpiredName(name))
210+ then "EXPIRED"
211+ else if ((assetBalance(value(addressFromString(value(_getOwner(name)))), fromBase58String(value(_getToken(name)))) == 0))
212+ then "SUSPENDED"
213+ else "ACTIVE")
214+
215+
216+
217+@Callable(inv)
197218 func register (name,owner,createdAt) = valueOrElse(modifiers([onlyController(inv), if (isAvailableName(name))
198219 then unit
199220 else throw((("`" + name) + "` cannot be registered")), if ((lastBlock.timestamp >= createdAt))
200221 then unit
201222 else throw("createdAt cannot be in the future")]), {
202223 let issueNameToken = _issueNameToken(name)
203224 let tokenId = calculateAssetId(issueNameToken[0])
204225 let tokenStr = toBase58String(tokenId)
205226 let registerNameWithToken = _registerNameWithToken(name, tokenStr, createdAt)
206227 let transferTokenToOwner = _transferTokenToOwner(tokenStr, owner)
207228 let setOwnership = _setOwner(name, owner)
208229 (((issueNameToken ++ registerNameWithToken) ++ transferTokenToOwner) ++ setOwnership)
209230 })
210231
211232
212233
213234 @Callable(inv)
214235 func reclaim (name) = valueOrElse(modifiers([if (isActiveName(name))
215236 then unit
216237 else throw((("`" + name) + "` is not active"))]), {
217238 let newOwner = inv.caller
218239 let newOwnerAddress = toString(newOwner)
219240 let tokenStr = valueOrErrorMessage(_getToken(name), (("No token is issued for `" + name) + "`"))
220241 let tokenId = fromBase58String(tokenStr)
221242 let hasToken = (assetBalance(newOwner, tokenId) == 1)
222243 let isTokenOwner = isOwner(inv, name)
223244 let isTokenExists = match assetInfo(tokenId) {
224245 case token: Asset =>
225246 (token.quantity == 1)
226247 case _ =>
227248 false
228249 }
229250 if (if (isTokenOwner)
230251 then !(isTokenExists)
231252 else false)
232253 then {
233254 let issueNewToken = _issueNameToken(name)
234255 let newTokenId = calculateAssetId(issueNewToken[0])
235256 let newTokenStr = toBase58String(newTokenId)
236257 let restoreNameWithNewToken = _restoreNameWithToken(name, newTokenStr)
237258 let transferNewTokenToOwner = _transferTokenToOwner(newTokenStr, newOwnerAddress)
238259 ((issueNewToken ++ restoreNameWithNewToken) ++ transferNewTokenToOwner)
239260 }
240261 else if (if (isTokenOwner)
241262 then hasToken
242263 else false)
243264 then throw("You already own a name token")
244265 else if (!(hasToken))
245266 then throw("You don't have a name token")
246267 else _setOwner(name, newOwnerAddress)
247268 })
248269
249270

github/deemru/w8io/026f985 
43.99 ms