tx · 5zcvqF14Yv5QdhJubwvkqp7Gp9q9o3ELMWpzmU4HYbpm
3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves
2022.07.01 11:40 [2120361] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{
"type": 13,
"id": "5zcvqF14Yv5QdhJubwvkqp7Gp9q9o3ELMWpzmU4HYbpm",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1656664914298,
"version": 2,
"chainId": 84,
"sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42",
"senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB",
"proofs": [
"RuAt76p79y7CSy3T2a39RunwgbmFJtTdoyYFQkDNvjUPEUz7WW95K8CHQzMKSZKuU28KL2Dxq71NE6qm3G4ojXU"
],
"script": "base64:AAIFAAAAAAAAAA0IAhIAEgMKAQgSABIAAAAABgAAAAAJc2VwYXJhdG9yAgAAAAFfAAAAAA9zZWNvbmRTZXBhcmF0b3ICAAAAAS8BAAAADWdldE1hcHBpbmdLZXkAAAADAAAAC21hcHBpbmdOYW1lAAAABGFkZHIAAAAJc2VwYXJhdG9yCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAC2dldEVsZW1lbnRzAAAAAwAAAAttYXBwaW5nTmFtZQAAAARhZGRyAAAACXNlcGFyYXRvcgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkBAAAADWdldE1hcHBpbmdLZXkAAAADBQAAAAttYXBwaW5nTmFtZQUAAAAEYWRkcgUAAAAJc2VwYXJhdG9yAQAAABhzZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIEAAAACXNlY29uZEtleQkBAAAADWdldE1hcHBpbmd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AACAgAAAAEyCQEAAAALZ2V0RWxlbWVudHMAAAADAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwUAAAAPc2Vjb25kU2VwYXJhdG9yBQAAAANuaWwAAAAAtz+onQ==",
"height": 2120361,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5mhxXwD9z4Tst4H8oXwvNiwngg9yVmKM6NX5ytPctFRH
Next: DfKHoJipuSxSrnZxtWh8hgZgnM8XKEPrH1zz8bPnAJn1
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let secondSeparator = "/" |
---|
7 | 7 | | |
---|
8 | | - | func getAddrToIntMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator) |
---|
| 8 | + | func getMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | | - | func getElements (mappingName,addr,separator) = getStringValue(this, getAddrToIntMappingKey(mappingName, addr, separator)) |
---|
| 11 | + | func getElements (mappingName,addr,separator) = getStringValue(this, getMappingKey(mappingName, addr, separator)) |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | func setAddrToIntMappingValue (mappingName,addr) = { |
---|
15 | | - | let secondKey = getAddrToIntMappingKey(mappingName, addr, secondSeparator) |
---|
16 | | - | StringEntry(getAddrToIntMappingKey("mapString", addr, separator), secondKey) |
---|
| 15 | + | let secondKey = getMappingKey(mappingName, addr, secondSeparator) |
---|
| 16 | + | StringEntry(getMappingKey("mapString", addr, separator), secondKey) |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func setAddrToIntMappingValueSecond (mappingName,addr,val) = if ((150 >= size(val))) |
---|
21 | | - | then StringEntry(getAddrToIntMappingKey("mapString", addr, secondSeparator), val) |
---|
| 21 | + | then StringEntry(getMappingKey("mapString", addr, secondSeparator), val) |
---|
22 | 22 | | else throw("overcrowded") |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | @Callable(i) |
---|
41 | | - | func getElementFromArray (index,indexIn) = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))] |
---|
| 41 | + | func getElementFromArray () = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))] |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
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 | | - | func getAddrToIntMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator) |
---|
| 8 | + | func getMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | | - | func getElements (mappingName,addr,separator) = getStringValue(this, getAddrToIntMappingKey(mappingName, addr, separator)) |
---|
| 11 | + | func getElements (mappingName,addr,separator) = getStringValue(this, getMappingKey(mappingName, addr, separator)) |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | func setAddrToIntMappingValue (mappingName,addr) = { |
---|
15 | | - | let secondKey = getAddrToIntMappingKey(mappingName, addr, secondSeparator) |
---|
16 | | - | StringEntry(getAddrToIntMappingKey("mapString", addr, separator), secondKey) |
---|
| 15 | + | let secondKey = getMappingKey(mappingName, addr, secondSeparator) |
---|
| 16 | + | StringEntry(getMappingKey("mapString", addr, separator), secondKey) |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | func setAddrToIntMappingValueSecond (mappingName,addr,val) = if ((150 >= size(val))) |
---|
21 | | - | then StringEntry(getAddrToIntMappingKey("mapString", addr, secondSeparator), val) |
---|
| 21 | + | then StringEntry(getMappingKey("mapString", addr, secondSeparator), val) |
---|
22 | 22 | | else throw("overcrowded") |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Callable(i) |
---|
26 | 26 | | func setMap () = [setAddrToIntMappingValue("mapString", toString(this))] |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | 30 | | @Callable(i) |
---|
31 | 31 | | func setMapInMap (valueInt) = [setAddrToIntMappingValueSecond("mapString", toString(this), valueInt)] |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Callable(i) |
---|
36 | 36 | | func getArrayFromStruct () = [StringEntry("1", getElements("mapString", toString(this), separator))] |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | 39 | | |
---|
40 | 40 | | @Callable(i) |
---|
41 | | - | func getElementFromArray (index,indexIn) = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))] |
---|
| 41 | + | func getElementFromArray () = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))] |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|