tx · 64yUT66D5oZVm4ZD4CT9jMNdpZ2HMLRqhSeAH7YmMuGt
3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm: -0.00100000 Waves
2022.07.05 10:07 [2126054] smart account 3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm > SELF 0.00000000 Waves
{
"type": 13,
"id": "64yUT66D5oZVm4ZD4CT9jMNdpZ2HMLRqhSeAH7YmMuGt",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1657004894297,
"version": 2,
"chainId": 84,
"sender": "3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm",
"senderPublicKey": "CAYySFNuYSLU5jGWNBottZuyHbvGh2JxucGYSXF3aEi8",
"proofs": [
"66RnnRPQvyAumQmBVR1pUwXk5Uo2DydJPWHpFSJNMj6gjgrjH1SvZBrTqmoWsWVjwwtwwyKagurBTRvoCvQ9hbDd"
],
"script": "base64:AAIFAAAAAAAAAA8IAhIAEgQKAgEIEgMKAQEAAAAHAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAAD3NlY29uZFNlcGFyYXRvcgIAAAABLwAAAAAJY3VzdG9tS2V5AgAAAAABAAAAC2dlbmVyYXRlS2V5AAAAAgAAAAVpbmRleAAAAARoYXNoCQAEuQAAAAIJAARMAAAAAgUAAAAEaGFzaAkABEwAAAACBQAAAAVpbmRleAUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAD3NldE1hcHBpbmdWYWx1ZQAAAAIAAAADa2V5AAAABXZhbHVlCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAANrZXkFAAAABXZhbHVlAQAAAA1nZXRWYWx1ZUJ5S2V5AAAAAQAAAANrZXkJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMFAAAAA2tleQEAAAAFZHF3ZWQAAAAACQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAQAAAAtnZW5lcmF0ZUtleQAAAAICAAAAATEJAAQlAAAAAQUAAAAEdGhpcwUAAAAPc2Vjb25kU2VwYXJhdG9yCQEAAAALZ2VuZXJhdGVLZXkAAAACAgAAAAEyCQAEJQAAAAEFAAAABHRoaXMFAAAAD3NlY29uZFNlcGFyYXRvcgkBAAAAC2dlbmVyYXRlS2V5AAAAAgIAAAABMwkABCUAAAABBQAAAAR0aGlzAAAAAwAAAAFpAQAAAAdpbml0TWFwAAAAAAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAEyCQEAAAAFZHF3ZWQAAAAABQAAAANuaWwAAAABaQEAAAANc2V0VmFsdWVJbk1hcAAAAAIAAAAFaW5kZXgAAAAFdmFsdWUJAARMAAAAAgkBAAAAD3NldE1hcHBpbmdWYWx1ZQAAAAIJAAGRAAAAAgkABLUAAAACBQAAAAljdXN0b21LZXkFAAAAD3NlY29uZFNlcGFyYXRvcgUAAAAFaW5kZXgFAAAABXZhbHVlBQAAAANuaWwAAAABaQEAAAAGZ2V0TWFwAAAAAQAAAAVpbmRleAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAExCQEAAAANZ2V0VmFsdWVCeUtleQAAAAEJAAGRAAAAAgkABLUAAAACBQAAAAljdXN0b21LZXkFAAAACXNlcGFyYXRvcgUAAAAFaW5kZXgFAAAAA25pbAAAAAD/bAPM",
"height": 2126054,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CCHfQpdddzCbD3J4c9JwPokqEhy22dwsb7jk2gnqDU62
Next: 35pNrFYp5b7HSh4JBXKeWNqGC7bf7jnCYakzTKrY4KCa
Diff:
Old | New | | Differences |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Callable(i) |
---|
28 | | - | func setValueInMap (index,value) = [setMappingValue(split(customKey, (separator + toString(index)))[index], value)] |
---|
| 28 | + | func setValueInMap (index,value) = [setMappingValue(split(customKey, secondSeparator)[index], value)] |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let separator = "_" |
---|
5 | 5 | | |
---|
6 | 6 | | let secondSeparator = "/" |
---|
7 | 7 | | |
---|
8 | 8 | | let customKey = "" |
---|
9 | 9 | | |
---|
10 | 10 | | func generateKey (index,hash) = makeString([hash, index], separator) |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | func setMappingValue (key,value) = StringEntry(key, value) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | func getValueByKey (key) = getStringValue(this, key) |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | func dqwed () = ((((generateKey("1", toString(this)) + secondSeparator) + generateKey("2", toString(this))) + secondSeparator) + generateKey("3", toString(this))) |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | @Callable(i) |
---|
23 | 23 | | func initMap () = [StringEntry("2", dqwed())] |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Callable(i) |
---|
28 | | - | func setValueInMap (index,value) = [setMappingValue(split(customKey, (separator + toString(index)))[index], value)] |
---|
| 28 | + | func setValueInMap (index,value) = [setMappingValue(split(customKey, secondSeparator)[index], value)] |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | @Callable(i) |
---|
33 | 33 | | func getMap (index) = [StringEntry("1", getValueByKey(split(customKey, separator)[index]))] |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|