Skip to content

Commit bf44b76

Browse files
authored
feat: cleanup, fmt, aptos-types, bump alloy (#5225)
2 parents f1fbde6 + 2c9a59a commit bf44b76

File tree

539 files changed

+2538
-4409
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

539 files changed

+2538
-4409
lines changed

Cargo.lock

Lines changed: 186 additions & 196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ members = [
2929
"lib/gnark-key-parser",
3030
"lib/gnark-mimc",
3131
# "lib/ibc-vm-rs",
32-
"cosmwasm/ics08-light-clients/interface",
3332
"lib/ics23",
3433
"lib/linea-verifier",
3534
"lib/linea-zktrie",
@@ -290,6 +289,7 @@ members = [
290289
"lib/access-manager-types",
291290
"e2e/access-manager-tests",
292291
"e2e/access-managed-example",
292+
"lib/aptos-types",
293293
]
294294

295295
[workspace.package]
@@ -321,6 +321,7 @@ opt-level = 3
321321
access-managed = { path = "cosmwasm/access-managed", default-features = false }
322322
access-managed-example = { path = "e2e/access-managed-example", default-features = false }
323323
access-manager-types = { path = "lib/access-manager-types", default-features = false }
324+
aptos-types = { path = "lib/aptos-types", default-features = false }
324325
arbitrum-client = { path = "lib/arbitrum-client", default-features = false }
325326
arbitrum-light-client-types = { path = "lib/arbitrum-light-client-types", default-features = false }
326327
arbitrum-types = { path = "lib/arbitrum-types", default-features = false }
@@ -390,9 +391,7 @@ parlia-verifier = { path = "lib/parlia-verifier", defa
390391
pg-queue = { path = "lib/pg-queue", default-features = false }
391392
protos = { path = "generated/rust/protos", default-features = false }
392393
reconnecting-jsonrpc-ws-client = { path = "lib/reconnecting-jsonrpc-ws-client", default-features = false }
393-
scroll-codec = { path = "lib/scroll-codec", default-features = false }
394394
scroll-light-client-types = { path = "lib/scroll-light-client-types", default-features = false }
395-
scroll-types = { path = "lib/scroll-types", default-features = false }
396395
serde-utils = { path = "lib/serde-utils", default-features = false }
397396
solidity-slot = { path = "lib/solidity-slot", default-features = false }
398397
ssz = { path = "lib/ssz", default-features = false }
@@ -430,7 +429,6 @@ voyager-plugin-transaction-batch = { path = "voyager/plugins/transactio
430429
voyager-primitives = { path = "lib/voyager-primitives", default-features = false }
431430
voyager-rpc = { path = "lib/voyager-rpc", default-features = false }
432431
voyager-sdk = { path = "lib/voyager-sdk", default-features = false }
433-
voyager-sui-ibc-app-plugin = { path = "voyager/plugins/sui-ibc-app", default-features = false }
434432
voyager-transaction-plugin-sui = { path = "voyager/plugins/transaction/sui", default-features = false }
435433
voyager-types = { path = "lib/voyager-types", default-features = false }
436434
voyager-vm = { path = "lib/voyager-vm", default-features = false }
@@ -447,9 +445,9 @@ wasm-client-type = { path = "lib/wasm-client-type", def
447445
# external dependencies
448446
# =====================
449447

450-
alloy = { version = "1.0.9", default-features = false }
451-
alloy-primitives = { version = "1.1.2", default-features = false }
452-
alloy-sol-types = { version = "1.1.2", default-features = true }
448+
alloy = { version = "1.0", default-features = false }
449+
alloy-primitives = { version = "1.1", default-features = false }
450+
alloy-sol-types = { version = "1.1", default-features = true }
453451
anyhow = { version = "1" }
454452
axum = { version = "0.8", default-features = false }
455453
base64 = { version = "0.22", default-features = false }

cosmwasm/access-managed/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use access_manager_types::{
2-
managed::{error::AccessManagedError, event::AuthorityUpdated, msg::QueryMsg},
32
Selector,
3+
managed::{error::AccessManagedError, event::AuthorityUpdated, msg::QueryMsg},
44
};
55
use cosmwasm_std::{Addr, Deps, DepsMut, Event, MessageInfo};
66
use depolama::StorageExt;

cosmwasm/access-managed/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
use access_manager_types::managed::msg::{ExecuteMsg, InitMsg, MigrateMsg, QueryMsg};
2929
use cosmwasm_std::{
30-
to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Reply, Response, StdError,
30+
Binary, Deps, DepsMut, Env, MessageInfo, Reply, Response, StdError, to_json_binary,
3131
};
3232
use depolama::StorageExt;
3333
use frissitheto::UpgradeMsg;
@@ -44,7 +44,7 @@ mod restricted;
4444
pub mod state;
4545

4646
pub use restricted::{
47-
EnsureCanCallResult, Restricted, ACCESS_MANAGED_CONSUME_SCHEDULED_OP_REPLY_ID,
47+
ACCESS_MANAGED_CONSUME_SCHEDULED_OP_REPLY_ID, EnsureCanCallResult, Restricted,
4848
};
4949

5050
/// Initializes the contract connected to an initial authority.

cosmwasm/access-managed/src/restricted.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use access_manager_types::{managed::error::AccessManagedError, CanCall, Selector};
2-
use cosmwasm_std::{to_json_binary, Addr, DepsMut, Env, MessageInfo, SubMsg, WasmMsg};
1+
use access_manager_types::{CanCall, Selector, managed::error::AccessManagedError};
2+
use cosmwasm_std::{Addr, DepsMut, Env, MessageInfo, SubMsg, WasmMsg, to_json_binary};
33
use depolama::{StorageExt, Store};
4-
use serde::{de::DeserializeOwned, Deserialize, Deserializer, Serialize};
4+
use serde::{Deserialize, Deserializer, Serialize, de::DeserializeOwned};
55

66
use crate::{error::ContractError, state::ConsumingSchedule};
77

cosmwasm/access-managed/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use cosmwasm_std::Addr;
2-
use depolama::{value::ValueCodecViaEncoding, Prefix, RawAddrEncoding, Store};
2+
use depolama::{Prefix, RawAddrEncoding, Store, value::ValueCodecViaEncoding};
33
use unionlabs_encoding::Bincode;
44

55
/// ```solidity

cosmwasm/access-manager/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@
8787
use std::num::NonZero;
8888

8989
use access_manager_types::{
90-
manager::msg::{ExecuteMsg, InitMsg, MigrateMsg, QueryMsg},
9190
RoleId,
91+
manager::msg::{ExecuteMsg, InitMsg, MigrateMsg, QueryMsg},
9292
};
9393
use cosmwasm_std::{
94-
to_json_binary, Binary, Deps, DepsMut, Env, MessageInfo, Reply, Response, StdError, SubMsg,
94+
Binary, Deps, DepsMut, Env, MessageInfo, Reply, Response, StdError, SubMsg, to_json_binary,
9595
};
9696
use depolama::StorageExt;
9797
use frissitheto::UpgradeMsg;

cosmwasm/access-manager/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use access_manager_types::{Access, Role, RoleId, Schedule, Selector, TargetConfig};
22
use cosmwasm_std::{Addr, StdError, StdResult};
33
use depolama::{
4-
key::KeyCodecViaEncoding, value::ValueCodecViaEncoding, Bytes, KeyCodec, Prefix,
5-
RawAddrEncoding, Store,
4+
Bytes, KeyCodec, Prefix, RawAddrEncoding, Store, key::KeyCodecViaEncoding,
5+
value::ValueCodecViaEncoding,
66
};
77
use unionlabs_encoding::{Bincode, DecodeAs, EncodeAs};
88
use unionlabs_primitives::H256;

cosmwasm/access-manager/src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use access_manager_types::{
2+
CanCall, HasRole, RoleId, Selector,
23
manager::{
34
error::AccessManagerError,
45
event::{
@@ -7,16 +8,15 @@ use access_manager_types::{
78
},
89
msg::{ExecuteMsg, QueryMsg},
910
},
10-
CanCall, HasRole, RoleId, Selector,
1111
};
12-
use cosmwasm_std::{testing::message_info, Addr, Response};
12+
use cosmwasm_std::{Addr, Response, testing::message_info};
1313
use hex_literal::hex;
1414
use unionlabs_primitives::H256;
1515

1616
use crate::{
1717
error::ContractError,
1818
execute, min_setback, query,
19-
tests::utils::{assert_query_result, setup, ACCOUNT_1, ACCOUNT_2, ADMIN, TARGET_1, TARGET_2},
19+
tests::utils::{ACCOUNT_1, ACCOUNT_2, ADMIN, TARGET_1, TARGET_2, assert_query_result, setup},
2020
};
2121

2222
pub mod utils;

cosmwasm/access-manager/src/tests/utils.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
use std::{fmt::Debug, sync::LazyLock};
22

33
use access_manager_types::{
4+
Access, RoleId,
45
manager::{
56
event::RoleGranted,
67
msg::{InitMsg, QueryMsg},
78
},
89
time::Delay,
9-
Access, RoleId,
1010
};
1111
use cosmwasm_std::{
12-
from_json,
13-
testing::{mock_dependencies, mock_env, MockApi, MockQuerier, MockStorage},
14-
Addr, Deps, Env, OwnedDeps, Response,
12+
Addr, Deps, Env, OwnedDeps, Response, from_json,
13+
testing::{MockApi, MockQuerier, MockStorage, mock_dependencies, mock_env},
1514
};
1615
use depolama::StorageExt;
1716
use frissitheto::UpgradeMsg;

0 commit comments

Comments
 (0)