tx · D9cc7dBLnwgC4zjRtmFnpTt763v1WCt5C8xfhxT42T61

3Mv4GT8TbGER1YKugQ7YZL641rx8t81PkhB:  -0.01000000 Waves

2021.05.06 04:22 [1513167] smart account 3Mv4GT8TbGER1YKugQ7YZL641rx8t81PkhB > SELF 0.00000000 Waves

{ "type": 13, "id": "D9cc7dBLnwgC4zjRtmFnpTt763v1WCt5C8xfhxT42T61", "fee": 1000000, "feeAssetId": null, "timestamp": 1620264156713, "version": 2, "chainId": 84, "sender": "3Mv4GT8TbGER1YKugQ7YZL641rx8t81PkhB", "senderPublicKey": "31WBcCdu3hy8BoC49Ppj2ZPpj6VQLVsCMLAWQgqnehxY", "proofs": [ "5chmKmmjAm8XgynR6NgbTVBV9Sds1Nsjv2v7PG6BuYFHQZmyg6HR4QctMwsnGTrUCCbrCgCeer2a9n4FB5i3Ry1g" ], "script": "base64:AAIEAAAAAAAAAAgIAhIECgIBCAAAAAEAAAAABnBhcjdJZAEAAAAgl51uEP4PAsqEAH8fboNjHhm/rGl87nuQzc5I5dIHQSMAAAABAAAAAWkBAAAAD3N0YWtpbmdXaXRoZHJhdwAAAAIAAAAOd2l0aGRyYXdBbW91bnQAAAAHYXNzZXRJZAQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA5jdXJyZW50QXNzZXRJZAkAAlkAAAABBQAAAAdhc3NldElkBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACHN0YWtpbmdfBQAAAAdhc3NldElkAgAAAAFfBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAZgAAAAIAAAAAAAAAAAAFAAAADWN1cnJlbnRBbW91bnQJAAACAAAAAQIAAAAeQ2FuJ3Qgd2l0aGRyYXcgbmVnYXRpdmUgYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAhzdGFraW5nXwUAAAAHYXNzZXRJZAIAAAABXwUAAAAKY3VycmVudEtleQAAAAAAAAAAAAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADWN1cnJlbnRBbW91bnQFAAAADmN1cnJlbnRBc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlecEmlME=", "height": 1513167, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let par7Id = base58'BCqo4hvDBB2dzmidJQKkVtQtkgEQVVwMy1jjV4R4tNB4'
5+
6+@Callable(i)
7+func stakingWithdraw (withdrawAmount,assetId) = {
8+ let currentKey = toBase58String(i.caller.bytes)
9+ let currentAssetId = fromBase58String(assetId)
10+ let currentAmount = match getInteger(this, ((("staking_" + assetId) + "_") + currentKey)) {
11+ case a: Int =>
12+ a
13+ case _ =>
14+ 0
15+ }
16+ if ((0 > currentAmount))
17+ then throw("Can't withdraw negative amount")
18+ else [IntegerEntry(((("staking_" + assetId) + "_") + currentKey), 0), ScriptTransfer(i.caller, currentAmount, currentAssetId)]
19+ }
20+
21+
22+@Verifier(tx)
23+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
24+

github/deemru/w8io/169f3d6 
13.70 ms