-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement the azle dfx extension and update all example projects
- Loading branch information
Showing
198 changed files
with
406 additions
and
2,973 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "azle", | ||
"version": "0.21.1", | ||
"homepage": "https://github.com/dfinity/dfx-extensions", | ||
"authors": "", | ||
"summary": "", | ||
"categories": [], | ||
"keywords": [], | ||
"canister_type": { | ||
"defaults": { | ||
"candid": ".azle/{{canister_name}}/{{canister_name}}.did", | ||
"build": "npx azle {{canister_name}}", | ||
"post_install": "npx azle upload-assets {{canister_name}}", | ||
"wasm": ".azle/{{canister_name}}/{{canister_name}}.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
], | ||
"tech_stack": { | ||
"cdk": { | ||
"azle": {} | ||
}, | ||
"language": { | ||
"typescript": {}, | ||
"javascript": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,4 @@ | ||
DFX_CACHE_DIR="$(dfx cache show)" | ||
dfx cache install | ||
mkdir -p "$DFX_CACHE_DIR/extensions/azle" | ||
cp extension.json "$DFX_CACHE_DIR/extensions/azle/extension.json" |
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,23 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"apollo_server": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"candid_gen": "http", | ||
"build": "npx azle apollo_server", | ||
"wasm": ".azle/apollo_server/apollo_server.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,13 @@ | ||
{ | ||
"canisters": { | ||
"async_await": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/async_await.ts", | ||
"candid": "src/async_await.did", | ||
"build": "npx azle async_await", | ||
"wasm": ".azle/async_await/async_await.wasm", | ||
"gzip": true, | ||
"env": ["AZLE_TEST_FETCH"], | ||
"declarations": { | ||
"output": "test/dfx_generated/async_await", | ||
"node_compatibility": true | ||
}, | ||
"env": ["AZLE_TEST_FETCH"], | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/async_await.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,14 @@ | ||
{ | ||
"canisters": { | ||
"audio_recorder": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"candid_gen": "custom", | ||
"build": "npx azle audio_recorder", | ||
"wasm": ".azle/audio_recorder/audio_recorder.wasm", | ||
"gzip": true, | ||
"declarations": { | ||
"output": "test/dfx_generated/audio_recorder", | ||
"node_compatibility": true | ||
}, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
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,23 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"autoreload": { | ||
"type": "custom", | ||
"main": "src/server.ts", | ||
"candid": "src/server.did", | ||
"candid_gen": "http", | ||
"build": "npx azle autoreload", | ||
"wasm": ".azle/autoreload/autoreload.wasm", | ||
"gzip": true, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/server.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
"type": "azle", | ||
"main": "src/server.ts" | ||
} | ||
} | ||
} |
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"bitcoinjs": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle bitcoinjs", | ||
"wasm": ".azle/bitcoinjs/bitcoinjs.wasm", | ||
"gzip": true | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
{ | ||
"canisters": { | ||
"bitcore": { | ||
"type": "custom", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle bitcore", | ||
"wasm": ".azle/bitcore/bitcore.wasm", | ||
"gzip": true | ||
"type": "azle", | ||
"main": "src/index.ts" | ||
} | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
{ | ||
"canisters": { | ||
"blob_array": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle blob_array", | ||
"wasm": ".azle/blob_array/blob_array.wasm", | ||
"gzip": true, | ||
"candid_gen": "automatic", | ||
"declarations": { | ||
"output": "test/dfx_generated/blob_array", | ||
"node_compatibility": true | ||
}, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
{ | ||
"canisters": { | ||
"bytes_canister": { | ||
"type": "custom", | ||
"type": "azle", | ||
"main": "src/index.ts", | ||
"candid": "src/index.did", | ||
"build": "npx azle bytes_canister", | ||
"wasm": ".azle/bytes_canister/bytes_canister.wasm", | ||
"gzip": true, | ||
"candid_gen": "automatic", | ||
"declarations": { | ||
"output": "test/dfx_generated/bytes_canister", | ||
"node_compatibility": true | ||
}, | ||
"metadata": [ | ||
{ | ||
"name": "candid:service", | ||
"path": "src/index.did" | ||
}, | ||
{ | ||
"name": "cdk:name", | ||
"content": "azle" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.