tx · 4Dv8i3bgz6kiw6hB3n21QJvcT2eJLZ1hkKYc546GkMBW
3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW: -0.01000000 Waves
2021.12.04 15:59 [1819560] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves
{
"type": 13,
"id": "4Dv8i3bgz6kiw6hB3n21QJvcT2eJLZ1hkKYc546GkMBW",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1638622761266,
"version": 2,
"chainId": 84,
"sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW",
"senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv",
"proofs": [
"ffNZhoW3dt8eGZYpNumyBr7UojwtGHSx4iVodpmVHF2mmr8QSZ5mhLzqMiERF8HpyBz8EbtVLRMh7zKyoVQAmTb"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAAGbWludG1lAAAAAQAAAARpbmZvBAAAAAdjb3VudGVyBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAB2NvdW50ZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAkAAGQAAAACBQAAAAFhAAAAAAAAAAABAAAAAAAAAAAABAAAAAJzdAkAAaQAAAABBQAAAAdjb3VudGVyBAAAAARuYW1lAgAAAApNRFNULU5GVCAjBAAAAAVmbmFtZQkAASwAAAACBQAAAARuYW1lBQAAAAJzdAQAAAAFaXNzdWUJAARCAAAABQUAAAAFZm5hbWUFAAAABGluZm8AAAAAAAAAAAEAAAAAAAAAAAAHBAAAAAJpZAkABDgAAAABBQAAAAVpc3N1ZQkABEwAAAACBQAAAAVpc3N1ZQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAVpc3N1ZQAAAAhxdWFudGl0eQUAAAACaWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB2NvdW50ZXIFAAAAB2NvdW50ZXIFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5aeQ9rA==",
"height": 1819560,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: HA4hnKE8vCMM7GHSuCZRpKuAH4wRcr184tC7heeeCEqi
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func mintme (info) = { |
---|
| 8 | + | let counter = match getInteger(this, "counter") { |
---|
| 9 | + | case a: Int => |
---|
| 10 | + | (a + 1) |
---|
| 11 | + | case _ => |
---|
| 12 | + | 0 |
---|
| 13 | + | } |
---|
| 14 | + | let st = toString(counter) |
---|
| 15 | + | let name = "MDST-NFT #" |
---|
| 16 | + | let fname = (name + st) |
---|
| 17 | + | let issue = Issue(fname, info, 1, 0, false) |
---|
| 18 | + | let id = calculateAssetId(issue) |
---|
| 19 | + | [issue, ScriptTransfer(i.caller, issue.quantity, id), IntegerEntry("counter", counter)] |
---|
| 20 | + | } |
---|
| 21 | + | |
---|
| 22 | + | |
---|
| 23 | + | @Verifier(tx) |
---|
| 24 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 25 | + | |
---|