tx · EELprxkvTDR2igkzDf4FJxbJnhpn3YPm1voU2cFGVrps

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00300000 Waves

2023.03.15 22:03 [2491535] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "EELprxkvTDR2igkzDf4FJxbJnhpn3YPm1voU2cFGVrps", "fee": 300000, "feeAssetId": null, "timestamp": 1678907062220, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "5os2VfwK5NFeM8aTpfvFwKzxoC512vnE8HZ8ZD3bR5NGbhPVS5K8GvTJkd937fZTnXNxpETYGLJRdZVNzCNvwrXq" ], "script": "base64:BgIrCAISBAoCGBgSBAoCGBgSAwoBCBIDCgEIEgQKAggIEgUKAwgICBIECgIICAgADmNvbGxlY3Rpb25OYW1lCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAg5jb2xsZWN0aW9uTmFtZQAGc3ltYm9sCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgZzeW1ib2wAC2Rlc2NyaXB0aW9uCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgtkZXNjcmlwdGlvbgALdG90YWxBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMCC3RvdGFsQW1vdW50AAhkQXBwSnNvbgkBB0FkZHJlc3MBCQDZBAECIzNNckdhWlZSaGtuRUdmSEoxOXR0VVBObkRSb0ZxY0hoVk43AQxvbmx5SW50ZXJuYWwBBmNhbGxlcgMJAAACBQZjYWxsZXIFBHRoaXMFBHVuaXQJAAIBAhJPbmx5IGludGVybmFsIGNhbGwBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJ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AiJ9AAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIJAMwIAgUFYXNzZXQJAMwIAgUIdHJhbnNmZXIJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50BQd0b2tlbklkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBG5hbWUFCHRva2VuVVJJBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4Aa4oYSg==", "height": 2491535, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F9NrXu4VauTXkaj3oC43Wci1jVZwGaoM2oiQepJkgQhD Next: 8ZT9HNgLMLuQ2KoLc8vFJct4pJ4a77gRVfyr535o1W7x Diff:
OldNewDifferences
6565
6666
6767 @Callable(n)
68+func storageJsonInternal (s,t) = valueOrElse(f(n.caller), [StringEntry(s, t)])
69+
70+
71+
72+@Callable(n)
6873 func init (a,b,c) = valueOrElse(f(n.caller), [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)])
6974
7075
7176
7277 @Callable(n)
73-func mint (i,s) = valueOrElse(f(n.caller), {
74- let t = (d + 1)
75- let u = ((b + "#") + toString(t))
76- let v = if ((16 >= size(u)))
77- then u
78- else toString(t)
79- let w = Issue(v, (("{uri:\"" + s) + "\"}"), 1, 0, false, unit, height)
80- let j = calculateAssetId(w)
81- let x = Address(fromBase58String(i))
82- let y = h(x, j)
83- if ((y == y))
84- then [w, y, IntegerEntry("totalAmount", t), StringEntry(v, s)]
78+func mint (i,u) = valueOrElse(f(n.caller), {
79+ let v = (d + 1)
80+ let w = ((b + "#") + toString(v))
81+ let x = if ((16 >= size(w)))
82+ then w
83+ else toString(v)
84+ let y = Issue(x, (("{uri:\"" + u) + "\"}"), 1, 0, false, unit, height)
85+ let j = calculateAssetId(y)
86+ let z = Address(fromBase58String(i))
87+ let A = h(z, j)
88+ if ((A == A))
89+ then [y, A, IntegerEntry("totalAmount", v), StringEntry(x, u)]
8590 else throw("Strict value is not equal to itself.")
8691 })
87-
88-
89-
90-@Callable(n)
91-func testStorageJson (z,o,p) = {
92- let q = invoke(this, "makeJSONInternal", [o, p], nil)
93- if ((q == q))
94- then $Tuple2([StringEntry(z, {
95- let A = q
96- if ($isInstanceOf(A, "String"))
97- then A
98- else throw(($getType(A) + " couldn't be cast to String"))
99- })], q)
100- else throw("Strict value is not equal to itself.")
101- }
10292
10393
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 func k (j,l,m) = throw()
2525
2626
2727 @Callable(n)
2828 func makeJSONInternal (o,p) = valueOrElse(f(n.caller), {
2929 let q = invoke(e, "makeJSON", [o, p], nil)
3030 if ((q == q))
3131 then $Tuple2(nil, q)
3232 else throw("Strict value is not equal to itself.")
3333 })
3434
3535
3636
3737 @Callable(n)
3838 func addToJSONInternal (o,p) = valueOrElse(f(n.caller), {
3939 let q = invoke(e, "addToJSON", [o, p], nil)
4040 if ((q == q))
4141 then $Tuple2(nil, q)
4242 else throw("Strict value is not equal to itself.")
4343 })
4444
4545
4646
4747 @Callable(n)
4848 func readByJSONKeyInternal (r) = valueOrElse(f(n.caller), {
4949 let q = invoke(e, "readByJSONKey", [r], nil)
5050 if ((q == q))
5151 then $Tuple2(nil, q)
5252 else throw("Strict value is not equal to itself.")
5353 })
5454
5555
5656
5757 @Callable(n)
5858 func deleteByJSONKeyInternal (r) = valueOrElse(f(n.caller), {
5959 let q = invoke(e, "deleteByJSONKey", [r], nil)
6060 if ((q == q))
6161 then $Tuple2(nil, q)
6262 else throw("Strict value is not equal to itself.")
6363 })
6464
6565
6666
6767 @Callable(n)
68+func storageJsonInternal (s,t) = valueOrElse(f(n.caller), [StringEntry(s, t)])
69+
70+
71+
72+@Callable(n)
6873 func init (a,b,c) = valueOrElse(f(n.caller), [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)])
6974
7075
7176
7277 @Callable(n)
73-func mint (i,s) = valueOrElse(f(n.caller), {
74- let t = (d + 1)
75- let u = ((b + "#") + toString(t))
76- let v = if ((16 >= size(u)))
77- then u
78- else toString(t)
79- let w = Issue(v, (("{uri:\"" + s) + "\"}"), 1, 0, false, unit, height)
80- let j = calculateAssetId(w)
81- let x = Address(fromBase58String(i))
82- let y = h(x, j)
83- if ((y == y))
84- then [w, y, IntegerEntry("totalAmount", t), StringEntry(v, s)]
78+func mint (i,u) = valueOrElse(f(n.caller), {
79+ let v = (d + 1)
80+ let w = ((b + "#") + toString(v))
81+ let x = if ((16 >= size(w)))
82+ then w
83+ else toString(v)
84+ let y = Issue(x, (("{uri:\"" + u) + "\"}"), 1, 0, false, unit, height)
85+ let j = calculateAssetId(y)
86+ let z = Address(fromBase58String(i))
87+ let A = h(z, j)
88+ if ((A == A))
89+ then [y, A, IntegerEntry("totalAmount", v), StringEntry(x, u)]
8590 else throw("Strict value is not equal to itself.")
8691 })
87-
88-
89-
90-@Callable(n)
91-func testStorageJson (z,o,p) = {
92- let q = invoke(this, "makeJSONInternal", [o, p], nil)
93- if ((q == q))
94- then $Tuple2([StringEntry(z, {
95- let A = q
96- if ($isInstanceOf(A, "String"))
97- then A
98- else throw(($getType(A) + " couldn't be cast to String"))
99- })], q)
100- else throw("Strict value is not equal to itself.")
101- }
10292
10393

github/deemru/w8io/169f3d6 
37.97 ms