Skip to content

Commit a6f3cbc

Browse files
committed
Update the list of excluded contract functions
1 parent dca3461 commit a6f3cbc

File tree

7 files changed

+7
-206
lines changed

7 files changed

+7
-206
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ all: $(OUTDIR)/accountability.py \
2727
$(OUTDIR)/upgrade_manager.py
2828

2929
$(OUTDIR)/accountability.py: $(call gentargets,Accountability)
30-
$(call abigen,$^) --exclude distributeRewards,finalize,handleAccusation,handleEvent,handleInnocenceProof,handleMisbehaviour,setEpochPeriod >$@
30+
$(call abigen,$^) --exclude distributeRewards,finalize,handleAccusation,handleEvent,handleInnocenceProof,handleMisbehaviour,setCommittee,setEpochPeriod >$@
3131

3232
$(OUTDIR)/acu.py: $(call gentargets,ACU)
3333
$(call abigen,$^) --exclude setOperator,setOracle,update >$@
3434

3535
$(OUTDIR)/auctioneer.py: $(call gentargets,Auctioneer)
36-
$(call abigen,$^) --exclude paidInterest,setOperator,setStabilization,setOracle >$@
36+
$(call abigen,$^) --exclude paidInterest,setOperator,setOracle,setStabilization >$@
3737

3838
$(OUTDIR)/autonity.py: $(call gentargets,Autonity)
3939
$(call abigen,$^) --exclude autobond,computeCommittee,finalize,finalizeInitialization,jail,jailbound,slash,slashAndJail >$@
@@ -45,16 +45,16 @@ $(OUTDIR)/liquid_logic.py: $(call gentargets,LiquidLogic)
4545
$(call abigen,$^) --exclude burn,lock,mint,redistribute,setCommissionRate,unlock >$@
4646

4747
$(OUTDIR)/omission_accountability.py: $(call gentargets,OmissionAccountability)
48-
$(call abigen,$^) --exclude finalize,setCommittee,setEpochBlock,setOperator >$@
48+
$(call abigen,$^) --exclude distributeProposerRewards,finalize,setCommittee,setEpochBlock,setOperator >$@
4949

5050
$(OUTDIR)/oracle.py: $(call gentargets,Oracle)
51-
$(call abigen,$^) --exclude finalize,setOperator,setVoters,vote >$@
51+
$(call abigen,$^) --exclude distributeRewards,finalize,setOperator,setVoters,updateVotersAndSymbol,vote >$@
5252

5353
$(OUTDIR)/stabilization.py: $(call gentargets,Stabilization)
54-
$(call abigen,$^) --exclude setOperator,setOracle >$@
54+
$(call abigen,$^) --exclude liquidate,setACU,setAuctioneer,setOperator,setOracle,setSupplyControl >$@
5555

5656
$(OUTDIR)/supply_control.py: $(call gentargets,SupplyControl)
57-
$(call abigen,$^) --exclude burn,mint,setOperator >$@
57+
$(call abigen,$^) --exclude burn,mint,setOperator,setStabilizer >$@
5858

5959
$(OUTDIR)/upgrade_manager.py: $(call gentargets,UpgradeManager)
6060
$(call abigen,$^) --exclude setOperator >$@

autonity/contracts/accountability.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -498,29 +498,6 @@ def set_base_slashing_rates(
498498
(_rates.low, _rates.mid, _rates.high),
499499
)
500500

