This repository provides the base configuration for building a wallet package powered by Dynamic Global Wallet, supporting both EVM and Solana ecosystems.
Follow these steps to set up your wallet package:
-
Clone the Repository
git clone <repository-url> cd <repository-folder>
-
Install Dependencies
npm install
-
Configure Your Wallet Package
Update the following fields to customize your wallet package:
wallet-package-name
: Your wallet package’s name.wallet-description
: A brief description of your wallet.wallet-author
: The author’s name or organization.
wallet-name
: Display name of the wallet.wallet-icon
: URL or base64 encoded image of your wallet’s icon.wallet-url
: URL of your wallet’s configured domain in the Dynamic dashboard.environment-id
: Environment ID of your project in the Dynamic dashboard.
Once completed, your wallet package is configured and ready for testing and publishing.
After configuring your wallet package, test it locally using a Wallet SDK of your choice. This example demonstrates testing with the create-dynamic-app
package:
-
Build Your Wallet Package
npm run build
-
Pack Your Wallet Package
npm pack
This will create a
.tgz
file in your directory. -
Create a New Project In a separate directory, initialize a new project:
npx create-dynamic-app@latest
Select ReactJS or NextJS as your project type.
-
Install Your Wallet Package
npm install /path/to/your-wallet-package-1.0.0.tgz
-
Import Your Wallet
-
For EVM Wallet:
import "<wallet-package-name>/eip6963";
-
For Solana Wallet:
import "<wallet-package-name>/solana-standard";
-
-
Use Your Wallet Your wallet is now ready to use within the project.
When your wallet package is ready for distribution, follow these steps:
-
Update Package Version
npm version patch # for bug fixes # or npm version minor # for new features # or npm version major # for breaking changes
-
Build Your Wallet Package
npm run build
-
Publish Your Wallet Package
npm publish
Ensure your package meets the npm publishing guidelines before publishing.
For more details or support, refer to the documentation or contact the Dynamic Global Wallet team.