tx · aEVosNB2ffYT7YuQkWwvmVMkRDURK88s8qUKX3ZJx35
3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW: -0.01400000 Waves
2021.12.05 14:34 [1820908] smart account 3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW > SELF 0.00000000 Waves
{
"type": 13,
"id": "aEVosNB2ffYT7YuQkWwvmVMkRDURK88s8qUKX3ZJx35",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1638704139529,
"version": 2,
"chainId": 84,
"sender": "3Mpv2qZ8P3tXj3uKwmw8ULr9yxANxbadQEW",
"senderPublicKey": "J7yipDGS56f1CWQUaHM6k8TXt1iWw3DrzeqjSEUqL4Uv",
"proofs": [
"5Q1TEoTRGegHNX7n79ctypxQjZQZLF8hyTskRZ3neRbhkG6QrHpmxNXiYE6rDGWC735jZxT8u3nH1kh8CcNgkVj7"
],
"script": "base64:AAIEAAAAAAAAABIIAhIDCgEIEgMKAQgSBAoCAQgAAAAAAAAAAwAAAAFpAQAAAAR0ZXN0AAAAAQAAAANpZHgEAAAAAWMCAAAALEVoaGVRYk1ncEM3cFc1WXVXNHV4Rkp5QjZQTWVzaVd1ZmJXa3FvVnRSMmZKBAAAAAFkCQABmwAAAAEFAAAAAWMEAAAAAWUJAAJYAAAAAQUAAAABZAQAAAADaWR5BQAAAAFlBAAAAAF4BAAAAAckbWF0Y2gwCQAD7AAAAAEFAAAAAWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABUFzc2V0BAAAAAVhc3NldAUAAAAHJG1hdGNoMAgFAAAABWFzc2V0AAAAC2Rlc2NyaXB0aW9uCQAAAgAAAAECAAAAEENhbid0IGZpbmQgYXNzZXQJAARMAAAAAgkAAAIAAAABCQABLAAAAAICAAAAB3RoZSB4IDoFAAAAAXgFAAAAA25pbAAAAAFpAQAAAAZtaW50bWUAAAABAAAABGluZm8EAAAAB2NvdW50ZXIEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAA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AAAAAAAAAAAABwQAAAACaWQJAAQ4AAAAAQUAAAAFaXNzdWUJAARMAAAAAgkAAAIAAAABCQABLAAAAAICAAAAB3RoZSB4IDoFAAAAAXgFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5z5zd0g==",
"height": 1820908,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AQ1SZsyKEYN28nuncMxgvviK3WHgZ59hDJ3EvkJyKbsV
Next: Dmymupc9K1LXX17ggKmVbXvBepSqkXsH58N7e7UqUCri
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func test (b) = { |
---|
8 | | - | let c = "test" |
---|
9 | | - | let d = "sometext" |
---|
10 | | - | let e = toBytes(b) |
---|
11 | | - | let f = toBase58String(e) |
---|
12 | | - | let g = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
13 | | - | let h = { |
---|
14 | | - | let i = assetInfo(g) |
---|
15 | | - | if ($isInstanceOf(i, "Asset")) |
---|
| 8 | + | let c = "EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ" |
---|
| 9 | + | let d = toBytes(c) |
---|
| 10 | + | let e = toBase58String(d) |
---|
| 11 | + | let f = e |
---|
| 12 | + | let g = { |
---|
| 13 | + | let h = assetInfo(d) |
---|
| 14 | + | if ($isInstanceOf(h, "Asset")) |
---|
16 | 15 | | then { |
---|
17 | | - | let j = i |
---|
18 | | - | j.description |
---|
| 16 | + | let i = h |
---|
| 17 | + | i.description |
---|
19 | 18 | | } |
---|
20 | 19 | | else throw("Can't find asset") |
---|
21 | 20 | | } |
---|
22 | | - | [throw(("the x :" + h))] |
---|
| 21 | + | [throw(("the x :" + g))] |
---|
23 | 22 | | } |
---|
24 | 23 | | |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|
27 | 26 | | @Callable(a) |
---|
28 | | - | func mintme (d) = { |
---|
| 27 | + | func mintme (j) = { |
---|
29 | 28 | | let k = { |
---|
30 | | - | let i = getInteger(this, "counter") |
---|
31 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 29 | + | let h = getInteger(this, "counter") |
---|
| 30 | + | if ($isInstanceOf(h, "Int")) |
---|
32 | 31 | | then { |
---|
33 | | - | let l = i |
---|
| 32 | + | let l = h |
---|
34 | 33 | | (l + 1) |
---|
35 | 34 | | } |
---|
36 | 35 | | else 0 |
---|
37 | 36 | | } |
---|
38 | 37 | | let m = toString(k) |
---|
39 | 38 | | let n = "MDST-NFT #" |
---|
40 | | - | let c = (n + m) |
---|
41 | | - | let o = Issue(c, d, 1, 0, false) |
---|
42 | | - | let p = calculateAssetId(o) |
---|
43 | | - | [o, ScriptTransfer(a.caller, o.quantity, p), IntegerEntry("counter", k)] |
---|
| 39 | + | let o = (n + m) |
---|
| 40 | + | let p = Issue(o, j, 1, 0, false) |
---|
| 41 | + | let q = calculateAssetId(p) |
---|
| 42 | + | [p, ScriptTransfer(a.caller, p.quantity, q), IntegerEntry("counter", k)] |
---|
44 | 43 | | } |
---|
45 | 44 | | |
---|
46 | 45 | | |
---|
47 | 46 | | |
---|
48 | 47 | | @Callable(a) |
---|
49 | | - | func buynft (q,r) = { |
---|
50 | | - | let c = "MDST-NFT-COPY" |
---|
51 | | - | let d = "kiki bikit" |
---|
52 | | - | let e = toBytes(r) |
---|
53 | | - | let f = toBase58String(e) |
---|
54 | | - | let s = fromBase58String(f) |
---|
55 | | - | let t = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
56 | | - | let h = { |
---|
57 | | - | let i = assetInfo(s) |
---|
58 | | - | if ($isInstanceOf(i, "Asset")) |
---|
| 48 | + | func buynft (r,s) = { |
---|
| 49 | + | let o = "MDST-NFT-COPY" |
---|
| 50 | + | let j = "kiki bikit" |
---|
| 51 | + | let c = toBytes(s) |
---|
| 52 | + | let e = toBase58String(c) |
---|
| 53 | + | let t = fromBase58String(e) |
---|
| 54 | + | let u = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
| 55 | + | let g = { |
---|
| 56 | + | let h = assetInfo(t) |
---|
| 57 | + | if ($isInstanceOf(h, "Asset")) |
---|
59 | 58 | | then { |
---|
60 | | - | let j = i |
---|
61 | | - | j.description |
---|
| 59 | + | let i = h |
---|
| 60 | + | i.description |
---|
62 | 61 | | } |
---|
63 | 62 | | else throw("Can't find asset") |
---|
64 | 63 | | } |
---|
65 | | - | let o = Issue(c, d, 1, 0, false) |
---|
66 | | - | let p = calculateAssetId(o) |
---|
67 | | - | [throw(("the x :" + h))] |
---|
| 64 | + | let p = Issue(o, j, 1, 0, false) |
---|
| 65 | + | let q = calculateAssetId(p) |
---|
| 66 | + | [throw(("the x :" + g))] |
---|
68 | 67 | | } |
---|
69 | 68 | | |
---|
70 | 69 | | |
---|
71 | | - | @Verifier(u) |
---|
72 | | - | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) |
---|
| 70 | + | @Verifier(v) |
---|
| 71 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
73 | 72 | | |
---|
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 test (b) = { |
---|
8 | | - | let c = "test" |
---|
9 | | - | let d = "sometext" |
---|
10 | | - | let e = toBytes(b) |
---|
11 | | - | let f = toBase58String(e) |
---|
12 | | - | let g = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
13 | | - | let h = { |
---|
14 | | - | let i = assetInfo(g) |
---|
15 | | - | if ($isInstanceOf(i, "Asset")) |
---|
| 8 | + | let c = "EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ" |
---|
| 9 | + | let d = toBytes(c) |
---|
| 10 | + | let e = toBase58String(d) |
---|
| 11 | + | let f = e |
---|
| 12 | + | let g = { |
---|
| 13 | + | let h = assetInfo(d) |
---|
| 14 | + | if ($isInstanceOf(h, "Asset")) |
---|
16 | 15 | | then { |
---|
17 | | - | let j = i |
---|
18 | | - | j.description |
---|
| 16 | + | let i = h |
---|
| 17 | + | i.description |
---|
19 | 18 | | } |
---|
20 | 19 | | else throw("Can't find asset") |
---|
21 | 20 | | } |
---|
22 | | - | [throw(("the x :" + h))] |
---|
| 21 | + | [throw(("the x :" + g))] |
---|
23 | 22 | | } |
---|
24 | 23 | | |
---|
25 | 24 | | |
---|
26 | 25 | | |
---|
27 | 26 | | @Callable(a) |
---|
28 | | - | func mintme (d) = { |
---|
| 27 | + | func mintme (j) = { |
---|
29 | 28 | | let k = { |
---|
30 | | - | let i = getInteger(this, "counter") |
---|
31 | | - | if ($isInstanceOf(i, "Int")) |
---|
| 29 | + | let h = getInteger(this, "counter") |
---|
| 30 | + | if ($isInstanceOf(h, "Int")) |
---|
32 | 31 | | then { |
---|
33 | | - | let l = i |
---|
| 32 | + | let l = h |
---|
34 | 33 | | (l + 1) |
---|
35 | 34 | | } |
---|
36 | 35 | | else 0 |
---|
37 | 36 | | } |
---|
38 | 37 | | let m = toString(k) |
---|
39 | 38 | | let n = "MDST-NFT #" |
---|
40 | | - | let c = (n + m) |
---|
41 | | - | let o = Issue(c, d, 1, 0, false) |
---|
42 | | - | let p = calculateAssetId(o) |
---|
43 | | - | [o, ScriptTransfer(a.caller, o.quantity, p), IntegerEntry("counter", k)] |
---|
| 39 | + | let o = (n + m) |
---|
| 40 | + | let p = Issue(o, j, 1, 0, false) |
---|
| 41 | + | let q = calculateAssetId(p) |
---|
| 42 | + | [p, ScriptTransfer(a.caller, p.quantity, q), IntegerEntry("counter", k)] |
---|
44 | 43 | | } |
---|
45 | 44 | | |
---|
46 | 45 | | |
---|
47 | 46 | | |
---|
48 | 47 | | @Callable(a) |
---|
49 | | - | func buynft (q,r) = { |
---|
50 | | - | let c = "MDST-NFT-COPY" |
---|
51 | | - | let d = "kiki bikit" |
---|
52 | | - | let e = toBytes(r) |
---|
53 | | - | let f = toBase58String(e) |
---|
54 | | - | let s = fromBase58String(f) |
---|
55 | | - | let t = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
56 | | - | let h = { |
---|
57 | | - | let i = assetInfo(s) |
---|
58 | | - | if ($isInstanceOf(i, "Asset")) |
---|
| 48 | + | func buynft (r,s) = { |
---|
| 49 | + | let o = "MDST-NFT-COPY" |
---|
| 50 | + | let j = "kiki bikit" |
---|
| 51 | + | let c = toBytes(s) |
---|
| 52 | + | let e = toBase58String(c) |
---|
| 53 | + | let t = fromBase58String(e) |
---|
| 54 | + | let u = base58'EhheQbMgpC7pW5YuW4uxFJyB6PMesiWufbWkqoVtR2fJ' |
---|
| 55 | + | let g = { |
---|
| 56 | + | let h = assetInfo(t) |
---|
| 57 | + | if ($isInstanceOf(h, "Asset")) |
---|
59 | 58 | | then { |
---|
60 | | - | let j = i |
---|
61 | | - | j.description |
---|
| 59 | + | let i = h |
---|
| 60 | + | i.description |
---|
62 | 61 | | } |
---|
63 | 62 | | else throw("Can't find asset") |
---|
64 | 63 | | } |
---|
65 | | - | let o = Issue(c, d, 1, 0, false) |
---|
66 | | - | let p = calculateAssetId(o) |
---|
67 | | - | [throw(("the x :" + h))] |
---|
| 64 | + | let p = Issue(o, j, 1, 0, false) |
---|
| 65 | + | let q = calculateAssetId(p) |
---|
| 66 | + | [throw(("the x :" + g))] |
---|
68 | 67 | | } |
---|
69 | 68 | | |
---|
70 | 69 | | |
---|
71 | | - | @Verifier(u) |
---|
72 | | - | func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey) |
---|
| 70 | + | @Verifier(v) |
---|
| 71 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
73 | 72 | | |
---|