Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
47b6070
delete filler v1
seunlanlege Mar 4, 2026
ee3e57a
add fx strategy to binary
seunlanlege Mar 4, 2026
6541f02
confirmation policy is encapsulated to strategies
seunlanlege Mar 4, 2026
8fcfc2b
fix tests
seunlanlege Mar 4, 2026
cf7f19d
nit fixes, fx strategy test
royvardhan Mar 5, 2026
4554311
Update packages/sdk/src/protocols/intentsV2/GasEstimator.ts
seunlanlege Mar 6, 2026
1cc2b4e
simplex docker image builds
seunlanlege Mar 6, 2026
cb4ee5e
some nice cosmetics
seunlanlege Mar 6, 2026
7346399
Merge branch 'seun/filler-interface' of github.com:polytope-labs/hype…
seunlanlege Mar 6, 2026
1f4ecc7
tests to prevent silent ci breaks, update simulation
royvardhan Mar 7, 2026
28996ff
more cosmetics
seunlanlege Mar 7, 2026
5288141
Merge branch 'main' of https://github.com/polytope-labs/hyperbridge-s…
ddboy19912 Mar 7, 2026
46f7ecb
bump sdk
seunlanlege Mar 7, 2026
a47c710
bump gas values
royvardhan Mar 7, 2026
258c016
add entrypoint deposit config, more logs
royvardhan Mar 8, 2026
2e6209e
calculate profit based on spreads and fees combined
royvardhan Mar 9, 2026
06f609c
throw error at 0 estimates
royvardhan Mar 9, 2026
7d76ee2
chore: bump sdk
ddboy19912 Mar 9, 2026
3f4e2f4
bump call gas limit more
royvardhan Mar 9, 2026
c3ad36c
simplify entrypoint deposit check
royvardhan Mar 9, 2026
47fda40
handle partial fill edge cases
royvardhan Mar 9, 2026
f1aa7af
dont reject partial fills
royvardhan Mar 9, 2026
265ca5d
retract bids at order filled event
royvardhan Mar 10, 2026
d1d4716
handle race conditions, filter event by filler
royvardhan Mar 10, 2026
46638f7
try to get bids from rpc directly first
royvardhan Mar 10, 2026
7608cb5
retract bids after 1 hour of submission
royvardhan Mar 10, 2026
20d53fb
some fixes
seunlanlege Mar 10, 2026
5fbbc63
misc fixes
royvardhan Mar 10, 2026
8399472
merge
royvardhan Mar 10, 2026
4cc90a9
simplify catching err
royvardhan Mar 10, 2026
ca04266
get signed cancel txn from user
royvardhan Mar 10, 2026
a72b73c
Merge branch 'seun/filler-interface' of github.com:polytope-labs/hype…
seunlanlege Mar 10, 2026
055cb32
export intent gateway abi
seunlanlege Mar 10, 2026
dfc2ff7
Merge branch 'main' of github.com:polytope-labs/hyperbridge-sdk into …
Wizdave97 Mar 11, 2026
27bdfbc
jsdoc & interface cleanups
seunlanlege Mar 11, 2026
0a3b6d4
pad addresses to bytes32
seunlanlege Mar 11, 2026
c1e5035
dedupe functions
seunlanlege Mar 11, 2026
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
9 changes: 7 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# These packages are not needed for the simplex build and have their own lockfiles
packages/core/
packages/indexer/

# Version Control
.git/
.github/
Expand All @@ -16,8 +20,10 @@
**/coverage/

# We need node_modules and dist for building
# Don't exclude: node_modules/, **/node_modules/, **/dist/
# Don't exclude: **/dist/

node_modules/
**/node_modules/
# Environment
.env
.env.*
Expand All @@ -36,7 +42,6 @@
.npm
.yarn/
.yarnrc.yml
.npmrc

# Docker
**/Dockerfile
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/filler-docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Publish @hyperbridge/filler"
name: "Publish @hyperbridge/simplex"

on:
push:
tags:
- "filler-v[0-9]+.[0-9]+.[0-9]+"
- "simplex-v[0-9]+.[0-9]+.[0-9]+"

concurrency:
group: release-${{ github.ref }}
Expand All @@ -25,20 +25,20 @@ jobs:
registry-url: "https://registry.npmjs.org"

- name: Install pnpm
run: npm install -g pnpm@9.15.0
run: npm install -g pnpm@10.30.3

- name: Extract version from tag
id: get-version
run: echo "VERSION=${GITHUB_REF#refs/tags/filler-v}" >> $GITHUB_ENV
run: echo "VERSION=${GITHUB_REF#refs/tags/simplex-v}" >> $GITHUB_ENV

- name: Install dependencies
run: pnpm install

- name: Build SDK (dependency for filler)
- name: Build SDK (dependency for simplex)
run: cd packages/sdk && pnpm build

- name: Build Filler
run: cd packages/filler && pnpm build
- name: Build Simplex
run: cd packages/simplex && pnpm build

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -53,11 +53,11 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ./packages/filler/scripts/Dockerfile
file: ./packages/simplex/scripts/Dockerfile
push: true
tags: |
polytopelabs/hyperbridge-filler:v${{ env.VERSION }}
polytopelabs/hyperbridge-filler:latest
polytopelabs/hyperbridge-simplex:v${{ env.VERSION }}
polytopelabs/hyperbridge-simplex:latest
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
14 changes: 7 additions & 7 deletions .github/workflows/test-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ on:
paths:
- "packages/sdk/**"
- "packages/indexer/**"
- "packages/filler/**"
- "packages/simplex/**"
- ".github/workflows/test-sdk.yml"
pull_request:
branches: [main]
paths:
- "packages/sdk/**"
- "packages/indexer/**"
- "packages/filler/**"
- "packages/simplex/**"
- ".github/workflows/test-sdk.yml"
workflow_dispatch:

