tx · 3e7WWfjzoi9jo7ovhz6ekJHanCXuint2Vy4DBdAhPUeA 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves 2022.06.30 15:32 [2119165] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{ "type": 13, "id": "3e7WWfjzoi9jo7ovhz6ekJHanCXuint2Vy4DBdAhPUeA", "fee": 200000, "feeAssetId": null, "timestamp": 1656592317197, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "4H54pg8eexEh71SeE5Y19jMvsDXSgxqfSoJ34u5SR6Gg4E1frrD5hEfuNuhmQcUaGphRc9wvQaxGjFfNyVjKVyQq" ], "script": "base64:AAIFAAAAAAAAABAIAhIHCgUBAQEBARIDCgEBAAAABAAAAAAJc2VwYXJhdG9yAgAAAAEvAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAADmdlbmVyYXRlU3RydWN0AAAABQAAAAFhAAAAAWIAAAABYwAAAAFkAAAAAWUEAAAAA2FycgkABEwAAAACCQABpAAAAAEFAAAAAWEJAARMAAAAAgkAAaQAAAABBQAAAAFiCQAETAAAAAIJAAGkAAAAAQUAAAABYwkABEwAAAACCQABpAAAAAEFAAAAAWQJAARMAAAAAgkAAaQAAAABBQAAAAFlBQAAAANuaWwJAAS5AAAAAgUAAAADYXJyBQAAAAlzZXBhcmF0b3IBAAAAC3NldFZhbHVlTWFwAAAAAwAAAAttYXBwaW5nTmFtZQAAAARhZGRyAAAAA3ZhbAMJAABnAAAAAgAAAAAAAAAAZAkAATEAAAABBQAAAAN2YWwJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgIAAAAJbWFwU3RyaW5nBQAAAARhZGRyBQAAAAN2YWwJAAACAAAAAQIAAAALb3ZlcmNyb3dkZWQAAAACAAAAAWkBAAAACFNldFZhbHVlAAAABQAAAAFhAAAAAWIAAAABYwAAAAFkAAAAAWUEAAAACHNldFZhbHVlCQEAAAAOZ2VuZXJhdGVTdHJ1Y3QAAAAFBQAAAAFhBQAAAAFiBQAAAAFjBQAAAAFkBQAAAAFlCQAETAAAAAIJAQAAAAtzZXRWYWx1ZU1hcAAAAAMCAAAACW1hcFN0cmluZwkABCUAAAABBQAAAAR0aGlzBQAAAAhzZXRWYWx1ZQUAAAADbmlsAAAAAWkBAAAAE2dldEVsZW1lbnRGcm9tQXJyYXkAAAABAAAABWluZGV4BAAAAAh2YWx1ZUludAkAAZEAAAACCQAEtQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgIAAAAJbWFwU3RyaW5nCQAEJQAAAAEFAAAABHRoaXMFAAAACXNlcGFyYXRvcgUAAAAFaW5kZXgJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAABMQUAAAAIdmFsdWVJbnQFAAAAA25pbAAAAAB7odIk", "height": 2119165, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9u9imMxY4wQaXT3vXPskY3PdEFJugWdNzetQGpwZ12ut Next: 92vLrZm9hbHkihLyFJwtQxZ48axk58qxdK9VRsGUsZ2g 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 | 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 setValueMap (mappingName,addr,val) = if ((100 >= size(val))) | |
16 | 16 | then StringEntry(getAddrToIntMappingKey("mapString", addr), val) | |
17 | 17 | else throw("overcrowded") | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func SetValue (a,b,c,d,e) = { | |
22 | 22 | let setValue = generateStruct(a, b, c, d, e) | |
23 | 23 | [setValueMap("mapString", toString(this), setValue)] | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(i) | |
29 | 29 | func getElementFromArray (index) = { | |
30 | 30 | let valueInt = split(getStringValue(this, getAddrToIntMappingKey("mapString", toString(this))), separator)[index] | |
31 | 31 | [StringEntry("1", valueInt)] | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/169f3d6 90.12 ms ◑