Skip to content

packages.valory.skills.abstract_round_abci.io_.store

This module contains all the storing operations of the behaviours.

SupportedFiletype Objects

class SupportedFiletype(Enum)

Enum for the supported filetypes of the IPFS interacting methods.

AbstractStorer Objects

class AbstractStorer(ABC)

An abstract Storer class.

__init__

def __init__(path: str)

Initialize an abstract storer.

store_single_file

@abstractmethod
def store_single_file(filename: str, obj: SupportedSingleObjectType, **kwargs: Any) -> None

Store a single file.

store

def store(obj: SupportedObjectType, multiple: bool, **kwargs: Any) -> None

Store one or multiple files.

JSONStorer Objects

class JSONStorer(AbstractStorer)

A JSON file storer.

store_single_file

def store_single_file(filename: str, obj: NativelySupportedSingleObjectType, **kwargs: Any) -> None

Store a JSON.

Storer Objects

class Storer(AbstractStorer)

Class which stores files.

__init__

def __init__(filetype: Optional[Any], custom_storer: Optional[CustomStorerType], path: str)

Initialize a Storer.

store_single_file

def store_single_file(filename: str, obj: NativelySupportedObjectType, **kwargs: Any) -> None

Store a single file.

Back to top