tx · 5FKHLRZTvN9bXGFfpaxtDBJc1g4iGkHQ7czeDpR4rd48
3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs: -0.01400000 Waves
2021.01.13 12:38 [1351508] smart account 3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs > SELF 0.00000000 Waves
{
"type": 13,
"id": "5FKHLRZTvN9bXGFfpaxtDBJc1g4iGkHQ7czeDpR4rd48",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1610530753586,
"version": 2,
"chainId": 84,
"sender": "3MwEZ9CjYxnwSkfBSpYZsRJQ4dw2vMgWaxs",
"senderPublicKey": "4X8ghSb8WeHWtKYUwkHWMadcxz9iWH5j5235dsdY3tbG",
"proofs": [
"2r8fCXCDEdC1YxaiuWoEVoxs2XecKDbGMEN8gdQqHD87fDyr7UQyGVdQgA4sFAkE8Lt99zy4pv8XT1C7UXsugHEz"
],
"script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAAAAAAAgAAAAFpAQAAAAdSZWlzc3VlAAAAAAQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAHEF0dGFjaGVkIHBheW1lbnQgaXMgcmVxdWlyZWQDCQEAAAACIT0AAAACCAUAAAADcG10AAAAB2Fzc2V0SWQBAAAAILq9UjtTFMKdVFYYtHfO3JiSTgJRQVVWW+56fYbWvdw7CQAAAgAAAAECAAAAOUF0dGFjaCBvbmx5IERaeEdaemFjcmhNUzkzRUhLOExyQ2VZQ3JWV0phRjc2VXBQY3lIdWFIOW1MLgkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMBAAAAILq9UjtTFMKdVFYYtHfO3JiSTgJRQVVWW+56fYbWvdw7CAUAAAADcG10AAAABmFtb3VudAYJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAD0JAAQAAACC6vVI7UxTCnVRWGLR3ztyYkk4CUUFVVlvuen2G1r3cOwUAAAADbmlsAAAAAWkBAAAABGJ1cm4AAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAEAAAAgur1SO1MUwp1UVhi0d87cmJJOAlFBVVZb7np9hta93DsJAAACAAAAAQIAAAA5QXR0YWNoIG9ubHkgRFp4R1p6YWNyaE1TOTNFSEs4THJDZVlDclZXSmFGNzZVcFBjeUh1YUg5bUwuCQAETAAAAAIJAQAAAARCdXJuAAAAAgEAAAAgur1SO1MUwp1UVhi0d87cmJJOAlFBVVZb7np9hta93DsIBQAAAANwbXQAAAAGYW1vdW50BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleSygTj4=",
"height": 1351508,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 12176zkFhXkgEMqN2938UYoGhQ2i8WEasPjhbXqHzMLV
Next: 6PwgTzmN8iMN4zarpeVYhdhJRgxPeQMFWqvQqMnpnQhM
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func Reissue () = { |
---|
8 | | - | let assetId = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL' |
---|
9 | 8 | | let pmt = if ((size(i.payments) == 1)) |
---|
10 | 9 | | then i.payments[0] |
---|
11 | 10 | | else throw("Attached payment is required") |
---|
12 | | - | if ((pmt.assetId != assetId)) |
---|
| 11 | + | if ((pmt.assetId != base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL')) |
---|
13 | 12 | | then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.") |
---|
14 | | - | else [Reissue(assetId, pmt.amount, true), ScriptTransfer(i.caller, 1000000, assetId)] |
---|
| 13 | + | else [Reissue(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', pmt.amount, true), ScriptTransfer(i.caller, 1000000, base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL')] |
---|
15 | 14 | | } |
---|
16 | 15 | | |
---|
17 | 16 | | |
---|
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 | 7 | | func Reissue () = { |
---|
8 | | - | let assetId = base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL' |
---|
9 | 8 | | let pmt = if ((size(i.payments) == 1)) |
---|
10 | 9 | | then i.payments[0] |
---|
11 | 10 | | else throw("Attached payment is required") |
---|
12 | | - | if ((pmt.assetId != assetId)) |
---|
| 11 | + | if ((pmt.assetId != base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL')) |
---|
13 | 12 | | then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.") |
---|
14 | | - | else [Reissue(assetId, pmt.amount, true), ScriptTransfer(i.caller, 1000000, assetId)] |
---|
| 13 | + | else [Reissue(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', pmt.amount, true), ScriptTransfer(i.caller, 1000000, base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL')] |
---|
15 | 14 | | } |
---|
16 | 15 | | |
---|
17 | 16 | | |
---|
18 | 17 | | |
---|
19 | 18 | | @Callable(i) |
---|
20 | 19 | | func burn () = { |
---|
21 | 20 | | let pmt = if ((size(i.payments) == 1)) |
---|
22 | 21 | | then i.payments[0] |
---|
23 | 22 | | else throw("Attached payment is required") |
---|
24 | 23 | | if ((pmt.assetId != base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL')) |
---|
25 | 24 | | then throw("Attach only DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL.") |
---|
26 | 25 | | else [Burn(base58'DZxGZzacrhMS93EHK8LrCeYCrVWJaF76UpPcyHuaH9mL', pmt.amount)] |
---|
27 | 26 | | } |
---|
28 | 27 | | |
---|
29 | 28 | | |
---|
30 | 29 | | @Verifier(tx) |
---|
31 | 30 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
32 | 31 | | |
---|