Skip to content

Commit

Permalink
feat: Add deploymentDate and deprecate lastUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamier committed Jan 24, 2025
1 parent 5ab73c3 commit 0a3439c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/erc7730/model/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@ class OwnerInfo(Model):

lastUpdate: datetime | None = Field(
default=None,
title="Last Update of the contract / message",
description="The date of the last update of the contract / message.",
title="[DEPRECATED] Last Update of the contract / message",
description="The date of the last update of the contract / message."
"Field is deprecated and will be removed, use `deploymentDate`instead.",
examples=[datetime.now(UTC)],
)

deploymentDate: datetime | None = Field(
default=None,
title="Deployment date of contract / message",
description="The deployment date of the contract / message.",
examples=[datetime.now(UTC)],
)

Expand Down

0 comments on commit 0a3439c

Please sign in to comment.