Skip to content

Commit 70fa93e

Browse files
committed
Update CI config & address linter issues
1 parent 03b5aa3 commit 70fa93e

15 files changed

Lines changed: 51 additions & 71 deletions

File tree

.circleci/config.yml

Lines changed: 6 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ workflows:
33
version: 2
44
test:
55
jobs:
6-
- contract_sg721_base
7-
- contract_sg721_nt
6+
- contract_cw721_migration
87
- contract_base_factory
98
- contract_base_minter
109
- contract_vending_factory
@@ -28,10 +27,10 @@ workflows:
2827
ignore: /.*/
2928

3029
jobs:
31-
contract_sg721_base:
30+
contract_cw721_migration:
3231
docker:
3332
- image: rust:1.81.0
34-
working_directory: ~/project/contracts/collections/sg721-base
33+
working_directory: ~/project/contracts/collections/cw721-migration
3534
steps:
3635
- checkout:
3736
path: ~/project
@@ -40,65 +39,17 @@ jobs:
4039
command: rustc --version; cargo --version; rustup --version
4140
- restore_cache:
4241
keys:
43-
- cargocache-sg721-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
42+
- cargocache-cw721-migration-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
4443
- run:
4544
name: Unit Tests
4645
environment:
4746
RUST_BACKTRACE: 1
4847
command: cargo unit-test --locked
49-
- run:
50-
name: Build and run schema generator
51-
command: cargo schema --locked
52-
- run:
53-
name: Ensure checked-in schemas are up-to-date
54-
command: |
55-
CHANGES_IN_REPO=$(git status --porcelain)
56-
if [[ -n "$CHANGES_IN_REPO" ]]; then
57-
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
58-
git status && git --no-pager diff
59-
exit 1
60-
fi
61-
- save_cache:
62-
paths:
63-
- /usr/local/cargo/registry
64-
- target
65-
key: cargocache-sg721-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
66-
67-
contract_sg721_nt:
68-
docker:
69-
- image: rust:1.81.0
70-
working_directory: ~/project/contracts/collections/sg721-nt
71-
steps:
72-
- checkout:
73-
path: ~/project
74-
- run:
75-
name: Version information
76-
command: rustc --version; cargo --version; rustup --version
77-
- restore_cache:
78-
keys:
79-
- cargocache-sg721-nt-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
80-
- run:
81-
name: Unit Tests
82-
environment:
83-
RUST_BACKTRACE: 1
84-
command: cargo unit-test --locked
85-
- run:
86-
name: Build and run schema generator
87-
command: cargo schema --locked
88-
- run:
89-
name: Ensure checked-in schemas are up-to-date
90-
command: |
91-
CHANGES_IN_REPO=$(git status --porcelain)
92-
if [[ -n "$CHANGES_IN_REPO" ]]; then
93-
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
94-
git status && git --no-pager diff
95-
exit 1
96-
fi
9748
- save_cache:
9849
paths:
9950
- /usr/local/cargo/registry
10051
- target
101-
key: cargocache-sg721-nt-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
52+
key: cargocache-cw721-migration-rust:1.81.0-{{ checksum "~/project/Cargo.lock" }}
10253

10354
contract_base_factory:
10455
docker:
@@ -378,7 +329,7 @@ jobs:
378329
package_sg_utils:
379330
docker:
380331
- image: rust:1.81.0
381-
working_directory: ~/project/package/sg-utils
332+
working_directory: ~/project/packages/sg-utils
382333
steps:
383334
- checkout:
384335
path: ~/project

