Closed esteblock closed 1 month ago
yarn build is failing:
[12:41:17.974] Running build in Washington, D.C., USA (East) – iad1
[12:41:18.089] Cloning github.com/soroswap/info (Branch: feature/FetchZephyrProgramAddresses, Commit: 33bc088)
[12:41:18.317] Cloning completed: 225.277ms
[12:41:24.204] Restored build cache from previous deployment (3gNWpZMUZdRHTLJyrCa5MhJETpb4)
[12:41:24.278] Running "vercel build"
[12:41:25.134] Vercel CLI 37.1.2
[12:41:26.041] Installing dependencies...
[12:41:26.434] yarn install v1.22.19
[12:41:26.505] [1/4] Resolving packages...
[12:41:26.703] success Already up-to-date.
[12:41:26.713] Done in 0.28s.
[12:41:26.725] Detected Next.js version: 14.0.4
[12:41:26.728] Running "yarn run build"
[12:41:26.932] yarn run v1.22.19
[12:41:26.970] $ next build
[12:41:27.854] Linting and checking validity of types ...
[12:41:32.030] Failed to compile.
[12:41:32.030]
[12:41:32.030] ./src/zephyr/helpers.ts:101:11
[12:41:32.031] Type error: Property 'rsv_ch' does not exist on type 'ZephyrTables'.
[12:41:32.031]
[12:41:32.031] [0m [90m 99 |[39m [36mexport[39m [36mconst[39m getMercuryRsvCh [33m=[39m [36masync[39m (network[33m:[39m [33mNetwork[39m) [33m=>[39m {[0m
[12:41:32.031] [0m [90m 100 |[39m [36mconst[39m mercuryInstance [33m=[39m getMercuryInstance(network)[33m;[39m[0m
[12:41:32.031] [0m[31m[1m>[22m[39m[90m 101 |[39m [36mconst[39m { rsv_ch } [33m=[39m [36mawait[39m fetchZephyrTables({ network })[33m;[39m[0m
[12:41:32.031] [0m [90m |[39m [31m[1m^[22m[39m[0m
[12:41:32.031] [0m [90m 102 |[39m [36mconst[39m response [33m=[39m [36mawait[39m mercuryInstance[33m.[39mgetCustomQuery({[0m
[12:41:32.031] [0m [90m 103 |[39m request[33m:[39m [33mGET_ALL_RSV_CH[39m(rsv_ch)[33m,[39m[0m
[12:41:32.031] [0m [90m 104 |[39m })[33m;[39m[0m
[12:41:32.075] error Command failed with exit code 1.
[12:41:32.076] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[12:41:32.330] Error: Command "yarn run build" exited with 1
[12:41:33.212]
Currently addresses are hadcoded in
src/zephyr/tables.rs
Desired Bring addresses, indexed for network from the
/zephyr-programs
. Dont hardcode Zephyr program addresses.