from client_sdk_python.packages.eth_utils.toolz import (
    curry,
)


@curry
def zpad(value, length):
    return value.rjust(length, b'\x00')


zpad32 = zpad(length=32)


@curry
def zpad_right(value, length):
    return value.ljust(length, b'\x00')


zpad32_right = zpad_right(length=32)


@curry
def fpad(value, length):
    return value.rjust(length, b'\xff')


fpad32 = fpad(length=32)
