Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test-tx3-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test tx3-sdk

on:
pull_request:
paths:
- 'packages/tx3-sdk/**'

jobs:
test-tx3-sdk:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/tx3-sdk
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
9 changes: 9 additions & 0 deletions bindgen/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all = [
"package.json.hbs",
"protocol.ts.hbs",
"tsconfig.json.hbs"
]

standalone = [
"protocol.ts.hbs"
]
11 changes: 6 additions & 5 deletions bindgen/protocol.ts.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// This file is auto-generated by trix bindgen.

import {
Client as TRPClient,
type ClientOptions,
type SubmitParams,
type ResolveResponse,
TRPClient,
type ArgValue,
type ClientOptions,
type SubmitParams,
type ResolveResponse,
} from "tx3-sdk/trp";


Expand All @@ -25,7 +26,7 @@ export const DEFAULT_ENV_ARGS = {
{{#each transactions}}
export type {{pascalCase params_name}} = {
{{#each parameters}}
{{camelCase name}}: {{type_name}};
{{camelCase name}}: ArgValue;
{{/each}}
}

Expand Down
Loading