feat: explorer API, wallet, CCIP scripts, and config refresh

- Backend REST/gateway/track routes, analytics, Blockscout proxy paths.
- Frontend wallet and liquidity surfaces; MetaMask token list alignment.
- Deployment docs, verification scripts, address inventory updates.

Check: go build ./... under backend/ (pass).
Made-with: Cursor
This commit is contained in:
defiQUG
2026-04-07 23:22:12 -07:00
parent d931be8e19
commit 6eef6b07f6
224 changed files with 19671 additions and 3291 deletions

View File

@@ -1,4 +1,5 @@
import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios'
import { resolveExplorerApiBase } from './api-base'
export interface ApiResponse<T> {
data: T
@@ -21,9 +22,9 @@ export interface ApiError {
}
}
export function createApiClient(baseURL: string = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080', getApiKey?: () => string | null) {
export function createApiClient(baseURL?: string, getApiKey?: () => string | null) {
const client = axios.create({
baseURL,
baseURL: baseURL || resolveExplorerApiBase(),
timeout: 30000,
headers: { 'Content-Type': 'application/json' },
})