diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d5c2af73..6b195e7a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -55,11 +55,11 @@ Before adding a new wallet, you need to collect some information: | item | description | e.g. | required | | ------------------ | --------------------------------------------------------------------------------------------------- | ----------------------------------- | -------- | -| wallet name | - | Trust Wallet | yes | +| wallet name | - | Trust Wallet | ✔️ | | short name | If display space is insufficient, the short name will be displayed. | Trust | optional | -| wallet logo | logo in svg format. | - | yes | -| download url | - | https://trustwallet.com/download | yes | -| deeplink | After clicking deeplink in the system browser, we can directly open dapp in the app's dapp browser. | trust://open_url?coin_id=60&url=xxx | yes | +| wallet logo | logo in svg format. | - | ✔️ | +| download url | - | https://trustwallet.com/download | ✔️ | +| deeplink | After clicking deeplink in the system browser, we can directly open dapp in the app's dapp browser. | trust://open_url?coin_id=60&url=xxx | ✔️ | | WalletConnect link | If your app supports WalletConnect, please provides the WalletConnect uri. | trust://wc?uri=xxx | optional | Then you can add it to project by following steps: @@ -205,27 +205,29 @@ const config = createConfig( ); ``` -## Notice!!! Tests for adding new wallet +## Notice!!! Test cases for adding a new wallet -Before merging the PR to main branch, we hope you complete the following tests, otherwise the PR may -not be approved and cannot be merged. +Before merging the PR to main branch, we hope you complete the following tests, and fill the test results into the PR template, otherwise the PR may +not be approved. In general, wallet is available at several different platforms, such as PC browser extension, Android, iOS and WalletConnect. If your wallet supports the corresponding platform, please make sure your wallet is worked, can it be connected, can it switch networks, and can it support testnet? + + |test case|steps|support?|connected?|switch networks?|support testnet?| |-|-|-|-|-|-| -|PC, browser extension|
  1. Open dapp in PC browser
  2. Select your wallet, check the functions
    1. |yes|yes|yes|yes| -|Android, in system browser|
      1. Open dapp in Android system browser, select your wallet
      2. The wallet app will be evoked, and the dapp will be open in the wallet dapp browser
      3. Select your wallet, check the functions
      |yes|yes|yes|yes| -|Android, in wallet dapp browser|
      1. Open dapp in the wallet dapp browser
      2. Select your wallet, check the functions
        1. |yes|yes|yes|yes| -|iOS, in system browser|
          1. Open dapp in iOS system browser, select your wallet
          2. The wallet app will be evoked, and the dapp will be open in the wallet dapp browser
          3. Select your wallet, check the functions
          |yes|yes|yes|yes| -|iOS, in wallet dapp browser|
          1. Open dapp in the wallet dapp browser
          2. Select your wallet, check the functions
          |yes|yes|yes|yes| -|WalletConnect, PC|
          1. Scan the QR code of WalletConnect using your wallet app
          2. You will see a popup on the wallet app that asks you to connect WalletConnect
          3. Check the functions
          |yes|yes|yes|yes| -|WalletConnect, Android, in system browser|
          1. Open dapp in Android system browser, select WalletConnect, choose your wallet in WalletConnect wallet list
          2. The wallet app will be evoked, a popup for applying to connect WalletConnect will be displayed.
          3. Check the functions
          |yes|yes|yes|yes| -|WalletConnect, Android, in wallet dapp browser|
          1. Open dapp in the wallet dapp browser
          2. Select WalletConnect, choose your wallet in WalletConnect wallet list
          3. A popup for applying to connect WalletConnect will be displayed
          4. Check the functions
            1. |yes|yes|yes|yes| -|WalletConnect, iOS, in system browser|
              1. Open dapp in iOS system browser, select WalletConnect, choose your wallet in WalletConnect wallet list
              2. The wallet app will be evoked, a popup for applying to connect WalletConnect will be displayed.
              3. Check the functions
              |yes|yes|yes|yes| -|WalletConnect, iOS, in wallet dapp browser|
              1. Open dapp in the wallet dapp browser
              2. Select WalletConnect, choose your wallet in WalletConnect wallet list
              3. A popup for applying to connect WalletConnect will be displayed
              4. Check the functions
                1. |yes|yes|yes|yes| +|PC, browser extension|
                  1. Open dapp in PC browser
                  2. Select your wallet, check the functions
                    1. |✔️|✔️|✔️|✔️| +|Android, in system browser|
                      1. Open dapp in Android system browser, select your wallet
                      2. The wallet app will be evoked, and the dapp will be open in the wallet dapp browser
                      3. Select your wallet, check the functions
                      |✔️|✔️|❌|✔️| +|Android, in wallet dapp browser|
                      1. Open dapp in the wallet dapp browser
                      2. Select your wallet, check the functions
                        1. |✔️|✔️|✔️|✔️| +|iOS, in system browser|
                          1. Open dapp in iOS system browser, select your wallet
                          2. The wallet app will be evoked, and the dapp will be open in the wallet dapp browser
                          3. Select your wallet, check the functions
                          |✔️|✔️|✔️|❌| +|iOS, in wallet dapp browser|
                          1. Open dapp in the wallet dapp browser
                          2. Select your wallet, check the functions
                          |✔️|✔️|✔️|❌| +|WalletConnect, PC|
                          1. Scan the QR code of WalletConnect using your wallet app
                          2. You will see a popup on the wallet app that asks you to connect WalletConnect
                          3. Check the functions
                          |✔️|✔️|✔️|✔️| +|WalletConnect, Android, in system browser|
                          1. Open dapp in Android system browser, select WalletConnect, choose your wallet in WalletConnect wallet list
                          2. The wallet app will be evoked, a popup for applying to connect WalletConnect will be displayed.
                          3. Check the functions
                          |✔️|✔️|✔️|✔️| +|WalletConnect, Android, in wallet dapp browser|
                          1. Open dapp in the wallet dapp browser
                          2. Select WalletConnect, choose your wallet in WalletConnect wallet list
                          3. A popup for applying to connect WalletConnect will be displayed
                          4. Check the functions
                            1. |✔️|✔️|✔️|✔️| +|WalletConnect, iOS, in system browser|
                              1. Open dapp in iOS system browser, select WalletConnect, choose your wallet in WalletConnect wallet list
                              2. The wallet app will be evoked, a popup for applying to connect WalletConnect will be displayed.
                              3. Check the functions
                              |✔️|✔️|✔️|✔️| +|WalletConnect, iOS, in wallet dapp browser|
                              1. Open dapp in the wallet dapp browser
                              2. Select WalletConnect, choose your wallet in WalletConnect wallet list
                              3. A popup for applying to connect WalletConnect will be displayed
                              4. Check the functions
                                1. |✔️|✔️|✔️|✔️| ## Release notes