tx · 6yoH4Wsyx3WY3DnAGYUaF6aCA1mPHdRxXusLCKVAneLL 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz: -0.01000000 Waves 2022.11.10 14:25 [2310989] smart account 3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz > SELF 0.00000000 Waves
{ "type": 13, "id": "6yoH4Wsyx3WY3DnAGYUaF6aCA1mPHdRxXusLCKVAneLL", "fee": 1000000, "feeAssetId": null, "timestamp": 1668079345828, "version": 2, "chainId": 84, "sender": "3N3DQFhEz8QzvM2hrNHMsXKqfcZiAnzrvAz", "senderPublicKey": "9y561KuPQ5dHWzq35YLJ9XAjGXaY135i4hrBiWq98nQa", "proofs": [ "5QMw8RBpg6ohEqVYFmdzQXN6FPyJ5ye3J9XhQxjzvYKkSNePykw8BEYNCzjevunZcBsCh2SAhDqB3hikivjUPu3Y" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAUAAAAACXJlY2lwaWVudAkBAAAABXZhbHVlAAAAAQkABCYAAAABAgAAACMzTXhObllWcDgxWWZZcHZkcHNrZkNBUzRTZG1OWWNydFlMRQAAAAAMb3RoZXJBY3Rpb25zCQEAAAAFdmFsdWUAAAABCQAEJgAAAAECAAAAIzNNcmltaHF2R3ZUUTR3UkVLNHk3NkpDN1V4NG9DS3FYZ2RMAQAAAAxpc0ZpcnN0bGV2ZWwAAAAABAAAAAckbWF0Y2gwCQAD/AAAAAQFAAAABHRoaXMCAAAACkZpcnN0bGV2ZWwFAAAAA25pbAUAAAADbmlsAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhCQAAAgAAAAECAAAAJlVuc3VwcG9ydGVkIHJlc3VsdCBmb3JtYXQgKEZpcnN0bGV2ZWwpAQAAAA1pc1NlY29uZGxldmVsAAAAAAQAAAAHJG1hdGNoMAkAA/wAAAAEBQAAAAR0aGlzAgAAAAtTZWNvbmRsZXZl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AAAAAAAMEAAAAAmlkCQAEOQAAAAEFAAAABWxlYXNlCQAFFAAAAAIJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAAEYmluMwEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAAVib29sMwYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABGludDMAAAAAAAAAAAEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAEc3RyMwIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAABHN0cjMJAARMAAAAAgUAAAAFYXNzZXQJAARMAAAAAgkBAAAAB1JlaXNzdWUAAAADBQAAAAdhc3NldElkAAAAAAAAAAABBgkABEwAAAACCQEAAAAEQnVybgAAAAIFAAAAB2Fzc2V0SWQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJcmVjaXBpZW50AAAAAAAALcbABQAAAAR1bml0CQAETAAAAAIFAAAABWxlYXNlCQAETAAAAAIJAARCAAAABQIAAAALVWJlclRva2VuMzMCAAAAIFRoZSB1bHRpbWF0ZSB0b2tlbi4gT25lIGFuZCBvbmx5AAAAAAAAAAABAAAAAAAAAAAABwkABEwAAAACCQEAAAALTGVhc2VDYW5jZWwAAAABBQAAAAJpZAUAAAADbmlsBgAAAAD3BtJz", "height": 2310989, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HEX4cT9SBjuqiLDTAHjJB5qpMP18GtRvsVSSRTkDLpsr Next: AfsDiVXZCLeGGhLdW1pHjkTAwS99uML2gX4Uj4qTTdfW Full:
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 | let otherActions = value(addressFromString("3MrimhqvGvTQ4wREK4y76JC7Ux4oCKqXgdL")) | |
7 | 7 | ||
8 | 8 | func isFirstlevel () = match invoke(this, "Firstlevel", nil, nil) { | |
9 | 9 | case a: Boolean => | |
10 | 10 | a | |
11 | 11 | case _ => | |
12 | 12 | throw("Unsupported result format (Firstlevel)") | |
13 | 13 | } | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func isSecondlevel () = match invoke(this, "Secondlevel", nil, nil) { | |
17 | 17 | case a: Boolean => | |
18 | 18 | a | |
19 | 19 | case _ => | |
20 | 20 | throw("Unsupported result format (Secondlevel)") | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func isThirdlevel () = match invoke(this, "Thirdlevel", nil, nil) { | |
25 | 25 | case a: Boolean => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | throw("Unsupported result format (Thirdlevel)") | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func Firstlevel () = { | |
34 | 34 | let asset = Issue("RTokenRToken11", "This is an ordinary token", 1000000, 2, true, unit, 0) | |
35 | 35 | let assetId = calculateAssetId(asset) | |
36 | 36 | let lease = Lease(recipient, 1, 1) | |
37 | 37 | let id = calculateLeaseId(lease) | |
38 | 38 | let a = isSecondlevel() | |
39 | 39 | if ((a == a)) | |
40 | 40 | then { | |
41 | 41 | let b = invoke(otherActions, "otherActionsFirstlevel", nil, nil) | |
42 | 42 | if ((b == b)) | |
43 | 43 | then $Tuple2([BinaryEntry("bin1", base58''), BooleanEntry("bool1", true), IntegerEntry("int1", 1), StringEntry("str1", ""), DeleteEntry("str1"), asset, Reissue(assetId, 1, true), Burn(assetId, 1000000), ScriptTransfer(recipient, 1000000, unit), lease, Issue("UberToken11", "The ultimate token. One and only", 1, 0, false), LeaseCancel(id)], true) | |
44 | 44 | else throw("Strict value is not equal to itself.") | |
45 | 45 | } | |
46 | 46 | else throw("Strict value is not equal to itself.") | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(i) | |
52 | 52 | func Secondlevel () = { | |
53 | 53 | let asset = Issue("RTokenRToken22", "This is an ordinary token", 1000000, 2, true, unit, 0) | |
54 | 54 | let assetId = calculateAssetId(asset) | |
55 | 55 | let lease = Lease(recipient, 1, 2) | |
56 | 56 | let id = calculateLeaseId(lease) | |
57 | 57 | let a = isThirdlevel() | |
58 | 58 | if ((a == a)) | |
59 | 59 | then $Tuple2([BinaryEntry("bin2", base58''), BooleanEntry("bool2", true), IntegerEntry("int2", 1), StringEntry("str2", ""), DeleteEntry("str2"), asset, Reissue(assetId, 1, true), Burn(assetId, 1000000), ScriptTransfer(recipient, 2000000, unit), lease, Issue("UberToken22", "The ultimate token. One and only", 1, 0, false), LeaseCancel(id)], true) | |
60 | 60 | else throw("Strict value is not equal to itself.") | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | ||
65 | 65 | @Callable(i) | |
66 | 66 | func Thirdlevel () = { | |
67 | 67 | let asset = Issue("RTokenRToken33", "This is an ordinary token", 1000000, 2, true, unit, 0) | |
68 | 68 | let assetId = calculateAssetId(asset) | |
69 | 69 | let lease = Lease(recipient, 1, 3) | |
70 | 70 | let id = calculateLeaseId(lease) | |
71 | 71 | $Tuple2([BinaryEntry("bin3", base58''), BooleanEntry("bool3", true), IntegerEntry("int3", 1), StringEntry("str3", ""), DeleteEntry("str3"), asset, Reissue(assetId, 1, true), Burn(assetId, 1), ScriptTransfer(recipient, 3000000, unit), lease, Issue("UberToken33", "The ultimate token. One and only", 1, 0, false), LeaseCancel(id)], true) | |
72 | 72 | } | |
73 | 73 | ||
74 | 74 |
github/deemru/w8io/169f3d6 42.05 ms ◑