tx · 8CEzZwnQrEhjHmubgekqTB6Th7ion4XXG51qarimQmED 3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi: -0.00200000 Waves 2022.10.01 15:47 [2253307] smart account 3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi > SELF 0.00000000 Waves
{ "type": 13, "id": "8CEzZwnQrEhjHmubgekqTB6Th7ion4XXG51qarimQmED", "fee": 200000, "feeAssetId": null, "timestamp": 1664628485762, "version": 2, "chainId": 84, "sender": "3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi", "senderPublicKey": "AKofrJ4cyZ1EGW4LUFcXB7E5RPJauJeVCvMorK62Xbwu", "proofs": [ "4TbDucF7V4SjPXycGfjUPSY7hi4GToaqNraMhciLNRMgPtwtJdKyBtGSurt3mwPWkUZysuiMDf6Q1RzGaN8eaKx" ], "script": "base64:BgIMCAISABIAEgASABIAAgAMbm9kZUFkZHJlc3MxCQEFdmFsdWUBCQCmCAECIzNNcEhSUkw1UHB2TGp0OW9SSG13eEtrV2dpS1pXWFRmWWFNAAxub2RlQWRkcmVzczIJAQV2YWx1ZQEJAKYIAQIjM012cjdzbkpzRjNGNlFXQzlBenh1RlBmYWZ0RUxESEdIWGgFAWkBCG9uZUxlYXNlAAQKbGVhc2VFbnRyeQkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BAJpZAkAuQgBBQpsZWFzZUVudHJ5CQDMCAIFCmxlYXNlRW50cnkJAMwIAgkBC0JpbmFyeUVudHJ5AgIGbGVhc2UxBQJpZAUDbmlsAWkBEG9uTGVhc2VBbmRDYW5jZWwABAJpZAkBBXZhbHVlAQkAnAgCBQR0aGlzAgZsZWFzZTEJAMwIAgkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50CQDMCAIJAQtMZWFzZUNhbmNlbAEFAmlkBQNuaWwBaQ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ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk/wrHH", "height": 2253307, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CFGmRGQAvGLWzgvHn6WVJQ9PXLVjxzWExN8a5upuqPpu Next: none Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) | |
5 | 5 | ||
6 | - | @Callable(b) | |
6 | + | let b = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh")) | |
7 | + | ||
8 | + | @Callable(c) | |
7 | 9 | func oneLease () = { | |
8 | - | let | |
9 | - | let | |
10 | - | [ | |
10 | + | let d = Lease(b, value(c.payments[0]).amount) | |
11 | + | let e = calculateLeaseId(d) | |
12 | + | [d, BinaryEntry("lease1", e)] | |
11 | 13 | } | |
12 | 14 | ||
13 | 15 | ||
14 | 16 | ||
15 | - | @Callable( | |
17 | + | @Callable(c) | |
16 | 18 | func onLeaseAndCancel () = { | |
17 | - | let | |
18 | - | [Lease( | |
19 | + | let e = value(getBinary(this, "lease1")) | |
20 | + | [Lease(b, value(c.payments[0]).amount), LeaseCancel(e)] | |
19 | 21 | } | |
20 | 22 | ||
21 | 23 | ||
22 | 24 | ||
23 | - | @Callable( | |
25 | + | @Callable(c) | |
24 | 26 | func twoLeases () = { | |
25 | - | let e = Lease(a, (value(b.payments[0]).amount / 2)) | |
26 | - | let f = Lease(a, (value(b.payments[0]).amount / 2)) | |
27 | - | let g = calculateLeaseId(e) | |
27 | + | let f = Lease(a, (value(c.payments[0]).amount / 2)) | |
28 | + | let g = Lease(b, (value(c.payments[0]).amount / 2)) | |
28 | 29 | let h = calculateLeaseId(f) | |
29 | - | [e, f, BinaryEntry("lease1", g), BinaryEntry("lease2", h)] | |
30 | + | let i = calculateLeaseId(g) | |
31 | + | [f, g, BinaryEntry("lease1", h), BinaryEntry("lease2", i)] | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | ||
34 | - | @Callable( | |
36 | + | @Callable(c) | |
35 | 37 | func twoLeasesAndCanels () = { | |
36 | - | let | |
37 | - | let | |
38 | - | let | |
39 | - | let | |
40 | - | [ | |
38 | + | let h = value(getBinary(this, "lease1")) | |
39 | + | let i = value(getBinary(this, "lease2")) | |
40 | + | let f = Lease(a, (value(c.payments[0]).amount / 2)) | |
41 | + | let g = Lease(b, (value(c.payments[0]).amount / 2)) | |
42 | + | [f, g, LeaseCancel(h), LeaseCancel(i)] | |
41 | 43 | } | |
42 | 44 | ||
43 | 45 | ||
44 | 46 | ||
45 | - | @Callable( | |
47 | + | @Callable(c) | |
46 | 48 | func leaseDappToDapp () = { | |
47 | - | let | |
48 | - | if (( | |
49 | + | let j = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, c.payments) | |
50 | + | if ((j == j)) | |
49 | 51 | then nil | |
50 | 52 | else throw("Strict value is not equal to itself.") | |
51 | 53 | } | |
52 | 54 | ||
53 | 55 | ||
54 | - | @Verifier( | |
55 | - | func | |
56 | + | @Verifier(k) | |
57 | + | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) | |
56 | 58 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) | |
5 | 5 | ||
6 | - | @Callable(b) | |
6 | + | let b = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh")) | |
7 | + | ||
8 | + | @Callable(c) | |
7 | 9 | func oneLease () = { | |
8 | - | let | |
9 | - | let | |
10 | - | [ | |
10 | + | let d = Lease(b, value(c.payments[0]).amount) | |
11 | + | let e = calculateLeaseId(d) | |
12 | + | [d, BinaryEntry("lease1", e)] | |
11 | 13 | } | |
12 | 14 | ||
13 | 15 | ||
14 | 16 | ||
15 | - | @Callable( | |
17 | + | @Callable(c) | |
16 | 18 | func onLeaseAndCancel () = { | |
17 | - | let | |
18 | - | [Lease( | |
19 | + | let e = value(getBinary(this, "lease1")) | |
20 | + | [Lease(b, value(c.payments[0]).amount), LeaseCancel(e)] | |
19 | 21 | } | |
20 | 22 | ||
21 | 23 | ||
22 | 24 | ||
23 | - | @Callable( | |
25 | + | @Callable(c) | |
24 | 26 | func twoLeases () = { | |
25 | - | let e = Lease(a, (value(b.payments[0]).amount / 2)) | |
26 | - | let f = Lease(a, (value(b.payments[0]).amount / 2)) | |
27 | - | let g = calculateLeaseId(e) | |
27 | + | let f = Lease(a, (value(c.payments[0]).amount / 2)) | |
28 | + | let g = Lease(b, (value(c.payments[0]).amount / 2)) | |
28 | 29 | let h = calculateLeaseId(f) | |
29 | - | [e, f, BinaryEntry("lease1", g), BinaryEntry("lease2", h)] | |
30 | + | let i = calculateLeaseId(g) | |
31 | + | [f, g, BinaryEntry("lease1", h), BinaryEntry("lease2", i)] | |
30 | 32 | } | |
31 | 33 | ||
32 | 34 | ||
33 | 35 | ||
34 | - | @Callable( | |
36 | + | @Callable(c) | |
35 | 37 | func twoLeasesAndCanels () = { | |
36 | - | let | |
37 | - | let | |
38 | - | let | |
39 | - | let | |
40 | - | [ | |
38 | + | let h = value(getBinary(this, "lease1")) | |
39 | + | let i = value(getBinary(this, "lease2")) | |
40 | + | let f = Lease(a, (value(c.payments[0]).amount / 2)) | |
41 | + | let g = Lease(b, (value(c.payments[0]).amount / 2)) | |
42 | + | [f, g, LeaseCancel(h), LeaseCancel(i)] | |
41 | 43 | } | |
42 | 44 | ||
43 | 45 | ||
44 | 46 | ||
45 | - | @Callable( | |
47 | + | @Callable(c) | |
46 | 48 | func leaseDappToDapp () = { | |
47 | - | let | |
48 | - | if (( | |
49 | + | let j = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, c.payments) | |
50 | + | if ((j == j)) | |
49 | 51 | then nil | |
50 | 52 | else throw("Strict value is not equal to itself.") | |
51 | 53 | } | |
52 | 54 | ||
53 | 55 | ||
54 | - | @Verifier( | |
55 | - | func | |
56 | + | @Verifier(k) | |
57 | + | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) | |
56 | 58 |
github/deemru/w8io/026f985 35.51 ms ◑