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:BgIMCAISABIAEgASABIAAgAMbm9kZUFkZHJlc3MxCQEFdmFsdWUBCQCmCAECIzNNcEhSUkw1UHB2TGp0OW9SSG13eEtrV2dpS1pXWFRmWWFNAAxub2RlQWRkcmVzczIJAQV2YWx1ZQEJAKYIAQIjM012cjdzbkpzRjNGNlFXQzlBenh1RlBmYWZ0RUxESEdIWGgFAWkBCG9uZUxlYXNlAAQKbGVhc2VFbnRyeQkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BAJpZAkAuQgBBQpsZWFzZUVudHJ5CQDMCAIFCmxlYXNlRW50cnkJAMwIAgkBC0JpbmFyeUVudHJ5AgIGbGVhc2UxBQJpZAUDbmlsAWkBEG9uTGVhc2VBbmRDYW5jZWwABAJpZAkBBXZhbHVlAQkAnAgCBQR0aGlzAgZsZWFzZTEJAMwIAgkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50CQDMCAIJAQtMZWFzZUNhbmNlbAEFAmlkBQNuaWwBa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ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk/wrHH", "height": 2253307, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CFGmRGQAvGLWzgvHn6WVJQ9PXLVjxzWExN8a5upuqPpu Next: none Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
55
6-@Callable(b)
6+let b = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh"))
7+
8+@Callable(c)
79 func oneLease () = {
8- let c = Lease(a, value(b.payments[0]).amount)
9- let d = calculateLeaseId(c)
10-[c, BinaryEntry("lease1", d)]
10+ let d = Lease(b, value(c.payments[0]).amount)
11+ let e = calculateLeaseId(d)
12+[d, BinaryEntry("lease1", e)]
1113 }
1214
1315
1416
15-@Callable(b)
17+@Callable(c)
1618 func onLeaseAndCancel () = {
17- let d = value(getBinary(this, "lease1"))
18-[Lease(a, value(b.payments[0]).amount), LeaseCancel(d)]
19+ let e = value(getBinary(this, "lease1"))
20+[Lease(b, value(c.payments[0]).amount), LeaseCancel(e)]
1921 }
2022
2123
2224
23-@Callable(b)
25+@Callable(c)
2426 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))
2829 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)]
3032 }
3133
3234
3335
34-@Callable(b)
36+@Callable(c)
3537 func twoLeasesAndCanels () = {
36- let g = value(getBinary(this, "lease1"))
37- let h = value(getBinary(this, "lease2"))
38- let e = Lease(a, (value(b.payments[0]).amount / 2))
39- let f = Lease(a, (value(b.payments[0]).amount / 2))
40-[e, f, LeaseCancel(g), LeaseCancel(h)]
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)]
4143 }
4244
4345
4446
45-@Callable(b)
47+@Callable(c)
4648 func leaseDappToDapp () = {
47- let i = invoke(this, "oneLease", nil, b.payments)
48- if ((i == i))
49+ let j = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, c.payments)
50+ if ((j == j))
4951 then nil
5052 else throw("Strict value is not equal to itself.")
5153 }
5254
5355
54-@Verifier(j)
55-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
56+@Verifier(k)
57+func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
5658
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
55
6-@Callable(b)
6+let b = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh"))
7+
8+@Callable(c)
79 func oneLease () = {
8- let c = Lease(a, value(b.payments[0]).amount)
9- let d = calculateLeaseId(c)
10-[c, BinaryEntry("lease1", d)]
10+ let d = Lease(b, value(c.payments[0]).amount)
11+ let e = calculateLeaseId(d)
12+[d, BinaryEntry("lease1", e)]
1113 }
1214
1315
1416
15-@Callable(b)
17+@Callable(c)
1618 func onLeaseAndCancel () = {
17- let d = value(getBinary(this, "lease1"))
18-[Lease(a, value(b.payments[0]).amount), LeaseCancel(d)]
19+ let e = value(getBinary(this, "lease1"))
20+[Lease(b, value(c.payments[0]).amount), LeaseCancel(e)]
1921 }
2022
2123
2224
23-@Callable(b)
25+@Callable(c)
2426 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))
2829 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)]
3032 }
3133
3234
3335
34-@Callable(b)
36+@Callable(c)
3537 func twoLeasesAndCanels () = {
36- let g = value(getBinary(this, "lease1"))
37- let h = value(getBinary(this, "lease2"))
38- let e = Lease(a, (value(b.payments[0]).amount / 2))
39- let f = Lease(a, (value(b.payments[0]).amount / 2))
40-[e, f, LeaseCancel(g), LeaseCancel(h)]
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)]
4143 }
4244
4345
4446
45-@Callable(b)
47+@Callable(c)
4648 func leaseDappToDapp () = {
47- let i = invoke(this, "oneLease", nil, b.payments)
48- if ((i == i))
49+ let j = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, c.payments)
50+ if ((j == j))
4951 then nil
5052 else throw("Strict value is not equal to itself.")
5153 }
5254
5355
54-@Verifier(j)
55-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
56+@Verifier(k)
57+func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
5658

github/deemru/w8io/026f985 
35.51 ms