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 |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | | - | @Verifier(k) |
---|
27 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 26 | + | |
---|
| 27 | + | @Callable(a) |
---|
| 28 | + | func buynft (k,l,b) = { |
---|
| 29 | + | let h = "MDST-NFT-COPY" |
---|
| 30 | + | let m = { |
---|
| 31 | + | let d = assetInfo(l) |
---|
| 32 | + | if ($isInstanceOf(d, "Asset")) |
---|
| 33 | + | then { |
---|
| 34 | + | let n = d |
---|
| 35 | + | n.description |
---|
| 36 | + | } |
---|
| 37 | + | else throw("Can't find asset") |
---|
| 38 | + | } |
---|
| 39 | + | let i = Issue(h, b, 1, 0, false) |
---|
| 40 | + | let j = calculateAssetId(i) |
---|
| 41 | + | [throw(("the x :" + m))] |
---|
| 42 | + | } |
---|
| 43 | + | |
---|
| 44 | + | |
---|
| 45 | + | @Verifier(o) |
---|
| 46 | + | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
28 | 47 | | |
---|
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(a) |
---|
7 | 7 | | func mintme (b) = { |
---|
8 | 8 | | let c = { |
---|
9 | 9 | | let d = getInteger(this, "counter") |
---|
10 | 10 | | if ($isInstanceOf(d, "Int")) |
---|
11 | 11 | | then { |
---|
12 | 12 | | let e = d |
---|
13 | 13 | | (e + 1) |
---|
14 | 14 | | } |
---|
15 | 15 | | else 0 |
---|
16 | 16 | | } |
---|
17 | 17 | | let f = toString(c) |
---|
18 | 18 | | let g = "MDST-NFT #" |
---|
19 | 19 | | let h = (g + f) |
---|
20 | 20 | | let i = Issue(h, b, 1, 0, false) |
---|
21 | 21 | | let j = calculateAssetId(i) |
---|
22 | 22 | | [i, ScriptTransfer(a.caller, i.quantity, j), IntegerEntry("counter", c)] |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | | - | @Verifier(k) |
---|
27 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 26 | + | |
---|
| 27 | + | @Callable(a) |
---|
| 28 | + | func buynft (k,l,b) = { |
---|
| 29 | + | let h = "MDST-NFT-COPY" |
---|
| 30 | + | let m = { |
---|
| 31 | + | let d = assetInfo(l) |
---|
| 32 | + | if ($isInstanceOf(d, "Asset")) |
---|
| 33 | + | then { |
---|
| 34 | + | let n = d |
---|
| 35 | + | n.description |
---|
| 36 | + | } |
---|
| 37 | + | else throw("Can't find asset") |
---|
| 38 | + | } |
---|
| 39 | + | let i = Issue(h, b, 1, 0, false) |
---|
| 40 | + | let j = calculateAssetId(i) |
---|
| 41 | + | [throw(("the x :" + m))] |
---|
| 42 | + | } |
---|
| 43 | + | |
---|
| 44 | + | |
---|
| 45 | + | @Verifier(o) |
---|
| 46 | + | func p () = sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey) |
---|
28 | 47 | | |
---|