Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
is-high-risk-environment: true
- name: Update `package.json` `homepage` field
run: |
sed -i 's/"homepage": ".*"/"homepage": "https:\/\/metamask.github.io\/test-dapp-tron\/${{ inputs.destination_dir }}"/' package.json
sed -i 's/"homepage": ".*"/"homepage": "https:\/\/metamask.github.io\/test-dapp-stellar\/${{ inputs.destination_dir }}"/' package.json
# Command for Linux (macOS and Windows use different `sed` syntax)
sed -i "s|base: '.*'|base: '/test-dapp-tron/${{ inputs.destination_dir }}'|" vite.config.ts
sed -i "s|base: '.*'|base: '/test-dapp-stellar/${{ inputs.destination_dir }}'|" vite.config.ts
- name: Run build script
run: yarn build
- name: Deploy to `${{ inputs.destination_dir }}` directory of `gh-pages` branch
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Replace remaining legacy chain references with Stellar project details.

## [0.1.0]

### Added
Expand Down
41 changes: 20 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MetaMask Test Dapp Multichain for Tron
# MetaMask Test Dapp Multichain for Stellar

A test dapp for the MetaMask Multichain API on Tron.
A test dapp for the MetaMask Multichain API on Stellar.

## Prerequisites

Expand All @@ -13,33 +13,31 @@ A test dapp for the MetaMask Multichain API on Tron.

```bash
git clone <repository-url>
cd test-dapp-tron
cd test-dapp-stellar
yarn install
```

### 2. Configure Environment Variables (Optional)

For basic testing, you can use the public TronGrid API (rate limited). For production use or higher rate limits, get an API key from [TronGrid](https://www.trongrid.io/).
### 2. Configure Environment Variables

Copy the example environment file:

```bash
cp .env.example .env
```

If you have a TRON PRO API key, edit the `.env` file:
Edit the `.env` file:

```env
# TRON PRO API Key (optional)
# Get your API key from: https://www.trongrid.io/
VITE_TRON_PRO_API_KEY=your-tron-pro-api-key-here
# Default recipient address for testing transactions (Optional)
# If not provided, uses a default Stellar test address
VITE_DEFAULT_RECIPIENT=

# Default recipient address for testing (optional)
# If not provided, uses a default test address
VITE_DEFAULT_RECIPIENT=your-custom-test-address
# WalletConnect Project ID (Required for WalletConnect connector)
# Get your project ID from: https://cloud.reown.com/
VITE_WALLETCONNECT_PROJECT_ID=
```

**Note**: If no API key is provided, the application will use the public API which has rate limits but works for basic testing.
**Note**: `VITE_WALLETCONNECT_PROJECT_ID` is only required when testing the WalletConnect connector.

### 3. Development

Expand All @@ -61,17 +59,18 @@ yarn build

Once the development server is running, you can:

1. Connect your Tron wallet (TronLink, MetaMask, etc.)
1. Connect a Stellar wallet (MetaMask, Freighter, LOBSTR, WalletConnect, etc.)
2. Test message signing functionality
3. Test TRX transfers
4. Test USDT TRC-20 transfers
3. Test USDC transfers
4. Test Stellar transaction XDR signing
5. Test Soroban auth entry signing

## Configuration

The application supports multiple Tron networks:
The application supports multiple Stellar networks:

- **Mainnet**: Production network
- **Shasta**: Testnet for development
- **Nile**: Alternative testnet
- **Public Network (Mainnet)**: Production network
- **Testnet**: Test network for development
- **Futurenet**: Future protocol testing network

Network configuration and contract addresses are managed in `src/config.ts`.
Loading