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