Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for chia-blockchain 2.1.2 #70

Merged
merged 1 commit into from
Dec 14, 2023
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
14 changes: 10 additions & 4 deletions chianft/util/mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from chia.util.byte_types import hexstr_to_bytes
from chia.util.ints import uint64
from chia.wallet.singleton import SINGLETON_LAUNCHER_PUZZLE_HASH
from chia.wallet.util.wallet_types import WalletType
from chia.wallet.util.tx_config import DEFAULT_COIN_SELECTION_CONFIG, DEFAULT_TX_CONFIG
from chia.wallet.util.wallet_types import WalletType


class Minter:
Expand Down Expand Up @@ -75,7 +75,9 @@ async def get_wallet_ids(

async def get_funding_coin(self, amount: int) -> Coin:
coins = await self.wallet_client.select_coins(
amount=amount, wallet_id=self.xch_wallet_id, coin_selection_config=DEFAULT_COIN_SELECTION_CONFIG
amount=amount,
wallet_id=self.xch_wallet_id,
coin_selection_config=DEFAULT_COIN_SELECTION_CONFIG,
)
if len(coins) > 1:
raise ValueError(
Expand Down Expand Up @@ -364,7 +366,9 @@ async def create_offer(
for i in range(10):
try:
offer, tr = await self.wallet_client.create_offer_for_ids(
offer_dict, fee=0
offer_dict,
fee=0,
tx_config=DEFAULT_TX_CONFIG,
)
filepath = "offers/{}.offer".format(launcher_id)
assert offer is not None
Expand Down Expand Up @@ -410,7 +414,9 @@ async def submit_spend_bundles(
estimated_max_fee = (
len(spend_bundles) * self.spend_cost(spend_bundles[0]) * 5
)
csc = DEFAULT_COIN_SELECTION_CONFIG.override(excluded_coin_ids=[funding_coin.name()])
csc = DEFAULT_COIN_SELECTION_CONFIG.override(
excluded_coin_ids=[funding_coin.name()]
)
fee_coin = (
await self.wallet_client.select_coins(
amount=estimated_max_fee,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()

dependencies = [
"chia-blockchain==2.1.1",
"chia-blockchain==2.1.2",
]

dev_dependencies = [
Expand Down