Skip to content

Commit

Permalink
Merge branch 'main' into erc1155-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys authored Nov 18, 2024
2 parents 179922c + 28f3178 commit ba6e965
Show file tree
Hide file tree
Showing 17 changed files with 943 additions and 65 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Some of the items may not apply.

- [ ] Tests
- [ ] Documentation
- [ ] Changelog
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ jobs:
uses: actions/checkout@v4

- name: Check spelling of files in the workspace
uses: crate-ci/[email protected].2
uses: crate-ci/[email protected].3
20 changes: 15 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
contents: read
on:
push:
branches: [ main, release/* ]
branches: [main, release/*]
paths-ignore:
- "**.md"
- "**.adoc"
Expand All @@ -32,7 +32,7 @@ jobs:
matrix:
# Run on stable and beta to ensure that tests won't break on the next
# version of the rust toolchain.
toolchain: [ stable, beta ]
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -44,6 +44,11 @@ jobs:
toolchain: ${{ matrix.toolchain }}
rustflags: ""

- name: "Install nextest"
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest

- name: Cargo generate-lockfile
# Enable this ci template to run regardless of whether the lockfile is
# checked in or not.
Expand All @@ -52,7 +57,7 @@ jobs:

# https://twitter.com/jonhoo/status/1571290371124260865
- name: Run unit tests
run: cargo test --locked --features std --all-targets
run: cargo nextest run --locked --features std --all-targets

# https://github.com/rust-lang/cargo/issues/6669
- name: Run doc tests
Expand All @@ -64,7 +69,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-latest ]
os: [macos-latest]
# Windows fails because of `stylus-proc`.
# os: [macos-latest, windows-latest]
steps:
Expand All @@ -78,12 +83,17 @@ jobs:
toolchain: stable
rustflags: ""

- name: "Install nextest"
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest

- name: Cargo generate-lockfile
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile

- name: Run unit tests
run: cargo test --locked --features std --all-targets
run: cargo nextest run --locked --features std --all-targets
coverage:
# Use llvm-cov to build and collect coverage and outputs in a format that
# is compatible with codecov.io.
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [v0.2.0-alpha.1] - 2024-11-15

### Added

- ERC-1155 Multi Token Standard. #275
- `SafeErc20` Utility. #289
- Finite Fields arithmetics. #376
- `Ownable2Step` contract. #352
- `IOwnable` trait. #352

### Changed(breaking)

- Removed `only_owner` from the public interface of `Ownable`. #352

### Changed

Expand Down
45 changes: 29 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ members = [
"examples/basic/token",
"examples/basic/script",
"examples/ecdsa",
"examples/ownable-two-step",
"examples/safe-erc20",
"benches",
]
Expand All @@ -38,6 +39,7 @@ default-members = [
"examples/safe-erc20",
"examples/merkle-proofs",
"examples/ownable",
"examples/ownable-two-step",
"examples/access-control",
"examples/basic/token",
"examples/ecdsa",
Expand All @@ -53,7 +55,7 @@ authors = ["OpenZeppelin"]
edition = "2021"
license = "MIT"
repository = "https://github.com/OpenZeppelin/rust-contracts-stylus"
version = "0.1.1"
version = "0.2.0-alpha.1"

[workspace.lints.rust]
missing_docs = "warn"
Expand Down
1 change: 1 addition & 0 deletions contracts/src/access/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Contracts implementing access control mechanisms.
pub mod control;
pub mod ownable;
pub mod ownable_two_step;
Loading

0 comments on commit ba6e965

Please sign in to comment.