Skip to content
Open
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
10 changes: 5 additions & 5 deletions src/opengradient/client/alpha.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Alpha Testnet features for OpenGradient SDK.
Alpha Testnet features for OpenGradient SDK

This module contains features that are only available on the Alpha Testnet,
including on-chain ONNX model inference, workflow management, and ML model execution.
Expand Down Expand Up @@ -163,7 +163,7 @@ def _send_tx_with_revert_handling(self, run_function):
"from": self._wallet_account.address,
"nonce": nonce,
"gas": gas_limit,
"gasPrice": self._blockchain.eth.gas_price,
"maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price,
}
)

Expand Down Expand Up @@ -308,7 +308,7 @@ def deploy_transaction():
"from": self._wallet_account.address,
"nonce": self._blockchain.eth.get_transaction_count(self._wallet_account.address, "pending"),
"gas": gas_limit,
"gasPrice": self._blockchain.eth.gas_price,
"maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price,
"chainId": self._blockchain.eth.chain_id,
}
)
Expand Down Expand Up @@ -359,7 +359,7 @@ def _register_with_scheduler(self, contract_address: str, scheduler_params: Sche
{
"from": self._wallet_account.address,
"gas": 300000,
"gasPrice": self._blockchain.eth.gas_price,
"maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price,
"nonce": self._blockchain.eth.get_transaction_count(self._wallet_account.address, "pending"),
"chainId": self._blockchain.eth.chain_id,
}
Expand Down Expand Up @@ -425,7 +425,7 @@ def run_workflow(self, contract_address: str) -> ModelOutput:
"from": self._wallet_account.address,
"nonce": nonce,
"gas": 30000000,
"gasPrice": self._blockchain.eth.gas_price,
"maxFeePerGas": self._blockchain.eth.gas_price, "maxPriorityFeePerGas": self._blockchain.eth.gas_price,
"chainId": self._blockchain.eth.chain_id,
}
)
Expand Down