Skip to content

maidsafe/project-dave

Repository files navigation

Dave

Dave is a client app for managing your Vault on the Autonomi network.

Features

  • File Uploading: Upload files and folders publicly or privately to Autonomi.
  • Vault Management: Manage your local and network Vault.
  • Web3 Wallet Integration: Secure access and payments via Web3 wallet.

Installation

Download the latest version from the releases page:

  • Windows (.msi installer)
  • macOS (.dmg)
  • Linux (.AppImage or .deb)

Using Dave with Your Wallet

Dave uses Web3 wallets for secure Vault access and upload payments on the Arbitrum One network.

Setting Up Your Wallet

  1. Install a Web3 Wallet: Dave supports mobile wallets through WalletConnect

    • Popular options include MetaMask Mobile, Rainbow, or Trust Wallet
  2. Connect in Dave:

    • Click the wallet button in Dave
    • Scan the QR code with your mobile wallet
    • Approve the connection
  3. Fund Your Wallet: You'll need Autonomi (ANT) tokens on Arbitrum One for uploads

    • For standard payments: ETH + ANT tokens required
    • For gasless payments: Only ANT tokens required (see below)

Basic Usage

Uploading Files

  1. Click the plus (+) button on the Files page
  2. Select files or folders from your computer
  3. Choose upload type:
    • Private: Encrypted files with data map kept locally (can be shared via datamap hex)
    • Public: Encrypted files with data map uploaded publicly for sharing via data address
  4. Sign with your wallet when prompted
  5. Confirm payment if required

Using Gasless Payments (Paymaster)

Dave now supports gasless payments, allowing you to upload data using only ANT tokens without needing ETH for gas fees.

Initial Setup (One-time)
  1. Enable Gasless Payments: When presented with a payment request, ensure "Use Gasless Payments" is enabled before clicking "Pay & Upload"
  2. Create Your Smart Account:
    • A smart account is a smart contract wallet that interacts with the paymaster
    • Select an initial funding amount (recommend funding generously to save on future gas fees)
    • Click "Create Smart Account"
    • Sign the permit in your wallet app (you may see a "deceptive request" warning - click "Review alert" and "I agree")
    • Sign the transaction to complete smart account creation
Making Gasless Uploads

Once your smart account is set up:

  1. Check Smart Account Balance: The system will check if you have sufficient ANT in your smart account
  2. If Funding Needed (a popup will appear):
    • Sign the permit to estimate gas fees
    • Choose a funding amount above the minimum
    • Sign the spending cap request (allows paymaster to use your ANT for gas)
    • Sign the transaction

Tip: You can deposit ANT directly to your smart account to save on gas fees!

  1. Complete the Upload:

    • Once you see "Ready for Gasless Payment", click "Proceed with Payment"
    • Sign the transaction in your wallet app
    • Your upload will process using only ANT tokens!

Developer Setup

For developers who want to run Dave from source:

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/maidsafe/project-dave.git
    cd project-dave
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    cp .env.example .env
  4. Edit .env and configure the required variables:

    # Optional: Skip wallet signing during development
    VITE_DEV_VAULT_SIGNATURE=0x...
    
    # Required if using paymaster functionality
    VITE_PIMLICO_API_KEY=your_pimlico_api_key_here

Running the App

# Development mode (starts both frontend and Tauri backend)
npm run tauri dev

# Frontend only (for UI development)
npm run dev

Building

# Build the complete desktop application
npm run tauri build

# Build only the frontend
npm run generate

Support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5