Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
dcfda51
refactor directory structure for commands
calebguy Nov 17, 2025
3c3936e
synd-cli
calebguy Nov 17, 2025
8d04eba
move features to cli
calebguy Nov 18, 2025
313ff3b
gitignore
calebguy Nov 18, 2025
892ec71
port features to cli
calebguy Nov 18, 2025
2a52d89
refactor
calebguy Nov 19, 2025
59cdc6f
check token bridge command
calebguy Nov 19, 2025
e05bf18
update cmmds
calebguy Nov 19, 2025
aef33ee
updated args
calebguy Nov 19, 2025
ad0cadc
handoff command
calebguy Nov 19, 2025
8d3a763
e2e cli
calebguy Nov 19, 2025
424ae83
more e2e refactor
calebguy Nov 19, 2025
4285cdf
typecheck
calebguy Nov 19, 2025
6c06909
update e2e
calebguy Nov 19, 2025
baa5a00
drop address
calebguy Nov 19, 2025
67e3bc5
fix types
calebguy Nov 20, 2025
9dca961
newOwnerAddress -> newOwner
calebguy Nov 20, 2025
f1dd956
updated naming
calebguy Nov 20, 2025
16424b2
updated get clients
calebguy Nov 20, 2025
29f603d
rm log
calebguy Nov 20, 2025
19ed4c0
fix
calebguy Nov 20, 2025
6e8203d
updated helpers
calebguy Nov 20, 2025
f8464d7
command order
calebguy Nov 20, 2025
7c09f2a
uniform getClients
calebguy Nov 20, 2025
f92e802
register handoff command
calebguy Nov 20, 2025
fe0808c
Merge remote-tracking branch 'origin/main' into feat/synd-cli-create-…
calebguy Nov 20, 2025
160de49
updated abis
calebguy Nov 20, 2025
03daa35
updated README
calebguy Nov 20, 2025
1149b44
options from config file
calebguy Nov 21, 2025
dcdda0d
accept options from --config file_path_to_options, check token bridge…
calebguy Nov 21, 2025
44a0f29
format
calebguy Nov 21, 2025
85448d9
updated options
calebguy Nov 21, 2025
dfcb63b
ignore all except json.example
calebguy Nov 21, 2025
dd609f0
example config
calebguy Nov 21, 2025
dd3ec7d
init example config
calebguy Nov 21, 2025
6ca4a83
only write required options, formatting
calebguy Nov 21, 2025
b2a9ed0
format
calebguy Nov 21, 2025
fb02b79
updated README
calebguy Nov 21, 2025
98259e5
init for arb-owner call
calebguy Nov 21, 2025
2da5b38
updated types
calebguy Nov 21, 2025
2e0cf2b
update WF
calebguy Nov 21, 2025
1da484e
add format to generate command
calebguy Nov 21, 2025
506d7c4
updated WF
calebguy Nov 21, 2025
4d60063
publish
calebguy Nov 22, 2025
5ba02ed
updated client getting
calebguy Nov 24, 2025
8e284ac
fix print & imports
calebguy Nov 24, 2025
7a2d08b
Merge branch 'main' into feat/synd-cli-create-chain
calebguy Nov 24, 2025
5052197
pre-commit
calebguy Nov 24, 2025
746b8ec
fix git modules
calebguy Nov 24, 2025
cddf6df
rm empty line in pre-commit
calebguy Nov 24, 2025
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
19 changes: 14 additions & 5 deletions .github/workflows/contracts-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,31 @@ jobs:
make -C shared create-contract-bindings
git diff --quiet || (echo "Error: Rust contract bindings are out of date. Please run 'make -C shared create-contract-bindings' to update them." && exit 1)

- name: Check TypeScript ABI files for create-chain
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install synd-cli dependencies
working-directory: "synd-cli"
run: bun install

