tx · 6birTWDgZmQjC2GUdwdVaMHSA8hEZv68txYdwfFqpQgK
3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW: -0.01400000 Waves
2021.12.05 12:28 [1820788] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves
{
"type": 13,
"id": "6birTWDgZmQjC2GUdwdVaMHSA8hEZv68txYdwfFqpQgK",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1638696502871,
"version": 2,
"chainId": 84,
"sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW",
"senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv",
"proofs": [
"3dSrQHhQEwxpaghwCidgc69Q5uq4HTwi7vrn41UDuP8rBgBGtT1ao2G55yhy1sPAqaDBKxkXriwmZziVUWENzTZ9"
],
"script": "base64:AAIEAAAAAAAAAA4IAhIDCgEIEgUKAwECCAAAAAAAAAACAAAAAWkBAAAABm1pbnRtZQAAAAEAAAAEaW5mbwQAAAAHY291bnRlcgQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAdjb3VudGVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAJAABkAAAAAgUAAAABYQAAAAAAAAAAAQAAAAAAAAAAAAQAAAACc3QJAAGkAAAAAQUAAAAHY291bnRlcgQAAAAEbmFtZQIAAAAKTURTVC1ORlQgIwQAAAAFZm5hbWUJAAEsAAAAAgUAAAAEbmFtZQUAAAACc3QEAAAABWlzc3VlCQAEQgAAAAUFAAAABWZuYW1lBQAAAARpbmZvAAAAAAAAAAABAAAAAAAAAAAABwQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgUAAAAFaXNzdWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCAUAAAAFaXNzdWUAAAAIcXVhbnRpdHkFAAAAAmlkCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAdjb3VudGVyBQAAAAdjb3VudGVyBQAAAANuaWwAAAABaQEAAAAGYnV5bmZ0AAAAAwAAAANjbnQAAAAFaWRuZnQAAAAEaW5mbwQAAAAFZm5hbWUCAAAADU1EU1QtTkZULUNPUFkEAAAAAXgEAAAAByRtYXRjaDAJAAPsAAAAAQUAAAAFaWRuZnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABUFzc2V0BAAAAAVhc3NldAUAAAAHJG1hdGNoMAgFAAAABWFzc2V0AAAAC2Rlc2NyaXB0aW9uCQAAAgAAAAECAAAAEENhbid0IGZpbmQgYXNzZXQEAAAABWlzc3VlCQAEQgAAAAUFAAAABWZuYW1lBQAAAARpbmZvAAAAAAAAAAABAAAAAAAAAAAABwQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgkAAAIAAAABCQABLAAAAAICAAAAB3RoZSB4IDoFAAAAAXgFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5GEyMTQ==",
"height": 1820788,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C7ycA9cnPCjjo7siCxrsgus5DGVjvyPcjiLRNQTKPXog
Next: 4q9ztFLMyBg218cA6nrwBTtXMnQ7TKwCxZJmU1CY2A8k
Diff:
Old | New | | Differences |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
| 23 | + | |
---|
| 24 | + | @Callable(i) |
---|
| 25 | + | func buynft (cnt,idnft,info) = { |
---|
| 26 | + | let fname = "MDST-NFT-COPY" |
---|
| 27 | + | let x = match assetInfo(idnft) { |
---|
| 28 | + | case asset: Asset => |
---|
| 29 | + | asset.description |
---|
| 30 | + | case _ => |
---|
| 31 | + | throw("Can't find asset") |
---|
| 32 | + | } |
---|
| 33 | + | let issue = Issue(fname, info, 1, 0, false) |
---|
| 34 | + | let id = calculateAssetId(issue) |
---|
| 35 | + | [throw(("the x :" + x))] |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|
23 | 39 | | @Verifier(tx) |
---|
24 | 40 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 41 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func mintme (info) = { |
---|
8 | 8 | | let counter = match getInteger(this, "counter") { |
---|
9 | 9 | | case a: Int => |
---|
10 | 10 | | (a + 1) |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | 0 |
---|
13 | 13 | | } |
---|
14 | 14 | | let st = toString(counter) |
---|
15 | 15 | | let name = "MDST-NFT #" |
---|
16 | 16 | | let fname = (name + st) |
---|
17 | 17 | | let issue = Issue(fname, info, 1, 0, false) |
---|
18 | 18 | | let id = calculateAssetId(issue) |
---|
19 | 19 | | [issue, ScriptTransfer(i.caller, issue.quantity, id), IntegerEntry("counter", counter)] |
---|
20 | 20 | | } |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
| 23 | + | |
---|
| 24 | + | @Callable(i) |
---|
| 25 | + | func buynft (cnt,idnft,info) = { |
---|
| 26 | + | let fname = "MDST-NFT-COPY" |
---|
| 27 | + | let x = match assetInfo(idnft) { |
---|
| 28 | + | case asset: Asset => |
---|
| 29 | + | asset.description |
---|
| 30 | + | case _ => |
---|
| 31 | + | throw("Can't find asset") |
---|
| 32 | + | } |
---|
| 33 | + | let issue = Issue(fname, info, 1, 0, false) |
---|
| 34 | + | let id = calculateAssetId(issue) |
---|
| 35 | + | [throw(("the x :" + x))] |
---|
| 36 | + | } |
---|
| 37 | + | |
---|
| 38 | + | |
---|
23 | 39 | | @Verifier(tx) |
---|
24 | 40 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
25 | 41 | | |
---|