501-
def set_committee(
502-
self,
503-
_new_committee: typing.List[eth_typing.ChecksumAddress],
504-
) -> contract.ContractFunction:
505-
"""Binding for `setCommittee` on the Accountability contract.
506-
507-
setCommittee, called by the AC at epoch change, it removes stale committee from
508-
the reporter set, then replace the last committee with current committee, and
509-
set the current committee with the input new committee.
510-
511-
Parameters
512-
----------
513-
_new_committee : typing.List[eth_typing.ChecksumAddress]
514-
515-
Returns
516-
-------
517-
web3.contract.contract.ContractFunction
518-
A contract function instance to be sent in a transaction.
519-
"""
520-
return self._contract.functions.setCommittee(
521-
_new_committee,
522-
)
523-
524501
def set_delta(
525502
self,
526503
_delta: int,

autonity/contracts/autonity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Autonaty contract binding and data structures."""
1+
"""Autonity contract binding and data structures."""
22

33
# This module has been generated using pyabigen v0.2.15
44

autonity/contracts/omission_accountability.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,25 +115,6 @@ def scale_factor(
115115
return_value = self._contract.functions.SCALE_FACTOR().call()
116116
return int(return_value)
117117

118-
def distribute_proposer_rewards(
119-
self,
120-
_ntn_reward: int,
121-
) -> contract.ContractFunction:
122-
"""Binding for `distributeProposerRewards` on the OmissionAccountability contract.
123-
124-
Parameters
125-
----------
126-
_ntn_reward : int
127-
128-
Returns
129-
-------
130-
web3.contract.contract.ContractFunction
131-
A contract function instance to be sent in a transaction.
132-
"""
133-
return self._contract.functions.distributeProposerRewards(
134-
_ntn_reward,
135-
)
136-
137118
def get_absentees_last_height(
138119
self,
139120
) -> typing.List[eth_typing.ChecksumAddress]:

autonity/contracts/oracle.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -205,29 +205,6 @@ def TotalOracleRewards(self) -> contract.ContractEvent:
205205
"""
206206
return self._contract.events.TotalOracleRewards
207207

208-
def distribute_rewards(
209-
self,
210-
_ntn: int,
211-
) -> contract.ContractFunction:
212-
"""Binding for `distributeRewards` on the Oracle contract.
213-
214-
Distributes oracle rewards to voters based on their performance. Called by
215-
Autonity at finalize().
216-
217-
Parameters
218-
----------
219-
_ntn : int
220-
, the amount of ntn to redistribute
221-
222-
Returns
223-
-------
224-
web3.contract.contract.ContractFunction
225-
A contract function instance to be sent in a transaction.
226-
"""
227-
return self._contract.functions.distributeRewards(
228-
_ntn,
229-
)
230-
231208
def get_config(
232209
self,
233210
) -> Config:
@@ -667,21 +644,6 @@ def set_vote_period(
667644
_vote_period,
668645
)
669646

670-
def update_voters_and_symbol(
671-
self,
672-
) -> contract.ContractFunction:
673-
"""Binding for `updateVotersAndSymbol` on the Oracle contract.
674-
675-
updates voters and symbols, taking into account boundary edge cases.
676-
Called by Autonity at the start of a new Oracle round
677-
678-
Returns
679-
-------
680-
web3.contract.contract.ContractFunction
681-
A contract function instance to be sent in a transaction.
682-
"""
683-
return self._contract.functions.updateVotersAndSymbol()
684-
685647

686648
ABI = typing.cast(
687649
eth_typing.ABI,

autonity/contracts/stabilization.py

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -656,38 +656,6 @@ def last_updated(
656656
int(return_value[3]),
657657
)
658658

659-
def liquidate(
660-
self,
661-
account: eth_typing.ChecksumAddress,
662-
collateral_sold: int,
663-
bidder: eth_typing.ChecksumAddress,
664-
) -> contract.ContractFunction:
665-
"""Binding for `liquidate` on the Stabilization contract.
666-
667-
Liquidate a CDP that is undercollateralized. The liquidator must pay all the CDP
668-
debt outstanding. As a reward, the liquidator will receive the collateral that
669-
is held in the CDP. The transaction value is the payment amount. After covering
670-
the CDP's debt, any surplus is refunded to the liquidator.
671-
672-
Parameters
673-
----------
674-
account : eth_typing.ChecksumAddress
675-
The CDP account address to liquidate
676-
collateral_sold : int
677-
bidder : eth_typing.ChecksumAddress
678-
The address of the bidder
679-
680-
Returns
681-
-------
682-
web3.contract.contract.ContractFunction
683-
A contract function instance to be sent in a transaction.
684-
"""
685-
return self._contract.functions.liquidate(
686-
account,
687-
collateral_sold,
688-
bidder,
689-
)
690-
691659
def liquidation_ratio(
692660
self,
693661
) -> int:
@@ -801,28 +769,6 @@ def repay(
801769
"""
802770
return self._contract.functions.repay()
803771

804-
def set_acu(
805-
self,
806-
acu: eth_typing.ChecksumAddress,
807-
) -> contract.ContractFunction:
808-
"""Binding for `setACU` on the Stabilization contract.
809-
810-
Set the ACU contract address.
811-
812-
Parameters
813-
----------
814-
acu : eth_typing.ChecksumAddress
815-
Address of the new ACU Contract
816-
817-
Returns
818-
-------
819-
web3.contract.contract.ContractFunction
820-
A contract function instance to be sent in a transaction.
821-
"""
822-
return self._contract.functions.setACU(
823-
acu,
824-
)
825-
826772
def set_atn_supply_operator(
827773
self,
828774
atn_supply_operator: eth_typing.ChecksumAddress,
@@ -844,28 +790,6 @@ def set_atn_supply_operator(
844790
atn_supply_operator,
845791
)
846792

847-
def set_auctioneer(
848-
self,
849-
auctioneer: eth_typing.ChecksumAddress,
850-
) -> contract.ContractFunction:
851-
"""Binding for `setAuctioneer` on the Stabilization contract.
852-
853-
Set the Auctioneer Contract address.
854-
855-
Parameters
856-
----------
857-
auctioneer : eth_typing.ChecksumAddress
858-
Address of the new Auctioneer Contract
859-
860-
Returns
861-
-------
862-
web3.contract.contract.ContractFunction
863-
A contract function instance to be sent in a transaction.
864-
"""
865-
return self._contract.functions.setAuctioneer(
866-
auctioneer,
867-
)
868-
869793
def set_default_acuusd_price(
870794
self,
871795
default_acuusd_price: int,
@@ -951,27 +875,6 @@ def set_min_debt_requirement(
951875
amount,
952876
)
953877

954-
def set_supply_control(
955-
self,
956-
supply_control: eth_typing.ChecksumAddress,
957-
) -> contract.ContractFunction:
958-
"""Binding for `setSupplyControl` on the Stabilization contract.
959-
960-
Set the SupplyControl Contract address.
961-
962-
Parameters
963-
----------
964-
supply_control : eth_typing.ChecksumAddress
965-
966-
Returns
967-
-------
968-
web3.contract.contract.ContractFunction
969-
A contract function instance to be sent in a transaction.
970-
"""
971-
return self._contract.functions.setSupplyControl(
972-
supply_control,
973-
)
974-
975878
def under_collateralized(
976879
self,
977880
collateral: int,

autonity/contracts/supply_control.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,6 @@ def get_total_supply(
122122
return_value = self._contract.functions.getTotalSupply().call()
123123
return int(return_value)
124124

125-
def set_stabilizer(
126-
self,
127-
stabilizer_: eth_typing.ChecksumAddress,
128-
) -> contract.ContractFunction:
129-
"""Binding for `setStabilizer` on the SupplyControl contract.
130-
131-
Update the stabilizer that is authorized to mint and burn.
132-
133-
Parameters
134-
----------
135-
stabilizer_ : eth_typing.ChecksumAddress
136-
The new stabilizer account
137-
138-
Returns
139-
-------
140-
web3.contract.contract.ContractFunction
141-
A contract function instance to be sent in a transaction.
142-
"""
143-
return self._contract.functions.setStabilizer(
144-
stabilizer_,
145-
)
146-
147125

148126
ABI = typing.cast(
149127
eth_typing.ABI,

0 commit comments

Comments
 (0)