Commit Graph
14659 Commits
Author SHA1 Message Date
79cbadf987 streamable: Enable isort + more mypy (#10539)
* isort: Fix `streamable.py` and `test_streamable.py`

* mypy: Drop `streamable.py` and `test_streamable.py` form exclusion

And fix all the mypy issues.

* Fix `pylint`

* Introduce `ParseFunctionType` and `StreamFunctionType`

* Use `object` instead of `Type[Any]` for `is_type_*` functions

* Some `Any` -> `object`

* Use `typing.overload` for `recurse_jsonify`

* Move some comments

* Drop `Union`, use `Literal` properly

* Explicitly ignore the return of `f_type.parse`

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Merge two `recurse_jsonify` overloads

* Typing for the base definition of `recurse_jsonify`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-04-20 11:09:41 -07:00
dustinfaceandGitHub 1e7703fe6a plotting|tests|setup: Improve PlotManager cache (#9903)
* plotting|tests: Extend the lifetime of plot data cache entries

* plotting|tests: Add `prover` and `farmer_public_key` to the cache

* plotting: Missing type hints in `Cache` and `CacheEntry`

* setup: Bump `chiapos` to 1.0.10

* plotting: Move cache classes into `chia.plotting.cache`

* plotting: Introduce `CacheEntry.from_disk_prover`

* Make `Cache` a dataclass

* `staticmethod` -> `classmethod`

* Store cache data as `bytes` in `DiskCache`
2022-04-20 11:08:35 -07:00
Kyle AltendorfandGitHub a663ece4c3 fix ssl context creation for server vs. client side (#11134) 2022-04-20 11:05:52 -07:00
Kyle AltendorfandGitHub 0aaa343691 replace some asyncio.get_event_loop().run_until_complete() with asyncio.run() (#11131) 2022-04-20 11:03:31 -07:00
Kyle AltendorfandGitHub 83a740571b aiohttp==3.8.1 for Python 3.10 (#11129) 2022-04-20 11:02:45 -07:00
Florin ChiricaandGitHub cf48bf4241 Fix bug. 2022-04-20 20:05:07 +03:00
Florin ChiricaandGitHub 60baffb158 Fix bug. 2022-04-20 20:04:15 +03:00
Kyle Altendorf c1aeeeb3bf get blocks and plots for data layer workflow 2022-04-20 10:34:09 -04:00
Kyle Altendorf c01814aab3 Service(running_new_process=) 2022-04-19 23:36:59 -04:00
Kyle Altendorf 29ce5b74e0 black 2022-04-19 23:35:38 -04:00
Kyle Altendorf e727c1339f update usage of @streamable 2022-04-19 23:30:20 -04:00
Kyle Altendorf 91c4baf5a3 fix pytest.ini markers list 2022-04-19 22:56:51 -04:00
Kyle Altendorf b6c5babba3 Merge commit 'd154105a6b35f94649f15bca4e3fb8a11a39e70e' into atari-merge_main_d154105a6b35f94649f15bca4e3fb8a11a39e70e 2022-04-19 22:44:02 -04:00
deab050480 DID changes all in one (#10559)
* Chialisp draft

* Modify python code

* Reformat & Fix tests

* Chialisp draft

* Modify python code

* Bug fix & flake8 fix for NFT tests

* Handle recovery

* Chialisp draft

* Modify python code

* Reformat & Fix tests

* Chialisp draft

* Modify python code

* Bug fix & flake8 fix for NFT tests

* add clvm files to recomp list

* fix rpc test

* flake8 fixes for tests

* flake 8 stupid fix

* Bug fix & flake8 fix for NFT tests

* Modify python code

* Chialisp draft

* Modify python code

* Bug fix & flake8 fix for NFT tests

* Generalize the message puzzle

* Add Pubkey as hint

* Receive DID

* Add DID APIs & Tests

* Fix tests

* Test fixes. in_transaction is now passed as a param to the various callers that eventually call save_info.

* Workflow Fix

* Add test config for DID/NFT

* Update workflow test yaml

* Fix install test script

* Fix typo

* Resolve comments

* Fix tests

* Change did_innerpuz and fix wallets for new design (#11196)

* correcting the design of did_innerpuz and related wallet changes

* remove breakpoint comments

* change decimal point accuracy of percentage system

* secure new_amount by fixing it to our current amount

* rename and update comments for new_amount - now my_amount

* rename P2_PUZZLE to simply INNER_PUZZLE

* fix variable re-declaration for flake/merge

* black and flake8 - inclduing wallet_state_manager bug fix

* update RPCs related to add_url
added commented out tests too, but DID needs fixing first

* Fix bugs in transfer case

* Fix pre-commit

* Fix install.sh test for bookworm

Co-authored-by: matt <matt@chia.net>
Co-authored-by: Jeff Cruikshank <jeff@chia.net>
Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>
Co-authored-by: ytx1991 <t.yu@chia.net>
2022-04-19 17:45:23 -07:00
Chris MarslenderandGitHub 7a123afddb Fix install.sh test for bookworm (#11227) 2022-04-19 15:43:06 -07:00
Chris MarslenderandGitHub 337dbd4e5c Revert "Revert "Pin mac intel installer to 10.15 (#11209)" (#11210)" (#11211)
This reverts commit d3e73a75ab.
2022-04-19 12:53:59 -06:00
William AllenandGitHub d154105a6b Adding changelog (#11223) 1.3.4 2022-04-19 10:38:55 -07:00
William AllenandGitHub 4a6c1903b7 Adding changelog (#11223) 2022-04-19 10:38:44 -07:00
Chris MarslenderandGitHub d3e73a75ab Revert "Pin mac intel installer to 10.15 (#11209)" (#11210)
This reverts commit 93a61eece1.
2022-04-18 15:42:09 -06:00
Chris MarslenderandGitHub 93a61eece1 Pin mac intel installer to 10.15 (#11209) 2022-04-18 15:34:27 -06:00
Chris MarslenderandGitHub 10f7bcde5c Add start_crawler and start_seeder to pyinstaller config (#11205) 2022-04-18 15:58:44 -05:00
Chris MarslenderandGitHub 7567b4ea9c Fix filename of latest intel dev installer (#11203) 2022-04-18 10:18:59 -05:00
Kyle AltendorfandGitHub 974391a938 Merge pull request #10992 from Chia-Network/datalayer-sim-fix_switch_to_mainnet 2022-04-16 00:41:43 -04:00
Jeff Cruikshank 6f079b071f Bumping GUI to 155866f6d060944b29b40c147f7f02eaab2e50b7 2022-04-15 17:18:20 -07:00
Arvid NorbergandGitHub 36a610f038 fix block_tools feature when specifying a list of block references. Also add feature keep_going_until_tx_block. (#11185) 2022-04-15 16:23:37 -07:00
Chris MarslenderandGitHub 82c01ff2bc Simplify how the chia symlink is created in the CLI .deb (#11188) 2022-04-15 14:13:00 -05:00
Arvid NorbergandGitHub 511c13e632 add tool to generate a blockchain with full blocks, as a benchmark (#11146) 2022-04-15 10:11:42 -07:00
Jeff Cruikshank 1224d64973 Bumping GUI to 7aa199a4fb49361e6005c1c9cbdc54f269f9220b 2022-04-14 18:01:30 -07:00
Chris MarslenderandGitHub 2fbe062e78 Build cli only version of debs (#11166)
* Build cli only version of debs

* Export the vars needed by j2

* Fix paths

* Add symlink to chia in /usr/local/bin/

* Upload the cli only debs to s3

* Add init.py

* Ensure SHA is on the dev build for amd64
2022-04-14 19:32:26 -05:00
JeffandGitHub e5d048f1de Merge commit with main (9ff3fc993f) (#11137)
* Merged with main (9ff3fc993f)

* Linter and some test fixes

* isort, linting, test fix

* Fixes and bumped the GUI to point to nftdev

* Couple of fixes
2022-04-14 12:02:42 -07:00
8b074762b6 Big change to NFT innerpuz (#11141)
* new innerpuz with passing clvm tests

* more work on url updating

* fix broken add_url tests

* fix nft_wallet generate_nft code

* more progress

* fix wallet and change to auto-send on tradeprice == 0

* flake8 and black

* NFTs are always amount 1
removed some unnecessary new_did info detritus from wallet

* move trade_price_list into tp_solution

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* Update chia/wallet/nft_wallet/nft_puzzles.py

* typing for create_full_puzzle_with_curry_params

* Typing for update_metadata

* Typing for get_trade_prices_list_from_inner_solution

Co-authored-by: Jeff <jeff@chia.net>
2022-04-14 10:13:02 -07:00
Chris MarslenderandGitHub 3ea3a4dc0c Use get latest release endpoint for plotters, so that we ignore any pre-releases that could be returned by listReleases (#11165) 2022-04-13 18:06:50 -05:00
Arvid NorbergandGitHub 6259643c36 make listen port colissions in CI less likely (#11164) 2022-04-13 14:47:14 -07:00
Arvid NorbergandGitHub 56804a0b4c optimize wallet tool by not caching the puzzle_hash -> derivation index, but caching puzzle_hash -> secret key (which is the lookup we're actually interested in). This avoids duplicating the actual derivation (#11154) 2022-04-13 12:13:25 -07:00
William Blanke 9a8556acde updated gui to 81303fb962f4a627a2e1c55098e187a9057745da 2022-04-13 12:10:05 -07:00
Chris MarslenderandGitHub b3a9459fea Mark the github workspace as safe (#11159)
* Mark the github workspace as safe

* Move the git config step after git is installed in the test containers
2022-04-13 09:35:42 -06:00
wjblankeandGitHub a99c3be36b Revert "derivation from just a master public key (#11140)" (#11143)
This reverts commit db536c615a.
2022-04-13 07:21:46 -07:00
William Blanke 26466d54d9 updated gui to d5b75bcf7a0fe1ef76775e7f1d5e12d169069676 2022-04-12 16:15:10 -07:00
Patrick MaslanaandGitHub de5ed625bf Add dependencies macos rhel chiavdf (#11142)
* Added steps, when building the chiavdf wheel for macos and rhel-based systems, to install cmake and/or gmp.
2022-04-12 10:51:29 -07:00
YostraandGitHub db536c615a derivation from just a master public key (#11140) 2022-04-12 10:29:36 -07:00
Matt HauffandGitHub 151fd6476a rebase and more fixes (#10885) 2022-04-12 10:15:33 -07:00
9ff3fc993f Ms.plot load perf2 (#10978)
* 2.7 seconds -> 0.45 seconds

* Merge

* Work on create_plots refactor

* Try to fix tests

* Try to fix tests

* Use new functions

* Fix block_tools by adding dir

* Extra argument

* Try to fix cyclic import

* isort

* Drop warning

* Some cleanups around `exclude_final_dir` and directory adding

* Cleanup `min_mainnet_k_size` checks

* Drop unrelated changes

* Fixes after rebase

* Fix cyclic import

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update tests/block_tools.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: xdustinface <xdustinfacex@gmail.com>
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-04-11 09:16:01 -07:00
Kyle Altendorf e8a1bf6b01 Merge branch 'datalayer-sim' into datalayer-sim-fix_switch_to_mainnet 2022-04-11 11:51:20 -04:00
YostraandGitHub 0e9c917119 Expose farm_block RPC for simulator (#10830)
* expose farm block api to RPC for simulator

* lint

* pre-commit lint
2022-04-10 21:18:18 -07:00
dustinfaceandGitHub a48fd43100 streamable: Simplify and force correct usage (#10509)
* streamable: Merge `strictdataclass` into `Streamable` class

* tests: Test not supported streamable types

* streamable: Reorder decorators

* streamable: Simplify streamable decorator and force correct usage/syntax

* streamable: Just move some stuff around in the file

* streamable: Improve syntax error messages

* mypy: Drop `type_checking.py` and `test_type_checking.py` from exclusion

* streamable: Use cached fields instead of `__annotations__`

This is now possible after merging `__post_init__` into `Streamable`

* Introduce `DefinitionError` as `StreamableError`

* `/t` -> `    `
2022-04-08 18:29:32 -07:00
William Blanke 930a4b6825 updated gui to fccbd3e10d27673e39c01f0f89e47b5455b8331a 2022-04-08 15:03:13 -07:00
William Blanke 5dea4a238e updated gui to 5f8b23fc7deb0b07f665c075ed491059f4d8b95c 2022-04-08 14:11:04 -07:00
Kyle AltendorfandGitHub 2d4045b9d2 only check the version once in installer build workflows (#11099) 2022-04-08 13:49:21 -07:00
Kyle AltendorfandGitHub 5c8763ed0f Merge pull request #11088 from Chia-Network/datalayer-sim-atari_1.3.3-take_2 2022-04-08 14:11:45 -04:00
William Blanke f928283b3d updated gui to d714c21b4ee3ebbc7d18b5f819772cd9868d0bf5 2022-04-08 10:17:32 -07:00