NamedContract

class moccasin.named_contract.NamedContract(contract_name: str, force_deploy: bool | None = None, abi: str | None = None, abi_from_explorer: bool | None = None, deployer_script: str | Path | None = None, address: str | None = None, deployer: VyperDeployer | ZksyncDeployer | None = None, recently_deployed_contract: VyperContract | ZksyncContract | None = None)

Bases: object

A class to represent a named contract. These hold only data about NamedContracts from the config.

abi: str | None = None
abi_from_explorer: bool | None = None
address: str | None = None
contract_name: str
deployer: VyperDeployer | ZksyncDeployer | None = None
deployer_script: str | Path | None = None
force_deploy: bool | None = None
get(key: str, otherwise: Any)
recently_deployed_contract: VyperContract | ZksyncContract | None = None
reset()
set_defaults(other: NamedContract)