diff --git a/Dockerfile b/Dockerfile index 9f1d9fc..ef7ee3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,14 +33,14 @@ COPY --from=deps /app/node_modules /app/node_modules COPY . . # Set build-time variables -ARG NEXT_PUBLIC_NETHERMINED_API_KEY +ARG NEXT_PUBLIC_NETHERMIND_API_KEY ARG NEXT_PUBLIC_DEFAULT_CHAIN ENV NEXT_TELEMETRY_DISABLED 1 ENV NODE_ENV=production # Pass build arguments to environment for build time -ENV NEXT_PUBLIC_NETHERMINED_API_KEY=${NEXT_PUBLIC_NETHERMINED_API_KEY} +ENV NEXT_PUBLIC_NETHERMIND_API_KEY=${NEXT_PUBLIC_NETHERMIND_API_KEY} ENV NEXT_PUBLIC_DEFAULT_CHAIN=${NEXT_PUBLIC_DEFAULT_CHAIN} RUN npm run build @@ -54,7 +54,7 @@ ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED 1 # Runtime public variables -ENV NEXT_PUBLIC_NETHERMINED_API_KEY=${NEXT_PUBLIC_NETHERMINED_API_KEY} +ENV NEXT_PUBLIC_NETHERMIND_API_KEY=${NEXT_PUBLIC_NETHERMIND_API_KEY} ENV NEXT_PUBLIC_DEFAULT_CHAIN=${NEXT_PUBLIC_DEFAULT_CHAIN} COPY --from=production-deps /app/node_modules /app/node_modules diff --git a/README.md b/README.md index 32c5b64..796e2bb 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ npm run dev ``` ## Environment Variables -NEXT_PUBLIC_NETHERMINED_API_KEY=my-key +NEXT_PUBLIC_NETHERMIND_API_KEY=my-key NEXT_PUBLIC_DEFAULT_CHAIN=mainnet|sepolia ## Configuration diff --git a/actions/certificates/certificates-helper.ts b/actions/certificates/certificates-helper.ts index 733203d..4ce4ee3 100644 --- a/actions/certificates/certificates-helper.ts +++ b/actions/certificates/certificates-helper.ts @@ -136,7 +136,7 @@ export function formatTimestamp(timestamp: bigint): string { const minutes = String(date.getMinutes()).padStart(2, '0'); const seconds = String(date.getSeconds()).padStart(2, '0'); - return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds} UTC`; } export async function addTablePages( @@ -173,10 +173,10 @@ export async function addTablePages( // Column definitions with adjusted widths to include timestamp const columns = [ - { header: 'Date', key: 'timestamp', width: pxToPt(200) }, - { header: 'Vintage', key: 'vintage', width: pxToPt(100) }, - { header: 'Amount', key: 'amount', width: pxToPt(150) }, - { header: 'Filled', key: 'filled', width: pxToPt(150) }, + { header: 'Date', key: 'timestamp', width: pxToPt(220) }, + { header: 'Vintage', key: 'vintage', width: pxToPt(120) }, + { header: 'Amount locked', key: 'amount', width: pxToPt(200) }, + { header: 'Amount retired', key: 'filled', width: pxToPt(200) }, { header: 'Transaction Hash', key: 'tx_hash', width: pxToPt(500) }, ]; diff --git a/components/project/VintagesQuery.tsx b/components/project/VintagesQuery.tsx index 251250e..44dadda 100644 --- a/components/project/VintagesQuery.tsx +++ b/components/project/VintagesQuery.tsx @@ -43,9 +43,13 @@ export default function VintagesQuery({ project }: VintagesQueryProps) { }); useEffect(() => { - if (!offsettorData) return; + if (!offsettorData) { + setFilteredOffsettorData([]); + return; + } + setFilteredOffsettorData((offsettorData as OffsetData[]).filter((data) => data.project_address === num.toBigInt(project.project))); - }, [offsettorData]); + }, [offsettorData, project]); useEffect(() => { if (!isConnected) { @@ -109,7 +113,7 @@ export default function VintagesQuery({ project }: VintagesQueryProps) {