hydrachain/native_contracts.py
def abi_encode_args(method, args):
    "encode args for method: method_id|data"
    assert issubclass(method.im_class, NativeABIContract), method.im_class
    m_abi = method.im_class._get_method_abi(method)
    return zpad(encode_int(m_abi['id']), 4) + abi.encode_abi(m_abi['arg_types'], args)
def abi_encode_args(method, args):
    "encode args for method: method_id|data"
    assert issubclass(method.im_class, NativeABIContract), method.im_class
    m_abi = method.im_class._get_method_abi(method)
    return zpad(encode_int(m_abi['id']), 4) + abi.encode_abi(m_abi['arg_types'], args)
def abi_encode_args ( method , args ) : assert issubclass ( method . im_class , NativeABIContract ) , method . im_class m_abi = method . im_class . _get_method_abi ( method ) return zpad ( encode_int ( m_abi [ 'id' ] ) , 4 ) + abi . encode_abi ( m_abi [ 'arg_types' ] , args )
encode args for method: method_id|data
encode args for method : method_id|data