From d189e9f4ef17c7a0e6225ed74f9a04b938e986fd Mon Sep 17 00:00:00 2001 From: Munyay <103850533+joe10832@users.noreply.github.com> Date: Fri, 3 Oct 2025 13:02:19 +0000 Subject: [PATCH] Checkpoint from VS Code for coding agent session --- CONTRIBUTING.md | 17 +++++++++++++++++ GEMINI.md | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b54898d..37a8b79 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,17 +13,20 @@ Thank you for your interest in contributing to Onchain Test Kit! This document p ### Getting Started 1. **Fork and clone the repository** + ```bash git clone cd onchaintestkit ``` 2. **Install dependencies** + ```bash npm install ``` 3. **Verify the setup** + ```bash npm run build npm run lint @@ -35,6 +38,7 @@ Thank you for your interest in contributing to Onchain Test Kit! This document p ### Code Changes 1. **Create a feature branch** + ```bash git checkout -b feature/your-feature-name ``` @@ -46,6 +50,7 @@ Thank you for your interest in contributing to Onchain Test Kit! This document p - Update documentation as needed 3. **Validate your changes** + ```bash npm run lint # Check code style npm run build # Ensure it compiles @@ -53,6 +58,7 @@ Thank you for your interest in contributing to Onchain Test Kit! This document p ``` 4. **Commit your changes** + ```bash git add . git commit -m "feat: add new wallet action support" @@ -61,6 +67,7 @@ Thank you for your interest in contributing to Onchain Test Kit! This document p ### Testing #### Running Tests + ```bash npm run test # Run all tests npm run test -- --grep="MetaMask" # Run specific tests @@ -103,6 +110,7 @@ Use conventional commit format: - `chore:` for maintenance tasks Examples: + ``` feat: add Phantom wallet support for Solana fix: handle MetaMask connection timeout @@ -115,16 +123,19 @@ test: add integration tests for token approval flow ### Before Submitting 1. **Ensure all tests pass** + ```bash npm run test ``` 2. **Verify linting passes** + ```bash npm run lint ``` 3. **Build successfully** + ```bash npm run build ``` @@ -162,6 +173,7 @@ test: add integration tests for token approval flow ### Adding New Wallet Support 1. **Create wallet directory** + ``` src/wallets/NewWallet/ ├── index.ts # Main wallet implementation @@ -180,6 +192,7 @@ test: add integration tests for token approval flow - Add validation logic 4. **Add CLI preparation script** + ```bash src/cli/prepare-newwallet.sh src/cli/prepare-newwallet.mjs @@ -188,6 +201,7 @@ test: add integration tests for token approval flow ### Adding New Actions 1. **Define action types** + ```typescript type NewAction = 'newActionType'; type WalletActions = ExistingActions | NewAction; @@ -238,6 +252,7 @@ test: add integration tests for token approval flow ## Testing Guidelines ### Test Organization + ``` tests/ ├── config/ # Configuration testing @@ -249,6 +264,7 @@ tests/ ### Test Patterns #### Configuration Tests + ```typescript import { configure } from '../src/configBuilder'; @@ -263,6 +279,7 @@ test('should configure MetaMask with seed phrase', () => { ``` #### Integration Tests + ```typescript import { createOnchainTest } from '../src'; diff --git a/GEMINI.md b/GEMINI.md index af0033f..c4009f0 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -1,4 +1,4 @@ -# Gemini AI Instructions for Onchain Test Kit +9# Gemini AI Instructions for Onchain Test Kit This document provides specific setup instructions and guidelines for Gemini when working on the Onchain Test Kit project. For general project context, also refer to AGENTS.md and .github/copilot-instructions.md.