tx · HLpE5JQMkUoAnZNig93vhLumoHPoLGZ3hH7s4fzpoAqh

3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2:  -0.01000000 Waves

2022.02.21 21:35 [1933788] smart account 3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2 > SELF 0.00000000 Waves

{ "type": 13, "id": "HLpE5JQMkUoAnZNig93vhLumoHPoLGZ3hH7s4fzpoAqh", "fee": 1000000, "feeAssetId": null, "timestamp": 1645468589255, "version": 2, "chainId": 84, "sender": "3N4upXkARvecPGQAtpSQ11CFASTFsvEPiP2", "senderPublicKey": "5dTGvAkGC1ryvEkRCst923pqULtN3qWs6XXueerWos1D", "proofs": [ "kZeiwRi3KnA3Z2MfKdba3wm5XDRJc1M87qcksb1MAEd9w6yhcCFPovWUTTVHwUmoqkJTtBkXazFP23Jn4mwGEpN" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAACAAAAAAdrZXlIZWFkAgAAAARoZWFkAAAAAARoZWFkCQAEHQAAAAIFAAAABHRoaXMFAAAAB2tleUhlYWQAAAACAAAAAWkBAAAABmluc2VydAAAAAEAAAACaWQEAAAADHN0YXRlQ2hhbmdlcwkABE4AAAACCQAETgAAAAIFAAAAA25pbAMJAQAAAAlpc0RlZmluZWQAAAABBQAAAARoZWFkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAACaWQCAAAABV9uZXh0CQEAAAAFdmFsdWUAAAABBQAAAARoZWFkBQAAAANuaWwFAAAAA25pbAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAdrZXlIZWFkBQAAAAJpZAUAAAADbmlsCQAFFAAAAAIFAAAADHN0YXRlQ2hhbmdlcwUAAAAEdW5pdAAAAAFpAQAAAAtkZWxldGVFbnRyeQAAAAEAAAADa2V5CQAFFAAAAAIJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAADa2V5BQAAAANuaWwFAAAABHVuaXQAAAAAdMxFUw==", "height": 1933788, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3qsBpAqTwiNEQAp4px1Lm9igYVTV5NjWrYJbGvRDynid Next: 4B1wWMNzPskCTrCkSynyJDxQzLzojfsu4kqvZRu7bbE1 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let keyFirstNode = "firstNode"
4+let keyHead = "head"
55
6-let firstNode = getString(this, keyFirstNode)
6+let head = getString(this, keyHead)
77
88 @Callable(i)
9-func insertFirst (id) = {
10- let stateChanges = ((nil ++ (if (isDefined(firstNode))
11- then [StringEntry((id + "_next"), value(firstNode)), StringEntry((value(firstNode) + "_prev"), id)]
12- else nil)) ++ [StringEntry(keyFirstNode, id)])
9+func insert (id) = {
10+ let stateChanges = ((nil ++ (if (isDefined(head))
11+ then [StringEntry((id + "_next"), value(head))]
12+ else nil)) ++ [StringEntry(keyHead, id)])
1313 $Tuple2(stateChanges, unit)
1414 }
1515
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let keyFirstNode = "firstNode"
4+let keyHead = "head"
55
6-let firstNode = getString(this, keyFirstNode)
6+let head = getString(this, keyHead)
77
88 @Callable(i)
9-func insertFirst (id) = {
10- let stateChanges = ((nil ++ (if (isDefined(firstNode))
11- then [StringEntry((id + "_next"), value(firstNode)), StringEntry((value(firstNode) + "_prev"), id)]
12- else nil)) ++ [StringEntry(keyFirstNode, id)])
9+func insert (id) = {
10+ let stateChanges = ((nil ++ (if (isDefined(head))
11+ then [StringEntry((id + "_next"), value(head))]
12+ else nil)) ++ [StringEntry(keyHead, id)])
1313 $Tuple2(stateChanges, unit)
1414 }
1515
1616
1717
1818 @Callable(i)
1919 func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit)
2020
2121

github/deemru/w8io/169f3d6 
27.94 ms