tx · 5e7c15hGuZsdghGiAQoJUFtM1ZqRvFa78adKnMEkPaZ9

3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb:  -0.00100000 Waves

2023.03.04 23:52 [2475817] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves

{ "type": 13, "id": "5e7c15hGuZsdghGiAQoJUFtM1ZqRvFa78adKnMEkPaZ9", "fee": 100000, "feeAssetId": null, "timestamp": 1677963133094, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "5CdmumGFvJp4nB48Q2rB3Ayeh3We9mtMdiZy8jSeECWJQUBS19RbQWuiKsDSERo3LbR2iCrk4KXTMfbQM6gcwENy" ], "script": "base64:BgIOCAISBAoCCAgSBAoCAggDAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwIOY29sbGVjdGlvbk5hbWUAC2Rlc2NyaXB0aW9uCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgtkZXNjcmlwdGlvbgALdG90YWxBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMCC3RvdGFsQW1vdW50AgFpAQRpbml0Ag5jb2xsZWN0aW9uTmFtZQtkZXNjcmlwdGlvbgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAMwIAgkBC1N0cmluZ0VudHJ5AgIOY29sbGVjdGlvbk5hbWUFDmNvbGxlY3Rpb25OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQICC2Rlc2NyaXB0aW9uBQtkZXNjcmlwdGlvbgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQAAAUDbmlsCQACAQIJb25seSBkQXBwAWkBBG1pbnQCAnRvCHRva2VuVVJJAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHdG9rZW5JZAkAZAIFC3RvdGFsQW1vdW50AAEEBG5hbWUJAKwCAgkArAICBQ5jb2xsZWN0aW9uTmFtZQIBIwkApAMBBQd0b2tlbklkBAVhc3NldAkAwwgHBQRuYW1lBQtkZXNjcmlwdGlvbgABAAAHBQR1bml0BQZoZWlnaHQEB2Fzc2V0SWQJALgIAQUFYXNzZXQECXRvQWRkcmVzcwkApwgBBQJ0bwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQl0b0FkZHJlc3MAAQUHYXNzZXRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECCW9ubHkgZEFwcAAasYkM", "height": 2475817, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Y1Fm1rKuAqP3JevgboeVX8ysoXdiqoLj5NYX4bWVBnK Next: HRQLv2DZ5TwWczCYZwpjV5TLxqr8DV3DEFCuKXE7DFS5 Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let a = getStringValue(this, "collectionName")
45
6+let b = getStringValue(this, "description")
57
6-@Callable(a)
7-func mint (b,c) = $Tuple2([Reissue(b, c, true)], unit)
8+let c = getIntegerValue(this, "totalAmount")
9+
10+@Callable(d)
11+func init (a,b) = if ((d.caller == this))
12+ then [StringEntry("collectionName", a), StringEntry("description", b), IntegerEntry("totalAmount", 0)]
13+ else throw("only dApp")
814
915
1016
11-@Callable(a)
12-func burn (b,c) = $Tuple2([Burn(b, c)], unit)
17+@Callable(d)
18+func mint (e,f) = if ((d.caller == this))
19+ then {
20+ let g = (c + 1)
21+ let h = ((a + "#") + toString(g))
22+ let i = Issue(h, b, 1, 0, false, unit, height)
23+ let j = calculateAssetId(i)
24+ let k = addressFromPublicKey(e)
25+[ScriptTransfer(k, 1, j), IntegerEntry("totalAmount", g), StringEntry(h, f)]
26+ }
27+ else throw("only dApp")
1328
1429

github/deemru/w8io/169f3d6 
43.59 ms