Skip to content

Commit

Permalink
feat: update eject template with last features (#113)
Browse files Browse the repository at this point in the history
* feat: update eject template with last features

* build: bump dependencies
  • Loading branch information
peterpeterparker authored Mar 29, 2024
1 parent 2c0a52d commit dd5495e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/eject/src/satellite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ic-cdk = "0.12.1"
ic-cdk-macros = "0.8.1"
serde = "1.0.190"
serde_cbor = "0.11.2"
junobuild-satellite = "0.0.15-patch.3"
junobuild-macros = "0.0.1"
junobuild-satellite = "0.0.16"
junobuild-macros = "0.0.2"
junobuild-utils = "0.0.1"

28 changes: 25 additions & 3 deletions templates/eject/src/satellite/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
use junobuild_macros::{
on_delete_asset, on_delete_doc, on_delete_many_assets, on_delete_many_docs, on_set_doc,
on_set_many_docs, on_upload_asset,
assert_delete_asset, assert_delete_doc, assert_set_doc, assert_upload_asset, on_delete_asset,
on_delete_doc, on_delete_many_assets, on_delete_many_docs, on_set_doc, on_set_many_docs,
on_upload_asset,
};
use junobuild_satellite::{
include_satellite, OnDeleteAssetContext, OnDeleteDocContext, OnDeleteManyAssetsContext,
include_satellite, AssertDeleteAssetContext, AssertDeleteDocContext, AssertSetDocContext,
AssertUploadAssetContext, OnDeleteAssetContext, OnDeleteDocContext, OnDeleteManyAssetsContext,
OnDeleteManyDocsContext, OnSetDocContext, OnSetManyDocsContext, OnUploadAssetContext,
};

Expand Down Expand Up @@ -42,4 +44,24 @@ async fn on_delete_many_assets(_context: OnDeleteManyAssetsContext) -> Result<()
Ok(())
}

#[assert_set_doc]
fn assert_set_doc(_context: AssertSetDocContext) -> Result<(), String> {
Ok(())
}

#[assert_delete_doc]
fn assert_delete_doc(_context: AssertDeleteDocContext) -> Result<(), String> {
Ok(())
}

#[assert_upload_asset]
fn assert_upload_asset(_context: AssertUploadAssetContext) -> Result<(), String> {
Ok(())
}

#[assert_delete_asset]
fn assert_delete_asset(_context: AssertDeleteAssetContext) -> Result<(), String> {
Ok(())
}

include_satellite!();

0 comments on commit dd5495e

Please sign in to comment.