tx · 26WaF8hpDe22Bmq9WaiBZcHf1AGwCy85d9MrKxSRe4sC

3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn:  -0.00200000 Waves

2023.03.20 19:48 [2498589] smart account 3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn > SELF 0.00000000 Waves

{ "type": 13, "id": "26WaF8hpDe22Bmq9WaiBZcHf1AGwCy85d9MrKxSRe4sC", "fee": 200000, "feeAssetId": null, "timestamp": 1679330929108, "version": 2, "chainId": 84, "sender": "3MxVYj6ScMArhAamy7nB6b342kh1Pso1LTn", "senderPublicKey": "CZeucjRLCKrkiP9zuj9KbLe23Wv9DywFzHBqNDnte51B", "proofs": [ "2G2wtwN7NH4Z7XHFCxto7sr9ggXX5PiWxEZ44GfHfsRwpimC7891cMHsyNx6fEnG43utVndV9inLMLTcqfEhNpRE" ], "script": "base64:BgIbCAISBAoCCAgSBAoCCAESBgoECAgICBIDCgEICAAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDU4KQECDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDU4KQECBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDU4KQECC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTUpAQILdG90YWxBbW91bnQAB2Jhc2VVUkkJARFAZXh0ck5hdGl2ZSgxMDU4KQECB2Jhc2VVUkkACGRBcHBKc29uCQEHQWRkcmVzcwEJANkEAQIjM01yR2FaVlJoa25FR2ZISjE5dHRVUE5uRFJvRnFjSGhWTjcBDG9ubHlJbnRlcm5hbAEGY2FsbGVyAwkAAAIFBmNhbGxlcgUEdGhpcwUEdW5pdAkAAgECEk9ubHkgaW50ZXJuYWwgY2FsbAENdHJhbnNmZXJPck5vdAICdG8HYXNzZXRJZAMJAAACBQJ0bwUEdGhpcwkBC1N0cmluZ0VudHJ5AgIEc210aAIEc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QACAQkArAICCQADAQUBQAIbIGNvdWxkbid0IGJlIGNhc3QgdG8gU3RyaW5nBAVhc3NldAkAwwgHBQRuYW1lBQRqc29uAAEAAAcFBHVuaXQFBmhlaWdodAQHYXNzZXRJZAkAuAgBBQVhc3NldAQJdG9BZGRyZXNzCQEHQWRkcmVzcwEJANkEAQUCdG8ECHRyYW5zZmVyCQENdHJhbnNmZXJPck5vdAIFCXRvQWRkcmVzcwUHYXNzZXRJZAMJAAACBQh0cmFuc2ZlcgUIdHJhbnNmZXIJAMwIAgUFYXNzZXQJAMwIAgUIdHJhbnNmZXIJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50BQd0b2tlbklkCQDMCAIJAQtTdHJpbmdFbnRyeQIFBG5hbWUFCHRva2VuVVJJBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4A4M6/NA==", "height": 2498589, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2pjbj7gcdN28j3E7TGLGZ1rju7YtdcMfbnRB4B73dB12 Next: 7SBUdGTcTy5aP7Zf2txRxBg8hxP5Hp3i9H72y2ntiHFF Diff:
OldNewDifferences
5858 let A = Address(fromBase58String(j))
5959 let B = i(A, k)
6060 if ((B == B))
61- then nil
61+ then [z, B, IntegerEntry("totalAmount", s), StringEntry(v, w)]
6262 else throw("Strict value is not equal to itself.")
6363 }
6464
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 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("smth", "smth")
2323 else ScriptTransfer(j, 1, k)
2424
2525
2626 @Callable(l)
2727 func setString (m,n) = [StringEntry(m, n)]
2828
2929
3030
3131 @Callable(l)
3232 func setInt (m,n) = [IntegerEntry(m, n)]
3333
3434
3535
3636 @Callable(l)
3737 func init (o,p,q,r) = valueOrElse(g(l.caller), [StringEntry("collectionName", o), StringEntry("symbol", p), StringEntry("description", q), IntegerEntry("totalAmount", 0), StringEntry("baseURI", r)])
3838
3939
4040
4141 @Callable(l)
4242 func mint (j) = {
4343 let s = (d + 1)
4444 let t = toString(s)
4545 let u = ((b + "#") + t)
4646 let v = if ((16 >= size(u)))
4747 then u
4848 else t
4949 let w = (e + t)
5050 let x = {
5151 let y = invoke(f, "makeJSON", [["tokenURI"], [w]], nil)
5252 if ($isInstanceOf(y, "String"))
5353 then y
5454 else throw(($getType(y) + " couldn't be cast to String"))
5555 }
5656 let z = Issue(v, x, 1, 0, false, unit, height)
5757 let k = calculateAssetId(z)
5858 let A = Address(fromBase58String(j))
5959 let B = i(A, k)
6060 if ((B == B))
61- then nil
61+ then [z, B, IntegerEntry("totalAmount", s), StringEntry(v, w)]
6262 else throw("Strict value is not equal to itself.")
6363 }
6464
6565

github/deemru/w8io/169f3d6 
28.00 ms