Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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