Skip to content

Add testnet sandbox for BSC Testnet#1

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/create-testnet-sandbox
Draft

Add testnet sandbox for BSC Testnet#1
Copilot wants to merge 2 commits into
mainfrom
copilot/create-testnet-sandbox

Conversation

Copilot AI commented Mar 15, 2026

Copy link
Copy Markdown

No testnet configuration existed, making it impossible to run the auction bots against a test network without manually wiring up all contract addresses and RPC endpoints.

Changes

  • .env.testnet.example — new template pre-filled with BSC Testnet RPC/WebSocket endpoints and all Helio Finance testnet contract addresses (VAT, HAY, INTERACTION, DOG, CHAINLINK_AGGREGATOR, SPOT, both token clips/ilks). Only PRIVATE_KEY needs to be supplied.

  • package.json — two new scripts using cross-env DOTENV_CONFIG_PATH=.env.testnet to point dotenv at the testnet config:

    yarn startAuctionBot:testnet
    yarn buyFromAuctionBot:testnet
    

    cross-env added as a devDependency for Windows compatibility.

  • .gitignore.env.testnet excluded alongside .env.

  • README.md — Testnet Sandbox section added with setup steps.

Original prompt

create testnet sandbox

Created from VS Code.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.


Summary by cubic

Adds a BSC Testnet sandbox to run the auction bots with isolated config. Includes .env.testnet.example with Helio testnet addresses, startAuctionBot:testnet and buyFromAuctionBot:testnet scripts using cross-env, README setup steps, and ignores .env.testnet.

Written for commit 37c09eb. Summary will update on new commits.

Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com>
Copilot AI changed the title [WIP] Add testnet sandbox environment Add testnet sandbox for BSC Testnet Mar 15, 2026
Copilot AI requested a review from Deejae69 March 15, 2026 22:38

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 5 files

Confidence score: 3/5

  • There is a concrete user-facing setup break: .env.testnet.example contains a non-resolvable testnet API URL, so startAuctionBot:testnet will fail out of the box.
  • This is why the score is moderate risk rather than high confidence—the top issue is medium severity (6/10) with high confidence, and it impacts first-run behavior directly.
  • README.md also has a low-severity documentation mismatch that can prompt users to overwrite a default they expect to work, adding avoidable setup friction.
  • Pay close attention to .env.testnet.example, README.md - align the API default and setup instructions so testnet startup works consistently.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="README.md">

<violation number="1" location="README.md:30">
P3: This setup note is misleading: `.env.testnet.example` already points `API` at the testnet service, so telling users they "need to" update it adds an unnecessary step and can cause them to replace a working default.</violation>
</file>

<file name=".env.testnet.example">

<violation number="1" location=".env.testnet.example:14">
P2: The prefilled testnet API URL is not resolvable, so the documented sandbox config breaks `startAuctionBot:testnet` out of the box.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread .env.testnet.example
PRIVATE_KEY="YOUR_PRIVATE_KEY"

# Helio Finance testnet API endpoint (required – provides liquidation candidate data)
API="https://api-testnet.helio.money"

@cubic-dev-ai cubic-dev-ai Bot Mar 15, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The prefilled testnet API URL is not resolvable, so the documented sandbox config breaks startAuctionBot:testnet out of the box.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .env.testnet.example, line 14:

<comment>The prefilled testnet API URL is not resolvable, so the documented sandbox config breaks `startAuctionBot:testnet` out of the box.</comment>

<file context>
@@ -0,0 +1,36 @@
+PRIVATE_KEY="YOUR_PRIVATE_KEY"
+
+# Helio Finance testnet API endpoint (required – provides liquidation candidate data)
+API="https://api-testnet.helio.money"
+
+# Smart contract addresses (BSC Testnet)
</file context>
Fix with Cubic

Comment thread README.md
yarn buyFromAuctionBot:testnet
```

The `.env.testnet.example` file already contains the BSC Testnet contract addresses for the Helio Finance protocol. You only need to provide your own `PRIVATE_KEY` and update the `API` endpoint to point at the testnet liquidation data service.

@cubic-dev-ai cubic-dev-ai Bot Mar 15, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This setup note is misleading: .env.testnet.example already points API at the testnet service, so telling users they "need to" update it adds an unnecessary step and can cause them to replace a working default.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 30:

<comment>This setup note is misleading: `.env.testnet.example` already points `API` at the testnet service, so telling users they "need to" update it adds an unnecessary step and can cause them to replace a working default.</comment>

<file context>
@@ -6,3 +6,25 @@
+   yarn buyFromAuctionBot:testnet
+   ```
+
+The `.env.testnet.example` file already contains the BSC Testnet contract addresses for the Helio Finance protocol. You only need to provide your own `PRIVATE_KEY` and update the `API` endpoint to point at the testnet liquidation data service.
</file context>
Suggested change
The `.env.testnet.example` file already contains the BSC Testnet contract addresses for the Helio Finance protocol. You only need to provide your own `PRIVATE_KEY` and update the `API` endpoint to point at the testnet liquidation data service.
The `.env.testnet.example` file already contains the BSC Testnet contract addresses and testnet `API` endpoint for the Helio Finance protocol. You only need to provide your own `PRIVATE_KEY`.
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants