diff --git a/examples/composite_queries/dfx.json b/examples/composite_queries/dfx.json index b77c727567..9c23f56237 100644 --- a/examples/composite_queries/dfx.json +++ b/examples/composite_queries/dfx.json @@ -3,9 +3,9 @@ "canister1": { "type": "custom", "build": "npx azle canister1", - "root": "canisters/canister1", - "ts": "canisters/canister1/index.ts", - "candid": "canisters/canister1/index.did", + "root": "src/canister1", + "ts": "src/canister1/index.ts", + "candid": "src/canister1/index.did", "wasm": ".azle/canister1/canister1.wasm", "gzip": true, "declarations": { @@ -21,9 +21,9 @@ "canister2": { "type": "custom", "build": "npx azle canister2", - "root": "canisters/canister2", - "ts": "canisters/canister2/index.ts", - "candid": "canisters/canister2/index.did", + "root": "src/canister2", + "ts": "src/canister2/index.ts", + "candid": "src/canister2/index.did", "wasm": ".azle/canister2/canister2.wasm", "gzip": true, "declarations": { @@ -35,9 +35,9 @@ "canister3": { "type": "custom", "build": "npx azle canister3", - "root": "canisters/canister3", - "ts": "canisters/canister3/index.ts", - "candid": "canisters/canister3/index.did", + "root": "src/canister3", + "ts": "src/canister3/index.ts", + "candid": "src/canister3/index.did", "wasm": ".azle/canister3/canister3.wasm", "gzip": true, "declarations": { diff --git a/examples/composite_queries/canisters/canister1/index.did b/examples/composite_queries/src/canister1/index.did similarity index 100% rename from examples/composite_queries/canisters/canister1/index.did rename to examples/composite_queries/src/canister1/index.did diff --git a/examples/composite_queries/canisters/canister1/index.ts b/examples/composite_queries/src/canister1/index.ts similarity index 100% rename from examples/composite_queries/canisters/canister1/index.ts rename to examples/composite_queries/src/canister1/index.ts diff --git a/examples/composite_queries/canisters/canister2/index.did b/examples/composite_queries/src/canister2/index.did similarity index 100% rename from examples/composite_queries/canisters/canister2/index.did rename to examples/composite_queries/src/canister2/index.did diff --git a/examples/composite_queries/canisters/canister2/index.ts b/examples/composite_queries/src/canister2/index.ts similarity index 100% rename from examples/composite_queries/canisters/canister2/index.ts rename to examples/composite_queries/src/canister2/index.ts diff --git a/examples/composite_queries/canisters/canister3/index.did b/examples/composite_queries/src/canister3/index.did similarity index 100% rename from examples/composite_queries/canisters/canister3/index.did rename to examples/composite_queries/src/canister3/index.did diff --git a/examples/composite_queries/canisters/canister3/index.ts b/examples/composite_queries/src/canister3/index.ts similarity index 100% rename from examples/composite_queries/canisters/canister3/index.ts rename to examples/composite_queries/src/canister3/index.ts diff --git a/examples/cross_canister_calls/dfx.json b/examples/cross_canister_calls/dfx.json index 750a2649e1..6d313adbf0 100644 --- a/examples/cross_canister_calls/dfx.json +++ b/examples/cross_canister_calls/dfx.json @@ -3,9 +3,9 @@ "canister1": { "type": "custom", "build": "npx azle canister1", - "root": "canisters/canister1", - "ts": "canisters/canister1/index.ts", - "candid": "canisters/canister1/index.did", + "root": "src/canister1", + "ts": "src/canister1/index.ts", + "candid": "src/canister1/index.did", "wasm": ".azle/canister1/canister1.wasm", "gzip": true, "declarations": { @@ -17,9 +17,9 @@ "canister2": { "type": "custom", "build": "npx azle canister2", - "root": "canisters/canister2", - "ts": "canisters/canister2/index.ts", - "candid": "canisters/canister2/index.did", + "root": "src/canister2", + "ts": "src/canister2/index.ts", + "candid": "src/canister2/index.did", "wasm": ".azle/canister2/canister2.wasm", "gzip": true, "declarations": { diff --git a/examples/cross_canister_calls/canisters/canister1/index.did b/examples/cross_canister_calls/src/canister1/index.did similarity index 100% rename from examples/cross_canister_calls/canisters/canister1/index.did rename to examples/cross_canister_calls/src/canister1/index.did diff --git a/examples/cross_canister_calls/canisters/canister1/index.ts b/examples/cross_canister_calls/src/canister1/index.ts similarity index 100% rename from examples/cross_canister_calls/canisters/canister1/index.ts rename to examples/cross_canister_calls/src/canister1/index.ts diff --git a/examples/cross_canister_calls/canisters/canister2/index.did b/examples/cross_canister_calls/src/canister2/index.did similarity index 100% rename from examples/cross_canister_calls/canisters/canister2/index.did rename to examples/cross_canister_calls/src/canister2/index.did diff --git a/examples/cross_canister_calls/canisters/canister2/index.ts b/examples/cross_canister_calls/src/canister2/index.ts similarity index 100% rename from examples/cross_canister_calls/canisters/canister2/index.ts rename to examples/cross_canister_calls/src/canister2/index.ts diff --git a/examples/cross_canister_calls/canisters/canister2/types.ts b/examples/cross_canister_calls/src/canister2/types.ts similarity index 100% rename from examples/cross_canister_calls/canisters/canister2/types.ts rename to examples/cross_canister_calls/src/canister2/types.ts diff --git a/examples/cycles/dfx.json b/examples/cycles/dfx.json index 062ab2e219..aa4139c43f 100644 --- a/examples/cycles/dfx.json +++ b/examples/cycles/dfx.json @@ -3,9 +3,9 @@ "cycles": { "type": "custom", "build": "npx azle cycles", - "root": "canisters/cycles", - "ts": "canisters/cycles/index.ts", - "candid": "canisters/cycles/index.did", + "root": "src/cycles", + "ts": "src/cycles/index.ts", + "candid": "src/cycles/index.did", "wasm": ".azle/cycles/cycles.wasm", "gzip": true, "declarations": { @@ -16,9 +16,9 @@ "intermediary": { "type": "custom", "build": "npx azle intermediary", - "root": "canisters/intermediary", - "ts": "canisters/intermediary/index.ts", - "candid": "canisters/intermediary/index.did", + "root": "src/intermediary", + "ts": "src/intermediary/index.ts", + "candid": "src/intermediary/index.did", "wasm": ".azle/intermediary/intermediary.wasm", "gzip": true, "declarations": { diff --git a/examples/cycles/canisters/cycles/index.did b/examples/cycles/src/cycles/index.did similarity index 100% rename from examples/cycles/canisters/cycles/index.did rename to examples/cycles/src/cycles/index.did diff --git a/examples/cycles/canisters/cycles/index.ts b/examples/cycles/src/cycles/index.ts similarity index 100% rename from examples/cycles/canisters/cycles/index.ts rename to examples/cycles/src/cycles/index.ts diff --git a/examples/cycles/canisters/intermediary/index.did b/examples/cycles/src/intermediary/index.did similarity index 100% rename from examples/cycles/canisters/intermediary/index.did rename to examples/cycles/src/intermediary/index.did diff --git a/examples/cycles/canisters/intermediary/index.ts b/examples/cycles/src/intermediary/index.ts similarity index 100% rename from examples/cycles/canisters/intermediary/index.ts rename to examples/cycles/src/intermediary/index.ts diff --git a/examples/ledger_canister/dfx.json b/examples/ledger_canister/dfx.json index 194d60daef..8e8269ee4c 100644 --- a/examples/ledger_canister/dfx.json +++ b/examples/ledger_canister/dfx.json @@ -3,9 +3,9 @@ "ledger_canister": { "type": "custom", "build": "npx azle ledger_canister", - "root": "canisters/ledger_canister", - "ts": "canisters/ledger_canister/index.ts", - "candid": "canisters/ledger_canister/index.did", + "root": "src/ledger_canister", + "ts": "src/ledger_canister/index.ts", + "candid": "src/ledger_canister/index.did", "wasm": ".azle/ledger_canister/ledger_canister.wasm", "gzip": true, "declarations": { @@ -16,8 +16,8 @@ }, "icp_ledger": { "type": "custom", - "candid": "canisters/icp_ledger/ledger.private.did", - "wasm": "canisters/icp_ledger/ledger.wasm" + "candid": "src/icp_ledger/ledger.private.did", + "wasm": "src/icp_ledger/ledger.wasm" } } } diff --git a/examples/ledger_canister/canisters/icp_ledger/ledger.private.did b/examples/ledger_canister/src/icp_ledger/ledger.private.did similarity index 100% rename from examples/ledger_canister/canisters/icp_ledger/ledger.private.did rename to examples/ledger_canister/src/icp_ledger/ledger.private.did diff --git a/examples/ledger_canister/canisters/icp_ledger/ledger.public.did b/examples/ledger_canister/src/icp_ledger/ledger.public.did similarity index 100% rename from examples/ledger_canister/canisters/icp_ledger/ledger.public.did rename to examples/ledger_canister/src/icp_ledger/ledger.public.did diff --git a/examples/ledger_canister/src/icp_ledger/ledger.wasm b/examples/ledger_canister/src/icp_ledger/ledger.wasm new file mode 100644 index 0000000000..23f9fa80ed Binary files /dev/null and b/examples/ledger_canister/src/icp_ledger/ledger.wasm differ diff --git a/examples/ledger_canister/canisters/ledger_canister/index.did b/examples/ledger_canister/src/ledger_canister/index.did similarity index 100% rename from examples/ledger_canister/canisters/ledger_canister/index.did rename to examples/ledger_canister/src/ledger_canister/index.did diff --git a/examples/ledger_canister/canisters/ledger_canister/index.ts b/examples/ledger_canister/src/ledger_canister/index.ts similarity index 100% rename from examples/ledger_canister/canisters/ledger_canister/index.ts rename to examples/ledger_canister/src/ledger_canister/index.ts diff --git a/examples/notify_raw/dfx.json b/examples/notify_raw/dfx.json index 750a2649e1..6d313adbf0 100644 --- a/examples/notify_raw/dfx.json +++ b/examples/notify_raw/dfx.json @@ -3,9 +3,9 @@ "canister1": { "type": "custom", "build": "npx azle canister1", - "root": "canisters/canister1", - "ts": "canisters/canister1/index.ts", - "candid": "canisters/canister1/index.did", + "root": "src/canister1", + "ts": "src/canister1/index.ts", + "candid": "src/canister1/index.did", "wasm": ".azle/canister1/canister1.wasm", "gzip": true, "declarations": { @@ -17,9 +17,9 @@ "canister2": { "type": "custom", "build": "npx azle canister2", - "root": "canisters/canister2", - "ts": "canisters/canister2/index.ts", - "candid": "canisters/canister2/index.did", + "root": "src/canister2", + "ts": "src/canister2/index.ts", + "candid": "src/canister2/index.did", "wasm": ".azle/canister2/canister2.wasm", "gzip": true, "declarations": { diff --git a/examples/notify_raw/canisters/canister1/index.did b/examples/notify_raw/src/canister1/index.did similarity index 100% rename from examples/notify_raw/canisters/canister1/index.did rename to examples/notify_raw/src/canister1/index.did diff --git a/examples/notify_raw/canisters/canister1/index.ts b/examples/notify_raw/src/canister1/index.ts similarity index 100% rename from examples/notify_raw/canisters/canister1/index.ts rename to examples/notify_raw/src/canister1/index.ts diff --git a/examples/notify_raw/canisters/canister2/index.did b/examples/notify_raw/src/canister2/index.did similarity index 100% rename from examples/notify_raw/canisters/canister2/index.did rename to examples/notify_raw/src/canister2/index.did diff --git a/examples/notify_raw/canisters/canister2/index.ts b/examples/notify_raw/src/canister2/index.ts similarity index 100% rename from examples/notify_raw/canisters/canister2/index.ts rename to examples/notify_raw/src/canister2/index.ts diff --git a/examples/rejections/dfx.json b/examples/rejections/dfx.json index e3c7053726..69ffdb934d 100644 --- a/examples/rejections/dfx.json +++ b/examples/rejections/dfx.json @@ -3,9 +3,9 @@ "rejections": { "type": "custom", "build": "npx azle rejections", - "root": "canisters/rejections", - "ts": "canisters/rejections/index.ts", - "candid": "canisters/rejections/index.did", + "root": "src/rejections", + "ts": "src/rejections/index.ts", + "candid": "src/rejections/index.did", "wasm": ".azle/rejections/rejections.wasm", "gzip": true, "declarations": { @@ -17,9 +17,9 @@ "some_canister": { "type": "custom", "build": "npx azle some_canister", - "root": "canisters/some_canister", - "ts": "canisters/some_canister/index.ts", - "candid": "canisters/some_canister/index.did", + "root": "src/some_canister", + "ts": "src/some_canister/index.ts", + "candid": "src/some_canister/index.did", "wasm": ".azle/some_canister/some_canister.wasm", "gzip": true, "declarations": { diff --git a/examples/rejections/canisters/rejections/index.did b/examples/rejections/src/rejections/index.did similarity index 100% rename from examples/rejections/canisters/rejections/index.did rename to examples/rejections/src/rejections/index.did diff --git a/examples/rejections/canisters/rejections/index.ts b/examples/rejections/src/rejections/index.ts similarity index 100% rename from examples/rejections/canisters/rejections/index.ts rename to examples/rejections/src/rejections/index.ts diff --git a/examples/rejections/canisters/some_canister/index.did b/examples/rejections/src/some_canister/index.did similarity index 100% rename from examples/rejections/canisters/some_canister/index.did rename to examples/rejections/src/some_canister/index.did diff --git a/examples/rejections/canisters/some_canister/index.ts b/examples/rejections/src/some_canister/index.ts similarity index 100% rename from examples/rejections/canisters/some_canister/index.ts rename to examples/rejections/src/some_canister/index.ts