tx · G1Zgpyg5MdHKwfXCHBmh8t3d7KD9KiVPr4uy1W9gUjMH 3Mz8qvbtb6oUXnPhnRmGde2cNjsuELt8o2t: -0.01400000 Waves 2021.04.05 22:52 [1469591] smart account 3Mz8qvbtb6oUXnPhnRmGde2cNjsuELt8o2t > SELF 0.00000000 Waves
{ "type": 13, "id": "G1Zgpyg5MdHKwfXCHBmh8t3d7KD9KiVPr4uy1W9gUjMH", "fee": 1400000, "feeAssetId": null, "timestamp": 1617652431519, "version": 2, "chainId": 84, "sender": "3Mz8qvbtb6oUXnPhnRmGde2cNjsuELt8o2t", "senderPublicKey": "9oP5kRdZqNEKWSXGvAMYm4CEB5VyhYJ4RD9UG31afth5", "proofs": [ "2GpBTupzyCA1vicHfc7LQy4jcMqJjpuVG6fBmmLo3D9LF1Sr6Tk18nbFhycXc5JpYBq8DHmMf9CConqJRZJkBYkM" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAdSZUlzc3VlAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAdhc3NldGlkAQAAACAAE2lkPwXnOpp+gUYa4lAeDtj/aE4nsW8Vmh5AIJBTPAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAxSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBXQVZFUyBvbmx5LgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0aWQIBQAAAANwbXQAAAAGYW1vdW50BgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAdhc3NldGlkBQAAAANuaWwAAAABaQEAAAAEQnVybgAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRpZAEAAAAgABNpZD8F5zqafoFGGuJQHg7Y/2hOJ7FvFZoeQCCQUzwDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAMUluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIHNlbmQgV0FWRVMgb25seS4JAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAdhc3NldGlkCAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAGBwPmEdU=", "height": 1469591, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func ReIssue () = { | |
8 | + | let pmt = value(i.payments[0]) | |
9 | + | let assetid = base58'1JAjTWNBZFmty11cTSxtGPWyZfaHsU3vDHJQP1ZJuQF' | |
10 | + | if (isDefined(pmt.assetId)) | |
11 | + | then throw("Incorrect asset attached, please send WAVES only.") | |
12 | + | else [Reissue(assetid, pmt.amount, true), ScriptTransfer(i.caller, pmt.amount, assetid)] | |
13 | + | } | |
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | @Callable(i) | |
18 | + | func Burn () = { | |
19 | + | let pmt = value(i.payments[0]) | |
20 | + | let assetid = base58'1JAjTWNBZFmty11cTSxtGPWyZfaHsU3vDHJQP1ZJuQF' | |
21 | + | if (isDefined(pmt.assetId)) | |
22 | + | then throw("Incorrect asset attached, please send WAVES only.") | |
23 | + | else [Burn(assetid, pmt.amount), ScriptTransfer(i.caller, pmt.amount, unit)] | |
24 | + | } | |
25 | + | ||
26 | + | ||
27 | + | @Verifier(tx) | |
28 | + | func verify () = match tx { | |
29 | + | case t: InvokeScriptTransaction => | |
30 | + | true | |
31 | + | case _ => | |
32 | + | false | |
33 | + | } | |
34 | + |
github/deemru/w8io/169f3d6 16.94 ms ◑