Skip to content

Commit 42a9645

Browse files
committed
Add Azle implementations of Heartbeat and Timer canisters
1 parent 8d9e0a8 commit 42a9645

File tree

13 files changed

+986
-8
lines changed

13 files changed

+986
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ build
88
_out
99
*.wasm
1010
.mops
11+
node_modules
12+
.azle

heartbeat/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
include ../*.mk
22

3-
.PHONY: all motoko rust build perf
3+
.PHONY: all motoko rust azle build perf
44
all: build perf
55

66
motoko:
@@ -9,7 +9,10 @@ motoko:
99
rust:
1010
$(call build,rust)
1111

12-
build: motoko rust
12+
azle:
13+
$(call build,azle)
14+
15+
build: motoko rust azle
1316

1417
perf:
1518
$(call perf,heartbeat,perf.sh)

heartbeat/azle/dfx.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"canisters": {
3+
"heartbeat": {
4+
"type": "custom",
5+
"main": "src/heartbeat.ts",
6+
"candid": "src/heartbeat.did",
7+
"build": "npx azle heartbeat",
8+
"wasm": ".azle/heartbeat/heartbeat.wasm",
9+
"gzip": false
10+
},
11+
"timer": {
12+
"type": "custom",
13+
"main": "src/timer.ts",
14+
"candid": "src/timer.did",
15+
"build": "npx azle timer",
16+
"wasm": ".azle/timer/timer.wasm",
17+
"gzip": false
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)