verbs.abi.get_abi#

get_abi(name: str, abi: List[Dict]) type[source]#

Create an ABI type from ABI JSON

Create a new type from parsed ABI JSON with attributes for the contracts functions and events and a constructor attribute used for contract deployment.

Parameters:
  • name (str) – Name to give the ABI type.

  • abi (list[dict]) – Parsed ABI JSON.

Returns:

type – Type representing the ABI with attributes for the functions and events.