Skip to content

Commit

Permalink
Merge pull request #1644 from demergent-labs/metadata
Browse files Browse the repository at this point in the history
Metadata
  • Loading branch information
lastmjs authored Feb 12, 2024
2 parents 62042e1 + 5881ce6 commit 5adec7b
Show file tree
Hide file tree
Showing 112 changed files with 1,378 additions and 117 deletions.
12 changes: 11 additions & 1 deletion examples/apollo_server/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
"candid_gen": "http",
"build": "npx azle apollo_server",
"wasm": ".azle/apollo_server/apollo_server.wasm",
"gzip": true
"gzip": true,
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/async_await/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
"output": "test/dfx_generated/async_await",
"node_compatibility": true
},
"env": ["AZLE_TEST_FETCH"]
"env": ["AZLE_TEST_FETCH"],
"metadata": [
{
"name": "candid:service",
"path": "src/async_await.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/audio_recorder/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
"declarations": {
"output": "test/dfx_generated/audio_recorder",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/basic_bitcoin/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
"declarations": {
"output": "test/dfx_generated/basic_bitcoin",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/bitcoin/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
"output": "test/dfx_generated/bitcoin",
"node_compatibility": true
},
"env": ["AZLE_TEST_FETCH"]
"env": ["AZLE_TEST_FETCH"],
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
},
"networks": {
Expand Down
12 changes: 11 additions & 1 deletion examples/blob_array/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/blob_array",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/bytes/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/bytes_canister",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/call_raw/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/call_raw",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/candid_encoding/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/candid_encoding",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/candid_keywords/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/candid_keywords",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
24 changes: 22 additions & 2 deletions examples/canister/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@
"node_compatibility": true
},
"env": ["SOME_CANISTER_PRINCIPAL", "AZLE_TEST_FETCH"],
"assets": [["src/some_canister.did", "src/some_canister.did"]]
"assets": [["src/some_canister.did", "src/some_canister.did"]],
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
},
"some_canister": {
"type": "custom",
Expand All @@ -24,7 +34,17 @@
"declarations": {
"output": "test/dfx_generated/some_canister",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/some_canister.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/ckbtc/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@
"output": "wallet/frontend/dfx_generated/wallet_backend"
},
"env": ["CK_BTC_PRINCIPAL", "MINTER_PRINCIPAL", "AZLE_TEST_FETCH"],
"assets": [["minter/minter.did", "minter/minter.did"]]
"assets": [["minter/minter.did", "minter/minter.did"]],
"metadata": [
{
"name": "candid:service",
"path": "wallet/backend/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
},
"wallet_frontend": {
"type": "assets",
Expand Down
24 changes: 22 additions & 2 deletions examples/complex_init/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/complex_init",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/complex_init/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
},
"rec_init": {
"type": "custom",
Expand All @@ -22,7 +32,17 @@
"declarations": {
"output": "test/dfx_generated/rec_init",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/rec_init/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/complex_types/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@
"declarations": {
"output": "test/dfx_generated/complex_types",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
34 changes: 32 additions & 2 deletions examples/composite_queries/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@
["src/canister1/index.did", "src/canister1.did"],
["src/canister2/index.did", "src/canister2.did"],
["src/canister3/index.did", "src/canister3.did"]
],
"metadata": [
{
"name": "candid:service",
"path": "src/canister1/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
},
"canister2": {
Expand All @@ -35,7 +45,17 @@
"node_compatibility": true
},
"env": ["CANISTER3_PRINCIPAL", "AZLE_TEST_FETCH"],
"assets": [["src/canister3/index.did", "src/canister3.did"]]
"assets": [["src/canister3/index.did", "src/canister3.did"]],
"metadata": [
{
"name": "candid:service",
"path": "src/canister2/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
},
"canister3": {
"type": "custom",
Expand All @@ -47,7 +67,17 @@
"declarations": {
"output": "test/dfx_generated/canister3",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/canister3/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
12 changes: 11 additions & 1 deletion examples/counter/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@
"declarations": {
"output": "test/dfx_generated/counter",
"node_compatibility": true
}
},
"metadata": [
{
"name": "candid:service",
"path": "src/index.did"
},
{
"name": "cdk:name",
"content": "azle"
}
]
}
}
}
Loading

0 comments on commit 5adec7b

Please sign in to comment.