tx · 6ZXcymZMyipsVpXrQgCW8ADTdnExuSRbe8255VSZKSyX

3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42:  -0.00200000 Waves

2022.06.29 15:31 [2117731] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves

{ "type": 13, "id": "6ZXcymZMyipsVpXrQgCW8ADTdnExuSRbe8255VSZKSyX", "fee": 200000, "feeAssetId": null, "timestamp": 1656505900727, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "2sK5UsLneDZnuwgDuGJrc5TMma3BFZycRTtXvC4MYLXefoxyqCFz7hLz9FPf4YQ8PqC8KUjNwhxubynum5Tcwuyg" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgMKAQESBAoCAQEAAAAGAAAAAAlzZXBhcmF0b3ICAAAAAV8BAAAAFmdldEFkZHJUb0ludE1hcHBpbmdLZXkAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIJAAS5AAAAAgkABEwAAAACBQAAAAttYXBwaW5nTmFtZQkABEwAAAACBQAAAARhZGRyBQAAAANuaWwFAAAACXNlcGFyYXRvcgEAAAAYZ2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEtQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgUAAAALbWFwcGluZ05hbWUFAAAABGFkZHICAAAAAV8BAAAAGGdldEFkZHJUb0ludE1hcHBpbmdJbmRleAAAAAIAAAALbWFwcGluZ05hbWUAAAAEYWRkcgkAAGQAAAACCQABkAAAAAEJAQAAABhnZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAgAAAAltYXBTd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ABAgAAAAxvdXQgb2YgcmFuZ2UAAAABaQEAAAATZ2V0RWxlbWVudEZyb21BcnJheQAAAAIAAAAFaW5kZXgAAAAHaW5kZXhJbgMJAABnAAAAAgkBAAAAGmdldEFkZHJUb0ludE1hcHBpbmdJbmRleEluAAAAAQUAAAAHaW5kZXhJbgkAAGUAAAACBQAAAAdpbmRleEluAAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATIJAAGRAAAAAgkABLUAAAACCQABkQAAAAIJAQAAABhnZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAACAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwUAAAAFaW5kZXgCAAAAAS8JAABlAAAAAgUAAAAHaW5kZXhJbgAAAAAAAAAAAQUAAAADbmlsCQAAAgAAAAECAAAADG91dCBvZiByYW5nZQAAAACRU5Gj", "height": 2117731, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6kvVEeeRuQugak71iEgrpvu9M1JCUDVV79rNSHz1NmQP Next: KggAQjm8Q22W8Az4a1EAmUMbuYFRfmf3jjGx7A265Su Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "_"
55
66 func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator)
77
88
99 func getAddrToIntMappingValue (mappingName,addr) = split(getStringValue(this, getAddrToIntMappingKey(mappingName, addr)), "_")
1010
1111
1212 func getAddrToIntMappingIndex (mappingName,addr) = (size(getAddrToIntMappingValue("mapString", addr)) + 1)
1313
1414
1515 func getAddrToIntMappingIndexIn (indexIn) = size(split(getAddrToIntMappingValue("mapString", toString(this))[indexIn], "/"))
1616
1717
1818 func setAddrToIntMappingValue (mappingName,addr,val) = if ((300 >= size(val)))
1919 then StringEntry(getAddrToIntMappingKey("mapString", addr), val)
2020 else throw("overcrowded")
2121
2222
2323 @Callable(i)
2424 func setStruct (valueInt) = [setAddrToIntMappingValue("mapString", toString(this), valueInt)]
2525
2626
2727
2828 @Callable(i)
2929 func getArrayFromStruct (index) = if ((getAddrToIntMappingIndex("mapString", toString(this)) >= (index - 1)))
3030 then [StringEntry("1", getAddrToIntMappingValue("mapString", toString(this))[(index - 1)])]
3131 else throw("out of range")
3232
3333
3434
3535 @Callable(i)
3636 func getElementFromArray (index,indexIn) = if ((getAddrToIntMappingIndexIn(indexIn) >= (indexIn - 1)))
3737 then [StringEntry("2", split(getAddrToIntMappingValue("mapString", toString(this))[index], "/")[(indexIn - 1)])]
3838 else throw("out of range")
3939
4040

github/deemru/w8io/169f3d6 
42.62 ms