Skip to content

Commit 7182656

Browse files
committed
chore: fix build
1 parent 99d582f commit 7182656

File tree

6 files changed

+2
-176
lines changed

6 files changed

+2
-176
lines changed

crates/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{env, path::PathBuf, str::FromStr};
22

33
#[cfg(feature = "jemalloc")]
4-
use jemallocator::Jemalloc;
4+
use tikv_jemallocator::Jemalloc;
55

66
#[cfg(feature = "jemalloc")]
77
#[global_allocator]

crates/core/src/rate_limiting/types.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::postgres::PostgresError;
2-
use serde::{Deserialize, Serialize};
32
use thiserror::Error;
43

54
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
@@ -17,12 +16,6 @@ impl RateLimitOperation {
1716
}
1817
}
1918

20-
#[derive(Debug, Clone, Serialize, Deserialize)]
21-
pub enum RateLimitDetectMethod {
22-
Header,
23-
Fallback,
24-
}
25-
2619
#[derive(Debug, Clone)]
2720
pub struct RateLimitDetectContext {
2821
pub key: String,

crates/core/src/transaction/types/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ pub use transaction_speed::TransactionSpeed;
1919
mod transaction_status;
2020
pub use transaction_status::TransactionStatus;
2121

22-
mod relayer_transaction;
23-
2422
mod transaction;
2523
pub use transaction::{Transaction, TransactionConversionError};
2624

crates/core/src/transaction/types/relayer_transaction.rs

Lines changed: 0 additions & 90 deletions
This file was deleted.

crates/core/src/wallet/turnkey_wallet_manager.rs

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,6 @@ pub struct TurnkeyAccount {
4040
pub updated_at: Option<serde_json::Value>,
4141
}
4242

43-
#[derive(Debug, Clone, Serialize, Deserialize)]
44-
pub struct TurnkeyCreateAccountRequest {
45-
#[serde(rename = "type")]
46-
pub activity_type: String,
47-
#[serde(rename = "organizationId")]
48-
pub organization_id: String,
49-
pub parameters: TurnkeyCreateAccountParameters,
50-
#[serde(rename = "timestampMs")]
51-
pub timestamp_ms: String,
52-
}
53-
54-
#[derive(Debug, Clone, Serialize, Deserialize)]
55-
pub struct TurnkeyCreateAccountParameters {
56-
#[serde(rename = "walletId")]
57-
pub wallet_id: String,
58-
pub curve: String,
59-
#[serde(rename = "pathFormat")]
60-
pub path_format: String,
61-
#[serde(rename = "pathIndex")]
62-
pub path_index: u32,
63-
}
64-
6543
#[derive(Debug, Clone, Serialize, Deserialize)]
6644
pub struct TurnkeyCreateAccountResponse {
6745
pub activity: TurnkeyActivity,
@@ -125,46 +103,6 @@ pub struct TurnkeySignRawPayloadResult {
125103
pub v: String,
126104
}
127105

128-
#[derive(Debug, Clone, Serialize, Deserialize)]
129-
pub struct TurnkeySignTransactionRequest {
130-
#[serde(rename = "type")]
131-
pub activity_type: String,
132-
#[serde(rename = "organizationId")]
133-
pub organization_id: String,
134-
pub parameters: TurnkeySignTransactionParameters,
135-
#[serde(rename = "timestampMs")]
136-
pub timestamp_ms: String,
137-
}
138-
139-
#[derive(Debug, Clone, Serialize, Deserialize)]
140-
pub struct TurnkeySignTransactionParameters {
141-
#[serde(rename = "unsignedTransaction")]
142-
pub unsigned_transaction: String,
143-
#[serde(rename = "walletAccountId")]
144-
pub wallet_account_id: String,
145-
}
146-
147-
#[derive(Debug, Clone, Serialize, Deserialize)]
148-
pub struct TurnkeySignRawPayloadRequest {
149-
#[serde(rename = "type")]
150-
pub activity_type: String,
151-
#[serde(rename = "organizationId")]
152-
pub organization_id: String,
153-
pub parameters: TurnkeySignRawPayloadParameters,
154-
#[serde(rename = "timestampMs")]
155-
pub timestamp_ms: String,
156-
}
157-
158-
#[derive(Debug, Clone, Serialize, Deserialize)]
159-
pub struct TurnkeySignRawPayloadParameters {
160-
pub payload: String,
161-
pub encoding: String,
162-
#[serde(rename = "hashFunction")]
163-
pub hash_function: String,
164-
#[serde(rename = "walletAccountId")]
165-
pub wallet_account_id: String,
166-
}
167-
168106
#[derive(Debug)]
169107
pub struct TurnkeyWalletManager {
170108
pub api_public_key: String,

crates/core/src/yaml.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ impl<'de> Deserialize<'de> for AllOrOneOrManyAddresses {
392392
impl<'de> Visitor<'de> for AllOrOneOrManyVisitor {
393393
type Value = AllOrOneOrManyAddresses;
394394

395-
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
395+
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
396396
formatter.write_str("a string '*', a single address, or an array of addresses")
397397
}
398398

@@ -673,19 +673,6 @@ pub struct WebhookConfig {
673673
pub alert_on_low_balances: Option<bool>,
674674
}
675675

676-
#[derive(Debug, Serialize, Deserialize, Clone)]
677-
pub struct WebhookConfigAdvanced {
678-
pub endpoint: String,
679-
pub shared_secret: String,
680-
pub networks: Vec<String>,
681-
#[serde(skip_serializing_if = "Option::is_none", default)]
682-
pub timeout_seconds: Option<u32>,
683-
#[serde(skip_serializing_if = "Option::is_none", default)]
684-
pub retry_attempts: Option<u32>,
685-
#[serde(skip_serializing_if = "Option::is_none", default)]
686-
pub enabled: Option<bool>,
687-
}
688-
689676
#[derive(Debug, Serialize, Deserialize, Clone)]
690677
pub struct SafeProxyConfig {
691678
pub address: EvmAddress,

0 commit comments

Comments
 (0)