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:
OldNewDifferences
2424 }
2525
2626
27-
28-@Callable(i)
29-func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit)
30-
31-
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let keyHead = "head"
55
66 let head = getString(this, keyHead)
77
88 @Callable(i)
99 func insert (id) = {
1010 let stateChanges = ((nil ++ (if (isDefined(head))
1111 then [StringEntry((id + "__next"), value(head)), StringEntry((value(head) + "__prev"), id)]
1212 else nil)) ++ [StringEntry(keyHead, id)])
1313 $Tuple2(stateChanges, unit)
1414 }
1515
1616
1717
1818 @Callable(i)
1919 func delete (id) = {
2020 let stateChanges = ((nil ++ (if (isDefined(head))
2121 then [StringEntry((id + "_next"), value(head))]
2222 else nil)) ++ [StringEntry(keyHead, id)])
2323 $Tuple2(stateChanges, unit)
2424 }
2525
2626
27-
28-@Callable(i)
29-func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit)
30-
31-

github/deemru/w8io/169f3d6 
24.66 ms