Skip to content

Commit

Permalink
Add next project to endpoint (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
luistorres authored May 16, 2024
1 parent 87e49fc commit b7347a9
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/web-app/app/_server/sales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const saleDetails = async (): Promise<
address: evmGrantee.address,
publicKey: evmGranteePublicKey,
project: 'citizend',
description: 'The community-curated token launch platform of web3.',
status: contractResults[0],
rate: contractResults[1],
minTarget: contractResults[2],
Expand Down
1 change: 1 addition & 0 deletions packages/web-app/app/_types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type TProjectSaleDetails = {
address: string;
publicKey: string;
project: string;
description: string;
status: TProjectStatus;
url: string;
logo: string;
Expand Down
32 changes: 31 additions & 1 deletion packages/web-app/app/api/sale/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,35 @@ export async function GET(_request: Request) {
};
});

return Response.json(tempDetails);
const host = process.env.NEXT_PUBLIC_DAPP_HOST;

const extendedWithTBA = [
...tempDetails,
{
address: 'TBA',
publicKey: 'TBA',
project: 'the posemesh (AUKI)',
description:
'The DePIN for AI Perception. The posemesh is a decentralized machine perception network for the next 100 billion people, devices and AI.',
status: 'upcoming',
rate: 'TBA',
minTarget: 'TBA',
maxTarget: 'TBA',
start: 'TBA',
end: 'TBA',
minContribution: 'TBA',
maxContribution: 'TBA',
totalTokensForSale: 'TBA',
startRegistration: 'TBA',
endRegistration: 'TBA',
url: 'TBA',
logo: `${host}/auki-logo.jpg`,
background: `${host}/auki-card-background.jpg`,
backgroundMobile: `${host}/auki-card-background.jpg`,
supplyPercentage: 'TBA',
currentPrice: 'TBA',
},
];

return Response.json(extendedWithTBA);
}
Binary file added packages/web-app/public/auki-card-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/web-app/public/auki-logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b7347a9

Please sign in to comment.