Skip to content

Commit

Permalink
Merge pull request #300 from near/SQAC-152/deprecated-wallets
Browse files Browse the repository at this point in the history
feat: Add `deprecated` Flag for Wallets
  • Loading branch information
lewis-sqa authored May 24, 2022
2 parents 80b6e4c + 0efac84 commit 9afac6f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/docs/api/wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ There are four wallet types:

**Description**

Returns meta information about the wallet such as `name`, `description` and `iconUrl` but can include wallet-specific properties such as `downloadUrl` for injected wallets.
Returns meta information about the wallet such as `name`, `description`, `iconUrl` and `deprecated` but can include wallet-specific properties such as `downloadUrl` for injected wallets.

**Example**

Expand Down
1 change: 1 addition & 0 deletions packages/core/docs/guides/custom-wallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export function setupMyWallet({
name: "My Wallet",
description: null,
iconUrl,
deprecated: false,
},
init: MyWallet,
};
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/lib/wallet/wallet.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface BaseWalletMetadata {
name: string;
description: string | null;
iconUrl: string;
deprecated: boolean;
}

export interface Account {
Expand Down
1 change: 1 addition & 0 deletions packages/ledger/src/lib/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export function setupLedger({
name: "Ledger",
description: null,
iconUrl,
deprecated: false,
},
init: Ledger,
};
Expand Down
1 change: 1 addition & 0 deletions packages/math-wallet/src/lib/math-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export const setupMathWallet = ({
iconUrl,
downloadUrl:
"https://chrome.google.com/webstore/detail/math-wallet/afbcbjpbpfadlkmhmclhkeeodmamcflc",
deprecated: false,
},
init: MathWallet,
};
Expand Down
1 change: 1 addition & 0 deletions packages/near-wallet/src/lib/near-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export function setupNearWallet({
name: "NEAR Wallet",
description: null,
iconUrl,
deprecated: true,
},
init: (options) => {
return NearWallet({
Expand Down
1 change: 1 addition & 0 deletions packages/sender/src/lib/sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export function setupSender({
iconUrl,
downloadUrl:
"https://chrome.google.com/webstore/detail/sender-wallet/epapihdplajcdnnkdeiahlgigofloibg",
deprecated: false,
},
init: Sender,
};
Expand Down
1 change: 1 addition & 0 deletions packages/wallet-connect/src/lib/wallet-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export function setupWalletConnect({
name: "WalletConnect",
description: null,
iconUrl,
deprecated: false,
},
init: (options) => {
return WalletConnect({
Expand Down

0 comments on commit 9afac6f

Please sign in to comment.