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:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let keyFirstNode = "firstNode" |
---|
| 4 | + | let keyHead = "head" |
---|
5 | 5 | | |
---|
6 | | - | let firstNode = getString(this, keyFirstNode) |
---|
| 6 | + | let head = getString(this, keyHead) |
---|
7 | 7 | | |
---|
8 | 8 | | @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)]) |
---|
13 | 13 | | $Tuple2(stateChanges, unit) |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let keyFirstNode = "firstNode" |
---|
| 4 | + | let keyHead = "head" |
---|
5 | 5 | | |
---|
6 | | - | let firstNode = getString(this, keyFirstNode) |
---|
| 6 | + | let head = getString(this, keyHead) |
---|
7 | 7 | | |
---|
8 | 8 | | @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)]) |
---|
13 | 13 | | $Tuple2(stateChanges, unit) |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | @Callable(i) |
---|
19 | 19 | | func deleteEntry (key) = $Tuple2([DeleteEntry(key)], unit) |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|