contracts/minters/open-edition-minter-merkle-wl/src/contract.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow deprecated SubMsgResponse::data until chains migrate to msg_responses
2+
#![allow(deprecated)]
3+
14
use crate::error::ContractError;
25
use crate::helpers::mint_nft_msg;
36
use crate::msg::{

contracts/minters/open-edition-minter-wl-flex/src/contract.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow deprecated SubMsgResponse::data until chains migrate to msg_responses
2+
#![allow(deprecated)]
3+
14
use crate::error::ContractError;
25
use crate::helpers::mint_nft_msg;
36
use crate::msg::{

contracts/minters/open-edition-minter/src/contract.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow deprecated SubMsgResponse::data until chains migrate to msg_responses
2+
#![allow(deprecated)]
3+
14
use crate::error::ContractError;
25
use crate::helpers::mint_nft_msg;
36
use crate::msg::{

contracts/minters/vending-minter-featured/src/contract.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ use cw2::set_contract_version;
2121
use cw_utils::{may_pay, maybe_addr, nonpayable, parse_instantiate_response_data};
2222

2323
use cw721::msg::{CollectionExtensionMsg, CollectionInfoMsg, RoyaltyInfoResponse};
24-
use cw721::Ownership;
25-
use cw721_base::msg::{
26-
ExecuteMsg as Cw721ExecuteMsg, InstantiateMsg as Cw721InstantiateMsg, QueryMsg as Cw721QueryMsg,
27-
};
24+
use cw721_base::msg::{ExecuteMsg as Cw721ExecuteMsg, InstantiateMsg as Cw721InstantiateMsg};
2825
use semver::Version;
2926
use sg1::{distribute_mint_fees, transfer_funds_to_launchpad_dao};
3027
use sg2::query::Sg2QueryMsg;

contracts/minters/vending-minter-merkle-wl/src/contract.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow deprecated SubMsgResponse::data until chains migrate to msg_responses
2+
#![allow(deprecated)]
3+
14
use crate::error::ContractError;
25
use crate::msg::{
36
ConfigResponse, ExecuteMsg, MintCountResponse, MintPriceResponse, MintableNumTokensResponse,
@@ -14,8 +17,8 @@ use crate::validation::{check_dynamic_per_address_limit, get_three_percent_of_to
1417
use cosmwasm_std::entry_point;
1518
use cosmwasm_std::{
1619
coin, ensure, to_json_binary, Addr, BankMsg, Binary, Coin, CosmosMsg, Decimal, Deps, DepsMut,
17-
Empty, Env, Event, MessageInfo, Order, Reply, ReplyOn, Response, StdError, StdResult, SubMsg,
18-
Timestamp, Uint128, WasmMsg,
20+
Empty, Env, Event, MessageInfo, Order, Reply, Response, StdError, StdResult, SubMsg, Timestamp,
21+
Uint128, WasmMsg,
1922
};
2023
use cw2::set_contract_version;
2124
use cw721::msg::{CollectionExtensionMsg, CollectionInfoMsg, RoyaltyInfoResponse};

contracts/minters/vending-minter-wl-flex-featured/src/contract.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Allow deprecated SubMsgResponse::data until chains migrate to msg_responses
2+
#![allow(deprecated)]
3+
// Allow too many arguments for execute_update_collection_info
4+
#![allow(clippy::too_many_arguments)]
5+
16
use crate::error::ContractError;
27
use crate::msg::{
38
ConfigResponse, ExecuteMsg, MintCountResponse, MintPriceResponse, MintableNumTokensResponse,

contracts/minters/vending-minter/src/contract.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,12 @@ use crate::validation::{check_dynamic_per_address_limit, get_three_percent_of_to
1414
use cosmwasm_std::entry_point;
1515
use cosmwasm_std::{
1616
coin, ensure, to_json_binary, Addr, BankMsg, Binary, Coin, CosmosMsg, Decimal, Deps, DepsMut,
17-
Empty, Env, Event, MessageInfo, Order, Reply, ReplyOn, Response, StdError, StdResult, SubMsg,
18-
Timestamp, Uint128, WasmMsg,
17+
Empty, Env, Event, MessageInfo, Order, Reply, Response, StdError, StdResult, SubMsg, Timestamp,
18+
Uint128, WasmMsg,
1919
};
2020
use cw2::set_contract_version;
2121
use cw721::msg::{CollectionExtensionMsg, RoyaltyInfoResponse};
22-
use cw721::Ownership;
23-
use cw721_base::msg::{
24-
ExecuteMsg as Cw721ExecuteMsg, InstantiateMsg as Cw721InstantiateMsg, QueryMsg as Cw721QueryMsg,
25-
};
22+
use cw721_base::msg::{ExecuteMsg as Cw721ExecuteMsg, InstantiateMsg as Cw721InstantiateMsg};
2623
use cw_utils::{may_pay, maybe_addr, nonpayable, parse_instantiate_response_data};
2724
use nois::{int_in_range, shuffle};
2825

contracts/splits/src/contract.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow deprecated query_all_balances until migrated to paginated queries
2+
#![allow(deprecated)]
3+
14
#[cfg(not(feature = "library"))]
25
use cosmwasm_std::entry_point;
36
use cosmwasm_std::{

e2e/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Allow large error variants in e2e tests
2+
#![allow(clippy::result_large_err)]
3+
14
#[cfg(not(target_arch = "wasm32"))]
25
mod tests;
36

0 commit comments

Comments
 (0)