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

Bring DID/NFT effort into release/1.4.0 #11662

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
c18fe51
initial commit
matt-o-how Jan 19, 2022
509ef78
assert coin added in test
matt-o-how Jan 21, 2022
a810bb9
add support functions
matt-o-how Jan 21, 2022
eccb68f
add RPC calls (untestested and surely unworking)
matt-o-how Jan 24, 2022
ac4731b
missing comma
matt-o-how Jan 24, 2022
125c27c
update puzzle clvm hex sha256
matt-o-how Jan 25, 2022
f7fa15b
fixes
Yostra Jan 25, 2022
68aafea
add load_wallet for nft_wallet
matt-o-how Jan 25, 2022
b8f5d98
add singleton 1.1 and update innerpuz for it
matt-o-how Jan 25, 2022
8060f57
update wallet for new innerpuz
matt-o-how Jan 25, 2022
3974f13
use singleton 1.1
matt-o-how Jan 25, 2022
0c567b5
swap DID to singleton 1.1
matt-o-how Jan 27, 2022
aa5e91f
Fix DID Wallet and DID Innerpuz
matt-o-how Jan 27, 2022
2e61215
list hint
matt-o-how Jan 27, 2022
bbf374a
don't push automatically
Yostra Jan 27, 2022
b6d4f1e
change to determine_coin_type
matt-o-how Jan 28, 2022
e246ad2
stash debug
Yostra Jan 28, 2022
46995ea
fix get_hints()
matt-o-how Jan 31, 2022
d736359
small fix en route to bigger fix later
matt-o-how Feb 1, 2022
d35abe3
push for straya
matt-o-how Feb 2, 2022
bf95259
checkpoint
Yostra Feb 2, 2022
6620fd9
coin discovered in wallet
matt-o-how Feb 2, 2022
2e623fd
re-enable push of attests because message spends are different
matt-o-how Feb 3, 2022
133a607
change a few node calls for rebase and rebase
matt-o-how Feb 3, 2022
a3ff74a
black and flake8
matt-o-how Feb 3, 2022
794d2f2
flake8 test formatting
matt-o-how Feb 3, 2022
48dd2dc
Add transfer test and some transfer functions
matt-o-how Feb 4, 2022
fae9f9f
fix bug where innerpuzzle would not recreate itself properly
matt-o-how Feb 7, 2022
f35b4ec
fix get_info for received NFT and reovme breakpoint
matt-o-how Feb 7, 2022
359ac29
fix messages
matt-o-how Feb 8, 2022
d4339a6
debug commit
Yostra Feb 9, 2022
6709920
receive and send it back!
matt-o-how Feb 10, 2022
3f6fe58
send it back and remove NFTs after they're sent
matt-o-how Feb 10, 2022
3b939d8
fix adding duplicates bug
matt-o-how Feb 10, 2022
2181c4d
mint NFT with RPC calls test
matt-o-how Feb 11, 2022
0667f2c
save newer coin info over older info
matt-o-how Feb 14, 2022
12c121e
finish RPC tests
matt-o-how Feb 14, 2022
9d86d49
update to new version of singleton
matt-o-how Feb 15, 2022
b2d2495
change puzzle to remove need for receive spend when trade_price = 0
matt-o-how Feb 21, 2022
6f773a6
Begin conversion to trade price list
matt-o-how Feb 21, 2022
090bd14
fix test to new trade_price_list system
matt-o-how Feb 22, 2022
e2b1e9d
Move towards goals in chialisp
matt-o-how Feb 23, 2022
5d786ad
fix clvm testss
matt-o-how Feb 23, 2022
ea0fe10
remove unused code
matt-o-how Feb 23, 2022
795afed
more chialisp changes working towards CAT royalties
matt-o-how Feb 24, 2022
901b297
much progress on CAT royalties
matt-o-how Feb 28, 2022
355016d
round down to even on royalties
matt-o-how Mar 1, 2022
329b9d7
add delay to fix inconsistent tests
matt-o-how Mar 2, 2022
81c3483
remove unused file
matt-o-how Mar 2, 2022
ebf606a
add assertions and fine tune sleep
matt-o-how Mar 2, 2022
18db30c
add richer support for URIs / metadata and add periphery functions
matt-o-how Mar 3, 2022
d4ab49a
switch to metadata, switch to puzzle announcements
matt-o-how Mar 8, 2022
1597634
update innerpuz commit hash
matt-o-how Mar 8, 2022
6c303c4
add clvm files to recomp list
matt-o-how Mar 11, 2022
cf8d00b
fix rpc test
matt-o-how Mar 11, 2022
72a7f96
flake8 fixes for tests
matt-o-how Mar 11, 2022
b47c941
flake 8 stupid fix
matt-o-how Mar 14, 2022
8b07476
Big change to NFT innerpuz (#11141)
matt-o-how Apr 14, 2022
e5d048f
Merge commit with main (9ff3fc993f69b5c59ecf14470284a5b9e799e6cf) (#1…
paninaro Apr 14, 2022
1224d64
Bumping GUI to 7aa199a4fb49361e6005c1c9cbdc54f269f9220b
paninaro Apr 15, 2022
6f079b0
Bumping GUI to 155866f6d060944b29b40c147f7f02eaab2e50b7
paninaro Apr 16, 2022
deab050
DID changes all in one (#10559)
ytx1991 Apr 20, 2022
29e7147
Merge commit with main 1.3.4 (d154105a6b35f94649f15bca4e3fb8a11a39e70…
paninaro Apr 23, 2022
6a3ae94
WIP commit for the new NFT spec
matt-o-how Apr 25, 2022
8b0062a
Update to optimized singleton
Quexington Apr 25, 2022
ccb95da
flesh out ownership layer
matt-o-how Apr 25, 2022
ee07df4
nft_transfer_nft: (#11181)
AmineKhaldi Apr 26, 2022
77833a8
Add get_confirmed_balance(), get_unconfirmed_balance(), get_spendable…
AmineKhaldi Apr 26, 2022
52770fb
Needed for DID CLI: (#11268)
AmineKhaldi Apr 26, 2022
ebe6ade
Generalize the Offer class to more than CATs
Quexington Apr 15, 2022
bfa0c6c
Remove CAT dependencies from trade_manager
Quexington Apr 16, 2022
a417767
Fix offer RPC
Quexington Apr 16, 2022
4a8ae25
isort
Quexington Apr 18, 2022
b69cfcb
Further generalize the Offer drivers
Quexington Apr 21, 2022
a31737e
Update trade manager with new generalizations
Quexington Apr 21, 2022
d79d57d
Fix offer RPC again
Quexington Apr 21, 2022
70b8d26
Move outer_puzzles.py
Quexington Apr 21, 2022
390edb2
pivot from string to clvm for dict entries
Quexington Apr 21, 2022
28d5740
add test coverage for driver dict in RPC
Quexington Apr 22, 2022
e26fc45
Remove some CAT specific stuff from tm
Quexington Apr 22, 2022
2d27c55
Add comments explaining the changes
Quexington Apr 25, 2022
1f24ec9
Minor fixes
Quexington Apr 25, 2022
f9a68f5
isort and flake8
Quexington Apr 25, 2022
8963e83
More linting
Quexington Apr 25, 2022
ac8bf76
Include drivers in offer summary
Quexington Apr 25, 2022
5c97b1c
Better autodetection of drivers on offer creation
Quexington Apr 25, 2022
53b6789
Forgot to update rpc test
Quexington Apr 26, 2022
89c5c6f
checkpoint
matt-o-how Apr 26, 2022
a5ba0db
fix test and optimise state_layer puz
matt-o-how Apr 27, 2022
035d38b
Merge commit '9ff3fc993f69b5c59ecf14470284a5b9e799e6cf' into main_dids
altendky Apr 27, 2022
8df95fc
Merge commit 'd154105a6b35f94649f15bca4e3fb8a11a39e70e' into main_dids
altendky Apr 27, 2022
28eaf46
Merge branch 'main' into main_dids-merge_cleanup_test
altendky Apr 27, 2022
de0d933
rebuild workflows
altendky Apr 27, 2022
42f2e07
Pass Recovery Info in the Transfer case (#11249)
ytx1991 Apr 27, 2022
1d1e01f
Bumping GUI to 447ac34942facbd1db64755144363268539ecf25
paninaro Apr 27, 2022
521b1ef
Merge branch 'main' into main_dids-merge_main_3abcbf1dfa6cfcd5f9f5b47…
altendky Apr 27, 2022
2d9b77a
Merge branch 'main_dids' into main_dids-merge_main_ad3259e8fde75f1f06…
altendky Apr 27, 2022
571e667
metadata checkpoint
matt-o-how Apr 28, 2022
6573ac7
fix state layer for metadata updater
matt-o-how Apr 28, 2022
8363322
add test for metadata updating
matt-o-how Apr 28, 2022
dd43ef7
removed second param for create_ann condition
trepca Apr 28, 2022
87f9d40
forgot to compile clvm
trepca Apr 28, 2022
a0f18b2
Merge pull request #11197 from Chia-Network/offer_generalization
matt-o-how Apr 28, 2022
04c1c26
compiled updated clvm sha256
trepca Apr 28, 2022
b39912a
Merge pull request #11355 from trepca/main_did_ann_fix
trepca Apr 28, 2022
455476d
* Add fees support to DID wallet creation RPC client. (#11363)
AmineKhaldi Apr 29, 2022
ad9c3be
Initial iteration of the chia wallet did create command. (#11237)
AmineKhaldi Apr 30, 2022
30adb1b
Add nft_get_nft_info API (#11351)
ytx1991 Apr 30, 2022
b1fa967
almost generates a new nft
trepca May 2, 2022
e12332f
generating nfts
trepca May 3, 2022
7d02c47
rpc fix
trepca May 3, 2022
24d317a
DID set wallet name RPC API: Ensure that the wallet type is a DID wal…
AmineKhaldi May 3, 2022
d24b79b
Initial iteration of the chia wallet did set_name command. (#11334)
AmineKhaldi May 3, 2022
57a2415
make NFTWallet a dataclass (#11139)
altendky May 3, 2022
bcda9a7
Implement nft transfer program
ytx1991 May 3, 2022
0330037
Resolve comment
ytx1991 May 4, 2022
093b275
transfer wip
trepca May 3, 2022
ee8eda2
checkpoint
trepca May 4, 2022
523c676
basic rpc api working
trepca May 4, 2022
9da3cbb
Fix data hash issue
ytx1991 May 4, 2022
297767f
resolved conflicts
trepca May 5, 2022
c470401
pre commit hooks passing, tests pass
trepca May 5, 2022
150f244
removed old NFT tests
trepca May 5, 2022
8a32eee
workflow files?
trepca May 5, 2022
694b737
Attempt to fix workflows.
AmineKhaldi May 5, 2022
bddd7e8
Workflows?
AmineKhaldi May 5, 2022
2566f68
Prepare test blocks and plots for NFT wallet tests.
AmineKhaldi May 5, 2022
b69323e
Reflect the previous commit into workflows.
AmineKhaldi May 5, 2022
4df1f46
clvm compilation fix
trepca May 5, 2022
61bb87f
future proof create_coin in nft state layer
trepca May 5, 2022
9edda65
Add RPC client support for the create_new_wallet API. (#11430)
AmineKhaldi May 5, 2022
ecf7cd8
Merge pull request #11433 from Chia-Network/new_nfts_driver
trepca May 5, 2022
ce30383
nft_get_nfts returns a nicer response
trepca May 5, 2022
b4a0a24
get nfts rpc should now conform to old format
trepca May 6, 2022
e779ac5
checkpoint
trepca May 6, 2022
b3197d5
Merge from main_dids
ytx1991 May 6, 2022
4c2f41a
Fix tests
ytx1991 May 6, 2022
9f7cc25
Remove impossible case
ytx1991 May 9, 2022
0324756
metadata updater working with latest puzzles
trepca May 9, 2022
3b417e7
Merge pull request #11440 from Chia-Network/main_dids_data_hash
trepca May 9, 2022
589488d
checkpoint
trepca May 9, 2022
02df7e5
Merge remote-tracking branch 'origin/main_dids' into nft_update_metadata
trepca May 9, 2022
319fde0
removed unused method
trepca May 9, 2022
4dd736b
mypy fix
trepca May 9, 2022
5365d3f
Bumping GUI to df86eca99aee33a484570f06588e9fdd6506c661
paninaro May 10, 2022
76f8e8d
added state change events in nft wallet (#11469)
trepca May 10, 2022
867a204
Bumping GUI to b4d3eebfe33345728a2314031ffad160865019da
paninaro May 10, 2022
6ed0f67
fix for clvm compilation fail
trepca May 10, 2022
5e890a9
made nft state layer more future proof
trepca May 10, 2022
8594a4d
Add `chia.wallet.nft_wallet` to packages in setup.py
greimela May 10, 2022
e21108b
Merge commit 'e0df18f85d3915f4c947ca2e41c00d60b78f54ba' into main_dids
AmineKhaldi May 10, 2022
8c7a2d3
Initial iteration of the NFT0 chia wallet nft create command. (#11476)
AmineKhaldi May 11, 2022
81c75b8
Add wallet RPC client support for the NFT0 nft_mint_nft API. (#11477)
AmineKhaldi May 11, 2022
61b71f0
Automatically create NFT wallet (#11482)
ytx1991 May 11, 2022
000be6a
Merge remote-tracking branch 'origin/main_dids' into nft_update_metadata
trepca May 11, 2022
21b9f1d
fix to merge into main_dids
trepca May 11, 2022
94a9c0d
Merge pull request #11472 from trepca/nft_update_metadata
trepca May 11, 2022
932c389
Merge pull request #11479 from AmineKhaldi/e0df18f_into_main_dids
trepca May 11, 2022
9435df8
Initial iteration of the NFT0 chia nft mint command.
AmineKhaldi May 11, 2022
2ef9b6f
Merge pull request #11475 from mintgarden-io/main_dids
trepca May 11, 2022
deab501
Merge pull request #11478 from AmineKhaldi/nft0_mint_cmd
trepca May 11, 2022
95ca708
Initial iteration of the NFT0 chia wallet nft add_uri command.
AmineKhaldi May 11, 2022
da25e8d
Merge pull request #11484 from AmineKhaldi/nft0_add_uri_cmd
trepca May 11, 2022
7cf6784
Initial iteration of the NFT0 chia wallet nft transfer command.
AmineKhaldi May 11, 2022
c295439
Merge pull request #11483 from AmineKhaldi/nft0_transfer_cmd
trepca May 11, 2022
6e83eec
Initial iteration of the NFT0 chia wallet nft list command.
AmineKhaldi May 11, 2022
4951929
NFT0: Make the wallet ID required for adding a URI.
AmineKhaldi May 11, 2022
96f7767
Merge pull request #11485 from AmineKhaldi/nft0_list_nfts_cmd
trepca May 11, 2022
409f5cc
Bumping GUI to 725d77abbae77463fea725396e169f4148b810b6
paninaro May 11, 2022
5d84814
Merge pull request #11487 from AmineKhaldi/add_uri_wallet_id_required
trepca May 11, 2022
cf1e5a7
NFT0: Make the wallet ID required for transferring an NFT.
AmineKhaldi May 11, 2022
babe3ff
Merge pull request #11488 from AmineKhaldi/transfer_nft_wallet_id_req…
trepca May 11, 2022
bbcf6fd
Add fee option for NFT & limit NFT wallet creation (#11492)
ytx1991 May 11, 2022
102280e
Add the ability to set fees for minting NFTs, transferring NFTs and a…
AmineKhaldi May 11, 2022
50f8ab9
Fix handling fees on the RPC API side.
AmineKhaldi May 11, 2022
15dfb0a
Merge pull request #11493 from AmineKhaldi/nft0_cli_fees
trepca May 11, 2022
b2617b0
fix for missing minted coins
trepca May 12, 2022
97e299b
Merge pull request #11500 from trepca/nft_eve_spend_hints
trepca May 12, 2022
4a38631
updating metadata with multiple uris fix
trepca May 16, 2022
5128d50
Merge pull request #11538 from trepca/nft0_metadata_bug
trepca May 16, 2022
3ee5504
Merge remote-tracking branch 'chia/main' into pr-main-dids-catchup
xdustinface May 19, 2022
a9b1ba8
Merge main into pr-main-dids-catchup
AmineKhaldi May 23, 2022
dc804d9
Consolidate test_did_rpc.py into test_wallet_rpc.py and make the test…
AmineKhaldi May 23, 2022
28d3e77
Update workflows and minor formatting.
AmineKhaldi May 23, 2022
16cb1c3
faster tests, other fixes
trepca May 24, 2022
0b5c4a4
potentially fixes the did test failure
trepca May 25, 2022
66cbd09
Bring DID/NFT effort into release/1.4.0
AmineKhaldi May 27, 2022
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
20 changes: 17 additions & 3 deletions .github/workflows/build-test-macos-wallet-did_wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build:
name: MacOS wallet-did_wallet Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 30
timeout-minutes: 50
strategy:
fail-fast: false
max-parallel: 4
Expand Down Expand Up @@ -67,7 +67,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-

# Omitted checking out blocks and plots repo Chia-Network/test-cache
- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia

- name: Run install script
env:
Expand All @@ -81,7 +95,7 @@ jobs:
- name: Test wallet-did_wallet code with pytest
run: |
. ./activate
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/did_wallet/test_did.py tests/wallet/did_wallet/test_did_rpc.py
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/did_wallet/test_did.py

- name: Process coverage data
run: |
Expand Down
117 changes: 117 additions & 0 deletions .github/workflows/build-test-macos-wallet-nft_wallet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
#
# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme
#
name: MacOS wallet-nft_wallet Test

on:
push:
branches:
- 'long_lived/**'
- main
- 'release/**'
tags:
- '**'
pull_request:
branches:
- '**'

concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true

jobs:
build:
name: MacOS wallet-nft_wallet Tests
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.9', '3.10']
os: [macOS-latest]
env:
CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet
JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-nft_wallet

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python environment
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Create keychain for CI use
run: |
security create-keychain -p foo chiachain
security default-keychain -s chiachain
security unlock-keychain -p foo chiachain
security set-keychain-settings -t 7200 -u chiachain

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache pip
uses: actions/cache@v3
with:
# Note that new runners may break this https://github.com/actions/cache/issues/292
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia

- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
run: |
brew install boost
sh install.sh -d

# Omitted installing Timelord

- name: Test wallet-nft_wallet code with pytest
run: |
. ./activate
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/nft_wallet/test_nft_clvm.py tests/wallet/nft_wallet/test_nft_wallet.py

- name: Process coverage data
run: |
venv/bin/coverage combine --rcfile=.coveragerc .coverage.*
venv/bin/coverage xml --rcfile=.coveragerc -o coverage.xml
mkdir coverage_reports
cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}"
cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml"
venv/bin/coverage report --rcfile=.coveragerc --show-missing

- name: Publish coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage_reports/*
if-no-files-found: error
#
# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme
#
20 changes: 17 additions & 3 deletions .github/workflows/build-test-ubuntu-wallet-did_wallet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
build:
name: Ubuntu wallet-did_wallet Test
runs-on: ${{ matrix.os }}
timeout-minutes: 30
timeout-minutes: 50
strategy:
fail-fast: false
max-parallel: 4
Expand Down Expand Up @@ -67,7 +67,21 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-

# Omitted checking out blocks and plots repo Chia-Network/test-cache
- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia

- name: Run install script
env:
Expand All @@ -80,7 +94,7 @@ jobs:
- name: Test wallet-did_wallet code with pytest
run: |
. ./activate
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/did_wallet/test_did.py tests/wallet/did_wallet/test_did_rpc.py
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/did_wallet/test_did.py

- name: Process coverage data
run: |
Expand Down
119 changes: 119 additions & 0 deletions .github/workflows/build-test-ubuntu-wallet-nft_wallet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
#
# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme
#
name: Ubuntu wallet-nft_wallet Test

on:
push:
branches:
- 'long_lived/**'
- main
- 'release/**'
tags:
- '**'
pull_request:
branches:
- '**'

concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true

jobs:
build:
name: Ubuntu wallet-nft_wallet Test
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
os: [ubuntu-latest]
env:
CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet
JOB_FILE_NAME: tests_${{ matrix.os }}_python-${{ matrix.python-version }}_wallet-nft_wallet

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Python environment
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Cache npm
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"

- name: Cache pip
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Cache test blocks and plots
uses: actions/cache@v2
id: test-blocks-plots
with:
path: |
${{ github.workspace }}/.chia/blocks
${{ github.workspace }}/.chia/test-plots
key: 0.29.0

- name: Checkout test blocks and plots
if: steps.test-blocks-plots.outputs.cache-hit != 'true'
run: |
wget -qO- https://github.com/Chia-Network/test-cache/archive/refs/tags/0.29.0.tar.gz | tar xzf -
mkdir ${{ github.workspace }}/.chia
mv ${{ github.workspace }}/test-cache-0.29.0/* ${{ github.workspace }}/.chia

- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
run: |
sh install.sh -d

# Omitted installing Timelord

- name: Test wallet-nft_wallet code with pytest
run: |
. ./activate
venv/bin/coverage run --rcfile=.coveragerc --module pytest --durations=10 -n 0 -m "not benchmark" tests/wallet/nft_wallet/test_nft_clvm.py tests/wallet/nft_wallet/test_nft_wallet.py

- name: Process coverage data
run: |
venv/bin/coverage combine --rcfile=.coveragerc .coverage.*
venv/bin/coverage xml --rcfile=.coveragerc -o coverage.xml
mkdir coverage_reports
cp .coverage "coverage_reports/.coverage.${{ env.JOB_FILE_NAME }}"
cp coverage.xml "coverage_reports/coverage.${{ env.JOB_FILE_NAME }}.xml"
venv/bin/coverage report --rcfile=.coveragerc --show-missing

- name: Publish coverage
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage_reports/*
if-no-files-found: error

# Omitted resource usage check

#
# THIS FILE IS GENERATED. SEE https://github.com/Chia-Network/chia-blockchain/tree/main/tests#readme
#
10 changes: 10 additions & 0 deletions .github/workflows/test-install-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ jobs:
apt-get --yes update
apt-get install --yes git lsb-release sudo

# @TODO this step can be removed once Python 3.10 is supported
# Python 3.10 is now the default in bookworm, so install 3.9 specifically so install does not fail
- name: Prepare debian:bookworm
if: ${{ matrix.distribution.name == 'debian:bookworm' }}
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get update -y
apt-get install -y python3.9-venv

- name: Prepare Fedora
if: ${{ matrix.distribution.type == 'fedora' }}
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ This release also includes several important performance improvements as a resul

- PlotNFT transactions via CLI (e.g. `chia plotnft join`) now accept a fee parameter, but it is not yet operable.


## 1.2.10 Chia blockchain 2021-10-25

We have some great improvements in this release: We launched our migration of keys to a common encrypted keyring.yaml file, and we secure this with an optional passphrase in both GUI and CLI. We've added a passphrase hint in case you forget your passphrase. More info on our [wiki](https://github.com/Chia-Network/chia-blockchain/wiki/Passphrase-Protected-Chia-Keys-and-Key-Storage-Migration). We also launched a new Chialisp compiler in clvm_tools_rs which substantially improves compile time for Chialisp developers. We also addressed a widely reported issue in which a system failure, such as a power outage, would require some farmers to sync their full node from zero. This release also includes several other improvements and fixes.
Expand Down
Loading