tx · 3TQiYxu8Tt9cgRb3rsQzvVfkeGLYHdkYvUoUGUBTGT2s 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz: -0.01000000 Waves 2022.10.25 16:23 [2287963] smart account 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz > SELF 0.00000000 Waves
{ "type": 13, "id": "3TQiYxu8Tt9cgRb3rsQzvVfkeGLYHdkYvUoUGUBTGT2s", "fee": 1000000, "feeAssetId": null, "timestamp": 1666704043536, "version": 2, "chainId": 84, "sender": "3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz", "senderPublicKey": "9y561KuPQ5dHWzq35YLJ9XAjGXaY135i4hrBiWq98nQa", "proofs": [ "3NkDQTE3D5AMxrCXsFy645Gyc8P7jbEmb9xD5Fez6pZtosRfXSHmuDi9knhtvzPtKywbCj5yH3y57NumrPMVya9" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAABAAAAAAJcmVjaXBpZW50CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNeE5uWVZwODFZZllwdmRwc2tmQ0FTNFNkbU5ZY3J0WUxFAQAAAAxpc0ZpcnN0bGV2ZWwAAAAABAAAAAckbWF0Y2gwCQAD/AAAAAQFAAAABHRoaXMCAAAACkZpcnN0bGV2ZWwFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAJlVuc3VwcG9ydGVkIHJlc3VsdCBmb3JtYXQgKEZpcnN0bGV2ZWwpAQAAAA1pc1NlY29uZGxldmVsAAAAAAQAAAAHJG1hdGNoMAkAA/wAAAAEBQAAAAR0aGlzAgAAAAtTZWNvbmRsZXZlbAUAAAADbmlsBQAAAANuaWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEJAAAC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AADbmlsBgAAAAFpAQAAAARjYWxsAAAAAAQAAAAFYXNzZXQJAARCAAAABQIAAAAMTmV3QXNzZXR0dHR0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAEGBAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0BAAAAAVsZWFzZQkABEUAAAADBQAAAAlyZWNpcGllbnQAAAAAAAAAAAEAAAAAAAAAAAAEAAAAAmlkCQAEOQAAAAEFAAAABWxlYXNlBAAAAAFhCQEAAAAMaXNGaXJzdGxldmVsAAAAAAMJAAAAAAAAAgUAAAABYQUAAAABYQkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAAANiaW4BAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAEYm9vbAYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA2ludAAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANzdHICAAAAAAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABAgAAAANzdHIJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJcmVjaXBpZW50AAAAAAAAAAABBQAAAAR1bml0CQAETAAAAAIFAAAABWxlYXNlCQAETAAAAAIJAQAAAAtMZWFzZUNhbmNlbAAAAAEFAAAAAmlkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAOPdoiw=", "height": 2287963, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 65WUtpjWua7TdY3YAAJmZznfj7TbjjrjwsdvVDUcLw1L Next: 3Dd9z42YHvzbhLD6WzbJ4GJ5JQwXjru3kAFGWC6YPFuD Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | let id = calculateLeaseId(lease) | |
36 | 36 | let a = isSecondlevel() | |
37 | 37 | if ((a == a)) | |
38 | - | then $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), | |
38 | + | then $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), Issue("RTokenRToken", "This is an ordinary token", 1000000, 2, true, unit, 0), ScriptTransfer(recipient, 1, unit), lease, Issue("UberToken", "The ultimate token. One and only", 1, 0, false), LeaseCancel(id)], true) | |
39 | 39 | else throw("Strict value is not equal to itself.") | |
40 | 40 | } | |
41 | 41 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let recipient = value(addressFromString("3MxNnYVp81YfYpvdpskfCAS4SdmNYcrtYLE")) | |
5 | 5 | ||
6 | 6 | func isFirstlevel () = match invoke(this, "Firstlevel", nil, nil) { | |
7 | 7 | case a: Boolean => | |
8 | 8 | a | |
9 | 9 | case _ => | |
10 | 10 | throw("Unsupported result format (Firstlevel)") | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func isSecondlevel () = match invoke(this, "Secondlevel", nil, nil) { | |
15 | 15 | case a: Boolean => | |
16 | 16 | a | |
17 | 17 | case _ => | |
18 | 18 | throw("Unsupported result format (Secondlevel)") | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func isThirdlevel () = match invoke(this, "Thirdlevel", nil, nil) { | |
23 | 23 | case a: Boolean => | |
24 | 24 | a | |
25 | 25 | case _ => | |
26 | 26 | throw("Unsupported result format (Thirdlevel)") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(i) | |
31 | 31 | func Firstlevel () = { | |
32 | 32 | let asset = Issue("RTokenRToken", "This is an ordinary token", 1000000, 2, true, unit, 0) | |
33 | 33 | let assetId = calculateAssetId(asset) | |
34 | 34 | let lease = Lease(recipient, 1, 1) | |
35 | 35 | let id = calculateLeaseId(lease) | |
36 | 36 | let a = isSecondlevel() | |
37 | 37 | if ((a == a)) | |
38 | - | then $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), | |
38 | + | then $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), Issue("RTokenRToken", "This is an ordinary token", 1000000, 2, true, unit, 0), ScriptTransfer(recipient, 1, unit), lease, Issue("UberToken", "The ultimate token. One and only", 1, 0, false), LeaseCancel(id)], true) | |
39 | 39 | else throw("Strict value is not equal to itself.") | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(i) | |
45 | 45 | func Secondlevel () = { | |
46 | 46 | let asset = Issue("Asset2", "на втором уровне был выпущен ассет", 1, 0, true, unit, 0) | |
47 | 47 | let assetId = calculateAssetId(asset) | |
48 | 48 | let lease = Lease(recipient, 1, 2) | |
49 | 49 | let id = calculateLeaseId(lease) | |
50 | 50 | let a = isThirdlevel() | |
51 | 51 | if ((a == a)) | |
52 | 52 | then $Tuple2([BinaryEntry("bin2", base58''), BooleanEntry("bool2", true), IntegerEntry("int2", 1), StringEntry("str2", ""), DeleteEntry("str2"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)], true) | |
53 | 53 | else throw("Strict value is not equal to itself.") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Callable(i) | |
59 | 59 | func Thirdlevel () = { | |
60 | 60 | let asset = Issue("Asset1", "на третьем уровне был выпущен ассет", 1, 0, true, unit, 0) | |
61 | 61 | let assetId = calculateAssetId(asset) | |
62 | 62 | let lease = Lease(recipient, 1, 3) | |
63 | 63 | let id = calculateLeaseId(lease) | |
64 | 64 | $Tuple2([BinaryEntry("bin3", base58''), BooleanEntry("bool3", true), IntegerEntry("int3", 1), StringEntry("str3", ""), DeleteEntry("str3"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)], true) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(i) | |
70 | 70 | func call () = { | |
71 | 71 | let asset = Issue("NewAssettttt", "", 1, 1, true) | |
72 | 72 | let assetId = calculateAssetId(asset) | |
73 | 73 | let lease = Lease(recipient, 1, 0) | |
74 | 74 | let id = calculateLeaseId(lease) | |
75 | 75 | let a = isFirstlevel() | |
76 | 76 | if ((a == a)) | |
77 | 77 | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)] | |
78 | 78 | else throw("Strict value is not equal to itself.") | |
79 | 79 | } | |
80 | 80 | ||
81 | 81 |
github/deemru/w8io/026f985 41.98 ms ◑