from .base import Base


class PSP34(Base):

    @classmethod
    def generate_code(cls, **kwargs) -> None:
        super().generate_code()
        cls._create_dir(cls, "psp34")
        template = cls._template(cls, cls._get_template_dir(cls, "psp34"), "psp34.txt")
        content = cls._render_content(cls, template, **kwargs)
        cls._write_file(cls, "lib.rs", content)
        template = cls._template(cls, cls._get_template_dir(cls, "psp34"), "cargo.txt")
        content = cls._render_content(cls, template, **kwargs)
        cls._write_file(cls, "Cargo.toml", content)
