Skip to content

dynamic-labs/dynamic-global-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Global Wallet Package

This repository provides the base configuration for building a wallet package powered by Dynamic Global Wallet, supporting both EVM and Solana ecosystems.

Getting Started

Follow these steps to set up your wallet package:

  1. Clone the Repository

    git clone <repository-url>
    cd <repository-folder>
  2. Install Dependencies

    npm install
  3. Configure Your Wallet Package

    Update the following fields to customize your wallet package:

    In package.json

    • wallet-package-name: Your wallet package’s name.
    • wallet-description: A brief description of your wallet.
    • wallet-author: The author’s name or organization.

    In src/lib/config.ts

    • 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.


Testing Your Wallet

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:

  1. Build Your Wallet Package

    npm run build
  2. Pack Your Wallet Package

    npm pack

    This will create a .tgz file in your directory.

  3. 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.

  4. Install Your Wallet Package

    npm install /path/to/your-wallet-package-1.0.0.tgz
  5. Import Your Wallet

    • For EVM Wallet:

      import "<wallet-package-name>/eip6963";
    • For Solana Wallet:

      import "<wallet-package-name>/solana-standard";
  6. Use Your Wallet Your wallet is now ready to use within the project.


Publishing Your Wallet

When your wallet package is ready for distribution, follow these steps:

  1. Update Package Version

    npm version patch  # for bug fixes
    # or
    npm version minor  # for new features
    # or
    npm version major  # for breaking changes
  2. Build Your Wallet Package

    npm run build
  3. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published