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

NFT Dev Branch #142

Merged
merged 8 commits into from
Nov 17, 2022
Merged

NFT Dev Branch #142

merged 8 commits into from
Nov 17, 2022

Conversation

alexytsu
Copy link
Collaborator

@alexytsu alexytsu commented Oct 28, 2022

Long-lived integration branch for landing NFT related work before merging to main

* basic transfer logic

* wip

* allow account level delegation

* token-level approvals

* singular to batched state apis (#133)

* rename account-level authorization methods

* use vector of ActorIDs to record operators
* add receiver hook support to state level

* batch for minting

* structure tests with logical blocks
* added a state invariant checker for NFTs

* delete map entries where possible during burn operations

* update toolchain during build jobs

* cargo clippy --fix
* added a state invariant checker for NFTs

* delete map entries where possible during burn operations

* update toolchain during build jobs

* cargo clippy --fix

* metadataid to metadata

* separate traits for testing frc46 and nft testing fixtures

* rename test_actor to frc46_test_actor

* test nft actor

* actor to actor transfer tests

* fix bug in operator burn
* separate testing modules into separate files

* mint to alice - alice rejects

* mint to token contract itself

* alice mints to herself - burns

* mint to alice, hook transfers to bob

* alice mints to bob who rejects

* token contract transfer tests

* two actor tests completed

* fix dependencies

* don't link nft_actor into integration tests
Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is looking great.

My biggest request is to remove logic from the state layer, making it as dumb as possible, like a nosql database. Then there are a few design questions in discussion where we have updates to make here.

dispatch_examples/greeter/tests/greet.rs Show resolved Hide resolved
frcxx_nft/src/lib.rs Show resolved Hide resolved
frcxx_nft/src/lib.rs Show resolved Hide resolved
frcxx_nft/src/lib.rs Show resolved Hide resolved
frcxx_nft/src/lib.rs Show resolved Hide resolved
frcxx_nft/src/types.rs Show resolved Hide resolved
frcxx_nft/src/types.rs Show resolved Hide resolved
frcxx_nft/src/types.rs Show resolved Hide resolved
frcxx_nft/src/util.rs Show resolved Hide resolved
fvm_actor_utils/src/actor.rs Show resolved Hide resolved
@alexytsu alexytsu marked this pull request as ready for review November 14, 2022 03:25
@coveralls
Copy link

coveralls commented Nov 14, 2022

Coverage Status

Coverage decreased (-0.3%) to 85.937% when pulling 51363eb on nft-dev into 2cb0fc5 on main.

Copy link
Member

@anorth anorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see issues for the major things. Approving in order to reduce merge pain and get back to a world of small PRs, but on the understanding we probably need to do another full review once a bunch of design changes and FRC alignment is done.

frcxx_nft/src/state.rs Outdated Show resolved Hide resolved
alexytsu and others added 2 commits November 16, 2022 14:40
* add OwnerOf

* annotate tests with post-run state

* make metadata a string instead of a cid

* use bitfield to store operators
@alexytsu alexytsu merged commit 9c7aa8b into main Nov 17, 2022
@alexytsu alexytsu deleted the nft-dev branch November 17, 2022 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants