Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: loam storage #177

Merged
merged 27 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f7b59e7
initial code for loamstorage macro
BlaineHeffron Dec 12, 2024
2acc572
add temporary and instance types, code reorg
BlaineHeffron Dec 13, 2024
001012c
fix types not being output properly
BlaineHeffron Dec 13, 2024
b2b76a5
feat(cli): autostart dev container if "run-locally = true" (#176)
BlaineHeffron Dec 17, 2024
64780af
fix: clean up code for clippy
willemneal Jan 11, 2025
8ee3c0e
fix: move tests into test modules
willemneal Jan 16, 2025
3033b86
fix: add test
willemneal Jan 16, 2025
ee07c39
fix: only use `Default` and remove `new` functions
willemneal Jan 16, 2025
0e9fb37
fix: Make enum cases UpperCaseCamel
willemneal Jan 16, 2025
14b74c3
feat: add asset contract
willemneal Jan 16, 2025
8c65322
fix: add module prefixes to avoid requiring imports
willemneal Jan 16, 2025
aa2905d
fix: test
willemneal Jan 16, 2025
71c8f10
Merge remote-tracking branch 'loambuild/main' into pr/BlaineHeffron/177
willemneal Jan 16, 2025
42be74c
fix: fmt
willemneal Jan 16, 2025
ae36072
fix: reorg for less nesting
willemneal Jan 16, 2025
d386e41
feat: move keys into module to isolate from the surrounding namespace
willemneal Jan 16, 2025
96a0d43
fix: finish asset contract
willemneal Jan 16, 2025
4e8d527
feat: add second asset contract to compare performance
willemneal Jan 17, 2025
dac5082
Prepend struct name to generated fields to avoid name collisions + fm…
BlaineHeffron Jan 22, 2025
5c584d5
Adding documentation, changing to "Temporary" to match soroban type
BlaineHeffron Jan 22, 2025
6829d5f
rename store to item
BlaineHeffron Jan 22, 2025
2a157b0
deprecated IntoKey
BlaineHeffron Jan 22, 2025
c4c209a
update readme, fix clippy error
BlaineHeffron Jan 22, 2025
3fe5f8a
proper since argument
BlaineHeffron Jan 22, 2025
5164df3
fix clippy
BlaineHeffron Jan 22, 2025
50fbefb
fmt
BlaineHeffron Jan 22, 2025
470b066
revert clippy fix attempt
BlaineHeffron Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 60 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/loam-cli/src/commands/build/env_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ pub struct Network {
pub rpc_url: Option<String>,
pub network_passphrase: Option<String>,
pub rpc_headers: Option<Vec<(String, String)>>,
pub run_locally: Option<bool>,
#[serde(skip_serializing_if = "is_false", default)]
pub run_locally: bool,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion crates/loam-cli/src/commands/dev/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl Cmd {
else {
return Ok(());
};
if current_env.network.run_locally.unwrap_or(false) {
if current_env.network.run_locally {
eprintln!("Starting local Stellar Docker container...");
docker::start_local_stellar().await.map_err(|e| {
eprintln!("Failed to start Stellar Docker container: {e:?}");
Expand Down
1 change: 1 addition & 0 deletions crates/loam-sdk-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cargo_metadata = { workspace = true }
darling = "0.20.8"
itertools = "0.13.0"
regex = "1.10.5"
heck = "0.5.0"

[dev-dependencies]
assert_fs = "1.0.13"
Expand Down
Loading
Loading