tx · BT2VNYueg44iejnZkJ1EEipUxTt5m1NziRZAMee5HTYo

3N8rWARbFQZRjXkY3cGpoBkNWSGrs6dVk8F:  -0.01000000 Waves

2022.06.26 18:34 [2113590] smart account 3N8rWARbFQZRjXkY3cGpoBkNWSGrs6dVk8F > SELF 0.00000000 Waves

{ "type": 13, "id": "BT2VNYueg44iejnZkJ1EEipUxTt5m1NziRZAMee5HTYo", "fee": 1000000, "feeAssetId": null, "timestamp": 1656257664849, "version": 2, "chainId": 84, "sender": "3N8rWARbFQZRjXkY3cGpoBkNWSGrs6dVk8F", "senderPublicKey": "F6ia4Tij43dtnT7kFmTbXb6dkvP9UDW4ALveV343VUbJ", "proofs": [ "4Se3BAY9xCBTmFro8VUWHP2hvctgdnBioccsQPSeqABAERczPZNbRGWFVFgGHhjwaxLsQMxwzaFsYznvYdkGkBh1" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAAAAAAEAAAABaQEAAAAJY2xhaW1Ecm9wAAAAAQAAAA5tYWlubmV0QWRkcmVzcwQAAAAOdGVzdG5ldEFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwMJAQAAAAIhPQAAAAIJAAExAAAAAQUAAAAObWFpbm5ldEFkZHJlc3MAAAAAAAAAACMGCQEAAAACIT0AAAACCQABLwAAAAIFAAAADm1haW5uZXRBZGRyZXNzAAAAAAAAAAACAgAAAAIzUAkAAAIAAAABAgAAAA9JbnZhbGlkIGFkZHJlc3MEAAAABXJlYWR5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQgAAAAAQkAASwAAAACAgAAAA1rX2Ryb3BfcmVhZHlfBQAAAA50ZXN0bmV0QWRkcmVzcwIAAAAVTm90IGVsaWdpYmxlIGZvciBkcm9wAwUAAAAFcmVhZHkEAAAABGRvbmUJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQiAAAAAQkAASwAAAACAgAAAAxrX2Ryb3BfZG9uZV8FAAAADnRlc3RuZXRBZGRyZXNzAgAAAAADCQAAAAAAAAIFAAAABGRvbmUCAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAADGtfZHJvcF9kb25lXwUAAAAOdGVzdG5ldEFkZHJlc3MFAAAADm1haW5uZXRBZGRyZXNzBQAAAANuaWwJAAACAAAAAQIAAAARRHJvcCBhbHJlYWR5IGRvbmUJAAACAAAAAQIAAAAVTm90IGVsaWdpYmxlIGZvciBkcm9wAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkYMNMW", "height": 2113590, "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 true
11+ else (take(mainnetAddress, 2) != "3P"))
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/169f3d6 
16.20 ms