tx · 3akqFTh4B5qTmNHAme837SxzyNQ4aySQC82KtVpw77cn
3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o: -0.01500000 Waves
2019.12.13 11:14 [806837] smart account 3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o > SELF 0.00000000 Waves
{
"type": 13,
"id": "3akqFTh4B5qTmNHAme837SxzyNQ4aySQC82KtVpw77cn",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1576224833588,
"version": 1,
"sender": "3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o",
"senderPublicKey": "HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe",
"proofs": [
"579rWXR8rVmH73SjvQYuzsnrJsqhd4nyrHsty87ciXyCjkEjJdKDxF67bLa4Q4EnT4U16BHL1MhRqq48LVdNM6VA"
],
"script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAAAAAAEAAAABaQEAAAAJZW50ZXJEYXRhAAAAAQAAAAdkYXRhVmFsBAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAQQ29udGVudF9WYXJpYWJsZQUAAAAHZGF0YVZhbAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKcG10LmFtb3VudAgFAAAAA3BtdAAAAAZhbW91bnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAC3BtdC5hc3NldElkAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAlgAAAABCQEAAAAFdmFsdWUAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQCAAAABVdBVkVTBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAAAQAAACD0Ptklbetp3D3LwxAwfHwrn1zvwXtSIg3xoG2tDqDbPQcN3+Tu",
"chainId": 84,
"height": 806837,
"spentComplexity": 0
}
View: original | compacted
Prev: F2Jmc21uA66GUhfrwUsa6xj28LRcey1W7DcgbrS3am29
Next: EVGD4BLMAigusShkijdbeLCQpCaTvHaRqWGvs1hKzznm
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func enterData (b) = WriteSet([DataEntry("Content_Variable", b)]) |
---|
8 | | - | |
---|
9 | | - | |
---|
10 | | - | |
---|
11 | | - | @Callable(a) |
---|
12 | | - | func getData () = { |
---|
13 | | - | let c = { |
---|
14 | | - | let d = getString(this, "Content_Variable") |
---|
15 | | - | if ($isInstanceOf(d, "String")) |
---|
16 | | - | then { |
---|
17 | | - | let e = d |
---|
18 | | - | e |
---|
19 | | - | } |
---|
20 | | - | else 0 |
---|
21 | | - | } |
---|
22 | | - | ScriptResult(WriteSet([DataEntry("Content_data", c)]), TransferSet([ScriptTransfer(a.caller, 0, unit)])) |
---|
| 7 | + | func enterData (b) = { |
---|
| 8 | + | let c = extract(a.payment) |
---|
| 9 | + | WriteSet([DataEntry("Content_Variable", b), DataEntry("pmt.amount", c.amount), DataEntry("pmt.assetId", if (isDefined(c.assetId)) |
---|
| 10 | + | then toBase58String(value(c.assetId)) |
---|
| 11 | + | else "WAVES")]) |
---|
23 | 12 | | } |
---|
24 | 13 | | |
---|
25 | 14 | | |
---|
26 | | - | @Verifier(f) |
---|
27 | | - | func g () = { |
---|
28 | | - | let d = f |
---|
29 | | - | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 15 | + | @Verifier(d) |
---|
| 16 | + | func e () = { |
---|
| 17 | + | let f = d |
---|
| 18 | + | if ($isInstanceOf(f, "SetScriptTransaction")) |
---|
30 | 19 | | then { |
---|
31 | | - | let h = d |
---|
32 | | - | sigVerify(f.bodyBytes, f.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
| 20 | + | let g = f |
---|
| 21 | + | sigVerify(d.bodyBytes, d.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
33 | 22 | | } |
---|
34 | 23 | | else false |
---|
35 | 24 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func enterData (b) = WriteSet([DataEntry("Content_Variable", b)]) |
---|
8 | | - | |
---|
9 | | - | |
---|
10 | | - | |
---|
11 | | - | @Callable(a) |
---|
12 | | - | func getData () = { |
---|
13 | | - | let c = { |
---|
14 | | - | let d = getString(this, "Content_Variable") |
---|
15 | | - | if ($isInstanceOf(d, "String")) |
---|
16 | | - | then { |
---|
17 | | - | let e = d |
---|
18 | | - | e |
---|
19 | | - | } |
---|
20 | | - | else 0 |
---|
21 | | - | } |
---|
22 | | - | ScriptResult(WriteSet([DataEntry("Content_data", c)]), TransferSet([ScriptTransfer(a.caller, 0, unit)])) |
---|
| 7 | + | func enterData (b) = { |
---|
| 8 | + | let c = extract(a.payment) |
---|
| 9 | + | WriteSet([DataEntry("Content_Variable", b), DataEntry("pmt.amount", c.amount), DataEntry("pmt.assetId", if (isDefined(c.assetId)) |
---|
| 10 | + | then toBase58String(value(c.assetId)) |
---|
| 11 | + | else "WAVES")]) |
---|
23 | 12 | | } |
---|
24 | 13 | | |
---|
25 | 14 | | |
---|
26 | | - | @Verifier(f) |
---|
27 | | - | func g () = { |
---|
28 | | - | let d = f |
---|
29 | | - | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
| 15 | + | @Verifier(d) |
---|
| 16 | + | func e () = { |
---|
| 17 | + | let f = d |
---|
| 18 | + | if ($isInstanceOf(f, "SetScriptTransaction")) |
---|
30 | 19 | | then { |
---|
31 | | - | let h = d |
---|
32 | | - | sigVerify(f.bodyBytes, f.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
| 20 | + | let g = f |
---|
| 21 | + | sigVerify(d.bodyBytes, d.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
33 | 22 | | } |
---|
34 | 23 | | else false |
---|
35 | 24 | | } |
---|
36 | 25 | | |
---|