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

Move to cw721 package #161

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2c684b8
rename states: tokens -> nft_info, contract_info -> collection_info
taitruong Feb 27, 2024
c3dc54c
renamed structs and deprecate: TokenInfo -> NftInfo, ContractInfo -> …
taitruong Feb 27, 2024
98b7300
cargo schema
taitruong Feb 27, 2024
5fd2f3b
change storage keys for collection info and nft info, consider in mig…
taitruong Feb 28, 2024
a2b5c12
use PA repo for `cw-ownable`
taitruong Feb 28, 2024
b2f73a0
rename generics and make more readable
taitruong Feb 29, 2024
d46d2b7
CollectionInfoResponse -> CollectionInfo
taitruong Feb 29, 2024
3d101cb
add CollectionInfoExtension with RoyaltyInfo
taitruong Feb 29, 2024
ddc3758
cargo schema
taitruong Feb 29, 2024
18dd4d3
typo
taitruong Feb 29, 2024
917103c
cleanup
taitruong Feb 29, 2024
b3aac9e
rename
taitruong Feb 29, 2024
8d61f85
cargo schema
taitruong Feb 29, 2024
89da1ab
cleanup
taitruong Mar 3, 2024
fcd5159
creator and owner changes:
taitruong Mar 4, 2024
56c6dae
refactor and move key logic to cw721 package:
taitruong Mar 7, 2024
895f462
fix ci
taitruong Mar 7, 2024
920a7d4
cargo fmt
taitruong Mar 7, 2024
641ede9
cargo fmt + clippy
taitruong Mar 7, 2024
0e27df8
cargo fmt
taitruong Mar 7, 2024
8d91900
cargo schema
taitruong Mar 7, 2024
9010cac
cargo clippy
taitruong Mar 7, 2024
bebe8b2
undo: do not rename token keys
taitruong Mar 8, 2024
3d77652
fix unit test
taitruong Mar 8, 2024
6a827a3
remove useless generic `TMetadataResponse`
taitruong Mar 8, 2024
9b8b140
remove response structs to msg.rs
taitruong Mar 8, 2024
ed37215
cargo schema
taitruong Mar 9, 2024
ffa7424
move to dedicated fn
taitruong Mar 9, 2024
5db17ec
docs
taitruong Mar 9, 2024
1e32fac
rename
taitruong Mar 9, 2024
53754d7
cargo clippy
taitruong Apr 25, 2024
dc8a01f
add build script
taitruong Apr 25, 2024
9e06b0b
undo collection info extension and royalty info additions, will be ad…
taitruong Apr 30, 2024
67522f7
cleanup
taitruong May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 35 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ workflows:
test:
jobs:
- contract_cw721_base
- contract_cw721_metadata_onchain
- contract_cw721_expiration
- contract_cw721_fixed_price
- contract_cw721_receiver_tester
- package_cw721
- lint
- wasm-build
Expand Down Expand Up @@ -37,6 +38,30 @@ jobs:
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw721-base-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw721_expiration:
docker:
- image: rust:1.65.0
working_directory: ~/project/contracts/cw721-expiration
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw721-expiration-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- run:
name: Build and run schema generator
command: cargo schema --locked
Expand All @@ -53,12 +78,12 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw721-base-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-cw721-expiration-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw721_metadata_onchain:
contract_cw721_fixed_price:
docker:
- image: rust:1.65.0
working_directory: ~/project/contracts/cw721-metadata-onchain
working_directory: ~/project/contracts/cw721-fixed-price
steps:
- checkout:
path: ~/project
Expand All @@ -67,7 +92,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw721-metadata-onchain-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-cw721-fixed-price-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -89,12 +114,12 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw721-metadata-onchain-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-cw721-fixed-price-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw721_fixed_price:
contract_cw721_receiver_tester:
docker:
- image: rust:1.65.0
working_directory: ~/project/contracts/cw721-fixed-price
working_directory: ~/project/contracts/cw721-receiver-tester
steps:
- checkout:
path: ~/project
Expand All @@ -103,7 +128,7 @@ jobs:
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw721-fixed-price-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- cargocache-cw721-receiver-tester-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
Expand All @@ -125,7 +150,7 @@ jobs:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw721-fixed-price-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}
key: cargocache-cw721-receiver-tester-rust:1.65.0-{{ checksum "~/project/Cargo.lock" }}

package_cw721:
docker:
Expand Down