Skip to content

Commit

Permalink
Merge pull request #172 from Chia-Network/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
TheLastCicada authored Apr 5, 2024
2 parents 9d39eda + 08de0c6 commit c9d92fb
Show file tree
Hide file tree
Showing 19 changed files with 529 additions and 366 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
target-branch: "develop"
2 changes: 2 additions & 0 deletions .github/workflows/build-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ jobs:
- name: Sign windows artifacts
if: matrix.os.matrix == 'windows'
uses: chia-network/actions/digicert/windows-sign@main
env:
SM_TOOLS_DOWNLOAD_URL: ${{ vars.SM_TOOLS_DOWNLOAD_URL }}
with:
sm_api_key: ${{ secrets.SM_API_KEY }}
sm_client_cert_file_b64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
Expand Down
4 changes: 4 additions & 0 deletions .repo-content-updater.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pr_target_branch: develop
assign_users:
- TheLastCicada
commit_prefix: "chore: "
2 changes: 1 addition & 1 deletion app/api/v1/cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
from typing import List

from blspy import G1Element
from chia_rs import G1Element
from chia.consensus.block_record import BlockRecord
from chia.rpc.full_node_rpc_client import FullNodeRpcClient
from chia.util.byte_types import hexstr_to_bytes
Expand Down
2 changes: 1 addition & 1 deletion app/api/v1/keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

from blspy import G1Element, PrivateKey
from chia_rs import G1Element, PrivateKey
from chia.consensus.coinbase import create_puzzlehash_for_pk
from chia.rpc.wallet_rpc_client import WalletRpcClient
from chia.types.blockchain_format.sized_bytes import bytes32
Expand Down
2 changes: 1 addition & 1 deletion app/api/v1/tokens.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from typing import Any, Dict, Tuple

from blspy import G1Element, G2Element
from chia_rs import G1Element, G2Element
from chia.rpc.wallet_rpc_client import WalletRpcClient
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.coin_spend import CoinSpend
Expand Down
2 changes: 1 addition & 1 deletion app/core/chialisp/tail.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Optional

from blspy import G1Element
from chia_rs import G1Element
from chia.types.blockchain_format.program import Program
from chia.types.blockchain_format.sized_bytes import bytes32

Expand Down
10 changes: 5 additions & 5 deletions app/core/climate_wallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import time
from typing import Any, Dict, Iterator, List, Optional, Tuple, Union

from blspy import AugSchemeMPL, G1Element, G2Element, PrivateKey
from chia_rs import AugSchemeMPL, G1Element, G2Element, PrivateKey
from chia.consensus.constants import ConsensusConstants
from chia.rpc.full_node_rpc_client import FullNodeRpcClient
from chia.rpc.wallet_rpc_client import WalletRpcClient
Expand All @@ -13,7 +13,7 @@
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.coin_record import CoinRecord
from chia.types.coin_spend import CoinSpend
from chia.types.spend_bundle import SpendBundle
from chia.types.spend_bundle import SpendBundle, estimate_fees
from chia.util.bech32m import bech32_decode, bech32_encode, convertbits
from chia.util.ints import uint32, uint64
from chia.wallet.cat_wallet.cat_utils import (
Expand Down Expand Up @@ -502,7 +502,7 @@ async def parse_detokenization_request(
"mode": mode,
"from_puzzle_hash": inner_puzzle_hash,
"amount": amount,
"fee": spend_bundle.fees() - amount,
"fee": estimate_fees(spend_bundle) - amount,
"asset_id": asset_id,
"gateway_coin_spend": coin_spend,
}
Expand Down Expand Up @@ -564,7 +564,7 @@ async def sign_and_send_detokenization_request(
created_at_time=uint64(int(time.time())),
to_puzzle_hash=gateway_coin_spend.coin.puzzle_hash,
amount=uint64(gateway_coin_spend.coin.amount),
fee_amount=uint64(spend_bundle.fees() - gateway_coin_spend.coin.amount),
fee_amount=uint64(estimate_fees(spend_bundle) - gateway_coin_spend.coin.amount),
confirmed=False,
sent=uint32(0),
spend_bundle=spend_bundle,
Expand Down Expand Up @@ -642,7 +642,7 @@ async def get_activities(
gateway_cat_puzzle: Program = construct_cat_puzzle(
mod_code=CAT_MOD,
limitations_program_hash=self.tail_program_hash,
inner_puzzle=gateway_puzzle,
inner_puzzle_or_hash=gateway_puzzle,
)
gateway_cat_puzzle_hash: bytes32 = gateway_cat_puzzle.get_tree_hash()

Expand Down
4 changes: 2 additions & 2 deletions app/core/climate_wallet/wallet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Any, Dict, List, Optional, Tuple

from blspy import AugSchemeMPL, G1Element, G2Element, PrivateKey
from chia_rs import AugSchemeMPL, G1Element, G2Element, PrivateKey
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.program import INFINITE_COST, Program
from chia.types.blockchain_format.sized_bytes import bytes32
Expand Down Expand Up @@ -47,7 +47,7 @@ def create_gateway_request_and_spend(
gateway_cat_puzzle: Program = construct_cat_puzzle(
mod_code=CAT_MOD,
limitations_program_hash=tail_program_hash,
inner_puzzle=gateway_puzzle,
inner_puzzle_or_hash=gateway_puzzle,
)
gateway_cat_puzzle_hash: bytes32 = gateway_cat_puzzle.get_tree_hash()

Expand Down
2 changes: 1 addition & 1 deletion app/core/derive_keys.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from blspy import PrivateKey
from chia_rs import PrivateKey
from chia.wallet.derive_keys import _derive_path_unhardened


Expand Down
2 changes: 1 addition & 1 deletion app/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from typing import Any, Dict, List, Optional

from blspy import G1Element, PrivateKey
from chia_rs import G1Element, PrivateKey
from chia.consensus.constants import ConsensusConstants
from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.rpc.wallet_rpc_client import WalletRpcClient
Expand Down
2 changes: 1 addition & 1 deletion app/crud/chia.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from urllib.parse import urlencode, urlparse

import requests
from blspy import G1Element
from chia_rs import G1Element
from chia.rpc.full_node_rpc_client import FullNodeRpcClient
from chia.types.blockchain_format.coin import Coin
from chia.types.coin_record import CoinRecord
Expand Down
2 changes: 1 addition & 1 deletion chia-blockchain
Submodule chia-blockchain updated 608 files
Loading

0 comments on commit c9d92fb

Please sign in to comment.