tx · Dan5J6G3hEqV8EjEo45qVhcBxV91p3zzWF8VHCBpVoT4 3My8vakBzFxjGt2E5eswTdXmj2hxFWZNyd1: -0.01400000 Waves 2020.12.01 17:46 [1289737] smart account 3My8vakBzFxjGt2E5eswTdXmj2hxFWZNyd1 > SELF 0.00000000 Waves
{ "type": 13, "id": "Dan5J6G3hEqV8EjEo45qVhcBxV91p3zzWF8VHCBpVoT4", "fee": 1400000, "feeAssetId": null, "timestamp": 1606833996484, "version": 2, "chainId": 84, "sender": "3My8vakBzFxjGt2E5eswTdXmj2hxFWZNyd1", "senderPublicKey": "6wWhfrsV3oaJXajgLddi8ZA3gTyxb1yjaUfqwLfrXKMc", "proofs": [ "5wXZhUmCzpJ2h2UALiwfF92FM82cqn58aEki5qNTzcpwRpKt1u9tHojCy8Mdfuj5esD5cX6d3FGLoi4ZtiiLyhj" ], "script": "base64:AAIEAAAAAAAAAAsIAhIHCgURGBIUHwAAAAEBAAAACHdyaXRlQXJnAAAAAQAAAAVhbnlFbAQAAAAHJG1hdGNoMAUAAAAFYW55RWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAADaW50BQAAAAckbWF0Y2gwCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFaW50RWwFAAAAA2ludAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAAEYm9vbAUAAAAHJG1hdGNoMAkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAABmJvb2xFbAUAAAAEYm9vbAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABXN0ckVsBQAAAANzdHIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2JpbgUAAAAHJG1hdGNoMAkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAAFYmluRWwFAAAAA2JpbgkAAAIAAAABAgAAABNFcnJvcjogdW5rbm93biB0eXBlAAAAAQAAAAFpAQAAAARjYWxsAAAABQAAAAdpbnRMaXN0AAAAB3N0ckxpc3QAAAAIYnl0ZUxpc3QAAAAIYm9vbExpc3QAAAAHYW55TGlzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50CQABkQAAAAIFAAAAB2ludExpc3QAAAAAAAAAAAAJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAADc3RyCQABkQAAAAIFAAAAB3N0ckxpc3QAAAAAAAAAAAAJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAADYmluCQABkQAAAAIFAAAACGJ5dGVMaXN0AAAAAAAAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sCQABkQAAAAIFAAAACGJvb2xMaXN0AAAAAAAAAAAACQAETAAAAAIJAQAAAAh3cml0ZUFyZwAAAAEJAAGRAAAAAgUAAAAHYW55TGlzdAAAAAAAAAAAAAkABEwAAAACCQEAAAAId3JpdGVBcmcAAAABCQABkQAAAAIFAAAAB2FueUxpc3QAAAAAAAAAAAEJAARMAAAAAgkBAAAACHdyaXRlQXJnAAAAAQkAAZEAAAACBQAAAAdhbnlMaXN0AAAAAAAAAAACCQAETAAAAAIJAQAAAAh3cml0ZUFyZwAAAAEJAAGRAAAAAgUAAAAHYW55TGlzdAAAAAAAAAAAAwUAAAADbmlsAAAAAKkkUMQ=", "height": 1289737, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ekcwi3Aajaa89g1473h1PjbiC3bHeivmxooQTheRVkn9 Next: G4VTTyq32NtRieETR8pXPJkJ3Uz5vB6yF9rqyrMNBCA3 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func writeArg (anyEl) = match anyEl { | |
5 | + | case int: Int => | |
6 | + | IntegerEntry("intEl", int) | |
7 | + | case bool: Boolean => | |
8 | + | BooleanEntry("boolEl", bool) | |
9 | + | case str: String => | |
10 | + | StringEntry("strEl", str) | |
11 | + | case bin: ByteVector => | |
12 | + | BinaryEntry("binEl", bin) | |
13 | + | case _ => | |
14 | + | throw("Error: unknown type") | |
15 | + | } | |
4 | 16 | ||
5 | 17 | ||
6 | 18 | @Callable(i) | |
7 | - | func call () = { | |
8 | - | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
9 | - | let assetId = calculateAssetId(asset) | |
10 | - | [asset, ScriptTransfer(i.caller, 1, assetId)] | |
11 | - | } | |
19 | + | func call (intList,strList,byteList,boolList,anyList) = [IntegerEntry("int", intList[0]), StringEntry("str", strList[0]), BinaryEntry("bin", byteList[0]), BooleanEntry("bool", boolList[0]), writeArg(anyList[0]), writeArg(anyList[1]), writeArg(anyList[2]), writeArg(anyList[3])] | |
12 | 20 | ||
13 | 21 |
github/deemru/w8io/169f3d6 31.43 ms ◑