Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(onboardingurl): adds the onboardingurl #533

Merged
merged 5 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/custodyKeyring/src/MmiConfiguration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const v2custodian = {
iconUrl: "https://saturn-custody-ui.dev.metamask-institutional.io/saturn.svg",
name: "Saturn Custody",
website: "https://saturn-custody-ui.dev.metamask-institutional.io/",
onboardingUrl: "https://saturn-custody-ui.dev.metamask-institutional.io/",
envName: "saturn-dev",
apiUrl: "https://saturn-custody.dev.metamask-institutional.io/eth",
displayName: "Saturn Custody",
Expand Down Expand Up @@ -132,6 +133,7 @@ describe("MmiConfigurationController", () => {
apiUrl: custodian.apiUrl,
iconUrl: custodian.imgSrc,
website: custodian.website,
onboardingUrl: custodian.onboardingUrl,
envName: custodian.envName,
displayName: custodian.displayName,
apiVersion: custodian.apiVersion,
Expand All @@ -148,6 +150,7 @@ describe("MmiConfigurationController", () => {
apiUrl: v2custodian.environments[0].apiBaseUrl,
iconUrl: v2custodian.iconUrl,
website: v2custodian.website,
onboardingUrl: v2custodian.onboardingUrl,
envName: v2custodian.envName,
displayName: v2custodian.displayName,
apiVersion: v2custodian.apiVersion,
Expand Down
2 changes: 2 additions & 0 deletions packages/custodyKeyring/src/MmiConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export class MmiConfigurationController {
.map(custodian => ({
type: custodian.name,
name: custodian.name.toLowerCase(),
onboardingUrl: custodian.onboardingUrl,
website: custodian.website,
envName: custodian.envName,
apiUrl: custodian.apiUrl,
Expand Down Expand Up @@ -106,6 +107,7 @@ export class MmiConfigurationController {
type: environment.apiVersion === "3" ? "ECA3" : "JSONRPC",
iconUrl: custodian.iconUrl,
name: custodian.name,
onboardingUrl: custodian.onboardingUrl,
website: custodian.website,
envName: environment.name,
apiUrl: environment.apiBaseUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class BitgoCustodyKeyring extends CustodyKeyring {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/bitgo-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/bitgo-icon.svg",
website: "https://www.bitgo.com",
onboardingUrl: "https://www.bitgo.com",
envName: "bitgo",
keyringClass: BitgoCustodyKeyring,
production: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class CactusCustodyKeyring extends CustodyKeyring {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/cactus-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/cactus-icon.svg",
website: "https://www.mycactus.com",
onboardingUrl: "https://www.mycactus.com",
envName: "cactus",
keyringClass: CactusCustodyKeyring,
production: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class CurvCustodyKeyring extends CustodyKeyring {
imgSrc: "images/curv-logo-horizontal-black.svg",
icon: "images/curv-logo.svg",
website: "",
onboardingUrl: "",
envName: "",
keyringClass: CurvCustodyKeyring,
production: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class ECA3CustodyKeyring extends CustodyKeyring {
imgSrc: "https://backend.vistan-brillen.de/storage/files/images/marken/changeme/header/changeme-logo-header.jpg",
icon: "https://backend.vistan-brillen.de/storage/files/images/marken/changeme/header/changeme-logo-header.jpg",
website: "https://neptune-custody-ui.metamask-institutional.io/",
onboardingUrl: "https://neptune-custody-ui.metamask-institutional.io/",
envName: "neptune-custody",
keyringClass: ECA3CustodyKeyring,
production: false,
Expand Down
7 changes: 7 additions & 0 deletions packages/custodyKeyring/src/custodianTypes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/qredo-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/qredo-icon.svg",
website: "https://www.qredo.com",
onboardingUrl: "https://www.qredo.com",
envName: "qredo",
keyringClass: QredoCustodyKeyring,
production: true,
Expand All @@ -39,6 +40,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/cactus-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/cactus-icon.svg",
website: "https://www.mycactus.com",
onboardingUrl: "https://www.mycactus.com",
envName: "cactus",
keyringClass: CactusCustodyKeyring,
production: true,
Expand All @@ -62,6 +64,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/bitgo-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/bitgo-icon.svg",
website: "https://www.bitgo.com",
onboardingUrl: "https://www.bitgo.com",
envName: "bitgo",
keyringClass: BitgoCustodyKeyring,
production: true,
Expand Down Expand Up @@ -89,6 +92,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
icon: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
website: "",
onboardingUrl: "",
envName: "",
keyringClass: JupiterCustodyKeyring,
production: true,
Expand All @@ -114,6 +118,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
icon: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
website: "https://saturn-custody-ui.metamask-institutional.io/",
onboardingUrl: "https://saturn-custody-ui.metamask-institutional.io/",
envName: "saturn-prod",
keyringClass: JsonRpcCustodyKeyring,
production: false,
Expand All @@ -130,6 +135,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "https://backend.vistan-brillen.de/storage/files/images/marken/changeme/header/changeme-logo-header.jpg",
icon: "https://backend.vistan-brillen.de/storage/files/images/marken/changeme/header/changeme-logo-header.jpg",
website: "https://neptune-custody-ui.metamask-institutional.io/",
onboardingUrl: "https://neptune-custody-ui.metamask-institutional.io/",
envName: "neptune-custody",
keyringClass: ECA3CustodyKeyring,
production: false,
Expand All @@ -146,6 +152,7 @@ export const CUSTODIAN_TYPES: { [key: string]: ICustodianType } = {
imgSrc: "images/curv-logo-horizontal-black.svg",
icon: "images/curv-logo.svg",
website: "",
onboardingUrl: "",
envName: "",
keyringClass: CurvCustodyKeyring,
production: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class JsonRpcCustodyKeyring extends CustodyKeyring {
imgSrc: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
icon: "https://saturn-custody-ui.metamask-institutional.io/saturn.svg",
website: "https://saturn-custody-ui.metamask-institutional.io/",
onboardingUrl: "https://saturn-custody-ui.metamask-institutional.io/",
envName: "saturn-prod",
keyringClass: JsonRpcCustodyKeyring,
production: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class JupiterCustodyKeyring extends CustodyKeyring {
imgSrc: "images/jupiter.svg",
icon: "images/jupiter.svg",
website: "",
onboardingUrl: "",
envName: "",
keyringClass: JupiterCustodyKeyring,
production: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class QredoCustodyKeyring extends CustodyKeyring {
imgSrc: "https://dashboard.metamask-institutional.io/custodian-icons/qredo-icon.svg",
icon: "https://dashboard.metamask-institutional.io/custodian-icons/qredo-icon.svg",
website: "https://www.qredo.com",
onboardingUrl: "https://www.qredo.com",
envName: "qredo",
keyringClass: QredoCustodyKeyring,
production: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface IJsonRpcCustodian {
displayName: string;
iconUrl: string;
website: string;
onboardingUrl: string;
enabled: boolean;
apiBaseUrl: string;
issuerClaim: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/extension/src/ExtensionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ICustodianUpdate, MetamaskTransaction, MetaMaskTransactionStatuses } fr
// So that we can use metamask's mixpanel templates

const TRANSACTION_EVENTS: { [key in MetaMaskTransactionStatuses]: string } = {
[MetaMaskTransactionStatuses.ADDED]: "Transaction Added",
[MetaMaskTransactionStatuses.APPROVED]: "Transaction Approved",
[MetaMaskTransactionStatuses.SIGNED]: "Transaction Signed",
[MetaMaskTransactionStatuses.REJECTED]: "Transaction Rejected",
Expand All @@ -18,6 +19,7 @@ const TRANSACTION_EVENTS: { [key in MetaMaskTransactionStatuses]: string } = {
[MetaMaskTransactionStatuses.CONFIRMED]: "Transaction Confirmed",
[MetaMaskTransactionStatuses.UNAPPROVED]: "Transaction Unapproved",
[MetaMaskTransactionStatuses.DROPPED]: "Transaction Dropped",
[MetaMaskTransactionStatuses.FINALIZED]: "Transaction Finalized",
};

interface UpdateCustodianTransactionsParameters {
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/ICustodian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface ICustodianType {
imgSrc: string;
icon: string;
website: string;
onboardingUrl: string;
envName: string;
keyringClass: any; // Would like to make this CustodyKeyring but not sure how
production: boolean; // Show in store builds
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/enum/MetaMaskTransactionStatuses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export enum MetaMaskTransactionStatuses {
FAILED = "failed",
DROPPED = "dropped",
CONFIRMED = "confirmed",
ADDED = "added",
FINALIZED = "finalized",
}
Loading