1.0.18 • Published 7 months ago

@msafe/aptos-aip62-wallet v1.0.18

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 months ago

MSafe Wallet

This guide is used to integrate dapp into MSafe.

Installation

Installation of the npm package:

npm install @msafe/aptos-aip62-wallet

Make some change to your code

  • Add MSafeWallet to AptosWalletAdapterProvider
<AptosWalletAdapterProvider plugins={[new MSafeWallet({
    network: Network.TESTNET,
    appId?: "", // If you have already integrate with MSafe (list in MSafe App Store), you can ask MSafe team to provide the AppId
    appUrl?: "" // If you are not integrate with MSafe, you can provide your app url here, this can let wallet kit redirect to correct MSafe url to your dApp
})]}>
  {appContent}
</AptosWalletAdapterProvider>
  • Add auto detect and connect code
import { useWallet } from '@aptos-labs/wallet-adapter-react'
import { inMSafeWallet, MSafeWalletName } from '@msafe/aptos-wallet'

const wallet = useWallet()

useEffect(() => {
  if (!wallet.connected && inMSafeWallet()) {
    wallet.connect(MSafeWalletName)
  }
}, [wallet.isLoading])
  • Deploy above change to your app

Request MSafe team to add your dApp to app store

Please provide below information to MSafe team

  • Name
  • Logo
  • Description
  • Tags (e.g. DeFi)
  • Mainnet Url
  • Mainnet Contracts
  • Testnet Url
  • Testnet Contracts

Once MSafe verify your dApp integration code, MSafe team will notify you the integration is finished. User can using your dApp by multi-sig wallet now.

1.0.18

7 months ago

1.0.17

8 months ago

1.0.16

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago