tx · 61NyCocQY9G7Qy4T1QaP9WeijbMBsZE7oP41BTDE5QVn

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00300000 Waves

2023.03.15 23:43 [2491632] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "61NyCocQY9G7Qy4T1QaP9WeijbMBsZE7oP41BTDE5QVn", "fee": 300000, "feeAssetId": null, "timestamp": 1678912991154, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "5uhNFvU5tTkGCyevgYykvNDFSTTX3YYWULkxkoaVjXVjX8CukaKFEmwxzzZ7rotYBbmLr7kkDDqnwcyQ7Yo1EiHS" ], "script": "base64:BgIyCAISBAoCGBgSBAoCGBgSAwoBCBIDCgEIEgQKAggIEgUKAwIICBIFCgMICAgSBAoCCAgHAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwIOY29sbGVjdGlvbk5hbWUABnN5bWJvbAkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwIGc3ltYm9sAAtkZXNjcmlwdGlvbgkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwILZGVzY3JpcHRpb24AC3RvdGFsQW1vdW50CQERQGV4dHJOYXRpdmUoMTA1MCkCBQR0aGlzAgt0b3RhbEFtb3VudAAIZEFwcEpzb24JAQdBZGRyZXNzAQkA2QQBAiMzTXJHYVpWUmhrbkVHZkhKMTl0dFVQTm5EUm9GcWNIaFZONwEMb25seUludGVybmFsAQZjYWxsZXIDCQAAAgUGY2FsbGVyBQR0aGlzBQR1bml0CQACAQIST25seSBpbnRlcm5hbCBjYWxsAQ10cmFuc2Zlck9yTm90AgJ0bwdhc3NldElkAwkAAAIFAnRvBQR0aGl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5AgIGc3ltYm9sBQZzeW1ib2wJAMwIAgkBC1N0cmluZ0VudHJ5AgILZGVzY3JpcHRpb24FC2Rlc2NyaXB0aW9uCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgt0b3RhbEFtb3VudAAABQNuaWwBaQEEbWludAICdG8IdG9rZW5VUkkJAQt2YWx1ZU9yRWxzZQIJAQxvbmx5SW50ZXJuYWwBCAUBaQZjYWxsZXIEB3Rva2VuSWQJAGQCBQt0b3RhbEFtb3VudAABBAdwcmVOYW1lCQCsAgIJAKwCAgUGc3ltYm9sAgEjCQCkAwEFB3Rva2VuSWQEBG5hbWUDCQBnAgAQCQCxAgEFB3ByZU5hbWUFB3ByZU5hbWUJAKQDAQUHdG9rZW5JZAQFYXNzZXQJAMMIBwUEbmFtZQkArAICCQCsAgICBnt1cmk6IgUIdG9rZW5VUkkCAiJ9AAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIJAMwIAgUFYXNzZXQJAMwIAgUIdHJhbnNmZXIJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50BQd0b2tlbklkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBG5hbWUFCHRva2VuVVJJBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AZ/Pf6g==", "height": 2491632, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gcf3pTUDCBpcqsfq7Kv7F6P8JyVR612DM4xHUpawr1NX Next: 3MUtGhtza3K6CKbrVstgxwxzuobo4pFGAnwTijvSrnQm Diff:
OldNewDifferences
7070 func setUser (j,r,s) = valueOrElse(f(k.caller), {
7171 let n = invoke(e, "makeJSON", [["user", "expires"], [r, s]], nil)
7272 if ((n == n))
73- then $Tuple2([StringEntry("userOf-assetId", {
73+ then $Tuple2([StringEntry(("userOf-" + toUtf8String(j)), {
7474 let t = n
7575 if ($isInstanceOf(t, "String"))
7676 then t
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = getStringValue(this, "collectionName")
55
66 let b = getStringValue(this, "symbol")
77
88 let c = getStringValue(this, "description")
99
1010 let d = getIntegerValue(this, "totalAmount")
1111
1212 let e = Address(fromBase58String("3MrGaZVRhknEGfHJ19ttUPNnDRoFqcHhVN7"))
1313
1414 func f (g) = if ((g == this))
1515 then unit
1616 else throw("Only internal call")
1717
1818
1919 func h (i,j) = if ((i == this))
2020 then StringEntry("костыль", "костыль")
2121 else ScriptTransfer(i, 1, j)
2222
2323
2424 @Callable(k)
2525 func makeJSONInternal (l,m) = valueOrElse(f(k.caller), {
2626 let n = invoke(e, "makeJSON", [l, m], nil)
2727 if ((n == n))
2828 then $Tuple2(nil, n)
2929 else throw("Strict value is not equal to itself.")
3030 })
3131
3232
3333
3434 @Callable(k)
3535 func addToJSONInternal (l,m) = valueOrElse(f(k.caller), {
3636 let n = invoke(e, "addToJSON", [l, m], nil)
3737 if ((n == n))
3838 then $Tuple2(nil, n)
3939 else throw("Strict value is not equal to itself.")
4040 })
4141
4242
4343
4444 @Callable(k)
4545 func readByJSONKeyInternal (o) = valueOrElse(f(k.caller), {
4646 let n = invoke(e, "readByJSONKey", [o], nil)
4747 if ((n == n))
4848 then $Tuple2(nil, n)
4949 else throw("Strict value is not equal to itself.")
5050 })
5151
5252
5353
5454 @Callable(k)
5555 func deleteByJSONKeyInternal (o) = valueOrElse(f(k.caller), {
5656 let n = invoke(e, "deleteByJSONKey", [o], nil)
5757 if ((n == n))
5858 then $Tuple2(nil, n)
5959 else throw("Strict value is not equal to itself.")
6060 })
6161
6262
6363
6464 @Callable(k)
6565 func storageJsonInternal (p,q) = valueOrElse(f(k.caller), [StringEntry(p, q)])
6666
6767
6868
6969 @Callable(k)
7070 func setUser (j,r,s) = valueOrElse(f(k.caller), {
7171 let n = invoke(e, "makeJSON", [["user", "expires"], [r, s]], nil)
7272 if ((n == n))
73- then $Tuple2([StringEntry("userOf-assetId", {
73+ then $Tuple2([StringEntry(("userOf-" + toUtf8String(j)), {
7474 let t = n
7575 if ($isInstanceOf(t, "String"))
7676 then t
7777 else throw(($getType(t) + " couldn't be cast to String"))
7878 })], n)
7979 else throw("Strict value is not equal to itself.")
8080 })
8181
8282
8383
8484 @Callable(k)
8585 func init (a,b,c) = valueOrElse(f(k.caller), [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)])
8686
8787
8888
8989 @Callable(k)
9090 func mint (i,u) = valueOrElse(f(k.caller), {
9191 let v = (d + 1)
9292 let w = ((b + "#") + toString(v))
9393 let x = if ((16 >= size(w)))
9494 then w
9595 else toString(v)
9696 let y = Issue(x, (("{uri:\"" + u) + "\"}"), 1, 0, false, unit, height)
9797 let j = calculateAssetId(y)
9898 let z = Address(fromBase58String(i))
9999 let A = h(z, j)
100100 if ((A == A))
101101 then [y, A, IntegerEntry("totalAmount", v), StringEntry(x, u)]
102102 else throw("Strict value is not equal to itself.")
103103 })
104104
105105

github/deemru/w8io/169f3d6 
63.58 ms