Skip to content

Commit

Permalink
Merge pull request #1 from kage-collective/feat/sequential-mints
Browse files Browse the repository at this point in the history
feat: capped sequential mints
  • Loading branch information
kagenkoda authored Apr 11, 2024
2 parents 1070695 + 58dd42d commit 8287e83
Show file tree
Hide file tree
Showing 10 changed files with 329 additions and 167 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ jobs:
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: '0.15.0'
args: '-- --test-threads 1'
version: "0.15.0"
args: "-- --test-threads 1"

- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
fail_ci_if_error: false
33 changes: 2 additions & 31 deletions Cargo.lock

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

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
members = ["packages/*", "contracts/*"]

[workspace.package]
version = "0.20.2"
version = "0.21.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/kage-collective/cw404-fixed"
repository = "https://github.com/kage-collective/cw404-capped"
homepage = "https://kage.finance"
documentation = "https://docs.kage.finance"
rust-version = "1.65"
Expand All @@ -25,7 +25,6 @@ cw-utils = "^1.0"
schemars = "^0.8"
serde = { version = "1.0.152", default-features = false, features = ["derive"] }
thiserror = "^1.0"
sha3 = "0.9.1"

[profile.release.package.cw721-base]
codegen-units = 1
Expand Down
3 changes: 1 addition & 2 deletions contracts/cw404/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cw404-capped"
description = "Basic implementation of cw404 NFTs with capped token_id"
description = "Basic implementation of cw404 NFTs with an optional token id cap"
authors = ["@kagen", "@dojotrading"]
version = { workspace = true }
edition = { workspace = true }
Expand Down Expand Up @@ -31,7 +31,6 @@ cw721 = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
sha3 = { workspace = true }

[dev-dependencies]
cw-multi-test = { workspace = true }
3 changes: 3 additions & 0 deletions contracts/cw404/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pub enum ContractError {
#[error("IdNotAssigned")]
IdNotAssigned {},

#[error("NoAvailableId")]
NoAvailableId {}, // fatal, not supposed to happen

#[error("InvalidCap")]
InvalidCap {},

Expand Down
Loading

0 comments on commit 8287e83

Please sign in to comment.