tx · AenfRYX7bf7LxMKrWuj3kyEXfW2EfiuMZKBWyuFVSnBG

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.00400000 Waves

2023.03.21 17:43 [2499909] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "AenfRYX7bf7LxMKrWuj3kyEXfW2EfiuMZKBWyuFVSnBG", "fee": 400000, "feeAssetId": null, "timestamp": 1679409875017, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "2PezxBfwrbddnf2f5BbvSiRpbSm7bnLAdrQ837zR7Znqq2SMWaRdNadXyZ336JY2zU5yaoe71e6EfYGTWasrYKr3" ], "script": "base64:BgIpCAISBAoCCAgSBAoCCAESBgoECAgICBIDCgEIEgYKBAgBAQESBAoCAQEMAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTgpAQIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTgpAQIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAgt0b3RhbEFtb3VudAAHYmFzZVVSSQkBEUBleHRyTmF0aXZlKDEwNTgpAQIHYmFzZVVSSQAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwAJbGVuZENvdW50CQERQGV4dHJOYXRpdmUoMTA1NSkBAglsZW5kQ291bnQBDG9ubHlJbnRlcm5hbAEGY2FsbGVyAwkAAAIFBmNhbGxlcgUEdGhpcwUEdW5pdAkAAgECEk9ubHkgaW50ZXJuYWwgY2FsbAENdHJhbnNm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QFACQACAQkArAICCQADAQUBQAIbIGNvdWxkbid0IGJlIGNhc3QgdG8gU3RyaW5nAwkAAAIFCGxlbmRKc29uBQhsZW5kSnNvbgQMbGVuZElkU3RyaW5nCQCkAwEFCWxlbmRDb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgIJbGVuZENvdW50CQBkAgUJbGVuZENvdW50AAEJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgIPbGVuZC1yZW50Q291bnQtBQxsZW5kSWRTdHJpbmcAAAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgICBWxlbmQtBQxsZW5kSWRTdHJpbmcFCGxlbmRKc29uBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEIaW5pdFJlbnQCBmxlbmRJZA10aW1lVW5pdENvdW50BAxsZW5kSWRTdHJpbmcJAKQDAQUGbGVuZElkBAhsZW5kSnNvbgkBEUBleHRyTmF0aXZlKDEwNTgpAQkArAICAgVsZW5kLQUMbGVuZElkU3RyaW5nBAZyZW50SWQJAQxnZXRSZW50Q291bnQBBQZsZW5kSWQEDHJlbnRJZFN0cmluZwkApAMBBQZyZW50SWQFA25pbADe5gsV", "height": 2499909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8UiMVePqJm4ALSkmLfHV82qvU5gydmC6XoUjwnPHaKxd Next: CVBdkDABpciGSfextYZNwqaxkVEfLxi3rYB8TSw97goP Diff:
OldNewDifferences
115115 let L = getStringValue(("lend-" + q))
116116 let M = o(p)
117117 let N = toString(M)
118- let I = parseIntValue({
119- let E = invoke(f, "readByJSONKey", [L, "timeUnitSeconds"], nil)
120- if ($isInstanceOf(E, "String"))
121- then E
122- else throw(($getType(E) + " couldn't be cast to String"))
123- })
124- if ((I == I))
125- then nil
126- else throw("Strict value is not equal to itself.")
118+ nil
127119 }
128120
129121
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 = getIntegerValue("lendCount")
1717
1818 func h (i) = if ((i == this))
1919 then unit
2020 else throw("Only internal call")
2121
2222
2323 func j (k,l) = if ((k == this))
2424 then StringEntry("smth", "smth")
2525 else ScriptTransfer(k, 1, l)
2626
2727
2828 func m (l) = valueOrErrorMessage(assetInfo(fromBase58String(l)), "Can't find asset by asset id")
2929
3030
3131 func n (i,l) = if ((assetBalance(i, fromBase58String(l)) == 1))
3232 then unit
3333 else throw("Only asset owner")
3434
3535
3636 func o (p) = {
3737 let q = toString(p)
3838 getIntegerValue(("lend-rentCount-" + q))
3939 }
4040
4141
4242 @Callable(r)
4343 func setString (s,t) = [StringEntry(s, t)]
4444
4545
4646
4747 @Callable(r)
4848 func setInt (s,t) = [IntegerEntry(s, t)]
4949
5050
5151
5252 @Callable(r)
5353 func init (u,v,w,x) = valueOrElse(h(r.caller), [StringEntry("collectionName", u), StringEntry("symbol", v), StringEntry("description", w), IntegerEntry("totalAmount", 0), StringEntry("baseURI", x)])
5454
5555
5656
5757 @Callable(r)
5858 func mint (k) = {
5959 let y = (d + 1)
6060 let z = toString(y)
6161 let A = ((b + "#") + z)
6262 let B = if ((16 >= size(A)))
6363 then A
6464 else z
6565 let C = (e + z)
6666 let D = {
6767 let E = invoke(f, "makeJSON", [["tokenURI"], [C]], nil)
6868 if ($isInstanceOf(E, "String"))
6969 then E
7070 else throw(($getType(E) + " couldn't be cast to String"))
7171 }
7272 let F = Issue(B, D, 1, 0, false, unit, height)
7373 let l = calculateAssetId(F)
7474 let G = Address(fromBase58String(k))
7575 let H = j(G, l)
7676 if ((H == H))
7777 then [F, H, IntegerEntry("totalAmount", y), StringEntry(B, C)]
7878 else throw("Strict value is not equal to itself.")
7979 }
8080
8181
8282
8383 @Callable(r)
8484 func initLend (l,I,J,K) = valueOrElse(n(r.caller, l), {
8585 let F = m(l)
8686 let C = {
8787 let E = invoke(f, "readByJSONKey", [F.description, "tokenURI"], nil)
8888 if ($isInstanceOf(E, "String"))
8989 then E
9090 else throw(($getType(E) + " couldn't be cast to String"))
9191 }
9292 if ((C == C))
9393 then {
9494 let L = {
9595 let E = invoke(f, "makeJSON", [["supportedInterface", "assetdId", "tokenURI", "owner", "timeUnitSeconds", "timeUnitPrice", "timeUnitCount", "startTimestamp", "endTimestamp", "deposit", "claimed"], ["0", l, C, toString(r.caller), toString(I), toString(J), toString(K), toString(lastBlock.timestamp), toString((lastBlock.timestamp + (I * K))), "0", "0"]], nil)
9696 if ($isInstanceOf(E, "String"))
9797 then E
9898 else throw(($getType(E) + " couldn't be cast to String"))
9999 }
100100 if ((L == L))
101101 then {
102102 let q = toString(g)
103103 [IntegerEntry("lendCount", (g + 1)), IntegerEntry(("lend-rentCount-" + q), 0), StringEntry(("lend-" + q), L)]
104104 }
105105 else throw("Strict value is not equal to itself.")
106106 }
107107 else throw("Strict value is not equal to itself.")
108108 })
109109
110110
111111
112112 @Callable(r)
113113 func initRent (p,K) = {
114114 let q = toString(p)
115115 let L = getStringValue(("lend-" + q))
116116 let M = o(p)
117117 let N = toString(M)
118- let I = parseIntValue({
119- let E = invoke(f, "readByJSONKey", [L, "timeUnitSeconds"], nil)
120- if ($isInstanceOf(E, "String"))
121- then E
122- else throw(($getType(E) + " couldn't be cast to String"))
123- })
124- if ((I == I))
125- then nil
126- else throw("Strict value is not equal to itself.")
118+ nil
127119 }
128120
129121

github/deemru/w8io/169f3d6 
33.56 ms