Skip to content

Commit 153df69

Browse files
committed
Merge branch 'main' into feat/full-node-wip
2 parents c477ab0 + a17d6e6 commit 153df69

File tree

28 files changed

+440
-562
lines changed

28 files changed

+440
-562
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Due to workflow limitation of github, this file is merely here
2+
# to support triggering the workflow on a dev branch, without having
3+
# to merge it into main.
4+
#
5+
# It is useful to make releases which publish a container to the github container registry.
6+
# CAUTION: it is recommended that you always enforce those custom releases to contain a preview tag, with `-custom.X` suffix where
7+
# custom is a descriptive name for the release and X is the version number.
8+
#
9+
# gh workflow run custom-release.yml --ref feat/your-branch -f preview=v1.7.0-custom.1
10+
#

.github/workflows/snos-release.yml

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

Cargo.lock

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

bin/katana/src/cli/init/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use anyhow::Context;
6262
use clap::builder::NonEmptyStringValueParser;
6363
use clap::{Args, Subcommand};
6464
use deployment::DeploymentOutcome;
65-
use katana_chain_spec::rollup::ChainConfigDir;
65+
use katana_chain_spec::rollup::{ChainConfigDir, DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS};
6666
use katana_chain_spec::{rollup, FeeContracts, SettlementLayer};
6767
use katana_genesis::allocation::DevAllocationsGenerator;
6868
use katana_genesis::constant::DEFAULT_PREFUNDED_ACCOUNT_BALANCE;
@@ -246,7 +246,11 @@ impl RollupArgs {
246246
slot::add_paymasters_to_genesis(&mut genesis, &output.slot_paymasters.unwrap_or_default());
247247

248248
// At the moment, the fee token is limited to a predefined token.
249-
let fee_contracts = FeeContracts::default();
249+
let fee_contracts = FeeContracts {
250+
eth: DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS,
251+
strk: DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS,
252+
};
253+
250254
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contracts };
251255

252256
if let Some(path) = self.output_path {
@@ -384,7 +388,12 @@ impl SovereignArgs {
384388
slot::add_paymasters_to_genesis(&mut genesis, &output.slot_paymasters.unwrap_or_default());
385389

386390
// At the moment, the fee token is limited to a predefined token.
387-
let fee_contracts = FeeContracts::default();
391+
// At the moment, the fee token is limited to a predefined token.
392+
let fee_contracts = FeeContracts {
393+
eth: DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS,
394+
strk: DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS,
395+
};
396+
388397
let chain_spec = rollup::ChainSpec { id, genesis, settlement, fee_contracts };
389398

390399
if let Some(path) = self.output_path {

crates/chain-spec/src/rollup/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ mod tests {
373373
let read_spec = read(&id).unwrap();
374374

375375
assert_eq!(chain_spec.id, read_spec.id);
376-
// assert_eq!(chain_spec.fee_contract, read_spec.fee_contract);
376+
assert_eq!(chain_spec.fee_contracts, read_spec.fee_contracts);
377377
assert_eq!(chain_spec.settlement, read_spec.settlement);
378378
}
379379

crates/chain-spec/src/rollup/mod.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use katana_primitives::chain::ChainId;
44
use katana_primitives::da::L1DataAvailabilityMode;
55
use katana_primitives::version::CURRENT_STARKNET_VERSION;
66

7-
mod file;
8-
mod utils;
7+
pub mod file;
8+
pub mod utils;
99

1010
pub use file::*;
1111
pub use utils::DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS;
@@ -51,16 +51,3 @@ impl ChainSpec {
5151
ExecutableBlock { header, body: transactions }
5252
}
5353
}
54-
55-
// /// Token that can be used for transaction fee payments on the chain.
56-
// #[derive(Debug, Clone, Serialize, Deserialize)]
57-
// #[cfg_attr(test, derive(PartialEq))]
58-
// pub struct FeeContract {
59-
// pub strk: ContractAddress,
60-
// }
61-
62-
// impl Default for FeeContract {
63-
// fn default() -> Self {
64-
// Self { strk: DEFAULT_APPCHAIN_FEE_TOKEN_ADDRESS }
65-
// }
66-
// }

0 commit comments

Comments
 (0)