Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions autonity/contracts/accountability.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Accountability contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import enum
import typing
Expand Down Expand Up @@ -222,7 +222,7 @@ def config(
def events(
self,
key0: int,
) -> Event:
) -> typing.List[Event]:
"""Binding for `events` on the Accountability contract.

Parameters
Expand All @@ -231,23 +231,26 @@ def events(

Returns
-------
Event
typing.List[Event]
"""
return_value = self._contract.functions.events(
key0,
).call()
return Event(
EventType(return_value[0]),
Rule(return_value[1]),
eth_typing.ChecksumAddress(return_value[2]),
eth_typing.ChecksumAddress(return_value[3]),
hexbytes.HexBytes(return_value[4]),
int(return_value[5]),
int(return_value[6]),
int(return_value[7]),
int(return_value[8]),
int(return_value[9]),
)
return [
Event(
EventType(return_value_elem[0]),
Rule(return_value_elem[1]),
eth_typing.ChecksumAddress(return_value_elem[2]),
eth_typing.ChecksumAddress(return_value_elem[3]),
hexbytes.HexBytes(return_value_elem[4]),
int(return_value_elem[5]),
int(return_value_elem[6]),
int(return_value_elem[7]),
int(return_value_elem[8]),
int(return_value_elem[9]),
)
for return_value_elem in return_value
]

def get_validator_accusation(
self,
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/acu.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""ACU contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing

Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/autonity.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Autonity contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import enum
import typing
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/inflation_controller.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""InflationController contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/liquid_logic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""LiquidLogic contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing

Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/omission_accountability.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""OmissionAccountability contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/oracle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Oracle contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/stabilization.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Stabilization contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/supply_control.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""SupplyControl contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing

Expand Down
2 changes: 1 addition & 1 deletion autonity/contracts/upgrade_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""UpgradeManager contract binding and data structures."""

# This module has been generated using pyabigen v0.2.11
# This module has been generated using pyabigen v0.2.12

import typing

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ path = "autonity/__version__.py"

[tool.hatch.envs.generate]
detached = true
dependencies = ["pyabigen@git+https://github.com/clearmatics/pyabigen@v0.2.11"]
dependencies = ["pyabigen@git+https://github.com/clearmatics/pyabigen@v0.2.12"]

[tool.hatch.envs.test]
dependencies = ["pytest"]
Expand Down
Loading