docs: Candid spec reference#69
Conversation
025bf68 to
8605aa5
Compare
Review: Candid SpecificationMust fix
Suggestions
Verified
|
…mmar - Fix misleading safe-upgrade table note: removing a variant tag is safe because fewer tags is a subtype; add separate row for adding tags (requires opt wrap) - Add missing function annotation equality constraint to function subtyping section - Fix didc subtype syntax: nat int (IDLType), not '(nat)' '(int)' (IDLArgs) - Add k definition to hash formula: where k = |utf8(id)| - 1 - Fix bool JS type inconsistency: use 'boolean' in both tables - Note that argtype named form is a shorthand in grammar section - Add missing didc bind targets: rs-agent, rs-stub, did - Add composite_query can be called from outside of IC (ingress messages)
|
<!-- feedback-addressed --> Feedback addressed: Changes appliedMust fix
Suggestions applied
Items skippedNone — all 3 must-fix items and all 5 suggestions were applied. Build noteThe build fails with a pre-existing error in |
Summary
opt,vec,record,variant— field hash formula, tuple shorthand, idiomatic patternsfunc(query/composite_query/oneway annotations),service, type definitions, mutual recursion, importsdidctool: check, bind, encode, decode, subtype, hash commands with examplesSync recommendation
informed by
dfinity/candid—spec/Candid.md; informed bydfinity/portal—docs/references/candid-ref.mdx,docs/building-apps/interact-with-canisters/candid/candid-concepts.mdx