- name: Check TypeScript ABI files for synd-cli
working-directory: "."
run: |
make -C create-chain generate-contract-abis
git diff --exit-code create-chain/src/abi/synd/ || (
make -C synd-cli generate-contract-abis
git diff --exit-code synd-cli/src/abi/synd/ || (
echo "❌ Error: TypeScript ABI files are out of date."
echo ""
echo "The committed ABI files don't match the ones generated from the contracts."
echo "Please run the following command to regenerate them:"
echo ""
echo " cd create-chain && make generate-contract-abis"
echo " cd synd-cli && make generate-contract-abis"
echo ""
echo "Then commit the updated files."
echo ""
echo "Files that differ:"
git diff --name-only create-chain/src/abi/synd/
git diff --name-only synd-cli/src/abi/synd/
exit 1
)

Expand Down
121 changes: 121 additions & 0 deletions .github/workflows/publish-synd-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Publish synd-cli Binaries

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: Release tag version (e.g., v1.2.3, v0.10.15-dev.1)
required: true
type: string

permissions:
contents: read

jobs:
build:
name: Build synd-cli executables
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: |
cd synd-cli
bun install --frozen-lockfile

- name: Build Linux x64
run: |
cd synd-cli
bun build --compile --minify --sourcemap --bytecode \
--target=bun-linux-x64 \
./src/cli/index.ts \
--outfile synd-cli-linux-x64

- name: Build Linux ARM64
run: |
cd synd-cli
bun build --compile --minify --sourcemap --bytecode \
--target=bun-linux-arm64 \
./src/cli/index.ts \
--outfile synd-cli-linux-arm64

- name: Build macOS x64
run: |
cd synd-cli
bun build --compile --minify --sourcemap --bytecode \
--target=bun-darwin-x64 \
./src/cli/index.ts \
--outfile synd-cli-darwin-x64

- name: Build macOS ARM64
run: |
cd synd-cli
bun build --compile --minify --sourcemap --bytecode \
--target=bun-darwin-arm64 \
./src/cli/index.ts \
--outfile synd-cli-darwin-arm64

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: synd-cli-binaries
path: |
synd-cli/synd-cli-linux-x64
synd-cli/synd-cli-linux-arm64
synd-cli/synd-cli-darwin-x64
synd-cli/synd-cli-darwin-arm64
retention-days: 1

publish-release:
name: Attach binaries to GitHub release
permissions:
contents: write
needs: build
runs-on: ubuntu-latest
env:
TAG_NAME: ${{ github.event.release.tag_name || inputs.tag_name }}
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: synd-cli-binaries

- name: Rename artifacts with version
run: |
mv synd-cli/synd-cli-linux-x64 synd-cli-linux-x64-${{ env.TAG_NAME }}
mv synd-cli/synd-cli-linux-arm64 synd-cli-linux-arm64-${{ env.TAG_NAME }}
mv synd-cli/synd-cli-darwin-x64 synd-cli-darwin-x64-${{ env.TAG_NAME }}
mv synd-cli/synd-cli-darwin-arm64 synd-cli-darwin-arm64-${{ env.TAG_NAME }}

- name: Attach binaries to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
files: |
synd-cli-linux-x64-${{ env.TAG_NAME }}
synd-cli-linux-arm64-${{ env.TAG_NAME }}
synd-cli-darwin-x64-${{ env.TAG_NAME }}
synd-cli-darwin-arm64-${{ env.TAG_NAME }}

notify-failure:
name: Notify on failure
permissions: {}
if: always() && (needs.build.result == 'failure' || needs.publish-release.result == 'failure')
needs: [build, publish-release]
runs-on: ubuntu-latest
steps:
- name: Notify Slack on Failure
uses: rtCamp/action-slack-notify@v2
with:
status: failure
webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
color: danger
message: ":x: `${{github.workflow}}` failed. View failure information here: <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>"
title: "*${{github.workflow}}* failed"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Typecheck create-chain
name: Typecheck synd-cli
permissions:
contents: read

Expand All @@ -16,11 +16,11 @@ concurrency:
jobs:
typecheck:
if: github.event.pull_request.draft == false
name: create-chain Typecheck
name: synd-cli Typecheck
runs-on: ubuntu-latest
defaults:
run:
working-directory: "create-chain"
working-directory: "synd-cli"
steps:
- uses: actions/checkout@v4

Expand Down
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ run.sh

.ignore

create-chain/*.config.json
!create-chain/*.config.json.example
create-chain/node_modules
create-chain/*.tsbuildinfo
synd-cli/options/*
!synd-cli/options/examples
synd-cli/node_modules
synd-cli/*.tsbuildinfo
synd-cli/src/dev
synd-cli/appchains
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ repos:
language: system
types: [cargo]
pass_filenames: false
- id: synd-cli-biome-check
name: synd-cli check
entry: bash -c 'cd synd-cli && npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched'
language: system
types: [text]
files: "^synd-cli/.*\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
pass_filenames: false
109 changes: 0 additions & 109 deletions create-chain/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions create-chain/e2e.config.json.example

This file was deleted.

15 changes: 0 additions & 15 deletions create-chain/foundation.config.json.example

This file was deleted.

Loading
Loading