tx · 6eu2QzWT3u8E1Gfd9Z8qmD8543NjdqP44T8xH6WUGdQP

3MtaPR72HqeFBY6bciC5vG2jBnv8qzctZRL:  -0.01000000 Waves

2023.01.31 21:11 [2429462] smart account 3MtaPR72HqeFBY6bciC5vG2jBnv8qzctZRL > SELF 0.00000000 Waves

{ "type": 13, "id": "6eu2QzWT3u8E1Gfd9Z8qmD8543NjdqP44T8xH6WUGdQP", "fee": 1000000, "feeAssetId": null, "timestamp": 1675188726660, "version": 2, "chainId": 84, "sender": "3MtaPR72HqeFBY6bciC5vG2jBnv8qzctZRL", "senderPublicKey": "FgUXTfHKzU8wpSgwj2FzyyqEXLzDpWPRq8TZM84VCRft", "proofs": [ "5TBCbtJdZayZJMpKv37qE8W6PUgJzKXvWdLqr7fsuRh2zw2CF92L5mCZwhLVtdhMZHfqh4p4VUcCZRtFJZc2Pfs4" ], "script": "base64:AwQAAAAEQkFOSwEAAAAaAVR2hCEbG6cXNQI+U6aF/4LS7mg5Zj+eAOQEAAAADFRBUkdFVEhFSUdIVAQAAAAHJG1hdGNoMAkABBoAAAACCQEAAAAHQWRkcmVzcwAAAAEFAAAABEJBTksJAAEsAAAAAgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwIAAAAHX3RhcmdldAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAEVW5pdAAAAAAAAAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF4BQAAAAckbWF0Y2gwBQAAAAF4CQAAAgAAAAECAAAAC01hdGNoIGVycm9yBAAAAAZzdGF0dXMEAAAAByRtYXRjaDAJAAQdAAAAAgkBAAAAB0FkZHJlc3MAAAABBQAAAARCQU5LCQABLAAAAAIJAAJYAAAAAQgIBQAAAAJ0eAAAAAZzZW5kZXIAAAAFYnl0ZXMCAAAAB19zdGF0dXMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQCAAAABXVuc2V0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXgFAAAAByRtYXRjaDAFAAAAAXgJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IDAwkAAGYAAAACBQAAAAZoZWlnaHQFAAAADFRBUkdFVEhFSUdIVAkAAAAAAAACBQAAAAZzdGF0dXMCAAAACGJvcnJvd2VkBwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAAAAAAAAIICQAEJAAAAAEIBQAAAAF0AAAABGRBcHAAAAAFYnl0ZXMFAAAABEJBTksHAwMJAAAAAAAAAgUAAAAGc3RhdHVzAgAAAAhyZXR1cm5lZAYJAAAAAAAAAgUAAAAGc3RhdHVzAgAAAAhjYW5jZWxlZAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56xKIrw==", "height": 2429462, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# CONTENT_TYPE EXPRESSION #-}
3+let BANK = base58'3Mzijo4auxtFrCDWPEnUZT5bBGBKRG3y27d'
4+let TARGETHEIGHT = match getInteger(Address(BANK), (toBase58String(tx.sender.bytes) + "_target")) {
5+ case _: Unit =>
6+ 0
7+ case x: Int =>
8+ x
9+ case _ =>
10+ throw("Match error")
11+}
12+let status = match getString(Address(BANK), (toBase58String(tx.sender.bytes) + "_status")) {
13+ case _: Unit =>
14+ "unset"
15+ case x: String =>
16+ x
17+ case _ =>
18+ throw("Match error")
19+}
20+if (if ((height > TARGETHEIGHT))
21+ then (status == "borrowed")
22+ else false)
23+ then match tx {
24+ case t: InvokeScriptTransaction =>
25+ (addressFromRecipient(t.dApp).bytes == BANK)
26+ case _ =>
27+ false
28+ }
29+ else if (if ((status == "returned"))
30+ then true
31+ else (status == "canceled"))
32+ then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
33+ else match tx {
34+ case _: SetScriptTransaction =>
35+ false
36+ case _ =>
37+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
38+ }

github/deemru/w8io/169f3d6 
26.11 ms