tx · 12176zkFhXkgEMqN2938UYoGhQ2i8WEasPjhbXqHzMLV

3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs:  -0.01400000 Waves

2021.01.13 12:38 [1351508] smart account 3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs > SELF 0.00000000 Waves

{ "type": 13, "id": "12176zkFhXkgEMqN2938UYoGhQ2i8WEasPjhbXqHzMLV", "fee": 1400000, "feeAssetId": null, "timestamp": 1610530582492, "version": 2, "chainId": 84, "sender": "3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs", "senderPublicKey": "4X8ghSb8WeHWtKYUwkHWMadcxz9iWH5j5235dsdY3tbG", "proofs": [ "5GviRXNbMHWHKR6BNHi5iWNStjUPtf7ZVPfSnyrk5YanwYGpZVh4rhc557xhnVNn8k8jSVRmbEy9dgYNf5G2wfyf" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAdSZWlzc3VlAAAAAAQAAAAHYXNzZXRJZAEAAAAgur1SO1MUwp1UVhi0d87cmJJOAlFBVVZb7np9hta93DsEAAAAA3BtdAMJAAAAAAAAAgkAAZAAAAABCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAkAAAIAAAABAgAAABxBdHRhY2hlZCBwYXltZW50IGlzIHJlcXVpcmVkAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAdhc3NldElkCQAAAgAAAAECAAAAOUF0dGFjaCBvbmx5IERaeEdaemFjcmhNUzkzRUhLOExyQ2VZQ3JWV0phRjc2VXBQY3lIdWFIOW1MLgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQIBQAAAANwbXQAAAAGYW1vdW50BgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAPQkAFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAFpAQAAAARidXJuAAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQBAAAAILq9UjtTFMKdVFYYtHfO3JiSTgJRQVVWW+56fYbWvdw7CQAAAgAAAAECAAAAOUF0dGFjaCBvbmx5IERaeEdaemFjcmhNUzkzRUhLOExyQ2VZQ3JWV0phRjc2VXBQY3lIdWFIOW1MLgkABEwAAAACCQEAAAAEQnVybgAAAAIBAAAAILq9UjtTFMKdVFYYtHfO3JiSTgJRQVVWW+56fYbWvdw7CAUAAAADcG10AAAABmFtb3VudAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm7tGxz", "height": 1351508, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EVHMf7RmCRQVe9u2wUmtj7gwAhr9zGhyhRPkunCcCVZC Next: 5FKHLRZTvN9bXGFfpaxtDBJc1g4iGkHQ7czeDpR4rd48 Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func reissue () = {
7+func Reissue () = {
88 let assetId = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'
9-[Reissue(assetId, 1000000, true), ScriptTransfer(i.caller, 1000000, assetId)]
9+ let pmt = if ((size(i.payments) == 1))
10+ then i.payments[0]
11+ else throw("Attached payment is required")
12+ if ((pmt.assetId != assetId))
13+ then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.")
14+ else [Reissue(assetId, pmt.amount, true), ScriptTransfer(i.caller, 1000000, assetId)]
1015 }
1116
1217
1722 then i.payments[0]
1823 else throw("Attached payment is required")
1924 if ((pmt.assetId != base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'))
20- then throw("works with DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL only")
21- else [Burn(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', 1000000)]
25+ then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.")
26+ else [Burn(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', pmt.amount)]
2227 }
2328
2429
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func reissue () = {
7+func Reissue () = {
88 let assetId = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'
9-[Reissue(assetId, 1000000, true), ScriptTransfer(i.caller, 1000000, assetId)]
9+ let pmt = if ((size(i.payments) == 1))
10+ then i.payments[0]
11+ else throw("Attached payment is required")
12+ if ((pmt.assetId != assetId))
13+ then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.")
14+ else [Reissue(assetId, pmt.amount, true), ScriptTransfer(i.caller, 1000000, assetId)]
1015 }
1116
1217
1318
1419 @Callable(i)
1520 func burn () = {
1621 let pmt = if ((size(i.payments) == 1))
1722 then i.payments[0]
1823 else throw("Attached payment is required")
1924 if ((pmt.assetId != base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL'))
20- then throw("works with DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL only")
21- else [Burn(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', 1000000)]
25+ then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.")
26+ else [Burn(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', pmt.amount)]
2227 }
2328
2429
2530 @Verifier(tx)
2631 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2732

github/deemru/w8io/026f985 
21.79 ms