Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9ed97aa
review of master branch, please use develop moving forward.
rsoury Jul 7, 2025
c5a1097
Refactor broker config and update dependencies
xlassix Jul 9, 2025
cd5b8e0
Add build:ts script and remove homepage field
xlassix Jul 9, 2025
71fda9e
Refactor to use cexBroker package and client
xlassix Jul 9, 2025
99b7474
Add cexBroker proto files for service implementation
xlassix Jul 9, 2025
99a8057
Rename client.ts to client.dev.ts
xlassix Jul 9, 2025
e284b51
Add server shutdown in stop method
xlassix Jul 10, 2025
7364e19
Add CLI and enhance broker configuration handling
xlassix Jul 10, 2025
ead6b95
Refactor import and method formatting
xlassix Jul 10, 2025
491f874
Merge pull request #4 from usherlabs/v0-lib
rsoury Jul 11, 2025
5603404
Remove broker.ts and update types.ts mapping
xlassix Jul 11, 2025
b897245
Add postinstall script to package.json
xlassix Jul 11, 2025
f53f9ff
Refactor tests and remove console.log debug line
xlassix Jul 11, 2025
24da97d
Refactor paths to src directory
xlassix Jul 11, 2025
366e431
Add CLI and client files for CEXBroker service
xlassix Jul 11, 2025
9be1e65
Refactor CEX service with unified CCXT actions
xlassix Jul 11, 2025
a98dbbf
Add dotenv for env vars & improve API key handling
xlassix Jul 11, 2025
97bee80
Add tslog for structured logging
xlassix Jul 11, 2025
2b575d9
Refactor JSON includes and format code
xlassix Jul 11, 2025
3326492
Remove proto files and update .gitignore
xlassix Jul 12, 2025
03000bf
Add exchange API keys and refactor README.md
xlassix Jul 13, 2025
cc3848f
Refactor import statements in index.test.ts
xlassix Jul 13, 2025
ebfcc57
Add orderType in order creation logic
xlassix Jul 13, 2025
773f2c5
Update .gitignore to exclude all proto files
xlassix Jul 13, 2025
1cf9361
Remove PORT_NUM from .env.sample file
xlassix Jul 13, 2025
b485436
Add subscription feature to CexService
xlassix Jul 13, 2025
7748d46
Add balance subscription and logging improvements
xlassix Jul 14, 2025
46afd55
Remove unused policy loading and broker run
xlassix Jul 14, 2025
780d63e
Add Verity Prover URL and secondary keys support
xlassix Jul 20, 2025
2fdde36
Enhance README with streaming and ZK proof details
xlassix Jul 20, 2025
61e038b
Add tests for CEXBroker, gRPC server, start command
xlassix Jul 20, 2025
2844d8f
Rename package to @usherlabs/cex-broker
xlassix Jul 20, 2025
4390e06
Fix spacing issues in server.ts file
xlassix Jul 20, 2025
4251ded
prevent nodejs imports on lint
rsoury Jul 24, 2025
5c7fd0a
adjust the gh actions to publish on release and use lints
rsoury Jul 24, 2025
939620c
minor adjust readme
rsoury Jul 24, 2025
8ceba9d
Merge pull request #5 from usherlabs/v0-lib
rsoury Jul 24, 2025
b639534
Refactor type checks and remove mock exchange
xlassix Jul 28, 2025
b8a2381
Fix spacing issues in index.ts and index.test.ts
xlassix Jul 28, 2025
7bdc525
Add IP authentication to server requests
xlassix Jul 28, 2025
4064229
Refactor IP auth logic into separate function
xlassix Jul 28, 2025
d9b7621
fix the biome json file to cover all ts files
rsoury Jul 28, 2025
dd782e5
Refactor broker creation and selection logic
xlassix Jul 28, 2025
725aba1
Format code and improve readability
xlassix Jul 28, 2025
61e940d
Refactor function formatting for readability
xlassix Jul 28, 2025
5561d60
Refactor error handling and remove unused imports
xlassix Jul 28, 2025
93eeeb7
remove useTemplates from biome
rsoury Jul 28, 2025
da7c87b
Merge pull request #6 from usherlabs/v0-lib
rsoury Jul 28, 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
7 changes: 7 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

# Required for CLI and Optional for the Broker Library

CEX_BROKER_BYBIT_API_KEY=***********************
CEX_BROKER_BINANCE_API_KEY=****************************************
CEX_BROKER_BYBIT_API_SECRET=***********************************************
CEX_BROKER_BINANCE_API_SECRET=************************************************************
12 changes: 9 additions & 3 deletions .github/workflows/bun-ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# .github/workflows/bun-ci.yml
# .github/workflows/ci.yml

name: Bun CI
name: CI

on:
push:
Expand All @@ -24,5 +24,11 @@ jobs:
- name: Install dependencies
run: bun install

- name: Run Biome lint
run: bunx @biomejs/biome lint .

- name: Run Biome format check
run: bunx @biomejs/biome format --write=false .

- name: Run tests
run: bun test
run: bun test
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# .github/workflows/publish.yml

name: Publish

on:
push:
tags:
- "v*"

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Run tests
run: bun test

- name: Run Biome lint
run: bunx @biomejs/biome lint .

- name: Run Biome format check
run: bunx @biomejs/biome format --write=false .

- name: Build project
run: bun run build

- name: Publish to npm
run: bun publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Finder (MacOS) folder config
.DS_Store
build
build
proto/**
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright © 2024 Usher Labs Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading