Completed clean root directory structure: - Root now contains only: .git, .env, docs/, orig/ - Moved all remaining files and directories to orig/: - Config files (.claude, .dockerignore, .drone.yml, etc.) - All .env variants (except active .env) - Git config (.gitconfig, .github, .gitignore, etc.) - Tool configs (.golangci.yml, .revive.toml, etc.) - Documentation (*.md files, @prompts) - Build files (Dockerfiles, Makefile, go.mod, go.sum) - Docker compose files - All source directories (scripts, tests, tools, etc.) - Runtime directories (logs, monitoring, reports) - Dependency files (node_modules, lib, cache) - Special files (--delete) - Removed empty runtime directories (bin/, data/) V2 structure is now clean: - docs/planning/ - V2 planning documents - orig/ - Complete V1 codebase preserved - .env - Active environment config (not in git) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
1.1 KiB
Go
33 lines
1.1 KiB
Go
package mocks
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
// TestMockDEXInteraction tests mock DEX interaction creation
|
|
func TestMockDEXInteraction(t *testing.T) {
|
|
dexInteraction := CreateMockDEXInteraction()
|
|
|
|
assert.Equal(t, "UniswapV3", dexInteraction.Protocol)
|
|
assert.Equal(t, common.HexToAddress("0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640"), dexInteraction.Pool)
|
|
assert.Equal(t, common.HexToAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"), dexInteraction.TokenIn)
|
|
assert.Equal(t, common.HexToAddress("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"), dexInteraction.TokenOut)
|
|
assert.NotNil(t, dexInteraction.AmountIn)
|
|
assert.NotNil(t, dexInteraction.AmountOut)
|
|
}
|
|
|
|
// TestMockTransaction tests mock transaction creation
|
|
func TestMockTransaction(t *testing.T) {
|
|
to := common.HexToAddress("0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640")
|
|
data := []byte("test_data")
|
|
|
|
tx := CreateMockTransaction(to, data)
|
|
|
|
assert.Equal(t, to, *tx.To())
|
|
assert.Equal(t, data, tx.Data())
|
|
assert.Equal(t, uint64(1), tx.Nonce())
|
|
}
|