tx · DfKHoJipuSxSrnZxtWh8hgZgnM8XKEPrH1zz8bPnAJn1 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves 2022.07.01 11:42 [2120362] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{ "type": 13, "id": "DfKHoJipuSxSrnZxtWh8hgZgnM8XKEPrH1zz8bPnAJn1", "fee": 200000, "feeAssetId": null, "timestamp": 1656665013835, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "5rirzhTx5uPeMgZ4ezmkqMZWkDjSGn5bCNDg9iG4xsvBdzsdhGbVUVvPEwjpwZHkrCenoYPWcDmEjohDGvbJEkXS" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgMKAQgSABIAAAAABgAAAAAJc2VwYXJhdG9yAgAAAAFfAAAAAA9zZWNvbmRTZXBhcmF0b3ICAAAAAS8BAAAADWdldE1hcHBpbmdLZXkAAAADAAAAC21hcHBpbmdOYW1lAAAABGFkZHIAAAAJc2VwYXJhdG9yCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAC2dldEVsZW1lbnRzAAAAAwAAAAttYXBwaW5nTmFtZQAAAARhZGRyAAAACXNlcGFyYXRvcgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkBAAAADWdldE1hcHBpbmdLZXkAAAADBQAAAAttYXBwaW5nTmFtZQUAAAAEYWRkcgUAAAAJc2VwYXJhdG9yAQAAABhzZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIEAAAACXNlY29uZEtleQkBAAAADWdldE1hcHBpbmdLZXkAAAAD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EyCQEAAAALZ2V0RWxlbWVudHMAAAADAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwUAAAAPc2Vjb25kU2VwYXJhdG9yBQAAAANuaWwAAAAAtz+onQ==", "height": 2120362, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5zcvqF14Yv5QdhJubwvkqp7Gp9q9o3ELMWpzmU4HYbpm Next: 884RyWSPRNaXVEcyDhYL5Gq4qdqWRk9645Dr5rfv7L2N 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 | func getMappingKey (mappingName,addr,separator) = makeString([mappingName, addr], separator) | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func getElements (mappingName,addr,separator) = getStringValue(this, getMappingKey(mappingName, addr, separator)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func setAddrToIntMappingValue (mappingName,addr) = { | |
15 | 15 | let secondKey = getMappingKey(mappingName, addr, secondSeparator) | |
16 | 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 | 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 | 41 | func getElementFromArray () = [StringEntry("2", getElements("mapString", toString(this), secondSeparator))] | |
42 | 42 | ||
43 | 43 |
github/deemru/w8io/169f3d6 28.61 ms ◑