erc7730.model.abi module

Object model for Solidity ABIs.

See https://docs.soliditylang.org/en/latest/abi-spec.html

class erc7730.model.abi.Component(*, name: str, type: str, internalType: str | None = None, components: list[Self] | None = None)[source]View on GitHub

Bases: Model

components: list[Self] | None
internalType: str | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: str
class erc7730.model.abi.Constructor(*, type: Literal['constructor'] = 'constructor', name: str | None = None, inputs: list[InputOutput] | None = None, outputs: list[InputOutput] | None = None, stateMutability: StateMutability | None = None, constant: bool | None = None, payable: bool | None = None, gas: int | None = None, signature: str | None = None)[source]View on GitHub

Bases: Model

constant: bool | None
gas: int | None
inputs: list[InputOutput] | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
outputs: list[InputOutput] | None
payable: bool | None
signature: str | None
stateMutability: StateMutability | None
type: Literal['constructor']
class erc7730.model.abi.Error(*, type: Literal['error'] = 'error', name: str, inputs: list[InputOutput], signature: str | None = None)[source]View on GitHub

Bases: Model

inputs: list[InputOutput]
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
signature: str | None
type: Literal['error']
class erc7730.model.abi.Event(*, type: Literal['event'] = 'event', name: str, inputs: list[InputOutput], anonymous: bool = False, signature: str | None = None)[source]View on GitHub

Bases: Model

anonymous: bool
inputs: list[InputOutput]
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
signature: str | None
type: Literal['event']
class erc7730.model.abi.Fallback(*, type: Literal['fallback'] = 'fallback', name: str | None = None, inputs: list[InputOutput] | None = None, outputs: list[InputOutput] | None = None, stateMutability: StateMutability | None = None, constant: bool | None = None, payable: bool | None = None, gas: int | None = None, signature: str | None = None)[source]View on GitHub

Bases: Model

constant: bool | None
gas: int | None
inputs: list[InputOutput] | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
outputs: list[InputOutput] | None
payable: bool | None
signature: str | None
stateMutability: StateMutability | None
type: Literal['fallback']
class erc7730.model.abi.Function(*, type: Literal['function'] = 'function', name: str | None = None, inputs: list[InputOutput] | None = None, outputs: list[InputOutput] | None = None, stateMutability: StateMutability | None = None, constant: bool | None = None, payable: bool | None = None, gas: int | None = None, signature: str | None = None)[source]View on GitHub

Bases: Model

constant: bool | None
gas: int | None
inputs: list[InputOutput] | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
outputs: list[InputOutput] | None
payable: bool | None
signature: str | None
stateMutability: StateMutability | None
type: Literal['function']
class erc7730.model.abi.InputOutput(*, name: str, type: str, internalType: str | None = None, components: list[Component] | None = None, indexed: bool | None = None, unit: str | None = None)[source]View on GitHub

Bases: Model

components: list[Component] | None
indexed: bool | None
internalType: str | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str
type: str
unit: str | None
class erc7730.model.abi.Receive(*, type: Literal['receive'] = 'receive', name: str | None = None, inputs: list[InputOutput] | None = None, outputs: list[InputOutput] | None = None, stateMutability: StateMutability | None = None, constant: bool | None = None, payable: bool | None = None, gas: int | None = None, signature: str | None = None)[source]View on GitHub

Bases: Model

constant: bool | None
gas: int | None
inputs: list[InputOutput] | None
model_config = {'allow_inf_nan': False, 'arbitrary_types_allowed': False, 'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_assignment': True, 'validate_default': True, 'validate_return': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

name: str | None
outputs: list[InputOutput] | None
payable: bool | None
signature: str | None
stateMutability: StateMutability | None
type: Literal['receive']
class erc7730.model.abi.StateMutability(*values)[source]View on GitHub

Bases: StrEnum

nonpayable = 'nonpayable'
payable = 'payable'
pure = 'pure'
view = 'view'