forked from dfinity/canister-profiling
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Azle implementation of collections
- Loading branch information
Showing
12 changed files
with
1,275 additions
and
2 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,7 @@ | ||
service: () -> { | ||
batch_get: (nat32) -> (); | ||
batch_put: (nat32) -> (); | ||
batch_remove: (nat32) -> (); | ||
generate: (nat32) -> (); | ||
get_mem: () -> (record {nat; nat; nat}) query; | ||
} |
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 @@ | ||
{ | ||
"canisters": { | ||
"hashmap": { | ||
"type": "custom", | ||
"main": "src/hashmap.ts", | ||
"candid": "collection.did", | ||
"build": "npx azle hashmap", | ||
"wasm": ".azle/hashmap/hashmap.wasm", | ||
"gzip": false | ||
}, | ||
"btreemap": { | ||
"type": "custom", | ||
"main": "src/btreemap.ts", | ||
"candid": "collection.did", | ||
"build": "npx azle btreemap", | ||
"wasm": ".azle/btreemap/btreemap.wasm", | ||
"gzip": false | ||
}, | ||
"heap": { | ||
"type": "custom", | ||
"main": "src/heap.ts", | ||
"candid": "collection.did", | ||
"build": "npx azle heap", | ||
"wasm": ".azle/heap/heap.wasm", | ||
"gzip": false | ||
}, | ||
"vector": { | ||
"type": "custom", | ||
"main": "src/vector.ts", | ||
"candid": "collection.did", | ||
"build": "npx azle vector", | ||
"wasm": ".azle/vector/vector.wasm", | ||
"gzip": false | ||
} | ||
} | ||
} |
Oops, something went wrong.