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:AAIFAAAAAAAAAA0IAhIAEgMKAQgSABIAAAAABgAAAAAJc2VwYXJhdG9yAgAAAAFfAAAAAA9zZWNvbmRTZXBhcmF0b3ICAAAAAS8BAAAADWdldE1hcHBpbmdLZXkAAAADAAAAC21hcHBpbmdOYW1lAAAABGFkZHIAAAAJc2VwYXJhdG9yCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAC2dldEVsZW1lbnRzAAAAAwAAAAttYXBwaW5nTmFtZQAAAARhZGRyAAAACXNlcGFyYXRvcgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkBAAAADWdldE1hcHBpbmdLZXkAAAADBQAAAAttYXBwaW5nTmFtZQUAAAAEYWRkcgUAAAAJc2VwYXJhdG9yAQAAABhzZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIEAAAACXNlY29uZEtleQkBAAAADWdldE1hcHBpbmdLZXkAAAADB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yCQEAAAALZ2V0RWxlbWVudHMAAAADAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwUAAAAPc2Vjb25kU2VwYXJhdG9yBQAAAANuaWwAAAAAtz+onQ==", "height": 2120361, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5mhxXwD9z4Tst4H8oXwvNiwngg9yVmKM6NX5ytPctFRH Next: DfKHoJipuSxSrnZxtWh8hgZgnM8XKEPrH1zz8bPnAJn1 Diff:
OldNewDifferences
55
66 let secondSeparator = "/"
77
8-func getAddrToIntMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator)
8+func getMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator)
99
1010
11-func getElements (mappingName,addr,separator) = getStringValue(this, getAddrToIntMappingKey(mappingName, addr, separator))
11+func getElements (mappingName,addr,separator) = getStringValue(this, getMappingKey(mappingName, addr, separator))
1212
1313
1414 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)
1717 }
1818
1919
2020 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)
2222 else throw("overcrowded")
2323
2424
3838
3939
4040 @Callable(i)
41-func getElementFromArray (index,indexIn) = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))]
41+func getElementFromArray () = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))]
4242
4343
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "_"
55
66 let secondSeparator = "/"
77
8-func getAddrToIntMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator)
8+func getMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator)
99
1010
11-func getElements (mappingName,addr,separator) = getStringValue(this, getAddrToIntMappingKey(mappingName, addr, separator))
11+func getElements (mappingName,addr,separator) = getStringValue(this, getMappingKey(mappingName, addr, separator))
1212
1313
1414 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)
1717 }
1818
1919
2020 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)
2222 else throw("overcrowded")
2323
2424
2525 @Callable(i)
2626 func setMap () = [setAddrToIntMappingValue("mapString", toString(this))]
2727
2828
2929
3030 @Callable(i)
3131 func setMapInMap (valueInt) = [setAddrToIntMappingValueSecond("mapString", toString(this), valueInt)]
3232
3333
3434
3535 @Callable(i)
3636 func getArrayFromStruct () = [StringEntry("1", getElements("mapString", toString(this), separator))]
3737
3838
3939
4040 @Callable(i)
41-func getElementFromArray (index,indexIn) = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))]
41+func getElementFromArray () = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))]
4242
4343

github/deemru/w8io/169f3d6 
39.55 ms