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:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func reissue () = { |
---|
| 7 | + | func Reissue () = { |
---|
8 | 8 | | 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)] |
---|
10 | 15 | | } |
---|
11 | 16 | | |
---|
12 | 17 | | |
---|
|
17 | 22 | | then i.payments[0] |
---|
18 | 23 | | else throw("Attached payment is required") |
---|
19 | 24 | | 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)] |
---|
22 | 27 | | } |
---|
23 | 28 | | |
---|
24 | 29 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func reissue () = { |
---|
| 7 | + | func Reissue () = { |
---|
8 | 8 | | 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)] |
---|
10 | 15 | | } |
---|
11 | 16 | | |
---|
12 | 17 | | |
---|
13 | 18 | | |
---|
14 | 19 | | @Callable(i) |
---|
15 | 20 | | func burn () = { |
---|
16 | 21 | | let pmt = if ((size(i.payments) == 1)) |
---|
17 | 22 | | then i.payments[0] |
---|
18 | 23 | | else throw("Attached payment is required") |
---|
19 | 24 | | 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)] |
---|
22 | 27 | | } |
---|
23 | 28 | | |
---|
24 | 29 | | |
---|
25 | 30 | | @Verifier(tx) |
---|
26 | 31 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
27 | 32 | | |
---|