-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0a6677
commit aba18fa
Showing
18 changed files
with
597 additions
and
79 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,98 @@ | ||
manifest_version: '1' | ||
--- | ||
manifest_version: "1" | ||
name: plenty | ||
integrity: | ||
network_seed: null | ||
properties: null | ||
network_seed: ~ | ||
properties: ~ | ||
origin_time: 1712757789015560 | ||
zomes: | ||
- name: profiles_integrity | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: null | ||
dylib: null | ||
- name: roles_integrity | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: null | ||
dylib: null | ||
- name: file_storage_integrity | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: null | ||
dylib: null | ||
- name: households_integrity | ||
hash: null | ||
bundled: ../../../target/wasm32-unknown-unknown/release/households_integrity.wasm | ||
dependencies: null | ||
dylib: null | ||
- name: notifications_integrity | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: null | ||
dylib: null | ||
- name: producers_integrity | ||
hash: null | ||
bundled: ../../../target/wasm32-unknown-unknown/release/producers_integrity.wasm | ||
dependencies: null | ||
dylib: null | ||
- name: tasks_integrity | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: null | ||
dylib: null | ||
coordinator: | ||
zomes: | ||
- name: profiles | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: | ||
- name: profiles_integrity | ||
dylib: null | ||
- name: roles | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: roles_integrity | ||
dylib: null | ||
- name: file_storage | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: file_storage_integrity | ||
dylib: null | ||
- name: households | ||
hash: null | ||
bundled: ../../../target/wasm32-unknown-unknown/release/households.wasm | ||
dependencies: | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: households_integrity | ||
dylib: null | ||
- name: notifications | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/households_integrity.wasm" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: notifications_integrity | ||
dylib: null | ||
- name: producers | ||
hash: null | ||
bundled: ../../../target/wasm32-unknown-unknown/release/producers.wasm | ||
dependencies: | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: producers_integrity | ||
dylib: null | ||
- name: tasks | ||
hash: null | ||
bundled: <NIX_PACKAGE> | ||
dependencies: | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/producers_integrity.wasm" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: tasks_integrity | ||
dylib: null | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: ~ | ||
dylib: ~ | ||
- name: orders_integrity | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/orders_integrity.wasm" | ||
dependencies: ~ | ||
dylib: ~ | ||
coordinator: | ||
zomes: | ||
- name: profiles | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: | ||
- name: profiles_integrity | ||
dylib: ~ | ||
- name: roles | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: | ||
- name: roles_integrity | ||
dylib: ~ | ||
- name: file_storage | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: | ||
- name: file_storage_integrity | ||
dylib: ~ | ||
- name: households | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/households.wasm" | ||
dependencies: | ||
- name: households_integrity | ||
dylib: ~ | ||
- name: notifications | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: | ||
- name: notifications_integrity | ||
dylib: ~ | ||
- name: producers | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/producers.wasm" | ||
dependencies: | ||
- name: producers_integrity | ||
dylib: ~ | ||
- name: tasks | ||
hash: ~ | ||
bundled: "<NIX_PACKAGE>" | ||
dependencies: | ||
- name: tasks_integrity | ||
dylib: ~ | ||
- name: orders | ||
hash: ~ | ||
bundled: "../../../target/wasm32-unknown-unknown/release/orders.wasm" | ||
dependencies: | ||
- name: orders_integrity | ||
dylib: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "orders" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
name = "orders" | ||
|
||
[dependencies] | ||
hdk = { workspace = true } | ||
|
||
serde = { workspace = true } | ||
|
||
orders_integrity = { workspace = true } | ||
|
||
|
||
[dev-dependencies] | ||
fixt = "0.3.1" | ||
futures = { version = "0.3.1", default-features = false } | ||
hdk = { workspace = true, features = ["encoding", "test_utils"] } | ||
holochain = { workspace = true } | ||
tokio = { version = "1.3", features = ["full"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use hdk::prelude::*; | ||
use orders_integrity::*; | ||
|
||
|
||
/// Called the first time a zome call is made to the cell containing this zome | ||
#[hdk_extern] | ||
pub fn init() -> ExternResult<InitCallbackResult> { | ||
Ok(InitCallbackResult::Pass) | ||
} | ||
|
||
/// Don't modify this enum if you want the scaffolding tool to generate appropriate signals for your entries and links | ||
#[derive(Serialize, Deserialize, Debug)] | ||
#[serde(tag = "type")] | ||
pub enum Signal { | ||
} | ||
|
||
/// Whenever an action is committed, we emit a signal to the UI elements to reactively update them | ||
#[hdk_extern(infallible)] | ||
pub fn post_commit(committed_actions: Vec<SignedActionHashed>) { | ||
/// Don't modify this loop if you want the scaffolding tool to generate appropriate signals for your entries and links | ||
for action in committed_actions { | ||
if let Err(err) = signal_action(action) { | ||
error!("Error signaling new action: {:?}", err); | ||
} | ||
} | ||
} | ||
|
||
/// Don't modify this function if you want the scaffolding tool to generate appropriate signals for your entries and links | ||
fn signal_action(action: SignedActionHashed) -> ExternResult<()> { | ||
Ok(()) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use hdk::prelude::*; | ||
use holochain::sweettest::*; | ||
|
||
use orders_integrity::*; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ inputs, ... }: | ||
|
||
{ | ||
perSystem = | ||
{ inputs' | ||
, self' | ||
, system | ||
, ... | ||
}: { | ||
packages.orders = inputs.hc-infra.outputs.lib.rustZome { | ||
workspacePath = inputs.self.outPath; | ||
holochain = inputs'.holochain; | ||
crateCargoToml = ./Cargo.toml; | ||
cargoArtifacts = | ||
inputs.hc-infra.outputs.lib.zomeCargoArtifacts { inherit system; }; | ||
}; | ||
|
||
# Test only this zome and its integrity in isolation | ||
checks.orders= inputs.hc-infra.outputs.lib.sweettest { | ||
workspacePath = inputs.self.outPath; | ||
holochain = inputs'.holochain; | ||
dna = (inputs.hc-infra.outputs.lib.dna { | ||
dnaManifest = builtins.toFile "dna.yaml" '' | ||
--- | ||
manifest_version: "1" | ||
name: test_dna | ||
integrity: | ||
network_seed: ~ | ||
properties: ~ | ||
origin_time: 1709638576394039 | ||
zomes: | ||
- name: orders_integrity | ||
coordinator: | ||
zomes: | ||
- name: orders | ||
hash: ~ | ||
dependencies: | ||
- name: orders_integrity | ||
dylib: ~ | ||
''; | ||
zomes = { | ||
orders_integrity = self'.packages.orders_integrity; | ||
orders = packages.orders; | ||
}; | ||
holochain = inputs'.holochain; | ||
}); | ||
crateCargoToml = ./Cargo.toml; | ||
cargoArtifacts = inputs.hc-infra.outputs.lib.holochainCargoArtifacts { | ||
inherit system; | ||
}; | ||
}; | ||
|
||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "orders_integrity" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
name = "orders_integrity" | ||
|
||
[dependencies] | ||
hdi = { workspace = true } | ||
|
||
serde = { workspace = true } |
Oops, something went wrong.