Skip to content

Commit

Permalink
add script and change all dfx.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Sep 27, 2023
1 parent 18081dd commit 04d4745
Show file tree
Hide file tree
Showing 69 changed files with 151 additions and 164 deletions.
3 changes: 1 addition & 2 deletions examples/async_await/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"async_await": {
"type": "custom",
"main": "src/async_await.ts",
"build": "npx azle async_await",
"root": "src",
"ts": "src/async_await.ts",
"candid": "src/async_await.did",
"wasm": ".azle/async_await/async_await.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/audio_recorder/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"audio_recorder": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle audio_recorder",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/audio_recorder/audio_recorder.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/basic_bitcoin/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"basic_bitcoin": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle basic_bitcoin",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/basic_bitcoin/basic_bitcoin.wasm.gz",
"declarations": {
Expand Down
3 changes: 1 addition & 2 deletions examples/bitcoin/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"bitcoin": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle bitcoin",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/bitcoin/bitcoin.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/blob_array/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"blob_array": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle blob_array",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/blob_array/blob_array.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/bytes/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"bytes_canister": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle bytes_canister",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/bytes_canister/bytes_canister.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/call_raw/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"call_raw": {
"type": "custom",
"main": "src/call_raw.ts",
"build": "npx azle call_raw",
"root": "src",
"ts": "src/call_raw.ts",
"candid": "src/call_raw.did",
"wasm": ".azle/call_raw/call_raw.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/candid_encoding/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"candid_encoding": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle candid_encoding",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/candid_encoding/candid_encoding.wasm",
"gzip": true,
Expand Down
6 changes: 2 additions & 4 deletions examples/canister/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"canister": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle canister",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/canister/canister.wasm",
"gzip": true,
Expand All @@ -16,9 +15,8 @@
},
"some_canister": {
"type": "custom",
"main": "src/some_canister.ts",
"build": "npx azle some_canister",
"root": "src",
"ts": "src/some_canister.ts",
"candid": "src/some_canister.did",
"wasm": ".azle/some_canister/some_canister.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/ckbtc/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
},
"wallet_backend": {
"type": "custom",
"main": "wallet/backend/index.ts",
"build": "npx azle wallet_backend",
"root": "wallet/backend",
"ts": "wallet/backend/index.ts",
"candid": "wallet/backend/index.did",
"wasm": ".azle/wallet_backend/wallet_backend.wasm.gz",
"declarations": {
Expand Down
3 changes: 1 addition & 2 deletions examples/complex_init/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"complex_init": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle complex_init",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/complex_init/complex_init.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/complex_types/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"complex_types": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle complex_types",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/complex_types/complex_types.wasm.gz",
"declarations": {
Expand Down
9 changes: 3 additions & 6 deletions examples/composite_queries/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"canister1": {
"type": "custom",
"main": "src/canister1/index.ts",
"build": "npx azle canister1",
"root": "src/canister1",
"ts": "src/canister1/index.ts",
"candid": "src/canister1/index.did",
"wasm": ".azle/canister1/canister1.wasm",
"gzip": true,
Expand All @@ -20,9 +19,8 @@
},
"canister2": {
"type": "custom",
"main": "src/canister2/index.ts",
"build": "npx azle canister2",
"root": "src/canister2",
"ts": "src/canister2/index.ts",
"candid": "src/canister2/index.did",
"wasm": ".azle/canister2/canister2.wasm",
"gzip": true,
Expand All @@ -34,9 +32,8 @@
},
"canister3": {
"type": "custom",
"main": "src/canister3/index.ts",
"build": "npx azle canister3",
"root": "src/canister3",
"ts": "src/canister3/index.ts",
"candid": "src/canister3/index.did",
"wasm": ".azle/canister3/canister3.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/counter/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"counter": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle counter",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/counter/counter.wasm",
"gzip": true,
Expand Down
6 changes: 2 additions & 4 deletions examples/cycles/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"cycles": {
"type": "custom",
"main": "src/cycles/index.ts",
"build": "npx azle cycles",
"root": "src/cycles",
"ts": "src/cycles/index.ts",
"candid": "src/cycles/index.did",
"wasm": ".azle/cycles/cycles.wasm",
"gzip": true,
Expand All @@ -15,9 +14,8 @@
},
"intermediary": {
"type": "custom",
"main": "src/intermediary/index.ts",
"build": "npx azle intermediary",
"root": "src/intermediary",
"ts": "src/intermediary/index.ts",
"candid": "src/intermediary/index.did",
"wasm": ".azle/intermediary/intermediary.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/date/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"date": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle date",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/date/date.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/ethereum_json_rpc/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"ethereum_json_rpc": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle ethereum_json_rpc",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/ethereum_json_rpc/ethereum_json_rpc.wasm",
"gzip": true,
Expand Down
6 changes: 2 additions & 4 deletions examples/func_types/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"func_types": {
"type": "custom",
"main": "canisters/func_types/index.ts",
"build": "npx azle func_types",
"root": "src",
"ts": "canisters/func_types/index.ts",
"candid": "canisters/func_types/index.did",
"wasm": ".azle/func_types/func_types.wasm.gz",
"declarations": {
Expand All @@ -15,9 +14,8 @@
},
"notifiers": {
"type": "custom",
"main": "canisters/notifiers/index.ts",
"build": "npx azle notifiers",
"root": "src",
"ts": "canisters/notifiers/index.ts",
"candid": "canisters/notifiers/index.did",
"wasm": ".azle/notifiers/notifiers.wasm.gz",
"declarations": {
Expand Down
3 changes: 1 addition & 2 deletions examples/generics/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"generics": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle generics",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/generics/generics.wasm.gz",
"declarations": {
Expand Down
3 changes: 1 addition & 2 deletions examples/guard_functions/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"guard_functions": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle guard_functions",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/guard_functions/guard_functions.wasm",
"gzip": true,
Expand Down
6 changes: 2 additions & 4 deletions examples/heartbeat/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"heartbeat_async": {
"type": "custom",
"main": "src/heartbeat_async/index.ts",
"build": "npx azle heartbeat_async",
"root": "src",
"ts": "src/heartbeat_async/index.ts",
"candid": "src/heartbeat_async/index.did",
"wasm": ".azle/heartbeat_async/heartbeat_async.wasm",
"gzip": true,
Expand All @@ -15,9 +14,8 @@
},
"heartbeat_sync": {
"type": "custom",
"main": "src/heartbeat_sync/index.ts",
"build": "npx azle heartbeat_sync",
"root": "src",
"ts": "src/heartbeat_sync/index.ts",
"candid": "src/heartbeat_sync/index.did",
"wasm": ".azle/heartbeat_sync/heartbeat_sync.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/ic_api/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"ic_api": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle ic_api",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/ic_api/ic_api.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/icrc/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"proxy": {
"type": "custom",
"main": "canisters/proxy/index.ts",
"build": "npx azle proxy",
"root": "canisters/proxy",
"ts": "canisters/proxy/index.ts",
"candid": "canisters/proxy/index.did",
"wasm": ".azle/proxy/proxy.wasm.gz",
"declarations": {
Expand Down
3 changes: 1 addition & 2 deletions examples/imports/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"imports": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle imports",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/imports/imports.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/init/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"init": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle init",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/init/init.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/inspect_message/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"inspect_message": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle inspect_message",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/inspect_message/inspect_message.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/key_value_store/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"key_value_store": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle key_value_store",
"root": "azle",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/key_value_store/key_value_store.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/ledger_canister/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"ledger_canister": {
"type": "custom",
"main": "src/ledger_canister/index.ts",
"build": "npx azle ledger_canister",
"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,
Expand Down
3 changes: 1 addition & 2 deletions examples/list_of_lists/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"list_of_lists": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle list_of_lists",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/list_of_lists/list_of_lists.wasm",
"gzip": true,
Expand Down
3 changes: 1 addition & 2 deletions examples/management_canister/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"canisters": {
"management_canister": {
"type": "custom",
"main": "src/index.ts",
"build": "npx azle management_canister",
"root": "src",
"ts": "src/index.ts",
"candid": "src/index.did",
"wasm": ".azle/management_canister/management_canister.wasm",
"gzip": true,
Expand Down
Loading

0 comments on commit 04d4745

Please sign in to comment.