Merge pull request #3588 from cygnusv/incompatible

Prepare breaking changes to post transcript
v7.5.x
Derek Pierre 2025-04-08 12:11:31 -04:00 committed by GitHub
commit a216e14989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 4735 additions and 1286 deletions

View File

@ -0,0 +1 @@
Introduce necessary changes to adapt agents methods to breaking changes in Coordinator contract. Previous methods are now deprecated from the API.

View File

@ -749,7 +749,7 @@ class CoordinatorAgent(EthereumContractAgent):
@contract_api(CONTRACT_CALL)
def is_provider_public_key_set(self, staking_provider: ChecksumAddress) -> bool:
result = self.contract.functions.isProviderPublicKeySet(staking_provider).call()
result = self.contract.functions.isProviderKeySet(staking_provider).call()
return result
@contract_api(TRANSACTION)
@ -790,7 +790,8 @@ class CoordinatorAgent(EthereumContractAgent):
transacting_power: TransactingPower,
async_tx_hooks: BlockchainInterface.AsyncTxHooks,
) -> AsyncTx:
contract_function: ContractFunction = self.contract.functions.postTranscript(
# See sprints/#145
contract_function: ContractFunction = self.contract.functions.publishTranscript(
ritualId=ritual_id, transcript=bytes(transcript)
)
async_tx = self.blockchain.send_async_transaction(

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff