Skip to content

Commit 2c25fd6

Browse files
committed
Store Autonity version in the Autonity contract binding module only
It is redundant to include the Autonity version in all binding modules as all of them are generated at the same time for the same Autonity build.
1 parent 598c56a commit 2c25fd6

11 files changed

+2
-22
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ SRCDIR := $(AUTONITY)/autonity/solidity/contracts
55
OUTDIR := autonity/contracts
66

77
abigen = hatch run generate:pyabigen \
8-
--version $(VERSION) \
98
--src $(word 1,$(1)) \
109
--devdoc $(word 2,$(1)) \
1110
--userdoc $(word 3,$(1)) \
@@ -36,7 +35,8 @@ $(OUTDIR)/auctioneer.py: $(call gentargets,Auctioneer)
3635
$(call abigen,$^) --exclude paidInterest,setOperator,setOracle,setStabilization >$@
3736

3837
$(OUTDIR)/autonity.py: $(call gentargets,Autonity)
39-
$(call abigen,$^) --exclude autobond,computeCommittee,finalize,finalizeInitialization,jail,jailbound,slash,slashAndJail >$@
38+
$(call abigen,$^) --version $(VERSION) \
39+
--exclude autobond,computeCommittee,finalize,finalizeInitialization,jail,jailbound,slash,slashAndJail >$@
4040

4141
$(OUTDIR)/inflation_controller.py: $(call gentargets,InflationController)
4242
$(call abigen,$^) >$@

autonity/contracts/accountability.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import web3
1212
from web3.contract import contract
1313

14-
__version__ = "v1.1.0-internal"
15-
1614

1715
class Rule(enum.IntEnum):
1816
"""Port of `enum Rule` on the IAccountability contract."""

autonity/contracts/acu.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import web3
99
from web3.contract import contract
1010

11-
__version__ = "v1.1.0-internal"
12-
1311

1412
class ACU:
1513
"""ACU contract binding.

autonity/contracts/auctioneer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import web3
1010
from web3.contract import contract
1111

12-
__version__ = "v1.1.0-internal"
13-
1412

1513
@dataclass
1614
class Config:

autonity/contracts/inflation_controller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import web3
1010
from web3.contract import contract
1111

12-
__version__ = "v1.1.0-internal"
13-
1412

1513
@dataclass
1614
class Params:

autonity/contracts/liquid_logic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import web3
99
from web3.contract import contract
1010

11-
__version__ = "v1.1.0-internal"
12-
1311

1412
class LiquidLogic:
1513
"""LiquidLogic contract binding.

autonity/contracts/omission_accountability.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import web3
1010
from web3.contract import contract
1111

12-
__version__ = "v1.1.0-internal"
13-
1412

1513
@dataclass
1614
class Config:

autonity/contracts/oracle.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import web3
1010
from web3.contract import contract
1111

12-
__version__ = "v1.1.0-internal"
13-
1412

1513
@dataclass
1614
class Config:

autonity/contracts/stabilization.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import web3
1010
from web3.contract import contract
1111

12-
__version__ = "v1.1.0-internal"
13-
1412

1513
@dataclass
1614
class Config:

autonity/contracts/supply_control.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import web3
99
from web3.contract import contract
1010

11-
__version__ = "v1.1.0-internal"
12-
1311

1412
class SupplyControl:
1513
"""SupplyControl contract binding.

0 commit comments

Comments
 (0)