tx · F2Jmc21uA66GUhfrwUsa6xj28LRcey1W7DcgbrS3am29
3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o: -0.01500000 Waves
2019.12.12 16:34 [805687] smart account 3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o > SELF 0.00000000 Waves
{
"type": 13,
"id": "F2Jmc21uA66GUhfrwUsa6xj28LRcey1W7DcgbrS3am29",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1576157680074,
"version": 1,
"sender": "3MwRAf6E8QeMetxSyjH8sJYGpLiAFtDah9o",
"senderPublicKey": "HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe",
"proofs": [
"7GXDua4nF2GF5SAZDvEWMsYTiD6EYMguDQaMHsTu79KQhzM6VnrrwwU1DexDVrAduebyv9KfUhGFwJVsvceVvQK"
],
"script": "base64:AAIDAAAAAAAAAAkIARIDCgEIEgAAAAAAAAAAAgAAAAFpAQAAAAllbnRlckRhdGEAAAABAAAAB2RhdGFWYWwJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAEENvbnRlbnRfVmFyaWFibGUFAAAAB2RhdGFWYWwFAAAAA25pbAAAAAFpAQAAAAdnZXREYXRhAAAAAAQAAAALZGF0YUNvbnRlbnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAQQ29udGVudF9WYXJpYWJsZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAACQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAMQ29udGVudF9kYXRhBQAAAAtkYXRhQ29udGVudAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAAUAAAAEdW5pdAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAEAAAAg9D7ZJW3radw9y8MQMHx8K59c78F7UiIN8aBtrQ6g2z0HBIpcYg==",
"chainId": 84,
"height": 805687,
"spentComplexity": 0
}
View: original | compacted
Prev: 4YoADN46ZshG5GCFNrQEPLuzp3vspkCjh7713DNUQDGy
Next: 3akqFTh4B5qTmNHAme837SxzyNQ4aySQC82KtVpw77cn
Diff:
Old | New | | Differences |
---|
7 | 7 | | func enterData (b) = WriteSet([DataEntry("Content_Variable", b)]) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | | - | @Verifier(c) |
---|
11 | | - | func d () = { |
---|
12 | | - | let e = c |
---|
13 | | - | if ($isInstanceOf(e, "SetScriptTransaction")) |
---|
| 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)])) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | @Verifier(f) |
---|
| 27 | + | func g () = { |
---|
| 28 | + | let d = f |
---|
| 29 | + | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
14 | 30 | | then { |
---|
15 | | - | let f = e |
---|
16 | | - | sigVerify(c.bodyBytes, c.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
| 31 | + | let h = d |
---|
| 32 | + | sigVerify(f.bodyBytes, f.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
17 | 33 | | } |
---|
18 | 34 | | else false |
---|
19 | 35 | | } |
---|
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 | 7 | | func enterData (b) = WriteSet([DataEntry("Content_Variable", b)]) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | | - | @Verifier(c) |
---|
11 | | - | func d () = { |
---|
12 | | - | let e = c |
---|
13 | | - | if ($isInstanceOf(e, "SetScriptTransaction")) |
---|
| 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)])) |
---|
| 23 | + | } |
---|
| 24 | + | |
---|
| 25 | + | |
---|
| 26 | + | @Verifier(f) |
---|
| 27 | + | func g () = { |
---|
| 28 | + | let d = f |
---|
| 29 | + | if ($isInstanceOf(d, "SetScriptTransaction")) |
---|
14 | 30 | | then { |
---|
15 | | - | let f = e |
---|
16 | | - | sigVerify(c.bodyBytes, c.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
| 31 | + | let h = d |
---|
| 32 | + | sigVerify(f.bodyBytes, f.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
17 | 33 | | } |
---|
18 | 34 | | else false |
---|
19 | 35 | | } |
---|
20 | 36 | | |
---|