Skip to content

feat(challenge-sdk-wasm): add types, error module, and host function bindings#40

Open
echobt wants to merge 1 commit intomainfrom
feat/extend-challenge-sdk-wasm-guest-types
Open

feat(challenge-sdk-wasm): add types, error module, and host function bindings#40
echobt wants to merge 1 commit intomainfrom
feat/extend-challenge-sdk-wasm-guest-types

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 17, 2026

Summary

Extends the challenge-sdk-wasm guest SDK with additional types, an error module, and host function bindings.

Changes

  • New error module (error.rs): ChallengeError enum with 7 variants (Evaluation, Validation, Network, Timeout, Serialization, Storage, Internal) + Display impl + From<Box<bincode::ErrorKind>>
  • Extended EvaluationInput: Added submission_id, participant_id, epoch, metadata, and task_definitions fields
  • New types: HttpRequest, HttpResponse, TaskResult, DetailedScore
  • New host functions: log_message extern, platform_time extern block, host_log(), host_get_timestamp(), typed_http_get(), typed_http_post()
  • Updated bridge.rs: Added missing fields to EvaluationInput struct initializers (production + test)
  • Updated lib.rs: Added pub mod error, pub use error::ChallengeError, expanded re-exports

Replaces #28 (closed).

@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

Warning

Rate limit exceeded

@echobt has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 20 minutes and 8 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/extend-challenge-sdk-wasm-guest-types

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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

Successfully merging this pull request may close these issues.

1 participant