tx · 4Q4yMXF3s6DtSkBqMmwJzGBXdyNSQHqyBhoxE47eP5bv

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.00700000 Waves

2023.03.21 21:26 [2500131] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "4Q4yMXF3s6DtSkBqMmwJzGBXdyNSQHqyBhoxE47eP5bv", "fee": 700000, "feeAssetId": null, "timestamp": 1679423103563, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "5MBfem38Fe1mSuN37VfFV6N5fM5uyhsvZ4v429gUs6V6gciNcTMSR8VYERoSmXu8eFepnvNoLxzZBQePV5Rrkiup" ], "script": "base64:BgI/CAISBAoCCAgSBAoCCAESAwoBCBIGCgQICAgIEgUKAwgICBIDCgECEgMKAQgSBgoECAEBARIECgIBARIDCgEIFAAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDU4KQECDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDU4KQECBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDU4KQECC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTUpAQILdG90YWxBbW91bnQAB2Jhc2VVUkkJARFAZXh0ck5hdGl2ZSgxMDU4KQECB2Jhc2VVUkkACGRBcHBKc29uCQEHQWRkcmVzcwEJANkEAQIjM01yR2FaVlJoa25FR2ZISjE5dHRVUE5uRFJvRnFjSGhWTjcADHRva2VuUGF5bWVudAkBEUBleHRyTmF0aXZlKDEwNTcpAQIMdG9rZW5QYXltZW50ABF0b2tlblBheW1lbnRBc3NldAkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQDsBwEJARFAZXh0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2xlbmQtcmVudENvdW50LQUMbGVuZElkU3RyaW5nCQBkAgUGcmVudElkAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQCsAgIJAKwCAgIKbGVuZC1yZW50LQUMbGVuZElkU3RyaW5nAgEtBQxyZW50SWRTdHJpbmcFCHJlbnRKc29uBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEEdGVzdAEHYXNzZXRJZAkAzAgCCQEMQm9vbGVhbkVudHJ5AgIFRGVidWcJAQt2YWx1ZU9yRWxzZQIJAKAIAQUHYXNzZXRJZAcFA25pbADljnZL", "height": 2500131, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FGCEb4exkkEBz5RQ3x9dq7jzfkVwHSf3xyySGcFzVqMg Next: 2yDSbohKjDR9Eok1ngCVzy8CvuzKxNiGBhcCXiX9ZY6e 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) = if ((n == this))
2828 then unit
2929 else throw("Only internal call")
3030
3131
3232 func o (p,l) = if ((p == this))
3333 then StringEntry("smth", "smth")
3434 else ScriptTransfer(p, 1, l)
3535
3636
3737 func q (n,l) = if ((assetBalance(n, fromBase58String(l)) == 1))
3838 then unit
3939 else throw("Only asset owner")
4040
4141
4242 func r (s,t) = if ((s[0].amount >= t))
4343 then unit
4444 else throw("amount less then need")
4545
4646
4747 func u (l) = if (getBooleanValue(l))
4848 then throw("this token already use")
4949 else unit
5050
5151
5252 func v (w) = {
5353 let x = toString(w)
5454 getStringValue(("lend-" + x))
5555 }
5656
5757
5858 func y (z,A) = {
5959 let B = {
6060 let C = invoke(f, "readByJSONKey", [z, A], nil)
6161 if ($isInstanceOf(C, "String"))
6262 then C
6363 else throw(($getType(C) + " couldn't be cast to String"))
6464 }
6565 if ((B == B))
6666 then B
6767 else throw("Strict value is not equal to itself.")
6868 }
6969
7070
7171 func D (w) = {
7272 let x = toString(w)
7373 getIntegerValue(("lend-rentCount-" + x))
7474 }
7575
7676
7777 func E (w,B) = {
7878 let z = v(w)
7979 let F = y(z, "timeUnitPrice")
8080 if ((F == F))
8181 then {
8282 let G = parseIntValue(F)
8383 (B * G)
8484 }
8585 else throw("Strict value is not equal to itself.")
8686 }
8787
8888
8989 @Callable(H)
9090 func setString (I,J) = valueOrElse(m(H.caller), [StringEntry(I, J)])
9191
9292
9393
9494 @Callable(H)
9595 func setInt (I,J) = valueOrElse(m(H.caller), [IntegerEntry(I, J)])
9696
9797
9898
9999 @Callable(H)
100100 func deleteEntry (I) = valueOrElse(m(H.caller), [DeleteEntry(I)])
101101
102102
103103
104104 @Callable(H)
105105 func init (K,L,M,N) = valueOrElse(m(H.caller), [StringEntry("collectionName", K), StringEntry("symbol", L), StringEntry("description", M), IntegerEntry("totalAmount", 0), StringEntry("baseURI", N)])
106106
107107
108108
109109 @Callable(H)
110110 func setUser (l,O,P) = {
111111 let Q = invoke(f, "makeJSON", [["user", "expires"], [O, P]], nil)
112112 if ((Q == Q))
113113 then $Tuple2([StringEntry(("userOf-" + l), {
114114 let C = Q
115115 if ($isInstanceOf(C, "String"))
116116 then C
117117 else throw(($getType(C) + " couldn't be cast to String"))
118118 })], Q)
119119 else throw("Strict value is not equal to itself.")
120120 }
121121
122122
123123
124124 @Callable(H)
125125 func setTokenPayment (R) = valueOrElse(m(H.caller), [BinaryEntry("tokenPayment", R)])
126126
127127
128128
129129 @Callable(H)
130130 func mint (p) = {
131131 let S = (d + 1)
132132 let T = toString(S)
133133 let U = ((b + "#") + T)
134134 let V = if ((16 >= size(U)))
135135 then U
136136 else T
137137 let W = (e + T)
138138 let X = {
139139 let C = invoke(f, "makeJSON", [["tokenURI"], [W]], nil)
140140 if ($isInstanceOf(C, "String"))
141141 then C
142142 else throw(($getType(C) + " couldn't be cast to String"))
143143 }
144144 let Y = Issue(V, X, 1, 0, false, unit, height)
145145 let l = calculateAssetId(Y)
146146 let Z = Address(fromBase58String(p))
147147 let aa = o(Z, l)
148148 if ((aa == aa))
149149 then [Y, aa, IntegerEntry("totalAmount", S), StringEntry(V, W)]
150150 else throw("Strict value is not equal to itself.")
151151 }
152152
153153
154154
155155 @Callable(H)
156156 func initLend (l,B,G,ab) = valueOrElse(q(H.caller, l), valueOrElse(u(l), {
157157 let Y = k(l)
158158 let W = {
159159 let C = invoke(f, "readByJSONKey", [Y.description, "tokenURI"], nil)
160160 if ($isInstanceOf(C, "String"))
161161 then C
162162 else throw(($getType(C) + " couldn't be cast to String"))
163163 }
164164 if ((W == W))
165165 then {
166166 let z = {
167167 let C = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", l, W, toString(H.caller), toString(B), toString(G), toString(ab), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (B * ab))), "0", "0"]], nil)
168168 if ($isInstanceOf(C, "String"))
169169 then C
170170 else throw(($getType(C) + " couldn't be cast to String"))
171171 }
172172 if ((z == z))
173173 then {
174174 let x = toString(i)
175175 [IntegerEntry("lendCount", (i + 1)), IntegerEntry("lendCurrentCount", (j + 1)), IntegerEntry(("lend-rentCount-" + x), 0), StringEntry(("lend-" + x), z), BooleanEntry(l, true)]
176176 }
177177 else throw("Strict value is not equal to itself.")
178178 }
179179 else throw("Strict value is not equal to itself.")
180180 }))
181181
182182
183183
184184 @Callable(H)
185185 func initRent (w,ab) = valueOrElse(r(H.payments, E(w, ab)), {
186186 let x = toString(w)
187187 let z = getStringValue(("lend-" + x))
188188 let ac = D(w)
189189 let ad = toString(ac)
190190 let B = {
191191 let C = invoke(f, "readByJSONKey", [z, "timeUnitSeconds"], nil)
192192 if ($isInstanceOf(C, "String"))
193193 then C
194194 else throw(($getType(C) + " couldn't be cast to String"))
195195 }
196196 if ((B == B))
197197 then {
198198 let ae = parseIntValue(B)
199199 if ((ae == ae))
200200 then {
201201 let af = {
202202 let C = invoke(f, "makeJSON", [["customer", "timeUnitCount", "startTimestamp", "endTimestamp", "closed"], [toString(H.caller), toString(ab), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (ae * ab))), "0"]], nil)
203203 if ($isInstanceOf(C, "String"))
204204 then C
205205 else throw(($getType(C) + " couldn't be cast to String"))
206206 }
207207 if ((af == af))
208208 then [IntegerEntry(("lend-rentCount-" + x), (ac + 1)), StringEntry(((("lend-rent-" + x) + "-") + ad), af)]
209209 else throw("Strict value is not equal to itself.")
210210 }
211211 else throw("Strict value is not equal to itself.")
212212 }
213213 else throw("Strict value is not equal to itself.")
214214 })
215215
216216
217217
218218 @Callable(H)
219219 func test (l) = [BooleanEntry("Debug", valueOrElse(getBoolean(l), false))]
220220
221221

github/deemru/w8io/169f3d6 
153.78 ms