Skip to content

Commit

Permalink
add missing candid files
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 1, 2024
1 parent 062173d commit 86bd92b
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service: () -> {
add: (int) -> (int);
clearall: () -> ();
div: (int) -> (opt int);
mul: (int) -> (int);
sub: (int) -> (int);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
service: () -> {
get: () -> (nat) query;
inc: () -> ();
set: (nat) -> ();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service: () -> {
say: (text) -> (text) query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service: () -> {
main: () -> () query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service: () -> {
greet: (text) -> (text) query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
service: () -> {
count: () -> (nat);
getCount: () -> (nat) query;
reset: () -> (nat);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
service: () -> {
get: () -> (nat) query;
getRedeployed: () -> (bool) query;
increment: () -> (nat);
reset: () -> (nat);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
service: () -> {
insert: (text, record {desc:text; phone:text}) -> ();
lookup: (text) -> (opt record {desc:text; phone:text}) query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service: () -> {
sort: (vec int) -> (vec int) query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service: () -> {
addTodo: (text) -> (nat);
clearCompleted: () -> ();
completeTodo: (nat) -> ();
getTodos: () -> (vec record {completed:bool; description:text}) query;
showTodos: () -> (text) query;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type rec_0 = record {text; opt rec_0};
type rec_1 = record {text; opt rec_1};
type rec_2 = record {text; opt rec_2};
service: () -> {
create: (record {superpowers:opt rec_0; name:text}) -> (nat32);
deleteHero: (nat32) -> (bool);
read: (nat32) -> (opt record {superpowers:opt rec_1; name:text}) query;
update: (nat32, record {superpowers:opt rec_2; name:text}) -> (bool);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
service: () -> {
publicKey: () -> (record {publicKey:vec nat8});
sign: (vec nat8) -> (record {signature:vec nat8});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
service: (principal) -> {
argument: () -> (principal) query;
id: () -> (principal);
idQuick: () -> (principal) query;
installer: () -> (principal) query;
whoami: () -> (principal);
}

0 comments on commit 86bd92b

Please sign in to comment.