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

chore: merge v0.1.0 release #370

Merged
merged 17 commits into from
Oct 18, 2024
Merged

chore: merge v0.1.0 release #370

merged 17 commits into from
Oct 18, 2024

Conversation

bidzyyys
Copy link
Collaborator

Resolves #369

ggonzalez94 and others added 16 commits October 9, 2024 11:08
Methods `pause` and `unpause` are not exposed by default now.

Resolves #314
Resolves #318 

I used the term `helpers`, but open to better wording if someone has
suggestions. This touches the same file as #311, so we might need to
update it after we merge that one.
Add additional check to `approve` + emit_event flag like in solidity.
Rely on that `approve` inside `_spend_allowance`.

Resolves #313
- [x]  Set `motsu` version to `v0.1.0`
- [x] Improve version management for the workspace
- `contracts`, `lib/crypto`, `examples`, and `benches` use version set
for the whole workspace
- `motsu`, `motsu-proc`, `e2e`, `e2e-proc` have their own version per
crate
- [x] Cleanup dependencies for the workspace
- [x] Add CI checks for pre-publishing on crates.io
- [x] Fix issues with publishing `motsu` to crates.io:
```
cargo publish -p motsu --target wasm32-unknown-unknown --dry-run
    Updating crates.io index
error: all dependencies must have a version specified when publishing.
dependency `motsu-proc` does not specify a version
Note: The published dependency will use the version from crates.io,
the `path` specification will be removed from the dependency declaration.
```

---------

(cherry picked from commit b1eef80)
Adds erc165 standard altogether with a proc macro, that lets to compute
interface id in a simple way.

<!-- Fill in with issue number -->
Resolves #33

#### PR Checklist

- [x] Tests
- [x] Documentation

---------

Co-authored-by: Daniel Bigos <[email protected]>
(cherry picked from commit 9b04143)
Resolves #315 

I'm leaving comments on things that might need some discussion
Extends checkpoints implementation without code duplications, albeit it
has a bit complex generics
Co-authored-by: Alisander Qoshqosh <[email protected]>
@bidzyyys bidzyyys self-assigned this Oct 18, 2024
@bidzyyys bidzyyys linked an issue Oct 18, 2024 that may be closed by this pull request
1 task
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for contracts-stylus ready!

Name Link
🔨 Latest commit b7c64f2
🔍 Latest deploy log https://app.netlify.com/sites/contracts-stylus/deploys/67129dd4a7c7b100086b8b41
😎 Deploy Preview https://deploy-preview-370--contracts-stylus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 36 lines in your changes missing coverage. Please review.

Project coverage is 81.9%. Comparing base (46eabf0) to head (b7c64f2).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
contracts/src/token/erc721/extensions/metadata.rs 16.6% 15 Missing ⚠️
...ntracts/src/token/erc721/extensions/uri_storage.rs 83.8% 11 Missing ⚠️
contracts/src/token/erc20/mod.rs 65.2% 8 Missing ⚠️
contracts/src/token/erc20/extensions/permit.rs 0.0% 1 Missing ⚠️
...ntracts/src/token/erc721/extensions/consecutive.rs 0.0% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
contracts/src/token/erc20/extensions/burnable.rs 100.0% <100.0%> (ø)
contracts/src/token/erc20/extensions/metadata.rs 4.1% <ø> (+0.4%) ⬆️
...ontracts/src/token/erc721/extensions/enumerable.rs 86.7% <ø> (ø)
contracts/src/token/erc721/mod.rs 88.2% <ø> (-0.1%) ⬇️
contracts/src/utils/cryptography/ecdsa.rs 32.9% <ø> (+2.2%) ⬆️
contracts/src/utils/pausable.rs 74.1% <ø> (ø)
...acts/src/utils/structs/checkpoints/generic_size.rs 100.0% <100.0%> (ø)
contracts/src/utils/structs/checkpoints/mod.rs 96.5% <100.0%> (ø)
lib/crypto/src/hash.rs 75.9% <100.0%> (-0.5%) ⬇️
lib/crypto/src/merkle.rs 97.9% <100.0%> (ø)
... and 5 more

... and 1 file with indirect coverage changes

@bidzyyys bidzyyys marked this pull request as ready for review October 18, 2024 17:47
Copy link
Collaborator

@ggonzalez94 ggonzalez94 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ggonzalez94 ggonzalez94 merged commit 6ac429d into main Oct 18, 2024
24 checks passed
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.

Merge v0.1.0 release branch into main branch
3 participants