Zapps Compatible
This guide provides step-by-step instructions on how to make your existing application Zapps compatible. By following these steps, you can ensure that your app can be seamlessly used within both Safe Global ecosystem and Zapps Multisig as well.
Prerequisites
Before you begin, ensure you have the following packages installed in your project:
@safe-global/safe-apps-react-sdk
@safe-global/safe-apps-provider
You can install these packages using npm or yarn:
Step 1: Wrap Your App with Safe Provider
You need to wrap your application with the SafeProvider
component. This ensures that your app can interact with the Safe Global environment.
Make sure to insert this SafeProvider
component at the root of your application component hierarchy.
Step 2: Update manifest.json
To provide essential information about your app, update the manifest.json
file. This information is necessary to display your app correctly.
"name"
: Replace with your app's name."description"
: Provide a concise description of your app's functionality."iconPath"
: Specify the path to your app's icon image.
Step 3: Implement Safe App Provider
To integrate your app as zApps you need to use the SafeAppProvider
from the @safe-global/safe-apps-provider
package.
Step 4: Add Gnosis wallet connector/adapter
We can setup the Gnosis Safe Connector using following method:
For wagmi:
For third web:
If you want to learn more about Safe Global's "safe-apps", it's advisable to visit their official safe global website or documentation portal.
Last updated