tx · 9ZUUyribdJzsRL6qqb5MLNhjbXnCgv3zZbPNTRpdtVX9
3MryEKzPBGuk1m4jMf6BSGGny8KiQk1xrbp: -0.01000000 Waves
2020.10.02 18:52 [1203126] smart account 3MryEKzPBGuk1m4jMf6BSGGny8KiQk1xrbp > SELF 0.00000000 Waves
{
"type": 13,
"id": "9ZUUyribdJzsRL6qqb5MLNhjbXnCgv3zZbPNTRpdtVX9",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1601653919557,
"version": 2,
"chainId": 84,
"sender": "3MryEKzPBGuk1m4jMf6BSGGny8KiQk1xrbp",
"senderPublicKey": "5zUJ376owdLSwix9ZWA1M7aiiZeMB7VdQNXfC3Gd3Yyi",
"proofs": [
"3vAoJJEc1L2LGyYz9r2UiNfy2SopqeH8qKh3MVJgjLwDnxjrFuHJUvtQ7nTyfvSPk7ysMKJRLSHo4pjCMgs8n8ey"
],
"script": "base64:AAIEAAAAAAAAAAcIAhIDCgEZAAAAAAAAAAEAAAABaQEAAAADZm9vAAAAAQAAAAFsBAAAAAFhBAAAAAckbWF0Y2gwCQABkQAAAAIFAAAAAWwAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkAAaQAAAABBQAAAAF0AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IEAAAAAWIEAAAAByRtYXRjaDAJAAGRAAAAAgUAAAABbAAAAAAAAAAAAQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAF0BQAAAAckbWF0Y2gwCQABpAAAAAEFAAAAAXQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAUAAAABdAkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgQAAAABYwQAAAAHJG1hdGNoMAkAAZEAAAACBQAAAAFsAAAAAAAAAAACAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAXQFAAAAByRtYXRjaDAJAAGkAAAAAQUAAAABdAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF0BQAAAAckbWF0Y2gwBQAAAAF0CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkAASwAAAACCQABLAAAAAIFAAAAAWEFAAAAAWIFAAAAAWMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BC0xqQ==",
"height": 1203126,
"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 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func foo (l) = { |
---|
| 8 | + | let a = match l[0] { |
---|
| 9 | + | case t: Int => |
---|
| 10 | + | toString(t) |
---|
| 11 | + | case t: String => |
---|
| 12 | + | t |
---|
| 13 | + | case _ => |
---|
| 14 | + | throw("Match error") |
---|
| 15 | + | } |
---|
| 16 | + | let b = match l[1] { |
---|
| 17 | + | case t: Int => |
---|
| 18 | + | toString(t) |
---|
| 19 | + | case t: String => |
---|
| 20 | + | t |
---|
| 21 | + | case _ => |
---|
| 22 | + | throw("Match error") |
---|
| 23 | + | } |
---|
| 24 | + | let c = match l[2] { |
---|
| 25 | + | case t: Int => |
---|
| 26 | + | toString(t) |
---|
| 27 | + | case t: String => |
---|
| 28 | + | t |
---|
| 29 | + | case _ => |
---|
| 30 | + | throw("Match error") |
---|
| 31 | + | } |
---|
| 32 | + | [StringEntry(toBase58String(i.caller.bytes), ((a + b) + c))] |
---|
| 33 | + | } |
---|
| 34 | + | |
---|
| 35 | + | |
---|
| 36 | + | @Verifier(tx) |
---|
| 37 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 38 | + | |
---|