Skip to content

Commit

Permalink
feat(app,iam): update TrustaLabs info, remove deprecated lerna call (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer authored Aug 17, 2023
1 parent 0330f29 commit 9af9f6b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 18 deletions.
3 changes: 1 addition & 2 deletions iam/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ WORKDIR /usr/src

COPY . .

RUN yarn global add [email protected]
RUN lerna bootstrap --ignore app
RUN yarn

EXPOSE 80 443
CMD [ "node", "iam/dist/iam/src/main.js" ]
12 changes: 0 additions & 12 deletions platforms/src/TrustaLabs/App-Bindings.ts

This file was deleted.

31 changes: 31 additions & 0 deletions platforms/src/TrustaLabs/App-Bindings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { AppContext, ProviderPayload } from "../types";
import { Platform } from "../utils/platform";
import React from "react";

const Link = ({ href, children }: { href: string; children: React.ReactNode }) => (
<a href={href} target="_blank" className="text-color-1 cursor-pointer underline" rel="noreferrer">
{children}
</a>
);

export class TrustaLabsPlatform extends Platform {
platformId = "TrustaLabs";
path = "TrustaLabs";
isEVM = true;

banner = {
content: (
<div>
This uses Trusta&apos;s <Link href="https://www.trustalabs.ai/trustscan">TrustScan</Link> product based on your
activities on Eth Mainnet. You will not be able to claim the stamp if you lack sufficient data or have Sybil
like patterns they have detected. Note, the MEDIA score for zkSync is different from this score. For more
questions please see their{" "}
<Link href="https://trusta-labs.gitbook.io/trustalabs/trustscan/q-and-a-for-sybil-score">Q&A</Link>.
</div>
),
};

async getProviderPayload(_appContext: AppContext): Promise<ProviderPayload> {
return await Promise.resolve({});
}
}
4 changes: 2 additions & 2 deletions platforms/src/TrustaLabs/Providers-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ export const PlatformDetails: PlatformSpec = {
icon: "./assets/trustaLabsStampIcon.svg",
platform: "TrustaLabs",
name: "Trusta Labs",
description: "Connect your existing TrustaLabs Account to verify",
description: "Launch Trusta's TrustScan to verify this account has non-Sybil behavior",
connectMessage: "Connect Account",
};

export const ProviderConfig: PlatformGroupSpec[] = [
{ platformGroup: "Trusta Labs", providers: [{ title: "Sybil Score", name: "TrustaLabs" }] },
{ platformGroup: "Trusta Labs", providers: [{ title: "TrustScan Non-Sybil Account", name: "TrustaLabs" }] },
];

export const providers: Provider[] = [new TrustaLabsProvider()];
4 changes: 2 additions & 2 deletions platforms/src/utils/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export type PlatformOptions = {
};

export type PlatformBanner = {
heading?: string;
content?: string;
heading?: React.ReactNode;
content?: React.ReactNode;
cta?: {
label: string;
url: string;
Expand Down

0 comments on commit 9af9f6b

Please sign in to comment.