tx · TFnwoHWWX5STpJhde4Bo8LQ1Zyj5igTxWNZ2cgzCXm5 3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2: -0.01000000 Waves 2022.02.22 11:17 [1934613] smart account 3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2 > SELF 0.00000000 Waves
{ "type": 13, "id": "TFnwoHWWX5STpJhde4Bo8LQ1Zyj5igTxWNZ2cgzCXm5", "fee": 1000000, "feeAssetId": null, "timestamp": 1645517880994, "version": 2, "chainId": 84, "sender": "3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2", "senderPublicKey": "5dTGvAkGC1ryvEkRCst923pqULtN3qWs6XXueerWos1D", "proofs": [ "3L2fRGgswkPbYUydzxhJtqQYmi92B28yoofrcoVJ4bLcmetUG9jQZJJQiagPkvGX1jKnbEuS4eyBMQLU91m99UcE" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAACAAAAAAdrZXlIZWFkAgAAAARoZWFkAAAAAARoZWFkCQAEHQAAAAIFAAAABHRoaXMFAAAAB2tleUhlYWQAAAACAAAAAWkBAAAABmluc2VydAAAAAEAAAACaWQEAAAADHN0YXRlQ2hhbmdlcwkABE4AAAACCQAETgAAAAIFAAAAA25pbAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAARoZWFkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAACaWQCAAAABl9fbmV4dAkBAAAABXZhbHVlAAAAAQUAAAAEaGVhZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAIJAQAAAAV2YWx1ZQAAAAEFAAAABGhlYWQCAAAABl9fcHJldgUAAAACaWQFAAAAA25pbAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAB2tleUhlYWQFAAAAAmlkBQAAAANuaWwJAAUUAAAAAgUAAAAMc3RhdGVDaGFuZ2VzBQAAAAR1bml0AAAAAWkBAAAABmRlbGV0ZQAAAAEAAAACaWQEAAAADHN0YXRlQ2hhbmdlcwkABE4AAAACCQAETgAAAAIFAAAAA25pbAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAARoZWFkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAACaWQCAAAABV9uZXh0CQEAAAAFdmFsdWUAAAABBQAAAARoZWFkBQAAAANuaWwFAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAdrZXlIZWFkBQAAAAJpZAUAAAADbmlsCQAFFAAAAAIFAAAADHN0YXRlQ2hhbmdlcwUAAAAEdW5pdAAAAACeaC9c", "height": 1934613, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4B1wWMNzPskCTrCkSynyJDxQzLzojfsu4kqvZRu7bbE1 Next: 89qDxPZ5dGY41vX2PPfezQgysh8wfvbhY4NXD9noH17J Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | - | ||
28 | - | @Callable(i) | |
29 | - | func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit) | |
30 | - | ||
31 | - |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let keyHead = "head" | |
5 | 5 | ||
6 | 6 | let head = getString(this, keyHead) | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func insert (id) = { | |
10 | 10 | let stateChanges = ((nil ++ (if (isDefined(head)) | |
11 | 11 | then [StringEntry((id + "__next"), value(head)), StringEntry((value(head) + "__prev"), id)] | |
12 | 12 | else nil)) ++ [StringEntry(keyHead, id)]) | |
13 | 13 | $Tuple2(stateChanges, unit) | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | @Callable(i) | |
19 | 19 | func delete (id) = { | |
20 | 20 | let stateChanges = ((nil ++ (if (isDefined(head)) | |
21 | 21 | then [StringEntry((id + "_next"), value(head))] | |
22 | 22 | else nil)) ++ [StringEntry(keyHead, id)]) | |
23 | 23 | $Tuple2(stateChanges, unit) | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | - | ||
28 | - | @Callable(i) | |
29 | - | func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit) | |
30 | - | ||
31 | - |
github/deemru/w8io/169f3d6 24.66 ms ◑