mcp-name: io.github.Bristlecone2026/bristlecone-logic
Bristlecone Logic LLC — M2M Base USDC Sweeper Bot
System Overview
Automated, offline-verified, institutional-grade M2M sweeper daemon for Bristlecone Logic LLC running on Base L2 (chain_id: 8453). The daemon monitors native Base USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), verifies native ETH gas reserves, constructs EIP-1559 contract call payloads, and routes signatures through AWS KMS HSM (us-west-2).
Architecture & File Structure
-
/opt/bristlecone/bristlecone-logic/.envEnvironment variables containingAWS_KMS_KEY_ID,AWS_REGION, andSWEEP_DESTINATION_ADDRESS. -
/opt/bristlecone/bristlecone-logic/kms_signer.pyOffline EIP-1559 transaction constructor and AWS KMS signing engine. Handles DER ASN.1 signature parsing, Low-S canonicalization (EIP-2), and SECP256K1 public key recovery byte ($v$) calculation. -
/opt/bristlecone/bristlecone-logic/sweeper_daemon.pyMain polling loop. Queries Base RPC endpoints, checks USDC balance (0x70a08231), monitors ETH gas reserves, encodes ERC-20transfer()data payloads (0xa9059cbb), and executes dry-run or live transaction broadcasts. -
/etc/systemd/system/bristlecone-sweeper.serviceLinux background service unit managing the daemon process with automatic restart logic (Restart=always,RestartSec=10) and logging.
Core Operational Parameters
| Key | Value | Description |
|---|---|---|
| AWS Region | us-west-2 |
KMS HSM physical region |
| Network | Base Mainnet (8453) |
Primary Layer 2 execution environment |
| Target Token | Base USDC (0x8335...2913) |
1:1 USD revenue token |
| Service Status | Active (Running) | Managed by systemd |
| Safety State | DRY_RUN_MODE = True |
Constructs & signs offline; no live network broadcasts |
Post-Travel Production Launch Checklist
- Exchange Onboarding: Complete Coinbase Business setup for Bristlecone Logic LLC and link to Mercury checking account.
- Fund Gas Reservoir: Deposit $3.00–$5.00 of native ETH on Base to operational hot wallet for L2 execution fees.
- Configure Treasury Vault: Update
SWEEP_DESTINATION_ADDRESSin.envwith corporate Coinbase Business deposit address. - Arm Live Mode:
- Set
DRY_RUN_MODE = Falseinsweeper_daemon.py - Restart service:
systemctl restart bristlecone-sweeper - Check live status:
systemctl status bristlecone-sweeper
- Set
Metadata
Release files for bristlecone-logic 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bristlecone_logic-0.3.0.tar.gz | 20.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bristlecone_logic-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.7 kB
Release files / bristlecone_logic-0.3.0.tar.gz
| Download URL | bristlecone_logic-0.3.0.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4ae1eae8af96cfa262d29ef0e7275878c732a1097f100f89400a246c262c3cd
|
|
BLAKE2b-256 checksum How to use checksums |
77a3c8e78d58f4540ae30cb0d4c4347f96a93157cba09e0c131a1205153ffa42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / bristlecone_logic-0.3.0-py3-none-any.whl
| Download URL | bristlecone_logic-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f630f7845242d0e19e31344fa06f5dffcf35e05a631fdb7f97a5b41e17e763c8
|
|
BLAKE2b-256 checksum How to use checksums |
0eb8bfb90749cdd81a93e528d6e6b505b5fa8c90763f8cfa3a6b475a629405bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|