Skip to content

Commit

Permalink
rename some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jan 7, 2025
1 parent e911e57 commit 1b97fc8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions crates/katana/chain-spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use katana_primitives::chain::ChainId;
use katana_primitives::class::ClassHash;
use katana_primitives::contract::ContractAddress;
use katana_primitives::da::L1DataAvailabilityMode;
use katana_primitives::eth::{self, Address as EthAddress};
use katana_primitives::genesis::allocation::{DevAllocationsGenerator, GenesisAllocation};
use katana_primitives::genesis::constant::{
get_fee_token_balance_base_storage_address, DEFAULT_ACCOUNT_CLASS_PUBKEY_STORAGE_SLOT,
Expand All @@ -24,7 +23,7 @@ use katana_primitives::genesis::Genesis;
use katana_primitives::state::StateUpdatesWithClasses;
use katana_primitives::utils::split_u256;
use katana_primitives::version::{ProtocolVersion, CURRENT_STARKNET_VERSION};
use katana_primitives::Felt;
use katana_primitives::{eth, Felt};
use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
use starknet::core::utils::cairo_short_string_to_felt;
Expand Down Expand Up @@ -63,7 +62,7 @@ pub struct FeeContracts {
}

#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[serde(tag = "type", rename_all = "camelCase")]
pub enum SettlementLayer {
Ethereum {
// The id of the settlement chain.
Expand All @@ -72,11 +71,11 @@ pub enum SettlementLayer {
// url for ethereum rpc provider
rpc_url: Url,

account: EthAddress,
/// account on the ethereum network
account: eth::Address,

// - The core appchain contract used to settlement
// - This is deployed on the L1
core_contract: EthAddress,
core_contract: eth::Address,
},

Starknet {
Expand All @@ -86,11 +85,10 @@ pub enum SettlementLayer {
// url for starknet rpc provider
rpc_url: Url,

// the account address that was used to initialized the l1 deployments
/// account on the starknet network
account: ContractAddress,

// - The core appchain contract used to settlement
// - This is deployed on the L1
core_contract: ContractAddress,
},
}
Expand Down

0 comments on commit 1b97fc8

Please sign in to comment.