-
Notifications
You must be signed in to change notification settings - Fork 5
Accept base58 signers + support delegate (API) keys #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
c734de2
docs(spec): base58 signers + delegate support + onboarding design
0xtristan 50f70b4
chore: gitignore docs/superpowers working docs
0xtristan 2b56bb3
feat(bullet): parse signer keys from hex or base58
0xtristan 99e3981
fix(bullet): silence clippy format_collect in key tests; tidy dep order
0xtristan 07af5d4
feat(bullet): accept base58 keys via private_key / BB_BULLET_PRIVATE_KEY
0xtristan a582adb
docs(bullet): update key-precedence doc comments for private_key/base58
0xtristan b1ecad7
feat(bullet): resolve delegate signer to master via delegateOf
0xtristan a70ecb6
fix(bullet): propagate delegateOf body-read errors as BotError
0xtristan 9195a59
feat(bullet): read account data + subscribe via resolved master address
0xtristan d9d0c10
docs: base58 keys, delegate wallets, from-scratch onboarding
0xtristan 3217556
docs(agents): use canonical BB_BULLET_PRIVATE_KEY in setup example
0xtristan 5fde9b1
docs: use canonical BB_BULLET_PRIVATE_KEY in example configs; fix env…
0xtristan 5524e26
fix(review): robust env key resolution, retryable delegateOf 5xx/429,…
0xtristan 9265192
feat(hyperliquid): support API/agent wallets via account_address
0xtristan dd6998b
feat(bullet): log a hint when a signer resolves to its own account
0xtristan 1cd97a6
docs(config): document BB_HYPERLIQUID_ACCOUNT_ADDRESS + network-match…
0xtristan 8432e99
docs(config): clarify network matches the delegate's network (testnet…
0xtristan 375c0e1
feat(hyperliquid): log whether reads use the signer or a master account
0xtristan e5d4f34
fix(bullet): treat delegateOf 400 'is not a delegate' as self
0xtristan 064fbce
feat!: standardize on base58 for Bullet, hex for Hyperliquid
0xtristan 34882df
feat: auto-load .env, unify key resolution, add Hyperliquid key_file
0xtristan cefd022
feat(hyperliquid): read collateral from spot balance for unified acco…
0xtristan e7e7e2c
fix(hyperliquid): round order prices to 5 sig figs; flatten orphaned …
0xtristan b68afa7
feat(cli): flatten closes all configured venues (Bullet + Hyperliquid)
0xtristan f4630e1
fix(hyperliquid): normalize cloid format so own fills are recognized
0xtristan 34f0878
fix(harness): flatten on SIGTERM, not just Ctrl-C
0xtristan 2dcaeeb
fix(review): address bot findings on flatten + funding-arb cleanup
0xtristan 8695a00
fix(review): treat empty BB_*_KEY_FILE as absent in load_config merges
0xtristan 669c47f
fix(keygen): faucet curl needs a browser User-Agent; restructure READ…
0xtristan 3b077da
feat(cli): add 'bb-bot faucet' command + web-faucet fallback
0xtristan 76154b8
test(funding-arb): cover incomplete-entry cleanup (filled leg closed,…
0xtristan 0c15873
chore(deps): bump quinn-proto 0.11.14 → 0.11.15 (RUSTSEC-2026-0185)
0xtristan 369ff5b
fix(review): address remaining bot findings
0xtristan 74a9f58
fix(funding-arb): don't treat a capped partial cleanup as flat
0xtristan 0f03852
fix(review): delegateOf retries; emergency_flatten sizes from live po…
0xtristan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Copy to .env (gitignored) and fill in. Keys are loaded from the environment | ||
| # or a keystore file — never commit them into config/*.toml. | ||
|
|
||
| # --- Bullet --- | ||
| # Delegate (API) signer secret. Accepts base58 (Phantom / delegation export), | ||
| # hex (with or without 0x), or use BB_BULLET_KEY_FILE for a Solana JSON keystore. | ||
| # A delegate can only trade (no deposit/withdraw) and is revocable from the webapp. | ||
| BB_BULLET_PRIVATE_KEY= | ||
|
|
||
| # Alternatively, point at a Solana-compatible JSON keystore (takes precedence): | ||
| # BB_BULLET_KEY_FILE=/path/to/id.json | ||
|
|
||
| # --- Hyperliquid --- | ||
| # API wallet key (secp256k1 hex) created at https://app.hyperliquid.xyz/API. | ||
| BB_HYPERLIQUID_PRIVATE_KEY_HEX= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.