tx · 5rpYyz7E6WxMSxiEGaHU3WBxoCtFQe1y9UqZiJTy6ZEq

3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm:  -0.00200000 Waves

2022.07.11 14:25 [2135013] smart account 3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
39.64 ms