Skip to content

Commit

Permalink
feat(platforms): adds coinbase config, types, provider
Browse files Browse the repository at this point in the history
  • Loading branch information
aminah-io committed Mar 29, 2023
1 parent 2cceffe commit 00ce619
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions platforms/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import * as GtcStaking from "./GtcStaking";
import * as Google from "./Google";
import * as ClearText from "./ClearText";
import * as Brightid from "./Brightid";
import * as Coinbase from "./Coinbase";

export {
Brightid,
Expand All @@ -48,6 +49,7 @@ export {
Facebook,
Ens,
Twitter,
Coinbase,
};

// Initiate providers - new Providers should be registered in this array...
Expand Down Expand Up @@ -219,6 +221,7 @@ export const providers = new Providers([
new Lens.LensProfileProvider(),
new ZkSync.ZkSyncProvider(),
new GnosisSafe.GnosisSafeProvider(),
new Coinbase.CoinbaseProvider(),
]);

export { Platform, AppContext, ProviderPayload, PlatformSpec } from "./types";
Expand Down
7 changes: 7 additions & 0 deletions platforms/src/platforms-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,11 @@ export const PLATFORMS: PlatformSpec[] = [
description: "Gnosis Safe Signer/Owner Verification",
connectMessage: "Verify Account",
},
{
icon: "./assets/coinbaseStampIcon.svg",
platform: "Coinbase",
name: "Coinbase",
description: "Connect your existing Coinbase account to verify.",
connectMessage: "Connect Account",
},
];
6 changes: 4 additions & 2 deletions platforms/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export type PLATFORM_ID =
| "NFT"
| "ZkSync"
| "Lens"
| "GnosisSafe";
| "GnosisSafe"
| "Coinbase";

export type PROVIDER_ID =
| "Signer"
Expand Down Expand Up @@ -167,4 +168,5 @@ export type PROVIDER_ID =
| "NFT"
| "ZkSync"
| "Lens"
| "GnosisSafe";
| "GnosisSafe"
| "Coinbase";

0 comments on commit 00ce619

Please sign in to comment.