Skip to content

Commit 9380afd

Browse files
authored
Create project cmd WIP (#67)
* feat: add int tests for da store * chore: rebase create project wip * chore: rebase create project wip * feat: add todo * chore: fix deps * chore: remove unstaged * chore: remove dapp harness * chore: fmt
1 parent 19da0e9 commit 9380afd

File tree

8 files changed

+227
-52
lines changed

8 files changed

+227
-52
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "testdata/mock-protocol/lib/forge-std"]
88
path = testdata/mock-protocol/lib/forge-std
99
url = https://github.com/foundry-rs/forge-std
10+
[submodule "lib/credible-layer-dapp"]
11+
path = lib/credible-layer-dapp
12+
url = git@github.com:phylaxsystems/credible-layer-dapp.git

Cargo.lock

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

crates/core/src/assertion_da.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,12 @@ impl DaStoreArgs {
294294
/// Executes the assertion storage process.
295295
///
296296
/// This method:
297-
/// 1. Builds and flattens the assertion
298-
/// 2. Creates a DA client with appropriate authentication
299-
/// 3. Submits the assertion to the DA layer
300-
/// 4. Updates the configuration with the submission result
297+
/// 1. Sets up dependencies
298+
/// 2. Stores the assertions
299+
/// 3. Submits the selected assertions to the Dapp from the CLI
301300
///
302301
/// # Arguments
303-
/// * `_cli_args` - General CLI arguments (unused)
302+
/// * `cli_args` - General CLI arguments
304303
/// * `config` - Configuration containing assertions and auth details
305304
///
306305
/// # Returns

crates/core/src/assertion_submission.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub struct DappSubmitArgs {
4848
value_name = "API Endpoint",
4949
default_value = "https://dapp.phylax.systems/api/v1"
5050
)]
51-
dapp_url: String,
51+
pub dapp_url: String,
5252

5353
/// Optional project name to skip interactive selection
5454
#[clap(
@@ -58,7 +58,7 @@ pub struct DappSubmitArgs {
5858
value_hint = ValueHint::Other,
5959
6060
)]
61-
project_name: Option<String>,
61+
pub project_name: Option<String>,
6262

6363
/// Optional list of assertion name and constructor args to skip interactive selection
6464
/// Format: assertion_name OR 'assertion_name(constructor_arg0,constructor_arg1)'
@@ -68,7 +68,7 @@ pub struct DappSubmitArgs {
6868
value_name = "ASSERTION_KEYS",
6969
value_hint = ValueHint::Other,
7070
)]
71-
assertion_keys: Option<Vec<AssertionKey>>,
71+
pub assertion_keys: Option<Vec<AssertionKey>>,
7272
}
7373

7474
impl DappSubmitArgs {

crates/core/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ pub mod assertion_submission;
33
pub mod auth;
44
pub mod config;
55
pub mod error;
6+
7+
// TODO(0xgregthedev): Add project module once tested, polished, added to cli, and ready for release.
8+
//pub mod project;

0 commit comments

Comments
 (0)