Skip to content

Commit

Permalink
Data registry ABI change timestamp -> dlp_id (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
volod-vana authored Oct 3, 2024
1 parent f857ef6 commit e007a44
Show file tree
Hide file tree
Showing 6 changed files with 666 additions and 641 deletions.
1,293 changes: 659 additions & 634 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "vana"
version = "0.17.0"
version = "0.18.0"
description = ""
authors = ["Tim Nunamaker <[email protected]>", "Volodymyr Isai <[email protected]>", "Kahtaf Alam <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion vana/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

__version__ = "0.17.0"
__version__ = "0.18.0"

import rich

Expand Down
4 changes: 2 additions & 2 deletions vana/chain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def from_string(cls, s: str) -> "NodeServerInfo":

class ProofData(BaseModel):
score: float
timestamp: int
dlp_id: int
metadata: Optional[str] = ""
proof_url: Optional[str] = ""
instruction: str
Expand All @@ -115,7 +115,7 @@ def sign(self, wallet):
['uint256', 'uint256', 'string', 'string', 'string'],
[
as_wad(self.data.score),
self.data.timestamp,
self.data.dlp_id,
self.data.metadata,
self.data.proof_url,
self.data.instruction
Expand Down
2 changes: 1 addition & 1 deletion vana/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def add_proof(self, proof_data: ProofData, file_id: int | None = None, job_id: i
signed_proof.signature,
(
as_wad(signed_proof.data.score),
signed_proof.data.timestamp,
signed_proof.data.dlp_id,
signed_proof.data.metadata,
signed_proof.data.proof_url,
signed_proof.data.instruction,
Expand Down
4 changes: 2 additions & 2 deletions vana/contracts/DataRegistry.json
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
},
{
"internalType": "uint256",
"name": "timestamp",
"name": "dlpId",
"type": "uint256"
},
{
Expand Down Expand Up @@ -426,7 +426,7 @@
},
{
"internalType": "uint256",
"name": "timestamp",
"name": "dlpId",
"type": "uint256"
},
{
Expand Down

0 comments on commit e007a44

Please sign in to comment.