tx · 96YQGHKCJAUcomDcMqnjQGGrfwkukyB64Yths7vCDSsN
3MzkjeuyRNZs8oxEAnCYP2sxEHEbmodtbS6: -0.04000000 Waves
2020.09.23 17:57 [1190099] smart account 3MzkjeuyRNZs8oxEAnCYP2sxEHEbmodtbS6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "96YQGHKCJAUcomDcMqnjQGGrfwkukyB64Yths7vCDSsN",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1600873113472,
"version": 2,
"chainId": 84,
"sender": "3MzkjeuyRNZs8oxEAnCYP2sxEHEbmodtbS6",
"senderPublicKey": "GBvPUpz1hAfC4tcKCoP4BwgB6YroYbajYA7Ni22VWSEs",
"proofs": [
"5k4PF3VKf5jWY7XAKbXVBAxNVLC3dwNvYEse8Hwo7nQ1GZpvVBGGEW5Lb9mRcjxhY2rve5R8qZnp7Bfwx34KNnJD"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQAAAAALbXlwdWJsaWNrZXkBAAAAIEKXKZcWm8ZroWw2Cu6o7ASQ+/gPHWPgTLEAY1sJ+g0wAAAAAQAAAAFpAQAAAAxnZXRNeU1lc3NhZ2UAAAAABAAAAApjdXJyZW50S2V5CQABLAAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5AgAAAAVfdGVzdAQAAAADbXNnBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAHJG1hdGNoMAUAAAADbXNnAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXQFAAAAByRtYXRjaDAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAJbXlNZXNzYWdlCQABLAAAAAICAAAADXJlZmVyZW5jZSBpcyAFAAAAAXQFAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAlteU1lc3NhZ2UCAAAABG5vbmUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALbXlwdWJsaWNrZXmnhDVl",
"height": 1190099,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 4 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let mypublickey = base58'5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u' |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func getMyMessage () = { |
---|
| 8 | + | let currentKey = (toBase58String(i.callerPublicKey) + "_test") |
---|
| 9 | + | let msg = match getString(this, currentKey) { |
---|
| 10 | + | case a: String => |
---|
| 11 | + | a |
---|
| 12 | + | case _ => |
---|
| 13 | + | 0 |
---|
| 14 | + | } |
---|
| 15 | + | match msg { |
---|
| 16 | + | case t: String => |
---|
| 17 | + | [StringEntry("myMessage", ("reference is " + t))] |
---|
| 18 | + | case _ => |
---|
| 19 | + | [StringEntry("myMessage", "none")] |
---|
| 20 | + | } |
---|
| 21 | + | } |
---|
| 22 | + | |
---|
| 23 | + | |
---|
| 24 | + | @Verifier(tx) |
---|
| 25 | + | func verify () = match tx { |
---|
| 26 | + | case tx: SetScriptTransaction => |
---|
| 27 | + | true |
---|
| 28 | + | case _ => |
---|
| 29 | + | sigVerify(tx.bodyBytes, tx.proofs[0], mypublickey) |
---|
| 30 | + | } |
---|
| 31 | + | |
---|