Skip to content

Commit

Permalink
Merge branch 'SQC-540/add-signin-multi' into SQC-540/add-signin-multi…
Browse files Browse the repository at this point in the history
…-breaking-change
  • Loading branch information
kujtimprenkuSQA committed Feb 6, 2024
2 parents 9448d81 + 45da765 commit 6c1e65c
Show file tree
Hide file tree
Showing 211 changed files with 4,992 additions and 3,462 deletions.
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug---defect---problem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Bug / Defect / Problem
about: Find a problem? Something not working? Please fill out as much info as possible.
title: "[Defect] "
labels: bug, Emerging Tech, Near BOS
assignees: ''

---

**Describe the bug**

<!-- A clear and concise description of what the bug is. -->

**Steps To Reproduce**å

_Steps to reproduce the behavior:_

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'

_Error description_

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

**Screenshots**

<!-- _If applicable, add screenshots or videos to help explain your problem._ -->

**Desktop**: <!-- please complete the following information -->
* OS <!-- e.g. iOS -->:
* Browser <!-- e.g. chrome, safari -->:
* Browser Version <!-- e.g. 22 -->:

**Smartphone**: <!-- please complete the following information -->
* Device <!-- e.g. iPhone6 -->:
* OS <1-- e.g. iOS8.1 -->:
* Browser <!-- e.g. stock browser, safari -->:
* Browser Version <!-- e.g. 22 -->:

**Additional Context**

<!-- Add any other context about the problem here. -->
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/epic-template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Epic Template
about: Epics are milestones or groups of alike issues
title: "[Epic] "
title: "\U0001F537 [Epic] "
labels: Emerging Tech, Epic, Near BOS
assignees: ''

Expand Down
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ updates:
- dependency-name: "@jscutlery/semver"
- dependency-name: "@ledgerhq/hw*"
- dependency-name: "@meteorwallet/sdk"
- dependency-name: "@nightlylabs/connect-near"
- dependency-name: "@walletconnect/qrcode-modal"
- dependency-name: "@walletconnect/sign-client"
- dependency-name: "better-sqlite3"
Expand All @@ -30,9 +29,7 @@ updates:
- dependency-name: "@types/bn.js"
- dependency-name: "@types/gh-pages"
- dependency-name: "@types/qrcode"
- dependency-name: "@types/uuid"
- dependency-name: "@types/w3c-web-hid"
- dependency-name: "@types/w3c-web-usb"
- dependency-name: "@walletconnect/types"
- dependency-name: "gh-pages"
- dependency-name: "uuid"
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ categories:
- 'perf'
- 'test'
- 'build'

exclude-labels:
- 'skip-changelog'

template: |
## Changelog
$CHANGES
1 change: 1 addition & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions:
actions: write
issues: write
pull-requests: write
contents: write

jobs:
release:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
.nx

# System Files
.DS_Store
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"eslint.format.enable": true,
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint":
true
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
17 changes: 10 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,16 @@ Since `main` is the default branch of this project in case of regular release it
Criteria for Including New Wallets for Wallet Selector
# Wallet Product Criteria:

A wallet project must have comply the following product criteria to listed on Wallet Selector.

1. Non-custodial: The user controls their fund.
2. Conformity to Wallet Standards: The wallet product conforms to NEAR NEP wallet standards. (Injected Wallet https://github.com/near/NEPs/pull/408 and Bridged Wallet https://github.com/near/NEPs/pull/368)
3. Ease of use: The wallet product provides a usable interface for the end users. Please provide a user guide.
4. Ability to recover accounts: The wallet product allows users to be able to recover accounts.
5. Actively maintained: The wallet is actively maintained by a team and can provide user support.
A wallet project must implement and comply with the following product criteria to be listed on the Wallet Selector:

1. Custody of account must be fully disclosed. In the case of 3rd party identity services, the wallet's onboarding information must include the use of custodial identity services.
2. Encryption passwords per session are allowed. You must inform the user that a) the password prompt is to encrypt local data and b) that the password expires at the end of the session.
3. Conformity to Wallet Standards: The wallet product conforms to NEAR NEP wallet standards;
* Injected Wallet Standards - https://github.com/near/NEPs/pull/408
* Bridged Wallet Standards - https://github.com/near/NEPs/pull/368
5. Ease of use: The wallet product provides a usable interface for the end users. Please provide a user guide.
6. Ability to recover accounts: The wallet product allows users to be able to recover accounts.
7. Actively maintained: The wallet is actively maintained by a team and can provide user support.

# Wallet Security Criteria:

Expand Down
55 changes: 25 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem:

