tx · AcxkX1opERorSPW8ZZD8EULgYMU6K2eTp4pyKvvdXUxf 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW: -0.01400000 Waves 2021.12.10 17:08 [1828236] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves
{ "type": 13, "id": "AcxkX1opERorSPW8ZZD8EULgYMU6K2eTp4pyKvvdXUxf", "fee": 1400000, "feeAssetId": null, "timestamp": 1639145318816, "version": 2, "chainId": 84, "sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW", "senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv", "proofs": [ "42HAGm42dsMP8HBqjbGTsh7yEbFCAfUYfdgvjXZzGU5hCAfBobvUazXuKrfJNxF6E916sarRSaWGjLXtuJ1QhUw9" ], "script": "base64:AAIFAAAAAAAAAA4IAhIDCgEIEgUKAwgBCAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAgAAAAFpAAAABXByaWNlBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgBi7WREUMKdJnPRpCCOky/DKzvRQlW1GeENSHUVBimooDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAUAAAAFcHJpY2UHCQAAAgAAAAECAAAAE0JhZCBhc3NldCBvciBhbW91bnQAA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eXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CY6ilg==", "height": 1828236, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BuoKREhqKiQAThykyeFCT6KqZ6x1dMKyfW8oWfq7LaPK Next: Bv46xVYWbJrXpmE7J4cc9VFmcM98YftHr5FBYSmXKFyF Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | - | let d = base58' | |
5 | + | let d = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' | |
6 | 6 | if ((size(b.payments) == 0)) | |
7 | 7 | then throw("Payment not attached") | |
8 | 8 | else { | |
65 | 65 | let A = (z / 2) | |
66 | 66 | let B = (z / 4) | |
67 | 67 | let C = (z / 4) | |
68 | - | let D = base58' | |
68 | + | let D = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' | |
69 | 69 | let E = addressFromStringValue(v[0]) | |
70 | 70 | let F = addressFromStringValue(v[2]) | |
71 | 71 | let n = Issue(m, y, 1, 0, false) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | - | let d = base58' | |
5 | + | let d = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' | |
6 | 6 | if ((size(b.payments) == 0)) | |
7 | 7 | then throw("Payment not attached") | |
8 | 8 | else { | |
9 | 9 | let e = b.payments[0] | |
10 | 10 | let f = e.assetId | |
11 | 11 | if ($isInstanceOf(f, "ByteVector")) | |
12 | 12 | then { | |
13 | 13 | let g = f | |
14 | 14 | if ((g == d)) | |
15 | 15 | then (e.amount >= c) | |
16 | 16 | else false | |
17 | 17 | } | |
18 | 18 | else throw("Bad asset or amount") | |
19 | 19 | } | |
20 | 20 | } | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | @Callable(b) | |
24 | 24 | func mintme (h) = { | |
25 | 25 | let i = { | |
26 | 26 | let f = getInteger(this, "counter") | |
27 | 27 | if ($isInstanceOf(f, "Int")) | |
28 | 28 | then { | |
29 | 29 | let j = f | |
30 | 30 | (j + 1) | |
31 | 31 | } | |
32 | 32 | else 0 | |
33 | 33 | } | |
34 | 34 | let k = toString(i) | |
35 | 35 | let l = "MDST-NFT #" | |
36 | 36 | let m = (l + k) | |
37 | 37 | let n = Issue(m, h, 1, 0, false) | |
38 | 38 | let o = calculateAssetId(n) | |
39 | 39 | [n, ScriptTransfer(b.caller, n.quantity, o), IntegerEntry("counter", i)] | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(b) | |
45 | 45 | func buynft (p,q,r) = { | |
46 | 46 | let k = toString(q) | |
47 | 47 | let m = ("MDST-COPY#" + k) | |
48 | 48 | let h = "kiki bikit" | |
49 | 49 | let s = fromBase58String(p) | |
50 | 50 | let t = { | |
51 | 51 | let f = assetInfo(s) | |
52 | 52 | if ($isInstanceOf(f, "Asset")) | |
53 | 53 | then { | |
54 | 54 | let u = f | |
55 | 55 | u.description | |
56 | 56 | } | |
57 | 57 | else throw("Can't find this NFT") | |
58 | 58 | } | |
59 | 59 | let v = split(t, ",") | |
60 | 60 | let w = split(v[4], "=") | |
61 | 61 | let x = ((w[0] + "=") + r) | |
62 | 62 | let y = ((((((((((((((((((((((v[0] + ",") + v[1]) + ",") + v[2]) + ",") + v[3]) + ",") + v[4]) + ",") + x) + ",") + v[6]) + ",") + "false") + ",") + v[8]) + ",") + v[9]) + ",") + k) + ",") + v[11]) | |
63 | 63 | let c = v[8] | |
64 | 64 | let z = (size(b.payments) * 10000) | |
65 | 65 | let A = (z / 2) | |
66 | 66 | let B = (z / 4) | |
67 | 67 | let C = (z / 4) | |
68 | - | let D = base58' | |
68 | + | let D = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT' | |
69 | 69 | let E = addressFromStringValue(v[0]) | |
70 | 70 | let F = addressFromStringValue(v[2]) | |
71 | 71 | let n = Issue(m, y, 1, 0, false) | |
72 | 72 | let o = calculateAssetId(n) | |
73 | 73 | let G = parseIntValue(v[9]) | |
74 | 74 | if (if ((q > G)) | |
75 | 75 | then (G != 0) | |
76 | 76 | else false) | |
77 | 77 | then throw("Mint impossible, max NFT amount exceeded") | |
78 | 78 | else if (a(b, z)) | |
79 | 79 | then [n, ScriptTransfer(b.caller, 1, o), ScriptTransfer(E, A, D), ScriptTransfer(F, B, D)] | |
80 | 80 | else throw("Wrong payment amount or asset") | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | @Verifier(H) | |
85 | 85 | func I () = sigVerify(H.bodyBytes, H.proofs[0], H.senderPublicKey) | |
86 | 86 |
github/deemru/w8io/169f3d6 57.72 ms ◑