tx · FfiDvLFSkBzdniT4NYuZB1vXwSfhYTRo8n8hyWT68oMk

3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42:  -0.00200000 Waves

2022.06.29 17:52 [2117873] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves

{ "type": 13, "id": "FfiDvLFSkBzdniT4NYuZB1vXwSfhYTRo8n8hyWT68oMk", "fee": 200000, "feeAssetId": null, "timestamp": 1656514375456, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "5gfHDtPzuWz7ZabMTqT9Q4NMEJMH5gUq4xRG8Rd3CnPDZzE8PCaghmb6W2Two3Zp6ttR4qqh6jh6C4JMuf67eJJ3" ], "script": "base64:AAIFAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAABgAAAAAJc2VwYXJhdG9yAgAAAAEvAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAADmdlbmVyYXRlU3RydWN0AAAABQAAAAFhAAAAAWIAAAABYwAAAAFkAAAAAWUEAAAAA2FycgkABEwAAAACCQABpAAAAAEFAAAAAWEJAARMAAAAAgkAAaQAAAABBQAAAAFiCQAETAAAAAIJAAGkAAAAAQUAAAABYwkABEwAAAACCQABpAAAAAEFAAAAAWQJAARMAAAAAgkAAaQAAAABBQAAAAFlBQAAAANuaWwJAAS5AAAAAgUAAAADYXJyBQAAAAlzZXBhcmF0b3IBAAAAGHNldEFkZHJUb0ludE1hcHBpbmdWYWx1ZQAAAAMAAAALbWFwcGluZ05hbWUAAAAEYWRkcgAAAAN2YWwDCQAAZwAA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QAAAAVpbmRleAUAAAADbmlsAAAAAAX6qnk=", "height": 2117873, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 734ZcnUizajtqXcsdKUwVwDeSB7kY56qh9dNmJMW6yZD Next: 52VCymbpXrJEMLL6qJ9tLnMAKfLCnzSbdworJYwbngmq Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "/"
55
6-func generateStruct (a,b,c) = {
7- let arr = [toString(a), toString(b), toString(c)]
6+func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator)
7+
8+
9+func generateStruct (a,b,c,d,e) = {
10+ let arr = [toString(a), toString(b), toString(c), toString(d), toString(e)]
811 makeString(arr, separator)
912 }
1013
1114
15+func setAddrToIntMappingValue (mappingName,addr,val) = if ((150 >= size(val)))
16+ then StringEntry(getAddrToIntMappingKey("mapString", addr), val)
17+ else throw("overcrowded")
18+
19+
20+func getListOfArrays (mappingName,addr) = split(getStringValue(this, getAddrToIntMappingKey(mappingName, addr)), separator)
21+
22+
23+func getAddrToIntMappingIndex (mappingName,addr) = size(getListOfArrays("mapString", addr))
24+
25+
1226 @Callable(i)
13-func qwe (a,b,c) = [StringEntry("1", generateStruct(a, b, c))]
27+func qwe (a,b,c,d,e) = {
28+ let setValue = generateStruct(a, b, c, d, e)
29+[setAddrToIntMappingValue("mapString", toString(this), setValue)]
30+ }
31+
32+
33+
34+@Callable(i)
35+func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])]
1436
1537
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "/"
55
6-func generateStruct (a,b,c) = {
7- let arr = [toString(a), toString(b), toString(c)]
6+func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator)
7+
8+
9+func generateStruct (a,b,c,d,e) = {
10+ let arr = [toString(a), toString(b), toString(c), toString(d), toString(e)]
811 makeString(arr, separator)
912 }
1013
1114
15+func setAddrToIntMappingValue (mappingName,addr,val) = if ((150 >= size(val)))
16+ then StringEntry(getAddrToIntMappingKey("mapString", addr), val)
17+ else throw("overcrowded")
18+
19+
20+func getListOfArrays (mappingName,addr) = split(getStringValue(this, getAddrToIntMappingKey(mappingName, addr)), separator)
21+
22+
23+func getAddrToIntMappingIndex (mappingName,addr) = size(getListOfArrays("mapString", addr))
24+
25+
1226 @Callable(i)
13-func qwe (a,b,c) = [StringEntry("1", generateStruct(a, b, c))]
27+func qwe (a,b,c,d,e) = {
28+ let setValue = generateStruct(a, b, c, d, e)
29+[setAddrToIntMappingValue("mapString", toString(this), setValue)]
30+ }
31+
32+
33+
34+@Callable(i)
35+func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])]
1436
1537

github/deemru/w8io/026f985 
19.81 ms