Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript -> Candid compiler implement func #86

Closed
23 tasks done
Tracked by #212
lastmjs opened this issue Mar 17, 2022 · 3 comments
Closed
23 tasks done
Tracked by #212

TypeScript -> Candid compiler implement func #86

lastmjs opened this issue Mar 17, 2022 · 3 comments
Assignees
Milestone

Comments

@lastmjs
Copy link
Member

lastmjs commented Mar 17, 2022

Skipped for the time being, when it becomes important let's implement it. I think other things have a higher priority currently.

  • Compile to Candid
  • AzleIntoJsValue
  • AzleTryFromJsValue
  • Derives
    • AzleIntoJsValue
      • Enum
      • Struct
    • AzleTryFromJsValue
      • Enum
      • Struct
  • Make sure records and variants can have funcs...funcs should be usable everywhere
  • Canister definitions
    • More tests would be desirable
  • Stable storage
    • More tests would be desirable
  • Should we put the param names in the definition or not? Candid seems to allow both (will handle later here: Should we put the param names in the definition or not? Candid seems to allow both #441)
  • query annotation (does this matter??)
  • oneway annotation?
  • inline funcs (will handle later here: Support inline Func #416)
  • Add func functionality to ledger canister with tests
  • Test out the asset canister if possible...or make sure Azle can interoperate with it, it has a func type with the streaming callback
  • Finish up tests once this is resolved: func type decoding errors? dfinity/candid#348
  • allow arrays of funcs...allow arrays of everything
@cryptoisgood
Copy link

I think we need this in order to implement http_request unless I'm misunderstanding my issues, but it's related to this. I'm going to keep working on this see if I can figure it out.

@lastmjs
Copy link
Member Author

lastmjs commented May 10, 2022

We should improve func types once this is fixed: dfinity/candid#347

@lastmjs
Copy link
Member Author

lastmjs commented May 10, 2022

Try to glean some insight from here: https://forum.dfinity.org/t/candid-func-types-as-parameters/12857

@lastmjs lastmjs added this to the 1.0 milestone May 26, 2022
@lastmjs lastmjs self-assigned this May 26, 2022
@lastmjs lastmjs modified the milestones: 1.0, June May 26, 2022
@lastmjs lastmjs mentioned this issue Jun 24, 2022
16 tasks
@lastmjs lastmjs closed this as completed Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants