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 |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func enterData (dataVal) = WriteSet([DataEntry("Content_Variable", dataVal)]) |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | |
---|
| 11 | + | @Callable(i) |
---|
| 12 | + | func getData () = { |
---|
| 13 | + | let dataContent = match getString(this, "Content_Variable") { |
---|
| 14 | + | case a: String => |
---|
| 15 | + | a |
---|
| 16 | + | case _ => |
---|
| 17 | + | 0 |
---|
| 18 | + | } |
---|
| 19 | + | ScriptResult(WriteSet([DataEntry("Content_data", dataContent)]), TransferSet([ScriptTransfer(i.caller, 0, unit)])) |
---|
| 20 | + | } |
---|
8 | 21 | | |
---|
9 | 22 | | |
---|
10 | 23 | | @Verifier(tx) |
---|
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(i) |
---|
7 | 7 | | func enterData (dataVal) = WriteSet([DataEntry("Content_Variable", dataVal)]) |
---|
| 8 | + | |
---|
| 9 | + | |
---|
| 10 | + | |
---|
| 11 | + | @Callable(i) |
---|
| 12 | + | func getData () = { |
---|
| 13 | + | let dataContent = match getString(this, "Content_Variable") { |
---|
| 14 | + | case a: String => |
---|
| 15 | + | a |
---|
| 16 | + | case _ => |
---|
| 17 | + | 0 |
---|
| 18 | + | } |
---|
| 19 | + | ScriptResult(WriteSet([DataEntry("Content_data", dataContent)]), TransferSet([ScriptTransfer(i.caller, 0, unit)])) |
---|
| 20 | + | } |
---|
8 | 21 | | |
---|
9 | 22 | | |
---|
10 | 23 | | @Verifier(tx) |
---|
11 | 24 | | func verify () = match tx { |
---|
12 | 25 | | case d: SetScriptTransaction => |
---|
13 | 26 | | sigVerify(tx.bodyBytes, tx.proofs[0], base58'HSS4a36erGkiV9CNwCE1pxUDtZ385xiKVPro36tziRHe') |
---|
14 | 27 | | case _ => |
---|
15 | 28 | | false |
---|
16 | 29 | | } |
---|
17 | 30 | | |
---|