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

feat(pop-api): errors #17

Merged
merged 20 commits into from
Mar 6, 2024
Merged

feat(pop-api): errors #17

merged 20 commits into from
Mar 6, 2024

Conversation

peterwht
Copy link
Collaborator

@peterwht peterwht commented Mar 4, 2024

Adds error handling approach to surface pallet errors from runtime calls.

pop-api/src/v0/nfts.rs Outdated Show resolved Hide resolved
pop-api/src/v0/nfts.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
@evilrobot-01 evilrobot-01 force-pushed the frank/feat-pop-api-error branch 2 times, most recently from 609e476 to 21b2050 Compare March 5, 2024 09:59
@evilrobot-01
Copy link
Collaborator

@peterwht unable to add you as a reviewer, presumable based on you creating the PR. Please can you give it another look after I addressed your comments?

Copy link
Collaborator

@al3mart al3mart left a comment

Choose a reason for hiding this comment

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

Looks good.

I have removed one unused import and renamed the tests so they are more descriptive.

@peterwht
Copy link
Collaborator Author

peterwht commented Mar 5, 2024

LGTM!

@evilrobot-01 evilrobot-01 force-pushed the frank/feat-pop-api-error branch 3 times, most recently from 63da428 to 53a972d Compare March 6, 2024 00:37
peterwht and others added 18 commits March 6, 2024 01:03
* ci: add build workflow

* chore: improve zombienet config

* ci: grant write permission to actions

* feat: initialize pop-api directory

* feat: add codec indexes, and wrap NFT interface

* feat: add example contract utilizing pop-api crate -- not working

* feat: minting NFT from contract through runtime works

* feat pop api crate refactoring and test (#15)

* refactor: simplify api usage from contract

* test: add NFT mint unit test to pop api extension

---------

Co-authored-by: Frank Bell <[email protected]>

---------

Co-authored-by: Frank Bell <[email protected]>
* demo_contract:query_runtime

* pop-api-ext:query

* read relay_block# & state

* unused import

* ci: add build workflow

* chore: improve zombienet config

* ci: grant write permission to actions

* feat: initialize pop-api directory

* feat: add codec indexes, and wrap NFT interface

* feat: add example contract utilizing pop-api crate -- not working

* feat: minting NFT from contract through runtime works

* feat: generic state reads

* chore: fmt

* RuntimeStateKeys

* clean keys

* fmt

* cumulus_parachain_system is accessible

---------

Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Peter White <[email protected]>
@peterwht peterwht merged commit ec38934 into feat/pop-api Mar 6, 2024
5 checks passed
@peterwht peterwht deleted the frank/feat-pop-api-error branch March 6, 2024 02:45
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