Skip to content

Commit

Permalink
Add Azle implementations of Heartbeat and Timer canisters
Browse files Browse the repository at this point in the history
  • Loading branch information
dansteren committed Oct 13, 2023
1 parent 8d9e0a8 commit 42a9645
Show file tree
Hide file tree
Showing 13 changed files with 986 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ build
_out
*.wasm
.mops
node_modules
.azle
7 changes: 5 additions & 2 deletions heartbeat/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include ../*.mk

.PHONY: all motoko rust build perf
.PHONY: all motoko rust azle build perf
all: build perf

motoko:
Expand All @@ -9,7 +9,10 @@ motoko:
rust:
$(call build,rust)

build: motoko rust
azle:
$(call build,azle)

build: motoko rust azle

perf:
$(call perf,heartbeat,perf.sh)
20 changes: 20 additions & 0 deletions heartbeat/azle/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"canisters": {
"heartbeat": {
"type": "custom",
"main": "src/heartbeat.ts",
"candid": "src/heartbeat.did",
"build": "npx azle heartbeat",
"wasm": ".azle/heartbeat/heartbeat.wasm",
"gzip": false
},
"timer": {
"type": "custom",
"main": "src/timer.ts",
"candid": "src/timer.did",
"build": "npx azle timer",
"wasm": ".azle/timer/timer.wasm",
"gzip": false
}
}
}
Loading

0 comments on commit 42a9645

Please sign in to comment.