erc7730.model.input.context module

pydantic model erc7730.model.input.context.InputContract[source]View on GitHub

Bases: BindingContext

The contract binding context is a set constraints that are used to bind the ERC7730 file to a specific smart contract.

Fields:
field abi: list[Annotated[Constructor | Event | Function | Fallback | Error | Receive, FieldInfo(annotation=NoneType, required=True, discriminator='type')]] | Url [Required]

The ABI of the target contract. This can be either an array of ABI objects or an URL pointing tothe ABI.

field addressMatcher: Url | None = None

An URL of a contract address matcher that should be used to match the contract address.

field factory: Factory | None = None

A factory constraint is used to check whether the target contract is deployed by a specifiedfactory.

pydantic model erc7730.model.input.context.InputContractContext[source]View on GitHub

Bases: Model

Contract Binding Context.

The contract binding context is a set constraints that are used to bind the ERC7730 file to a specific smart contract.

Fields:
field contract: InputContract [Required]

The contract binding context is a set constraints that are used to bind the ERC7730 file to aspecific smart contract.

field id: Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Id', description='An internal identifier that can be used either for clarity specifying what the element is or as areference in device specific sections.', metadata=[MinLen(min_length=1)])] | None = None (alias '$id')

An internal identifier that can be used either for clarity specifying what the element is or as areference in device specific sections.

pydantic model erc7730.model.input.context.InputEIP712[source]View on GitHub

Bases: BindingContext

EIP 712 Binding.

The EIP-712 binding context is a set of constraints that must be verified by the message being signed.

Fields:
field domain: Domain | None = None

Each value of the domain constraint MUST match the corresponding eip 712 message domain value.

field domainSeparator: str | None = None

The domain separator value that must be matched by the message. In hex string representation.

field schemas: list[EIP712JsonSchema | Url] [Required]

Schemas of all messages.

pydantic model erc7730.model.input.context.InputEIP712Context[source]View on GitHub

Bases: Model

EIP 712 Binding.

The EIP-712 binding context is a set of constraints that must be verified by the message being signed.

Fields:
field eip712: InputEIP712 [Required]

The EIP-712 binding context is a set of constraints that must be verified by the message beingsigned.

field id: Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Id', description='An internal identifier that can be used either for clarity specifying what the element is or as areference in device specific sections.', metadata=[MinLen(min_length=1)])] | None = None (alias '$id')

An internal identifier that can be used either for clarity specifying what the element is or as areference in device specific sections.