tx · B3xyMptPex7zBbASJAokRmpLJbStJPgVnLmGLemffmP4 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz: -0.01000000 Waves 2022.10.19 16:28 [2279328] smart account 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz > SELF 0.00000000 Waves
{ "type": 13, "id": "B3xyMptPex7zBbASJAokRmpLJbStJPgVnLmGLemffmP4", "fee": 1000000, "feeAssetId": null, "timestamp": 1666186137627, "version": 2, "chainId": 84, "sender": "3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz", "senderPublicKey": "9y561KuPQ5dHWzq35YLJ9XAjGXaY135i4hrBiWq98nQa", "proofs": [ "2cNxTqpooXqdGCsj2NwLZeBY44X15ymGECmMKTyiJuYSMq1GdswLraEcDwvHvvdxfcrqK17rnLkvRZHzDYsqbF4S" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAABAAAAAAJcmVjaXBpZW50CQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNeE5uWVZwODFZZllwdmRwc2tmQ0FTNFNkbU5ZY3J0WUxFAQAAAAxpc0ZpcnN0bGV2ZWwAAAAABAAAAAckbWF0Y2gwCQAD/AAAAAQFAAAABHRoaXMCAAAACkZpcnN0bGV2ZWwFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAJlVuc3VwcG9ydGVkIHJlc3VsdCBmb3JtYXQgKEZpcnN0bGV2ZWwpAQAAAA1pc1NlY29uZGxldmVsAAAAAAQAAAAHJG1hdGNoMAkAA/wAAAAEBQAAAAR0aGlzAgAAAAtTZWNvbmRsZXZlbAUAAAADbmlsBQAAAANuaWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEJAAACAAAAAQIAAAAnVW5z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aWQJAAQ5AAAAAQUAAAAFbGVhc2UEAAAAAWEJAQAAAAxpc0ZpcnN0bGV2ZWwAAAAAAwkAAAAAAAACBQAAAAFhBQAAAAFhCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlyZWNpcGllbnQAAAAAAAAAAAEFAAAABHVuaXQJAARMAAAAAgUAAAAFbGVhc2UJAARMAAAAAgkBAAAAC0xlYXNlQ2FuY2VsAAAAAQUAAAACaWQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAAlzADHQ==", "height": 2279328, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HHVbjGgbHuQkRLUkZLGV4F12HR7SbjipBV5y5NQfa2sm Next: E7zQp1wRwnY3oUnV92VK5mdypXSUGcu3NsZ1oZy2GdBY Diff:
Old | New | Differences | |
---|---|---|---|
33 | 33 | let assetId = calculateAssetId(asset) | |
34 | 34 | let lease = Lease(recipient, 1) | |
35 | 35 | let id = calculateLeaseId(lease) | |
36 | - | $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), ScriptTransfer(recipient, 1, | |
36 | + | $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)], true) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 |
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("Asset1", "на первом уровне был выпущен ассет", 1, 0, true, unit, 0) | |
33 | 33 | let assetId = calculateAssetId(asset) | |
34 | 34 | let lease = Lease(recipient, 1) | |
35 | 35 | let id = calculateLeaseId(lease) | |
36 | - | $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), ScriptTransfer(recipient, 1, | |
36 | + | $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)], true) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func Secondlevel () = { | |
43 | 43 | let asset = Issue("Asset2", "на втором уровне был выпущен ассет", 1, 0, true, unit, 0) | |
44 | 44 | let assetId = calculateAssetId(asset) | |
45 | 45 | let lease = Lease(recipient, 1) | |
46 | 46 | let id = calculateLeaseId(lease) | |
47 | 47 | let a = isThirdlevel() | |
48 | 48 | if ((a == a)) | |
49 | 49 | then $Tuple2([BinaryEntry("bin2", base58''), BooleanEntry("bool2", true), IntegerEntry("int2", 1), StringEntry("str2", ""), DeleteEntry("str2"), asset, Reissue(assetId, 1, true), Burn(assetId, 1), ScriptTransfer(recipient, 1, assetId), lease], true) | |
50 | 50 | else throw("Strict value is not equal to itself.") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | ||
55 | 55 | @Callable(i) | |
56 | 56 | func Thirdlevel () = { | |
57 | 57 | let asset = Issue("Asset1", "на третьем уровне был выпущен ассет", 1, 0, true, unit, 0) | |
58 | 58 | let assetId = calculateAssetId(asset) | |
59 | 59 | let lease = Lease(recipient, 1) | |
60 | 60 | let id = calculateLeaseId(lease) | |
61 | 61 | $Tuple2([BinaryEntry("bin3", base58''), BooleanEntry("bool3", true), IntegerEntry("int3", 1), StringEntry("str3", ""), DeleteEntry("str3"), asset, Reissue(assetId, 1, true), Burn(assetId, 1), ScriptTransfer(recipient, 1, assetId), lease], true) | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(i) | |
67 | 67 | func call () = { | |
68 | 68 | let asset = Issue("NewAssettttt", "", 1, 1, true) | |
69 | 69 | let assetId = calculateAssetId(asset) | |
70 | 70 | let lease = Lease(recipient, 1) | |
71 | 71 | let id = calculateLeaseId(lease) | |
72 | 72 | let a = isFirstlevel() | |
73 | 73 | if ((a == a)) | |
74 | 74 | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), ScriptTransfer(recipient, 1, unit), lease, LeaseCancel(id)] | |
75 | 75 | else throw("Strict value is not equal to itself.") | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 |
github/deemru/w8io/169f3d6 25.22 ms ◑