- [NEAR Wallet](https://www.npmjs.com/package/@near-wallet-selector/near-wallet) - Browser wallet.
- [My NEAR Wallet](https://www.npmjs.com/package/@near-wallet-selector/my-near-wallet) - Browser wallet.
- [Mintbase Wallet](https://www.npmjs.com/package/@near-wallet-selector/mintbase-wallet) - Browser wallet.
- [Ledger](https://www.npmjs.com/package/@near-wallet-selector/ledger) - Hardware wallet.
- [Sender](https://www.npmjs.com/package/@near-wallet-selector/sender) - Injected wallet.
- [Math Wallet](https://www.npmjs.com/package/@near-wallet-selector/math-wallet) - Injected wallet.
- [Nightly](https://www.npmjs.com/package/@near-wallet-selector/nightly) - Injected wallet.
Expand All @@ -14,13 +15,12 @@ NEAR Wallet Selector makes it easy for users to interact with your dApp by provi
- [Coin98 Wallet](https://www.npmjs.com/package/@near-wallet-selector/coin98-wallet) - Injected wallet.
- [Neth](https://www.npmjs.com/package/@near-wallet-selector/neth) - Injected wallet.
- [XDEFI Wallet](https://www.npmjs.com/package/@near-wallet-selector/xdefi) - Injected wallet.
- [Ledger](https://www.npmjs.com/package/@near-wallet-selector/ledger) - Hardware wallet.
- [WalletConnect](https://www.npmjs.com/package/@near-wallet-selector/wallet-connect) - Bridge wallet.
- [Nightly Connect](https://www.npmjs.com/package/@near-wallet-selector/nightly-connect) - Bridge wallet.
- [Ramper Wallet](https://www.npmjs.com/package/@near-wallet-selector/ramper-wallet) - Injected wallet.
- [Bitget Wallet](https://www.npmjs.com/package/@near-wallet-selector/bitget-wallet) - Injected wallet.
- [Here Wallet](https://www.npmjs.com/package/@near-wallet-selector/here-wallet) - Mobile wallet.
- [NearFi Wallet](https://www.npmjs.com/package/@near-wallet-selector/nearfi) - Mobile wallet.
- [Opto Wallet](https://www.npmjs.com/package/@near-wallet-selector/opto-wallet) - Mobile wallet & Browser wallet.
- [Ramper Wallet](https://www.npmjs.com/package/@near-wallet-selector/ramper-wallet) - Browser wallet.
- [Near Mobile Wallet](https://www.npmjs.com/package/@near-wallet-selector/near-mobile-wallet) - Mobile Wallet.
- [WalletConnect](https://www.npmjs.com/package/@near-wallet-selector/wallet-connect) - Bridge wallet.

## Preview

Expand Down Expand Up @@ -53,7 +53,7 @@ Next, you'll need to install the wallets you want to support:
```bash
# Using Yarn
yarn add \
@near-wallet-selector/near-wallet \
@near-wallet-selector/bitget-wallet \
@near-wallet-selector/my-near-wallet \
@near-wallet-selector/sender \
@near-wallet-selector/nearfi \
Expand All @@ -66,17 +66,16 @@ yarn add \
@near-wallet-selector/near-snap \
@near-wallet-selector/ledger \
@near-wallet-selector/wallet-connect \
@near-wallet-selector/nightly-connect \
@near-wallet-selector/default-wallets \
@near-wallet-selector/coin98-wallet \
@near-wallet-selector/opto-wallet \
@near-wallet-selector/neth \
@near-wallet-selector/xdefi \
@near-wallet-selector/ramper-wallet
@near-wallet-selector/ramper-wallet \
@near-wallet-selector/near-mobile-wallet \
@near-wallet-selector/mintbase-wallet

# Using NPM.
npm install \
@near-wallet-selector/near-wallet \
@near-wallet-selector/bitget-wallet \
@near-wallet-selector/my-near-wallet \
@near-wallet-selector/sender \
@near-wallet-selector/nearfi \
Expand All @@ -89,13 +88,12 @@ npm install \
@near-wallet-selector/near-snap \
@near-wallet-selector/ledger \
@near-wallet-selector/wallet-connect \
@near-wallet-selector/nightly-connect \
@near-wallet-selector/default-wallets \
@near-wallet-selector/coin98-wallet \
@near-wallet-selector/opto-wallet \
@near-wallet-selector/neth \
@near-wallet-selector/xdefi \
@near-wallet-selector/ramper-wallet
@near-wallet-selector/ramper-wallet \
@near-wallet-selector/near-mobile-wallet \
@near-wallet-selector/mintbase-wallet
```

Optionally, you can install our [`modal-ui`](https://www.npmjs.com/package/@near-wallet-selector/modal-ui) or [`modal-ui-js`](https://www.npmjs.com/package/@near-wallet-selector/modal-ui-js) package for a pre-built interface that wraps the `core` API and presents the supported wallets:
Expand All @@ -113,7 +111,7 @@ Then in your dApp:
```ts
import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupModal } from "@near-wallet-selector/modal-ui";
import { setupNearWallet } from "@near-wallet-selector/near-wallet";
import { setupBitgetWallet } from "@near-wallet-selector/bitget-wallet";
import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet";
import { setupSender } from "@near-wallet-selector/sender";
import { setupHereWallet } from "@near-wallet-selector/here-wallet";
Expand All @@ -126,18 +124,18 @@ import { setupWelldoneWallet } from "@near-wallet-selector/welldone-wallet";
import { setupNearSnap } from "@near-wallet-selector/near-snap";
import { setupLedger } from "@near-wallet-selector/ledger";
import { setupWalletConnect } from "@near-wallet-selector/wallet-connect";
import { setupNightlyConnect } from "@near-wallet-selector/nightly-connect";
import { setupNearFi } from "@near-wallet-selector/nearfi";
import { setupCoin98Wallet } from "@near-wallet-selector/coin98-wallet";
import { setupOptoWallet } from "@near-wallet-selector/opto-wallet";
import { setupNeth } from "@near-wallet-selector/neth";
import { setupXDEFI } from "@near-wallet-selector/xdefi";
import { setupRamperWallet } from "@near-wallet-selector/ramper-wallet";
import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet";
import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet";

const selector = await setupWalletSelector({
network: "testnet",
modules: [
setupNearWallet(),
setupBitgetWallet(),
setupMyNearWallet(),
setupSender(),
setupHereWallet(),
Expand All @@ -150,7 +148,6 @@ const selector = await setupWalletSelector({
setupLedger(),
setupNearFi(),
setupCoin98Wallet(),
setupOptoWallet(),
setupNeth(),
setupXDEFI(),
setupWalletConnect({
Expand All @@ -162,15 +159,13 @@ const selector = await setupWalletSelector({
icons: ["https://avatars.githubusercontent.com/u/37784886"],
},
}),
setupNightlyConnect({
url: "wss://relay.nightly.app/app",
appMetadata: {
additionalInfo: "",
application: "NEAR Wallet Selector",
description: "Example dApp used by NEAR Wallet Selector",
icon: "https://near.org/wp-content/uploads/2020/09/cropped-favicon-192x192.png",
},
}),
setupNearMobileWallet(),
setupMintbaseWallet({
networkId: "mainnet",
walletUrl: "https://wallet.mintbase.xyz",
callbackUrl: "https://www.mywebsite.com",
deprecated: false,
}),
],
});

Expand Down
24 changes: 24 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Reporting Security Vulnerabilities

NEAR values the independent security research community and believes that responsible disclosure of security vulnerabilities helps us ensure the security and privacy of all our users.

Please do NOT raise a GitHub Issue to report a security vulnerability. If you believe you have found a security vulnerability, please submit a report to [email protected], preferably with a proof of concept.

We ask that you do not use other channels or contact project contributors directly.

Non-vulnerability-related security issues, such as new ideas for security features, are welcome on GitHub Issues.

## Security Updates, Alerts and Bulletins
Security updates will be released on a regular cadence. Security updates are released on the Tuesday closest to the 17th day of January, April, July, and October. A pre-release announcement will be published on the Thursday preceding each release.

## Security-Related Information
We will provide security-related information such as a threat model, considerations for secure use, or any known security issues in our documentation. Please note that labs and sample code are intended to demonstrate a concept and may need to be sufficiently hardened for production use.

## BugBounty Program
NEAR uses HackenProof as a conduit for reporting defects and vulnerabilities as well. To report a vulnerability that you believe you have discovered in the Near or Pagoda platform, please use one of the following programs to report it:
- NEAR Protocol: (https://hackenproof.com/near/near-protocol)
- NEAR Web (Medium): (https://hackenproof.com/near/near-web-medium)j
- NEAR Smart Contract (Medium): (https://hackenproof.com/near/near-smart-contract-medium)
- NEAR Smart Contract (High): (https://hackenproof.com/near/near-smart-contract-high)
- NEAR Smart Contract (Critical): (https://hackenproof.com/near/near-smart-contracts-critical)
- NEAR Foundation Web (Low): (https://hackenproof.com/near/near-foundation-web-low)
Loading

0 comments on commit 6c1e65c

Please sign in to comment.