tx · 5vCYD5U9AFT7B4YkL4BVerLtom3j7cyJp7exXv343MqS

3MrBZMc7R49UkJerjYyBeiHJUnf5ms1hWP3:  -0.01400000 Waves

2021.04.05 23:31 [1469631] smart account 3MrBZMc7R49UkJerjYyBeiHJUnf5ms1hWP3 > SELF 0.00000000 Waves

{ "type": 13, "id": "5vCYD5U9AFT7B4YkL4BVerLtom3j7cyJp7exXv343MqS", "fee": 1400000, "feeAssetId": null, "timestamp": 1617654709857, "version": 2, "chainId": 84, "sender": "3MrBZMc7R49UkJerjYyBeiHJUnf5ms1hWP3", "senderPublicKey": "C73n3zegTVxWRbfSefhDVJyaRqtyUbNPBbvkhEbb6tD7", "proofs": [ "bsCd7tVqbePTDLhRzJAt7E7nbuTwFuu12s39iWTHdLegdXNcrhE2FUbictvvcHkmQLEfcLSM9RG7BLrPFvq8gZD" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAdSZUlzc3VlAAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAdhc3NldGlkAQAAACBzrkNKeNJiACoye9GgHbfYkPkwb/W2ol434KlOvh9RwAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAuSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBUTiBvbmx5LgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0aWQIBQAAAANwbXQAAAAGYW1vdW50BgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAdhc3NldGlkBQAAAANuaWwAAAABaQEAAAAEQnVybgAAAAAEAAAAA3BtdAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAHYXNzZXRpZAEAAAAgc65DSnjSYgAqMnvRoB232JD5MG/1tqJeN+CpTr4fUcADCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQFAAAAB2Fzc2V0aWQJAAACAAAAAQIAAAAuSW5jb3JyZWN0IGFzc2V0IGF0dGFjaGVkLCBwbGVhc2Ugc2VuZCBUTiBvbmx5LgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0aWQIBQAAAANwbXQAAAAGYW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAAA3BtdAAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYHJuD/XA==", "height": 1469631, "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+
5+
6+@Callable(i)
7+func ReIssue () = {
8+ let pmt = value(i.payments[0])
9+ let assetid = base58'8na1F7VhqsKrufsaszkdwSa7xdJVYxsBJhNcTqCuERFD'
10+ if (isDefined(pmt.assetId))
11+ then throw("Incorrect asset attached, please send TN 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'8na1F7VhqsKrufsaszkdwSa7xdJVYxsBJhNcTqCuERFD'
21+ if ((pmt.assetId != assetid))
22+ then throw("Incorrect asset attached, please send TN 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 t: BurnTransaction =>
32+ true
33+ case _ =>
34+ false
35+}
36+

github/deemru/w8io/169f3d6 
30.78 ms