tx · 81rWUd3rZHg1natpxT6EA79HKERTPQ24S51G2mZb9xj4

3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc:  -0.01000000 Waves

2022.10.09 09:47 [2264440] smart account 3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc > SELF 0.00000000 Waves

{ "type": 13, "id": "81rWUd3rZHg1natpxT6EA79HKERTPQ24S51G2mZb9xj4", "fee": 1000000, "feeAssetId": null, "timestamp": 1665298103287, "version": 2, "chainId": 84, "sender": "3MvrXJVzDMDcshazxn88FybxHV2JvWQBxTc", "senderPublicKey": "Fq8P5ctrS7PNTX37bWWxvnwoB7C2FaNySZWnRmgPUaDH", "proofs": [ "2yoMT1tDVUJF2pcuvqALgXZo3TknjS8NXUeMvzojfW1pUv4PK8byJe5cNmsYKcdzJFXnURbKdie5VoyyqDtRANfq" ], "script": "base64:AAIFAAAAAAAAACMIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIFCgMICAESAwoBCAAAACQBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABFnZXRJbnRlZ2VyT3JUaHJvdwAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABBoAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAADENhbid0IHJlYWQgJwUAAAADa2V5AgAAAA0nIGF0IGFkZHJlc3MgCQAEJQAAAAEFAAAAB2FkZHJlc3MBAAAAE3BhcnNlQWRkcmVzc09yVGhyb3cAAAABAAAADG1heWJlQWRkcmV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AAAHdG9rZW5JZAAAAAAAAAAAAAkAAAIAAAABAgAAAB1Zb3UgZG9uJ3QgaGF2ZSBhIG5hbWVkIHRva2VuLgkBAAAACV9zZXRPd25lcgAAAAIFAAAABG5hbWUFAAAAD25ld093bmVyQWRkcmVzcwAAAABpCaaJ", "height": 2264440, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CPccZRMsg6kJddMEQnAXbkb1krVvweFYotnnthjuWaSL Next: 5XbWcH66GaCnyLkV5T8ySyWJ1Z3PTjFs3Dr9ZajmcCQS Diff:
OldNewDifferences
3838
3939 let root = parseAddressOrThrow(rootAddress)
4040
41-let controllers = split(getStringOrThrow(this, key_controllers), ",")
41+let controllers = split(valueOrElse(getString(this, key_controllers), ""), ",")
4242
4343 let nameTTL = getIntegerOrThrow(this, key_nameTTL)
4444
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 let rootAddress = getStringOrThrow(this, key_rootAddress)
3838
3939 let root = parseAddressOrThrow(rootAddress)
4040
41-let controllers = split(getStringOrThrow(this, key_controllers), ",")
41+let controllers = split(valueOrElse(getString(this, key_controllers), ""), ",")
4242
4343 let nameTTL = getIntegerOrThrow(this, key_nameTTL)
4444
4545 func _setOwner (name,owner) = [StringEntry(key_Name_owner(name), owner)]
4646
4747
4848 func _getOwner (name) = getString(this, key_Name_owner(name))
4949
5050
5151 func _getToken (name) = getString(this, key_Name_token(name))
5252
5353
5454 func _getCreatedAt (name) = getInteger(this, key_Name_createdAt(name))
5555
5656
5757 func _getExpiresAt (name) = getInteger(this, key_Name_expiresAt(name))
5858
5959
6060 func isRegisteredName (name) = isDefined(getString(this, key_Name_token(name)))
6161
6262
6363 func isCreatedName (name) = isDefined(_getCreatedAt(name))
6464
6565
6666 func isExpiredName (name) = match _getExpiresAt(name) {
6767 case expiresAt: Int =>
6868 (lastBlock.timestamp > expiresAt)
6969 case _ =>
7070 false
7171 }
7272
7373
7474 func isActiveName (name) = if (if (isRegisteredName(name))
7575 then isCreatedName(name)
7676 else false)
7777 then !(isExpiredName(name))
7878 else false
7979
8080
8181 func isAvailableName (name) = {
8282 let symbols = "abcdefghijklmnopqrstuvwxyz1234567890-"
8383 func validateChars (isValid,char) = if (isValid)
8484 then contains(symbols, char)
8585 else false
8686
8787 let isValidName = if (if (if (if ((size(name) > 0))
8888 then (63 >= size(name))
8989 else false)
9090 then (indexOf(name, "-") != 0)
9191 else false)
9292 then (lastIndexOf(name, "-") != (size(name) - 1))
9393 else false)
9494 then {
9595 let $l = split(name, "")
9696 let $s = size($l)
9797 let $acc0 = true
9898 func $f0_1 ($a,$i) = if (($i >= $s))
9999 then $a
100100 else validateChars($a, $l[$i])
101101
102102 func $f0_2 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else throw("List size exceeds 63")
105105
106106 $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)
107107 }
108108 else false
109109 let inUse = if (isRegisteredName(name))
110110 then !(isExpiredName(name))
111111 else false
112112 if (!(inUse))
113113 then isValidName
114114 else false
115115 }
116116
117117
118118 func isAdmin (inv) = (inv.caller == this)
119119
120120
121121 func isOwner (inv,name) = (toString(inv.caller) == valueOrErrorMessage(_getOwner(name), (("Owner for `" + name) + "` is not found")))
122122
123123
124124 func isController (address) = containsElement(controllers, address)
125125
126126
127127 func _issueNameToken (name) = [Issue(if ((size(name) > 16))
128128 then (take(name, 15) + "~")
129129 else take(name, 16), name, 1, 0, false)]
130130
131131
132132 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))]
133133
134134
135135 func _restoreNameWithToken (name,tokenId) = [StringEntry(key_Name_token(name), tokenId), StringEntry(key_Token_name(tokenId), name)]
136136
137137
138138 func _transferTokenToOwner (tokenId,owner) = [ScriptTransfer(parseAddressOrThrow(owner), 1, fromBase58String(tokenId))]
139139
140140
141141 func modifiers (validations) = unit
142142
143143
144144 func onlyAdmin (inv) = if (isAdmin(inv))
145145 then unit
146146 else throw("Permission denied")
147147
148148
149149 func onlyController (inv) = if (if (isAdmin(inv))
150150 then true
151151 else isController(toString(inv.caller)))
152152 then unit
153153 else throw("Permission denied")
154154
155155
156156 @Callable(inv)
157157 func init (rootAddress,nameTTL) = valueOrElse(modifiers([onlyAdmin(inv)]), [StringEntry(key_rootAddress, rootAddress), IntegerEntry(key_nameTTL, nameTTL)])
158158
159159
160160
161161 @Callable(inv)
162162 func addController (address) = valueOrElse(modifiers([onlyAdmin(inv), if (!(isController(address)))
163163 then unit
164164 else throw((("Controller `" + address) + "` is already registered"))]), [StringEntry(key_controllers, makeString((controllers :+ address), ","))])
165165
166166
167167
168168 @Callable(inv)
169169 func removeController (address) = valueOrElse(modifiers([onlyAdmin(inv), if (isController(address))
170170 then unit
171171 else throw((("Controller `" + address) + "` is not registered"))]), {
172172 let controllerIndex = value(indexOf(controllers, address))
173173 [StringEntry(key_controllers, makeString(removeByIndex(controllers, controllerIndex), ","))]
174174 })
175175
176176
177177
178178 @Callable(inv)
179179 func available (name) = $Tuple2(nil, isAvailableName(name))
180180
181181
182182
183183 @Callable(inv)
184184 func register (name,owner,createdAt) = valueOrElse(modifiers([onlyController(inv), if (isAvailableName(name))
185185 then unit
186186 else throw((("`" + name) + "` cannot be registered")), if ((lastBlock.timestamp >= createdAt))
187187 then unit
188188 else throw("createdAt cannot be in the future")]), {
189189 let issueNameToken = _issueNameToken(name)
190190 let tokenId = calculateAssetId(issueNameToken[0])
191191 let tokenStr = toBase58String(tokenId)
192192 let registerNameWithToken = _registerNameWithToken(name, tokenStr, createdAt)
193193 let transferTokenToOwner = _transferTokenToOwner(tokenStr, owner)
194194 let setOwnership = _setOwner(name, owner)
195195 (((issueNameToken ++ registerNameWithToken) ++ transferTokenToOwner) ++ setOwnership)
196196 })
197197
198198
199199
200200 @Callable(inv)
201201 func reclaim (name) = valueOrElse(modifiers([if (isActiveName(name))
202202 then unit
203203 else throw((("`" + name) + "` is not active"))]), {
204204 let newOwner = inv.caller
205205 let newOwnerAddress = toString(newOwner)
206206 let tokenStr = valueOrErrorMessage(_getToken(name), (("No token is issued for `" + name) + "`"))
207207 let tokenId = fromBase58String(tokenStr)
208208 let token = assetInfo(tokenId)
209209 if (isOwner(inv, name))
210210 then if (isDefined(token))
211211 then throw("You can only restore a burned token")
212212 else {
213213 let issueNewToken = _issueNameToken(name)
214214 let newTokenId = calculateAssetId(issueNewToken[0])
215215 let newTokenStr = toBase58String(newTokenId)
216216 let restoreNameWithNewToken = _restoreNameWithToken(name, newTokenStr)
217217 let transferNewTokenToOwner = _transferTokenToOwner(newTokenStr, newOwnerAddress)
218218 ((issueNewToken ++ restoreNameWithNewToken) ++ transferNewTokenToOwner)
219219 }
220220 else if ((assetBalance(newOwner, tokenId) == 0))
221221 then throw("You don't have a named token.")
222222 else _setOwner(name, newOwnerAddress)
223223 })
224224
225225

github/deemru/w8io/026f985 
60.55 ms