| 1 | import { GcpEnvironment } from "@/GCP/Environment"; |
| 2 | import { MinimumLogLevel } from "effect/References"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | |
| 5 | export const logLevel = Effect.provideService( |
| 6 | MinimumLogLevel, |
| 7 | process.env.DEBUG ? "Debug" : "Info", |
| 8 | ); |
| 9 | |
| 10 | export const currentProject = GcpEnvironment.current.pipe( |
| 11 | Effect.map((env) => env.project), |
| 12 | ); |
| 13 | export const location = "us-central1"; |
| 14 | |
| 15 | export const TEST_RESOURCE_URI = |
| 16 | "https://example.com/alchemy-test@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; |
| 17 | |
| 18 | export const TEST_ATTESTATION = { |
| 19 | serializedPayload: btoa("alchemy-payload"), |
| 20 | signatures: [ |
| 21 | { |
| 22 | publicKeyId: "https://example.com/keys/alchemy", |
| 23 | signature: btoa("alchemy-sig"), |
| 24 | }, |
| 25 | ], |
| 26 | }; |