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

Updates to mint with trait and various minor changes #206

Merged
merged 15 commits into from
Feb 19, 2023
Merged

Conversation

obycode
Copy link
Member

@obycode obycode commented Jan 26, 2023

  • Change allowed-contracts map to hold the principal of the L2 contract
    instead of the name of the deposit function. This is thanks to the use
    of a trait for deposits instead, which simplifies things.
  • Pass contract as first arg for deposit/withdrawal methods
  • Reformat clarity contracts
  • Update unit tests
  • Reformat clarinet unit tests

@obycode obycode marked this pull request as ready for review January 26, 2023 17:50
@obycode obycode assigned obycode and unassigned obycode Jan 26, 2023
@obycode obycode requested a review from kantai January 26, 2023 17:51
Copy link
Contributor

@kantai kantai left a comment

Choose a reason for hiding this comment

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

LGTM!

@obycode
Copy link
Member Author

obycode commented Jan 26, 2023

I'll fix those tests. I imagine they should just need some updates to match the changes I made.

@obycode obycode marked this pull request as draft February 1, 2023 16:31
@obycode obycode marked this pull request as ready for review February 2, 2023 19:48
@obycode
Copy link
Member Author

obycode commented Feb 2, 2023

Ok, I went through and resolved the remaining issues, and fixed the tests. Now I am going through the NFT use case demo and making any changes necessary to the readme or scripts.

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Merging #206 (4a629c5) into master (54c653c) will increase coverage by 0.85%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master     #206      +/-   ##
==========================================
+ Coverage   91.19%   92.04%   +0.85%     
==========================================
  Files           6        6              
  Lines         284      327      +43     
==========================================
+ Hits          259      301      +42     
- Misses         25       26       +1     
Impacted Files Coverage Δ
core-contracts/contracts/helper/simple-ft.clar 76.47% <ø> (ø)
...contracts/contracts/helper/simple-nft-no-mint.clar 66.66% <ø> (ø)
core-contracts/contracts/helper/simple-nft.clar 73.33% <ø> (ø)
core-contracts/contracts/multi-miner.clar 97.05% <ø> (ø)
core-contracts/contracts/subnet.clar 94.75% <ø> (+0.61%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

- Change allowed-contracts map to hold the principal of the L2 contract
  instead of the name of the deposit function. This is thanks to the use
  of a trait for deposits instead, which simplifies things.
- Pass contract as first arg for deposit/withdrawal methods
- Reformat clarity contracts
- Update unit tests
- Reformat unit tests
Use "deposit-from-burnchain" always, because it will be validated by a
trait.
These should have been included in the previous commits.
These will be used by clarinet to deploy the contracts to devnet.
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