tx · 4HAvKQjaAr3V39ixDpK71wmbgKNPaeBBY3FTwzWNtaL8 3N4boZRUJ2LxY5jLyp6hmxGktqnawQidu6H: -0.00100000 Waves 2022.09.29 11:14 [2250143] smart account 3N4boZRUJ2LxY5jLyp6hmxGktqnawQidu6H > SELF 0.00000000 Waves
{ "type": 13, "id": "4HAvKQjaAr3V39ixDpK71wmbgKNPaeBBY3FTwzWNtaL8", "fee": 100000, "feeAssetId": null, "timestamp": 1664439311993, "version": 2, "chainId": 84, "sender": "3N4boZRUJ2LxY5jLyp6hmxGktqnawQidu6H", "senderPublicKey": "BDeCphaaC4MZvfmbJqQZ78EvuEBZTJ1VEW7fbxue8BUu", "proofs": [ "41o4oJNtH8jwk9ouaXGfdyXLNTKtRCKc9xpRcqEpH2fKwrev1Mw5ChpWRWv2RDF8Zzy8HRmZcWv3wRTA2efZuoJW" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAgEIAwAMa0luY3JlbWVudG9yAgtpbmNyZW1lbnRvcgAJc2VwYXJhdG9yAgEvABJjdXJyZW50SW5jcmVtZW50b3IJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwUMa0luY3JlbWVudG9yAAACAWkBCmluaXRTdHJ1Y3QDA2tleQZjYWxsZXIHYmFsYW5jZQkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgUDa2V5BQlzZXBhcmF0b3IJAKQDAQUSY3VycmVudEluY3JlbWVudG9yCQCsAgIJAKwCAgUGY2FsbGVyBQlzZXBhcmF0b3IFB2JhbGFuY2UFA25pbAFpAQhzZWxmQ2FsbAIFcmFuZ2UDa2V5AwkBAiE9AgUFcmFuZ2UAAAQOY3VycmVudEJhbGFuY2UJAGQCCQENcGFyc2VJbnRWYWx1ZQEJARFAZXh0ck5hdGl2ZSgxMDU4KQEJAKwCAgkArAICBQNrZXkFCXNlcGFyYXRvcgkApAMBBRJjdXJyZW50SW5jcmVtZW50b3IAAQQDcmVzCQD8BwQFBHRoaXMCCHNlbGZDYWxsCQDMCAIJAGUCBQVyYW5nZQABBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgUDa2V5BQlzZXBhcmF0b3IJAKQDAQUSY3VycmVudEluY3JlbWVudG9yCQCsAgIJAKwCAgkApQgBCAUBaQZjYWxsZXIFCXNlcGFyYXRvcgkApAMBBQ5jdXJyZW50QmFsYW5jZQkAzAgCCQEMSW50ZWdlckVudHJ5AgkApQgBBQR0aGlzCQBkAgUSY3VycmVudEluY3JlbWVudG9yAAEFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgUDbmlsAAkrmgY=", "height": 2250143, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E8fLjAFYpbM7pTQsYSX8Q8XcvLsgHvsv7Qp92fsA9MyX Next: DrehQnKn2ACfYkwYKfs69mviSe7sDD9GkdhMAoDRvWoa Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let kIncrementor = "incrementor" | |
5 | 5 | ||
6 | 6 | let separator = "/" | |
7 | 7 | ||
8 | 8 | let currentIncrementor = valueOrElse(getInteger(this, kIncrementor), 0) | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func initStruct (key,caller,balance) = [StringEntry(((key + separator) + toString(currentIncrementor)), ((caller + separator) + balance))] | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Callable(i) | |
16 | 16 | func selfCall (range,key) = if ((range != 0)) | |
17 | 17 | then { | |
18 | 18 | let currentBalance = (parseIntValue(getStringValue(((key + separator) + toString(currentIncrementor)))) + 1) | |
19 | 19 | let res = invoke(this, "selfCall", [(range - 1)], nil) | |
20 | 20 | if ((res == res)) | |
21 | 21 | then [StringEntry(((key + separator) + toString(currentIncrementor)), ((toString(i.caller) + separator) + toString(currentBalance))), IntegerEntry(toString(this), (currentIncrementor + 1))] | |
22 | 22 | else throw("Strict value is not equal to itself.") | |
23 | 23 | } | |
24 | 24 | else nil | |
25 | 25 | ||
26 | 26 |
github/deemru/w8io/169f3d6 41.07 ms ◑