tx · 52VCymbpXrJEMLL6qJ9tLnMAKfLCnzSbdworJYwbngmq 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves 2022.06.29 17:56 [2117875] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{ "type": 13, "id": "52VCymbpXrJEMLL6qJ9tLnMAKfLCnzSbdworJYwbngmq", "fee": 200000, "feeAssetId": null, "timestamp": 1656514652187, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "2VCBsqm9evNaKNoAmsK17EPvdtc3F6jNgRFXSQj8nwS25BgN1Do1eicgukX6Cec1kUY3XcUra5GoKsA1Xgwq7NWL" ], "script": "base64:AAIFAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAABgAAAAAJc2VwYXJhdG9yAgAAAAEvAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAADmdlbmVyYXRlU3RydWN0AAAABQAAAAFhAAAAAWIAAAABYwAAAAFkAAAAAWUEAAAAA2FycgkABEwAAAACCQABpAAAAAEFAAAAAWEJAARMAAAAAgkAAaQAAAABBQAAAAFiCQAETAAAAAIJAAGkAAAAAQUAAAABYwkABEwAAAACCQABpAAAAAEFAAAAAWQJAARMAAAAAgkAAaQAAAABBQAAAAFlBQAAAANuaWwJAAS5AAAAAgUAAAADYXJyBQAAAAlzZXBhcmF0b3IBAAAAGHNldEFkZHJUb0ludE1hcHBpbmdWYWx1ZQAAAAMAAAALbWFwcGluZ05hbWUAAAAEYWRkcgAAAAN2YWwDCQAAZwAAAAIAAAAAAA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GluZ1ZhbHVlAAAAAwIAAAAJbWFwU3RyaW5nCQAEJQAAAAEFAAAABHRoaXMFAAAAAmZkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATEFAAAAAmZkBQAAAANuaWwAAAAAa21FMw==", "height": 2117875, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FfiDvLFSkBzdniT4NYuZB1vXwSfhYTRo8n8hyWT68oMk Next: 9u9imMxY4wQaXT3vXPskY3PdEFJugWdNzetQGpwZ12ut Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | - | func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])] | |
35 | + | func adsd (index) = { | |
36 | + | let fd = split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index] | |
37 | + | let fsad = setAddrToIntMappingValue("mapString", toString(this), fd) | |
38 | + | [StringEntry("1", fd)] | |
39 | + | } | |
36 | 40 | ||
37 | 41 |
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 | func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator) | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func generateStruct (a,b,c,d,e) = { | |
10 | 10 | let arr = [toString(a), toString(b), toString(c), toString(d), toString(e)] | |
11 | 11 | makeString(arr, separator) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func setAddrToIntMappingValue (mappingName,addr,val) = if ((150 >= size(val))) | |
16 | 16 | then StringEntry(getAddrToIntMappingKey("mapString", addr), val) | |
17 | 17 | else throw("overcrowded") | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func getListOfArrays (mappingName,addr) = split(getStringValue(this, getAddrToIntMappingKey(mappingName, addr)), separator) | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func getAddrToIntMappingIndex (mappingName,addr) = size(getListOfArrays("mapString", addr)) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func qwe (a,b,c,d,e) = { | |
28 | 28 | let setValue = generateStruct(a, b, c, d, e) | |
29 | 29 | [setAddrToIntMappingValue("mapString", toString(this), setValue)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | - | func adsd (index) = [StringEntry("1", split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index])] | |
35 | + | func adsd (index) = { | |
36 | + | let fd = split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index] | |
37 | + | let fsad = setAddrToIntMappingValue("mapString", toString(this), fd) | |
38 | + | [StringEntry("1", fd)] | |
39 | + | } | |
36 | 40 | ||
37 | 41 |
github/deemru/w8io/026f985 21.19 ms ◑