Skip to content

generate js client with codama and add a basic test to confirm works#73

Draft
kaze-cow wants to merge 1 commit into
idlfrom
kaze/sc-255-write-idl-and-generate-corresponding-libraries-for
Draft

generate js client with codama and add a basic test to confirm works#73
kaze-cow wants to merge 1 commit into
idlfrom
kaze/sc-255-write-idl-and-generate-corresponding-libraries-for

Conversation

@kaze-cow

@kaze-cow kaze-cow commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Using the IDL from #65 , generate a TS/JS client for the settlement program, and write a test to verify the critical path createOrder instruction is convenient and correct to use

Changes

(tbc)

Out of scope

This is not intended to be a comprehensive test of the IDL generation or all the instructions exported by the library. Its just to give us a starting point to make sure that the IDL generation and the corresponding library it generates works as expected.

How to Test/Use

  1. Check out this branch
  2. Use just build-verified to make the settlement program artifact
  3. Build the TS client files: cd programs/settlement/idl && pnpm i && node generate.mjs
  4. Run the createOrder tests: cd programs/settlement/idl/client/js && pnpm i && pnpm test

@kaze-cow kaze-cow self-assigned this Jul 16, 2026
@linear-code

linear-code Bot commented Jul 16, 2026

Copy link
Copy Markdown

SC-255

@socket-security

Copy link
Copy Markdown

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