anvil_zksync_l1_sidecar/zkstack_config/
wallets.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#![allow(dead_code)]
//! Modified version of `zkstack_cli_config::wallets`

use alloy::signers::local::PrivateKeySigner;
use serde::Deserialize;
use serde_with::{serde_as, DisplayFromStr};
use zksync_types::Address;

#[serde_as]
#[derive(Debug, Clone, Deserialize)]
pub struct Wallet {
    pub address: Address,
    #[serde_as(as = "DisplayFromStr")]
    pub private_key: PrivateKeySigner,
}

#[derive(Debug, Clone, Deserialize)]
pub struct WalletsConfig {
    pub deployer: Option<Wallet>,
    pub operator: Wallet,
    pub blob_operator: Wallet,
    pub fee_account: Wallet,
    pub governor: Wallet,
    pub token_multiplier_setter: Option<Wallet>,
}