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
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let nodeAddress = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
4+let nodeAddress1 = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
5+
6+let nodeAddress2 = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh"))
57
68 @Callable(i)
79 func oneLease () = {
8- let leaseEntry = Lease(nodeAddress, value(i.payments[0]).amount)
10+ let leaseEntry = Lease(nodeAddress2, value(i.payments[0]).amount)
911 let id = calculateLeaseId(leaseEntry)
1012 [leaseEntry, BinaryEntry("lease1", id)]
1113 }
1517 @Callable(i)
1618 func onLeaseAndCancel () = {
1719 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)]
1921 }
2022
2123
2224
2325 @Callable(i)
2426 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))
2729 let id1 = calculateLeaseId(leaseEntry1)
2830 let id2 = calculateLeaseId(leaseEntry2)
2931 [leaseEntry1, leaseEntry2, BinaryEntry("lease1", id1), BinaryEntry("lease2", id2)]
3537 func twoLeasesAndCanels () = {
3638 let id1 = value(getBinary(this, "lease1"))
3739 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))
4042 [leaseEntry1, leaseEntry2, LeaseCancel(id1), LeaseCancel(id2)]
4143 }
4244
4446
4547 @Callable(i)
4648 func leaseDappToDapp () = {
47- let result = invoke(this, "oneLease", nil, i.payments)
49+ let result = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, i.payments)
4850 if ((result == result))
4951 then nil
5052 else throw("Strict value is not equal to itself.")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let nodeAddress = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
4+let nodeAddress1 = value(addressFromString("3MpHRRL5PpvLjt9oRHmwxKkWgiKZWXTfYaM"))
5+
6+let nodeAddress2 = value(addressFromString("3Mvr7snJsF3F6QWC9AzxuFPfaftELDHGHXh"))
57
68 @Callable(i)
79 func oneLease () = {
8- let leaseEntry = Lease(nodeAddress, value(i.payments[0]).amount)
10+ let leaseEntry = Lease(nodeAddress2, value(i.payments[0]).amount)
911 let id = calculateLeaseId(leaseEntry)
1012 [leaseEntry, BinaryEntry("lease1", id)]
1113 }
1214
1315
1416
1517 @Callable(i)
1618 func onLeaseAndCancel () = {
1719 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)]
1921 }
2022
2123
2224
2325 @Callable(i)
2426 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))
2729 let id1 = calculateLeaseId(leaseEntry1)
2830 let id2 = calculateLeaseId(leaseEntry2)
2931 [leaseEntry1, leaseEntry2, BinaryEntry("lease1", id1), BinaryEntry("lease2", id2)]
3032 }
3133
3234
3335
3436 @Callable(i)
3537 func twoLeasesAndCanels () = {
3638 let id1 = value(getBinary(this, "lease1"))
3739 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))
4042 [leaseEntry1, leaseEntry2, LeaseCancel(id1), LeaseCancel(id2)]
4143 }
4244
4345
4446
4547 @Callable(i)
4648 func leaseDappToDapp () = {
47- let result = invoke(this, "oneLease", nil, i.payments)
49+ let result = invoke(value(addressFromString("3N7eE6ZqWcFXAEPfRJN2VL1QtZQF3k86XSi")), "oneLease", nil, i.payments)
4850 if ((result == result))
4951 then nil
5052 else throw("Strict value is not equal to itself.")
5153 }
5254
5355
5456 @Verifier(tx)
5557 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5658

github/deemru/w8io/026f985 
28.78 ms