tx · 7qDBPyNchYhFwRFKXev6DooDMedBU68a1pei7REYRBWB

3NAWGbCcMFwWtkeTRpKonyyjn692HEpMBp4:  -0.01000000 Waves

2022.06.26 18:28 [2113585] smart account 3NAWGbCcMFwWtkeTRpKonyyjn692HEpMBp4 > SELF 0.00000000 Waves

{ "type": 13, "id": "7qDBPyNchYhFwRFKXev6DooDMedBU68a1pei7REYRBWB", "fee": 1000000, "feeAssetId": null, "timestamp": 1656257337749, "version": 2, "chainId": 84, "sender": "3NAWGbCcMFwWtkeTRpKonyyjn692HEpMBp4", "senderPublicKey": "83jhXbQH4ie1NNA4V39MQyfhHDqP45NdveH8k5F5tiho", "proofs": [ "3dWuDhVK7w6EtBxveQWdsUmoMNpc8qRdGHWsEVngiKrnCPxYGGgBHowvyDtgsA4nxMozTmd7hxuSt2x3KgQxjxtZ" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAAJY2xhaW1Ecm9wAAAAAQAAAA5tYWlubmV0QWRkcmVzcwQAAAAOdGVzdG5ldEFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwMJAQAAAAIhPQAAAAIJAAExAAAAAQUAAAAObWFpbm5ldEFkZHJlc3MAAAAAAAAAACMJAQAAAAIhPQAAAAIJAAEvAAAAAgUAAAAObWFpbm5ldEFkZHJlc3MAAAAAAAAAAAICAAAAAjNQBwkAAAIAAAABAgAAAA9JbnZhbGlkIGFkZHJlc3MEAAAABXJlYWR5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQgAAAAAQkAASwAAAACAgAAAA1rX2Ryb3BfcmVhZHlfBQAAAA50ZXN0bmV0QWRkcmVzcwIAAAAVTm90IGVsaWdpYmxlIGZvciBkcm9wAwUAAAAFcmVhZHkEAAAABGRvbmUJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQiAAAAAQkAASwAAAACAgAAAAxrX2Ryb3BfZG9uZV8FAAAADnRlc3RuZXRBZGRyZXNzAgAAAAADCQAAAAAAAAIFAAAABGRvbmUCAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADGtfZHJvcF9kb25lXwUAAAAOdGVzdG5ldEFkZHJlc3MFAAAADm1haW5uZXRBZGRyZXNzBQAAAANuaWwJAAACAAAAAQIAAAARRHJvcCBhbHJlYWR5IGRvbmUJAAACAAAAAQIAAAAVTm90IGVsaWdpYmxlIGZvciBkcm9wAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmJwchW", "height": 2113585, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func claimDrop (mainnetAddress) = {
8+ let testnetAddress = toString(i.caller)
9+ if (if ((size(mainnetAddress) != 35))
10+ then (take(mainnetAddress, 2) != "3P")
11+ else false)
12+ then throw("Invalid address")
13+ else {
14+ let ready = valueOrErrorMessage(getBoolean(("k_drop_ready_" + testnetAddress)), "Not eligible for drop")
15+ if (ready)
16+ then {
17+ let done = valueOrElse(getString(("k_drop_done_" + testnetAddress)), "")
18+ if ((done == ""))
19+ then [StringEntry(("k_drop_done_" + testnetAddress), mainnetAddress)]
20+ else throw("Drop already done")
21+ }
22+ else throw("Not eligible for drop")
23+ }
24+ }
25+
26+
27+@Verifier(tx)
28+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
29+

github/deemru/w8io/026f985 
15.35 ms