contract
- class ContractDict
Bases:
dict
- name: str
- methods: List[MethodDict]
- networks: Dict[str, NetworkInfoDict]
- desc: str
- class Contract(name: str, methods: List[Method], desc: Optional[str] = None, networks: Optional[Dict[str, NetworkInfo]] = None)
Bases:
object
Represents a ABI contract description.
- Parameters
name (string) – name of the contract
methods (list) – list of Method objects
desc (string, optional) – description of the contract
networks (dict, optional) – information about the contract in a particular network, such as an app-id.
- dictify() ContractDict
- class NetworkInfo(app_id: int)
Bases:
object
Represents network information.
- Parameters
app_id (int) – application ID on a particular network
- dictify() NetworkInfoDict
- static undictify(d: dict) NetworkInfo