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:BgIMCAISABIAEgASABIAAgAMbm9kZUFkZHJlc3MxCQEFdmFsdWUBCQCmCAECIzNNcEhSUkw1UHB2TGp0OW9SSG13eEtrV2dpS1pXWFRmWWFNAAxub2RlQWRkcmVzczIJAQV2YWx1ZQEJAKYIAQIjM012cjdzbkpzRjNGNlFXQzlBenh1RlBmYWZ0RUxESEdIWGgFAWkBCG9uZUxlYXNlAAQKbGVhc2VFbnRyeQkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50BAJpZAkAuQgBBQpsZWFzZUVudHJ5CQDMCAIFCmxlYXNlRW50cnkJAMwIAgkBC0JpbmFyeUVudHJ5AgIGbGVhc2UxBQJpZAUDbmlsAWkBEG9uTGVhc2VBbmRDYW5jZWwABAJpZAkBBXZhbHVlAQkAnAgCBQR0aGlzAgZsZWFzZTEJAMwIAgkAxAgCBQxub2RlQWRkcmVzczIICQEFdmFsdWUBCQCRAwIIBQFpCHBheW1lbnRzAAAGYW1vdW50CQDMCAIJAQtMZWFzZUNhbmNlbAEFAmlk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ljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXk/wrHH",
"height": 2253307,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CFGmRGQAvGLWzgvHn6WVJQ9PXLVjxzWExN8a5upuqPpu
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let nodeAddress = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) |
---|
| 4 | + | let nodeAddress1 = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) |
---|
| 5 | + | |
---|
| 6 | + | let nodeAddress2 = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh")) |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | 9 | | func oneLease () = { |
---|
8 | | - | let leaseEntry = Lease(nodeAddress, value(i.payments[0]).amount) |
---|
| 10 | + | let leaseEntry = Lease(nodeAddress2, value(i.payments[0]).amount) |
---|
9 | 11 | | let id = calculateLeaseId(leaseEntry) |
---|
10 | 12 | | [leaseEntry, BinaryEntry("lease1", id)] |
---|
11 | 13 | | } |
---|
|
15 | 17 | | @Callable(i) |
---|
16 | 18 | | func onLeaseAndCancel () = { |
---|
17 | 19 | | let id = value(getBinary(this, "lease1")) |
---|
18 | | - | [Lease(nodeAddress, value(i.payments[0]).amount), LeaseCancel(id)] |
---|
| 20 | + | [Lease(nodeAddress2, value(i.payments[0]).amount), LeaseCancel(id)] |
---|
19 | 21 | | } |
---|
20 | 22 | | |
---|
21 | 23 | | |
---|
22 | 24 | | |
---|
23 | 25 | | @Callable(i) |
---|
24 | 26 | | func twoLeases () = { |
---|
25 | | - | let leaseEntry1 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
26 | | - | let leaseEntry2 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
| 27 | + | let leaseEntry1 = Lease(nodeAddress1, (value(i.payments[0]).amount / 2)) |
---|
| 28 | + | let leaseEntry2 = Lease(nodeAddress2, (value(i.payments[0]).amount / 2)) |
---|
27 | 29 | | let id1 = calculateLeaseId(leaseEntry1) |
---|
28 | 30 | | let id2 = calculateLeaseId(leaseEntry2) |
---|
29 | 31 | | [leaseEntry1, leaseEntry2, BinaryEntry("lease1", id1), BinaryEntry("lease2", id2)] |
---|
|
35 | 37 | | func twoLeasesAndCanels () = { |
---|
36 | 38 | | let id1 = value(getBinary(this, "lease1")) |
---|
37 | 39 | | let id2 = value(getBinary(this, "lease2")) |
---|
38 | | - | let leaseEntry1 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
39 | | - | let leaseEntry2 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
| 40 | + | let leaseEntry1 = Lease(nodeAddress1, (value(i.payments[0]).amount / 2)) |
---|
| 41 | + | let leaseEntry2 = Lease(nodeAddress2, (value(i.payments[0]).amount / 2)) |
---|
40 | 42 | | [leaseEntry1, leaseEntry2, LeaseCancel(id1), LeaseCancel(id2)] |
---|
41 | 43 | | } |
---|
42 | 44 | | |
---|
|
44 | 46 | | |
---|
45 | 47 | | @Callable(i) |
---|
46 | 48 | | func leaseDappToDapp () = { |
---|
47 | | - | let result = invoke(this, "oneLease", nil, i.payments) |
---|
| 49 | + | let result = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, i.payments) |
---|
48 | 50 | | if ((result == result)) |
---|
49 | 51 | | then nil |
---|
50 | 52 | | else throw("Strict value is not equal to itself.") |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let nodeAddress = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) |
---|
| 4 | + | let nodeAddress1 = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM")) |
---|
| 5 | + | |
---|
| 6 | + | let nodeAddress2 = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh")) |
---|
5 | 7 | | |
---|
6 | 8 | | @Callable(i) |
---|
7 | 9 | | func oneLease () = { |
---|
8 | | - | let leaseEntry = Lease(nodeAddress, value(i.payments[0]).amount) |
---|
| 10 | + | let leaseEntry = Lease(nodeAddress2, value(i.payments[0]).amount) |
---|
9 | 11 | | let id = calculateLeaseId(leaseEntry) |
---|
10 | 12 | | [leaseEntry, BinaryEntry("lease1", id)] |
---|
11 | 13 | | } |
---|
12 | 14 | | |
---|
13 | 15 | | |
---|
14 | 16 | | |
---|
15 | 17 | | @Callable(i) |
---|
16 | 18 | | func onLeaseAndCancel () = { |
---|
17 | 19 | | let id = value(getBinary(this, "lease1")) |
---|
18 | | - | [Lease(nodeAddress, value(i.payments[0]).amount), LeaseCancel(id)] |
---|
| 20 | + | [Lease(nodeAddress2, value(i.payments[0]).amount), LeaseCancel(id)] |
---|
19 | 21 | | } |
---|
20 | 22 | | |
---|
21 | 23 | | |
---|
22 | 24 | | |
---|
23 | 25 | | @Callable(i) |
---|
24 | 26 | | func twoLeases () = { |
---|
25 | | - | let leaseEntry1 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
26 | | - | let leaseEntry2 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
| 27 | + | let leaseEntry1 = Lease(nodeAddress1, (value(i.payments[0]).amount / 2)) |
---|
| 28 | + | let leaseEntry2 = Lease(nodeAddress2, (value(i.payments[0]).amount / 2)) |
---|
27 | 29 | | let id1 = calculateLeaseId(leaseEntry1) |
---|
28 | 30 | | let id2 = calculateLeaseId(leaseEntry2) |
---|
29 | 31 | | [leaseEntry1, leaseEntry2, BinaryEntry("lease1", id1), BinaryEntry("lease2", id2)] |
---|
30 | 32 | | } |
---|
31 | 33 | | |
---|
32 | 34 | | |
---|
33 | 35 | | |
---|
34 | 36 | | @Callable(i) |
---|
35 | 37 | | func twoLeasesAndCanels () = { |
---|
36 | 38 | | let id1 = value(getBinary(this, "lease1")) |
---|
37 | 39 | | let id2 = value(getBinary(this, "lease2")) |
---|
38 | | - | let leaseEntry1 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
39 | | - | let leaseEntry2 = Lease(nodeAddress, (value(i.payments[0]).amount / 2)) |
---|
| 40 | + | let leaseEntry1 = Lease(nodeAddress1, (value(i.payments[0]).amount / 2)) |
---|
| 41 | + | let leaseEntry2 = Lease(nodeAddress2, (value(i.payments[0]).amount / 2)) |
---|
40 | 42 | | [leaseEntry1, leaseEntry2, LeaseCancel(id1), LeaseCancel(id2)] |
---|
41 | 43 | | } |
---|
42 | 44 | | |
---|
43 | 45 | | |
---|
44 | 46 | | |
---|
45 | 47 | | @Callable(i) |
---|
46 | 48 | | func leaseDappToDapp () = { |
---|
47 | | - | let result = invoke(this, "oneLease", nil, i.payments) |
---|
| 49 | + | let result = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, i.payments) |
---|
48 | 50 | | if ((result == result)) |
---|
49 | 51 | | then nil |
---|
50 | 52 | | else throw("Strict value is not equal to itself.") |
---|
51 | 53 | | } |
---|
52 | 54 | | |
---|
53 | 55 | | |
---|
54 | 56 | | @Verifier(tx) |
---|
55 | 57 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
56 | 58 | | |
---|