Skip to content

Commit

Permalink
feat: erc721 consecutive extension (#202)
Browse files Browse the repository at this point in the history
This extension matches [the solidity
implementation](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/483fc3f1f89ef6eb0803d578a4a17346d94359f7/contracts/token/ERC721/extensions/ERC721Consecutive.sol#L30)
except one thing:
- to be able to override erc721 methods `_owner_of_inner` and ` _update`
some functions are duplicated from erc721 token standard

Resolves #68

#### PR Checklist

- [x] Tests
- [x] Documentation
  • Loading branch information
qalisander authored Aug 12, 2024
1 parent 8b6e2d5 commit a19abc5
Show file tree
Hide file tree
Showing 26 changed files with 1,644 additions and 78 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
cache-on-failure: true

- name: install cargo-stylus
run: cargo install cargo-stylus cargo-stylus-check
run: cargo install cargo-stylus@0.4.1 cargo-stylus-check@0.4.1

- name: install solc
run: |
Expand Down
21 changes: 19 additions & 2 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 @@ -9,6 +9,7 @@ members = [
"examples/erc20",
"examples/erc20-permit",
"examples/erc721",
"examples/erc721-consecutive",
"examples/erc721-metadata",
"examples/merkle-proofs",
"examples/ownable",
Expand All @@ -27,6 +28,7 @@ default-members = [
"examples/erc20",
"examples/erc20-permit",
"examples/erc721",
"examples/erc721-consecutive",
"examples/erc721-metadata",
"examples/merkle-proofs",
"examples/ownable",
Expand Down Expand Up @@ -81,7 +83,7 @@ alloy-sol-types = { version = "0.3.1", default-features = false }
const-hex = { version = "1.11.1", default-features = false }
eyre = "0.6.8"
keccak-const = "0.2.0"
koba = "0.1.2"
koba = "0.2.0"
once_cell = "1.19.0"
rand = "0.8.5"
regex = "1.10.4"
Expand Down
8 changes: 6 additions & 2 deletions benches/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use alloy::{
},
};
use alloy_primitives::U128;
use e2e::Account;
use e2e::{Account, ReceiptExt};
use koba::config::{Deploy, Generate, PrivateKey};
use serde::Deserialize;

Expand Down Expand Up @@ -77,5 +77,9 @@ async fn deploy(
quiet: true,
};

koba::deploy(&config).await.expect("should deploy contract")
koba::deploy(&config)
.await
.expect("should deploy contract")
.address()
.expect("should return contract address")
}
Loading

0 comments on commit a19abc5

Please sign in to comment.