diff --git a/examples/icp-motoko-recipe/greeter.did b/examples/icp-motoko-recipe/greeter.did new file mode 100644 index 000000000..ec46f7504 --- /dev/null +++ b/examples/icp-motoko-recipe/greeter.did @@ -0,0 +1,3 @@ +service : { + greet : (name : text) -> (text) query +} diff --git a/examples/icp-motoko-recipe/icp.yaml b/examples/icp-motoko-recipe/icp.yaml index a14ffcfc5..97c680ab6 100644 --- a/examples/icp-motoko-recipe/icp.yaml +++ b/examples/icp-motoko-recipe/icp.yaml @@ -1,7 +1,9 @@ -canister: +canisters: - name: my-canister recipe: - type: "@dfinity/motoko" + type: "@dfinity/motoko" configuration: main: src/main.mo args: --incremental-gc + # optional + candid: greeter.did diff --git a/examples/icp-rust-recipe/greeter.did b/examples/icp-rust-recipe/greeter.did new file mode 100644 index 000000000..ec46f7504 --- /dev/null +++ b/examples/icp-rust-recipe/greeter.did @@ -0,0 +1,3 @@ +service : { + greet : (name : text) -> (text) query +} diff --git a/examples/icp-rust-recipe/icp.yaml b/examples/icp-rust-recipe/icp.yaml index e9774bbfb..646a421a6 100644 --- a/examples/icp-rust-recipe/icp.yaml +++ b/examples/icp-rust-recipe/icp.yaml @@ -6,6 +6,8 @@ canisters: # cargo package for canister (required field) package: icp-canister shrink: true + # optional + candid: greeter.did metadata: - name: "crate:version" value: 1.0.0