Expand Down Expand Up @@ -116,8 +116,8 @@ jobs:
- name: Run SDK test - intents-coprocessor
run: pnpm --filter="@hyperbridge/sdk" test:intents-coprocessor

- name: Run filler-v2 test - filler
run: pnpm --filter="@hyperbridge/filler-v2" test:filler
- name: Run simplex test
run: pnpm --filter="@hyperbridge/simplex" test:filler

- name: Run SDK test - concurrent (non-sequential tests)
run: pnpm --filter="@hyperbridge/sdk" test:concurrent
Expand All @@ -131,11 +131,11 @@ jobs:
- name: Run SDK test - intent-gateway
run: pnpm --filter="@hyperbridge/sdk" test:intent-gateway

# - name: Run filler-v2 test - cctp
# run: cd packages/filler-v2 && pnpm vitest --watch=false --maxConcurrency=1 src/tests/rebalancers/cctp.test.ts
# - name: Run filler test - cctp
# run: cd packages/filler && pnpm vitest --watch=false --maxConcurrency=1 src/tests/rebalancers/cctp.test.ts

# - name: Run Intent Filler tests
# run: pnpm --filter="filler" test
# run: pnpm --filter="simplex" test

- name: Clean up
if: always()
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ packages/indexer/docker/testnet/
packages/indexer/docker/mainnet/
.claude/

packages/filler/src/config/chain.ts
packages/filler/src/filler-config.toml
packages/simplex/src/filler-config.toml
packages/simplex/src/simplex-config.toml
packages/simplex/.simplex-data


# Compiled Java class files
*.class

Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
hoist=true
shared-workspace-lockfile=false
shared-workspace-lockfile=true
27 changes: 10 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
![CI](https://github.com/polytope-labs/hyperbridge-sdk/actions/workflows/test-sdk.yml/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Hyperbridge SDK is a comprehensive solution for cross-chain message indexing and retrieval. This monorepo contains two main packages:

- **@hyperbridge/indexer**: A SubQuery-based indexer for tracking cross-chain messages
- **@hyperbridge/sdk**: A JavaScript/TypeScript SDK for interacting with the indexed data
Hyperbridge SDK is a monorepo containing packages for building on Hyperbridge — a cross-chain interoperability protocol. It includes a Solidity SDK, a JavaScript/TypeScript SDK, a cross-chain message indexer, and the Intent Gateway filler.

## Packages

| Package | Description |
| ------------------------------------------ | ------------------------------------------------------------------ |
| [@hyperbridge/indexer](./packages/indexer) | The indexer service that processes and stores cross-chain messages |
| [@hyperbridge/sdk](./packages/sdk) | SDK for developers to query and monitor cross-chain messages |
| Package | Description |
| --- | --- |
| [@hyperbridge/core](./packages/core) | Solidity SDK for dispatching and receiving cross-chain messages |
| [@hyperbridge/sdk](./packages/sdk) | JavaScript/TypeScript SDK for querying and monitoring cross-chain messages |
| [@hyperbridge/subql-indexer](./packages/indexer) | SubQuery-based indexer for tracking cross-chain messages |
| [@hyperbridge/simplex](./packages/simplex) | Simplex — automated market maker for cross-chain intents |

## Getting Started

Expand All @@ -25,14 +24,9 @@ Hyperbridge SDK is a comprehensive solution for cross-chain message indexing and
### Installation

```bash
# Clone the repository
git clone https://github.com/polytope-labs/hyperbridge-sdk.git
cd hyperbridge-sdk

# Install dependencies
pnpm install

# Build all packages
pnpm build
```

Expand All @@ -55,17 +49,16 @@ Create a changeset when making changes:

```bash
pnpm changeset
```

Commit your changes along with the changeset:

```bash
git add .
git commit -m "feat: your feature description"
git push
```

## License
This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.

## Acknowledgments
- [SubQuery](https://subquery.network) - The indexing framework
- [Polkadot](https://polkadot.com) - The interoperability protocol
This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details.
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packages/*"
],
"scripts": {
"build": "pnpm --filter=\"@hyperbridge/sdk\" build && pnpm --filter=\"@hyperbridge/indexer\" build && pnpm --filter=\"@hyperbridge/filler\" build && pnpm --filter=\"@hyperbridge/filler-v2\" build",
"build": "pnpm --filter=\"@hyperbridge/sdk\" build && pnpm --filter=\"@hyperbridge/indexer\" build && pnpm --filter=\"@hyperbridge/simplex\" build",
"test": "pnpm --filter=\"*\" test",
"lint": "pnpm --filter=\"*\" lint",
"format": "pnpm --filter=\"*\" format",
Expand Down Expand Up @@ -56,14 +56,8 @@
"eslint --fix"
]
},
"overrides": {
"chalk": "5.3.0",
"strip-ansi": "7.1.0",
"color-convert": "2.0.1",
"color-name": "1.1.4",
"is-core-module": "2.13.1",
"error-ex": "1.3.2",
"has-ansi": "5.0.1"
"pnpm": {
"onlyBuiltDependencies": ["better-sqlite3", "bufferutil", "utf-8-validate", "esbuild"]
},
"engines": {
"node": ">=22",
Expand Down
57 changes: 0 additions & 57 deletions packages/filler-v2/scripts/Dockerfile

This file was deleted.

43 changes: 0 additions & 43 deletions packages/filler-v2/scripts/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions packages/filler-v2/scripts/docker-compose.yml

This file was deleted.

Loading
Loading