• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

protofire / safe-client-gateway / 32120289086
89%
staging: 89%

Build:
Build:
LAST BUILD BRANCH: production
DEFAULT BRANCH: staging
Ran 18 Aug 2026 09:36AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
  cancel
32120289086

push

github

web-flow
feat: add gas price proxy endpoint (#2902)

* feat: add gas price proxy endpoint

- Add GET /v1/chains/:chainId/gas-price endpoint
- Proxy gas price oracle requests through CGW
- Add caching with configurable TTL (default 10s)
- Support ETHERSCAN_API_KEY injection for rate limiting

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: return raw Etherscan API response format

Changes the gas price endpoint to return the raw oracle (Etherscan) API
response format instead of wrapping it with gasParameter and gweiFactor.

This allows the config-service to point directly to the CGW endpoint
without requiring any frontend code changes. The frontend will receive
the same Etherscan format it expects, and gasParameter/gweiFactor remain
in the config-service where they belong.

Response format matches Etherscan Gas Oracle API:
{
  "status": "1",
  "message": "OK",
  "result": {
    "LastBlock": "...",
    "SafeGasPrice": "...",
    "ProposeGasPrice": "...",
    "FastGasPrice": "...",
    "suggestBaseFee": "...",
    "gasUsedRatio": "..."
  }
}

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>

* test: use /v2 API and gas price oracle builder

- Update tests to use Etherscan v2 API URLs (/v2/api)
- Replace hardcoded oracle configs with gasPriceOracleBuilder
- Matches real Etherscan API format more accurately

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>

* refactor: simplify gas price endpoint to direct Etherscan proxy

Remove chain config dependency - endpoint now directly proxies to
Etherscan based on chainId without fetching chain configuration.

Changes:
- Remove chainsRepository.getChain() call
- Build Etherscan URL directly from chainId
- Simpler implementation: just proxy, no config lookup
- Updated tests to reflect direct proxy behavior

This makes the endpoint a pure passthrough to Etherscan v2 API.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>

* refactor: proper sep... (continued)
Source Files on build 32120289086
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #32120289086
  • 521c508a on github
  • Prev Build on development (#32120091559)
  • Next Build on development (#32123153477)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc