From 00ce6198b02ecb38e2affa1e6c71d93a9e3cbc36 Mon Sep 17 00:00:00 2001 From: Aminah Burch Date: Wed, 29 Mar 2023 20:54:42 +0300 Subject: [PATCH] feat(platforms): adds coinbase config, types, provider --- platforms/src/index.ts | 3 +++ platforms/src/platforms-config.ts | 7 +++++++ platforms/src/types.ts | 6 ++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/platforms/src/index.ts b/platforms/src/index.ts index 2a45ac12a2..85f600ee36 100644 --- a/platforms/src/index.ts +++ b/platforms/src/index.ts @@ -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, @@ -48,6 +49,7 @@ export { Facebook, Ens, Twitter, + Coinbase, }; // Initiate providers - new Providers should be registered in this array... @@ -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"; diff --git a/platforms/src/platforms-config.ts b/platforms/src/platforms-config.ts index fe0a1880fa..2311fceeea 100644 --- a/platforms/src/platforms-config.ts +++ b/platforms/src/platforms-config.ts @@ -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", + }, ]; diff --git a/platforms/src/types.ts b/platforms/src/types.ts index a1ba56a683..d280a144e7 100644 --- a/platforms/src/types.ts +++ b/platforms/src/types.ts @@ -103,7 +103,8 @@ export type PLATFORM_ID = | "NFT" | "ZkSync" | "Lens" - | "GnosisSafe"; + | "GnosisSafe" + | "Coinbase"; export type PROVIDER_ID = | "Signer" @@ -167,4 +168,5 @@ export type PROVIDER_ID = | "NFT" | "ZkSync" | "Lens" - | "GnosisSafe"; + | "GnosisSafe" + | "Coinbase";