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