tx · 6zcV3u2C5MRvwQSRvRLFGoHPKD3VyG1hz8RHSxocFiJ7

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.00800000 Waves

2023.03.22 19:42 [2501473] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "6zcV3u2C5MRvwQSRvRLFGoHPKD3VyG1hz8RHSxocFiJ7", "fee": 800000, "feeAssetId": null, "timestamp": 1679503361914, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "4dhyK71CM69Pi6vEaHQDxc4rk1tMNNphZq6JKvUDsswhVuLNkMHdRba7fZ6wCvBxrfWYkDC1eeHVnuEt4sQkBYog" ], "script": "base64:BgJKCAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgQKAggBEgMKAQgSBgoECAEBARIECgIBARIDCgEBEgMKAQEXAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQERQGV4dHJOYXRpdmUoMTA1NykBAgx0b2tlblBheW1lbnQAEXRva2VuUGF5bWVudEFzc2V0CQETdmFsdWVPckVycm9yTWVzc2FnZQI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C2dldExlbmRDb3N0AQUGbGVuZElkBQNuaWwAWMz1/g==", "height": 2501473, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8AiSkdmrXgbmFcy87nQZf8UaMohXacCJ1xcW8T94VV8v Next: JE2iVTtWZxEePjgtizVPrBdSnUnHnmznA1d9xw22Lh5J Diff:
OldNewDifferences
6666 }
6767
6868
69-func B (q) = valueOrElse(getIntegerValue(("lend-cost-" + toString(q))), 0)
69+func B (q) = valueOrElse(getInteger(("lend-cost-" + toString(q))), 0)
7070
7171
7272 func C (D) = if ((D == this))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = getStringValue("collectionName")
55
66 let b = getStringValue("symbol")
77
88 let c = getStringValue("description")
99
1010 let d = getIntegerValue("totalAmount")
1111
1212 let e = getStringValue("baseURI")
1313
1414 let f = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1515
1616 let g = getBinaryValue("tokenPayment")
1717
1818 let h = valueOrErrorMessage(assetInfo(getBinaryValue("tokenPayment")), "token payment asset doesn't connect")
1919
2020 let i = getIntegerValue("lendCount")
2121
2222 let j = getIntegerValue("lendCurrentCount")
2323
2424 func k (l) = valueOrErrorMessage(assetInfo(fromBase58String(l)), "Can't find asset by asset id")
2525
2626
2727 func m (n,o,l) = if ((n == this))
2828 then StringEntry("smth", "smth")
2929 else ScriptTransfer(n, o, l)
3030
3131
3232 func p (q) = {
3333 let r = toString(q)
3434 getStringValue(("lend-" + r))
3535 }
3636
3737
3838 func s (t,u) = {
3939 let v = {
4040 let w = invoke(f, "readByJSONKey", [t, u], nil)
4141 if ($isInstanceOf(w, "String"))
4242 then w
4343 else throw(($getType(w) + " couldn't be cast to String"))
4444 }
4545 if ((v == v))
4646 then v
4747 else throw("Strict value is not equal to itself.")
4848 }
4949
5050
5151 func x (q) = {
5252 let r = toString(q)
5353 getIntegerValue(("lend-rentCount-" + r))
5454 }
5555
5656
5757 func y (q,v) = {
5858 let t = p(q)
5959 let z = s(t, "timeUnitPrice")
6060 if ((z == z))
6161 then {
6262 let A = parseIntValue(z)
6363 (v * A)
6464 }
6565 else throw("Strict value is not equal to itself.")
6666 }
6767
6868
69-func B (q) = valueOrElse(getIntegerValue(("lend-cost-" + toString(q))), 0)
69+func B (q) = valueOrElse(getInteger(("lend-cost-" + toString(q))), 0)
7070
7171
7272 func C (D) = if ((D == this))
7373 then unit
7474 else throw("Only internal call")
7575
7676
7777 func E (F,G) = {
7878 let H = F
7979 let I = H._1
8080 let J = H._2
8181 let K = H._3
8282 let q = H._4
8383 if ((K > J))
8484 then $Tuple3((I :+ DeleteEntry(((("lend-rent-" + q) + "-") + toString(J)))), (J + 1), K)
8585 else F
8686 }
8787
8888
8989 func L (D,l) = if ((assetBalance(D, fromBase58String(l)) == 1))
9090 then unit
9191 else throw("Only asset owner")
9292
9393
9494 func M (N,o) = if ((N[0].amount >= o))
9595 then unit
9696 else throw("amount less then need")
9797
9898
9999 func O (l) = if (valueOrElse(getBoolean(l), false))
100100 then throw("this token already use")
101101 else unit
102102
103103
104104 func P (D,q) = if ((s(p(q), "owner") != toString(D)))
105105 then throw("you haven't perms")
106106 else unit
107107
108108
109109 @Callable(Q)
110110 func setString (R,S) = valueOrElse(C(Q.caller), [StringEntry(R, S)])
111111
112112
113113
114114 @Callable(Q)
115115 func setInt (R,S) = valueOrElse(C(Q.caller), [IntegerEntry(R, S)])
116116
117117
118118
119119 @Callable(Q)
120120 func deleteEntry (R) = valueOrElse(C(Q.caller), [DeleteEntry(R)])
121121
122122
123123
124124 @Callable(Q)
125125 func init (T,U,V,W) = valueOrElse(C(Q.caller), [StringEntry("collectionName", T), StringEntry("symbol", U), StringEntry("description", V), IntegerEntry("totalAmount", 0), StringEntry("baseURI", W)])
126126
127127
128128
129129 @Callable(Q)
130130 func setUser (l,X,Y) = {
131131 let Z = invoke(f, "makeJSON", [["user", "expires"], [X, Y]], nil)
132132 if ((Z == Z))
133133 then $Tuple2([StringEntry(("userOf-" + l), {
134134 let w = Z
135135 if ($isInstanceOf(w, "String"))
136136 then w
137137 else throw(($getType(w) + " couldn't be cast to String"))
138138 })], Z)
139139 else throw("Strict value is not equal to itself.")
140140 }
141141
142142
143143
144144 @Callable(Q)
145145 func setTokenPayment (aa) = valueOrElse(C(Q.caller), [BinaryEntry("tokenPayment", aa)])
146146
147147
148148
149149 @Callable(Q)
150150 func mintTokens (n,o) = {
151151 let ab = Reissue(g, o, true)
152152 let ac = Address(fromBase58String(n))
153153 let ad = m(ac, o, g)
154154 if ((ad == ad))
155155 then [ad, ab]
156156 else throw("Strict value is not equal to itself.")
157157 }
158158
159159
160160
161161 @Callable(Q)
162162 func mintNFT (n) = {
163163 let ae = (d + 1)
164164 let af = toString(ae)
165165 let ag = ((b + "#") + af)
166166 let ah = if ((16 >= size(ag)))
167167 then ag
168168 else af
169169 let ai = (e + af)
170170 let aj = {
171171 let w = invoke(f, "makeJSON", [["tokenURI"], [ai]], nil)
172172 if ($isInstanceOf(w, "String"))
173173 then w
174174 else throw(($getType(w) + " couldn't be cast to String"))
175175 }
176176 let ak = Issue(ah, aj, 1, 0, false, unit, height)
177177 let l = calculateAssetId(ak)
178178 let ac = Address(fromBase58String(n))
179179 let ad = m(ac, 1, l)
180180 if ((ad == ad))
181181 then [ak, ad, IntegerEntry("totalAmount", ae), StringEntry(ah, ai)]
182182 else throw("Strict value is not equal to itself.")
183183 }
184184
185185
186186
187187 @Callable(Q)
188188 func initLend (l,v,A,al) = valueOrElse(L(Q.caller, l), valueOrElse(O(l), {
189189 let ak = k(l)
190190 let ai = {
191191 let w = invoke(f, "readByJSONKey", [ak.description, "tokenURI"], nil)
192192 if ($isInstanceOf(w, "String"))
193193 then w
194194 else throw(($getType(w) + " couldn't be cast to String"))
195195 }
196196 if ((ai == ai))
197197 then {
198198 let t = {
199199 let w = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", l, ai, toString(Q.caller), toString(v), toString(A), toString(al), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (v * al))), "0", "0"]], nil)
200200 if ($isInstanceOf(w, "String"))
201201 then w
202202 else throw(($getType(w) + " couldn't be cast to String"))
203203 }
204204 if ((t == t))
205205 then {
206206 let r = toString(i)
207207 [IntegerEntry("lendCount", (i + 1)), IntegerEntry("lendCurrentCount", (j + 1)), IntegerEntry(("lend-rentCount-" + r), 0), StringEntry(("lend-" + r), t), BooleanEntry(l, true)]
208208 }
209209 else throw("Strict value is not equal to itself.")
210210 }
211211 else throw("Strict value is not equal to itself.")
212212 }))
213213
214214
215215
216216 @Callable(Q)
217217 func initRent (q,al) = valueOrElse(M(Q.payments, y(q, al)), {
218218 let r = toString(q)
219219 let t = getStringValue(("lend-" + r))
220220 let am = x(q)
221221 let an = toString(am)
222222 let v = {
223223 let w = invoke(f, "readByJSONKey", [t, "timeUnitSeconds"], nil)
224224 if ($isInstanceOf(w, "String"))
225225 then w
226226 else throw(($getType(w) + " couldn't be cast to String"))
227227 }
228228 if ((v == v))
229229 then {
230230 let ao = parseIntValue(v)
231231 if ((ao == ao))
232232 then {
233233 let ap = {
234234 let w = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(Q.caller), toString(al), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (ao * al))), "0"]], nil)
235235 if ($isInstanceOf(w, "String"))
236236 then w
237237 else throw(($getType(w) + " couldn't be cast to String"))
238238 }
239239 if ((ap == ap))
240240 then [IntegerEntry(("lend-rentCount-" + r), (am + 1)), StringEntry(((("lend-rent-" + r) + "-") + an), ap), IntegerEntry(("lend-cost-" + r), (y(q, al) + B(q)))]
241241 else throw("Strict value is not equal to itself.")
242242 }
243243 else throw("Strict value is not equal to itself.")
244244 }
245245 else throw("Strict value is not equal to itself.")
246246 })
247247
248248
249249
250250 @Callable(Q)
251251 func closeLend (q) = valueOrElse(P(Q.caller, q), {
252252 let r = toString(q)
253253 let aq = [DeleteEntry(("lend-" + r)), DeleteEntry(("lend-rentCount-" + r)), IntegerEntry("lendCurrentCount", (j - 1)), DeleteEntry(("lend-cost-" + r)), ScriptTransfer(Q.caller, B(q), g)]
254254 aq
255255 })
256256
257257
258258
259259 @Callable(Q)
260260 func test (q) = [IntegerEntry("Debug", B(q))]
261261
262262

github/deemru/w8io/169f3d6 
47.55 ms