tx · 3VCc5uQcFeUdbY4tMRZ7NRrHn1wCWnzdxsaauttFtm6h

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00500000 Waves

2023.03.16 23:41 [2493076] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "3VCc5uQcFeUdbY4tMRZ7NRrHn1wCWnzdxsaauttFtm6h", "fee": 500000, "feeAssetId": null, "timestamp": 1678999280387, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "2TgN9Va3wPVJKjcyfGztLm9TyccEnX3J1iCxrKVGou7K3noBdLHSF4wEeWjLWwjLgVoVhBbCHx4MDfjfLcGFpwf2" ], "script": "base64:BgJNCAISBAoCGBgSBQoDCBgYEgQKAggIEgQKAggIEgQKAggIEgUKAwgICBIDCgECEgMKAQgSBAoCCAgSBQoDCAgIEgQKAggIEgYKBAgBAQEKAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAMdG9rZW5QYXltZW50CQEHQWRkcmVzcwEJARFAZXh0ck5hdGl2ZSgxMDU3KQECDHRva2VuUGF5bWVudAEMb25seUludGVybmFsAQZjYWxsZXIDCQAAAgUGY2FsbGVyBQR0aGlzBQR1bml0CQAC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DCQABAgUBQAIGU3RyaW5nBQFACQACAQkArAICCQADAQUBQAIbIGNvdWxkbid0IGJlIGNhc3QgdG8gU3RyaW5nCQDMCAIFCG5ld0NvdW50BQNuaWwFA25pbAUDbmlsAwkAAAIFBmluc2VydAUGaW5zZXJ0CQDMCAIJAQtTdHJpbmdFbnRyeQICBUxlbmRzCgABQAUGaW5zZXJ0AwkAAQIFAUACBlN0cmluZwUBQAkAAgEJAKwCAgkAAwEFAUACGyBjb3VsZG4ndCBiZSBjYXN0IHRvIFN0cmluZwUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAOxBoBU=", "height": 2493076, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ALczZExcR2LLsZVUyYrH5cGS96bZuzFZ3xBYNAxd7kW Next: Cv8UQGkAR6EJGw2BZSPAcoQFRAuBg8gn3wsSms1ucgoa Diff:
OldNewDifferences
134134 let D = l(k)
135135 let J = D.description
136136 let K = getStringValue("Lends")
137- let L = invoke(e, "deleteByJSONKey", ["count"], nil)
137+ let L = invoke(e, "deleteByJSONKey", [K, "count"], nil)
138138 let M = ( let x = L
139139 if ($isInstanceOf(x, "(String, String)"))
140140 then x
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 = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1313
1414 let f = Address(getBinaryValue("tokenPayment"))
1515
1616 func g (h) = if ((h == this))
1717 then unit
1818 else throw("Only internal call")
1919
2020
2121 func i (j,k) = if ((j == this))
2222 then StringEntry("костыль", "костыль")
2323 else ScriptTransfer(j, 1, k)
2424
2525
2626 func l (k) = valueOrErrorMessage(assetInfo(fromBase58String(k)), "Can't find asset by asset id")
2727
2828
2929 func m (h,k) = if ((assetBalance(h, fromBase58String(k)) == 1))
3030 then unit
3131 else throw("Only asset owner")
3232
3333
3434 @Callable(n)
3535 func makeJSONInternal (o,p) = valueOrElse(g(n.caller), {
3636 let q = invoke(e, "makeJSON", [o, p], nil)
3737 if ((q == q))
3838 then $Tuple2(nil, q)
3939 else throw("Strict value is not equal to itself.")
4040 })
4141
4242
4343
4444 @Callable(n)
4545 func addToJSONInternal (r,o,p) = valueOrElse(g(n.caller), {
4646 let q = invoke(e, "addToJSON", [r, o, p], nil)
4747 if ((q == q))
4848 then $Tuple2(nil, q)
4949 else throw("Strict value is not equal to itself.")
5050 })
5151
5252
5353
5454 @Callable(n)
5555 func readByJSONKeyInternal (r,s) = valueOrElse(g(n.caller), {
5656 let q = invoke(e, "readByJSONKey", [r, s], nil)
5757 if ((q == q))
5858 then $Tuple2(nil, q)
5959 else throw("Strict value is not equal to itself.")
6060 })
6161
6262
6363
6464 @Callable(n)
6565 func deleteByJSONKeyInternal (r,s) = valueOrElse(g(n.caller), {
6666 let q = invoke(e, "deleteByJSONKey", [r, s], nil)
6767 if ((q == q))
6868 then $Tuple2(nil, q)
6969 else throw("Strict value is not equal to itself.")
7070 })
7171
7272
7373
7474 @Callable(n)
7575 func storageJsonInternal (t,u) = valueOrElse(g(n.caller), [StringEntry(t, u)])
7676
7777
7878
7979 @Callable(n)
8080 func setUser (k,v,w) = {
8181 let q = invoke(e, "makeJSON", [["user", "expires"], [v, w]], nil)
8282 if ((q == q))
8383 then $Tuple2([StringEntry(("userOf-" + k), {
8484 let x = q
8585 if ($isInstanceOf(x, "String"))
8686 then x
8787 else throw(($getType(x) + " couldn't be cast to String"))
8888 })], q)
8989 else throw("Strict value is not equal to itself.")
9090 }
9191
9292
9393
9494 @Callable(n)
9595 func setTokenPayment (k) = valueOrElse(g(n.caller), [BinaryEntry("tokenPayment", k)])
9696
9797
9898
9999 @Callable(n)
100100 func deleteValueByKey (s) = valueOrElse(g(n.caller), [DeleteEntry(s)])
101101
102102
103103
104104 @Callable(n)
105105 func setString (s,y) = valueOrElse(g(n.caller), [StringEntry(s, y)])
106106
107107
108108
109109 @Callable(n)
110110 func init (a,b,c) = valueOrElse(g(n.caller), [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)])
111111
112112
113113
114114 @Callable(n)
115115 func mint (j,z) = valueOrElse(g(n.caller), {
116116 let A = (d + 1)
117117 let B = ((b + "#") + toString(A))
118118 let C = if ((16 >= size(B)))
119119 then B
120120 else toString(A)
121121 let D = Issue(C, (("{uri:\"" + z) + "\"}"), 1, 0, false, unit, height)
122122 let k = calculateAssetId(D)
123123 let E = Address(fromBase58String(j))
124124 let F = i(E, k)
125125 if ((F == F))
126126 then [D, F, IntegerEntry("totalAmount", A), StringEntry(C, z)]
127127 else throw("Strict value is not equal to itself.")
128128 })
129129
130130
131131
132132 @Callable(n)
133133 func initLend (k,G,H,I) = valueOrElse(m(n.caller, k), {
134134 let D = l(k)
135135 let J = D.description
136136 let K = getStringValue("Lends")
137- let L = invoke(e, "deleteByJSONKey", ["count"], nil)
137+ let L = invoke(e, "deleteByJSONKey", [K, "count"], nil)
138138 let M = ( let x = L
139139 if ($isInstanceOf(x, "(String, String)"))
140140 then x
141141 else throw(($getType(x) + " couldn't be cast to (String, String)")))._1
142142 let N = toString((parseIntValue(M) + 1))
143143 let O = invoke(e, "makeJSON", [["supportedInterface", "assetdId", "tokenUri", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed", "rents"], ["0", k, J, toString(n.caller), toString(G), toString(H), toString(I), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (G * I))), "0", "0", "{\"count\":\"0\"}"]], nil)
144144 if ((O == O))
145145 then {
146146 let P = invoke(e, "addToJSON", [( let x = L
147147 if ($isInstanceOf(x, "(String, String)"))
148148 then x
149149 else throw(($getType(x) + " couldn't be cast to (String, String)")))._2, [M, "count"], [{
150150 let x = O
151151 if ($isInstanceOf(x, "String"))
152152 then x
153153 else throw(($getType(x) + " couldn't be cast to String"))
154154 }, N]], nil)
155155 if ((P == P))
156156 then [StringEntry("Lends", {
157157 let x = P
158158 if ($isInstanceOf(x, "String"))
159159 then x
160160 else throw(($getType(x) + " couldn't be cast to String"))
161161 })]
162162 else throw("Strict value is not equal to itself.")
163163 }
164164 else throw("Strict value is not equal to itself.")
165165 })
166166
167167

github/deemru/w8io/169f3d6 
34.66 ms