1.0.2 • Published 2 months ago
@steerprotocol/simulator-companion v1.0.2
@steerprotocol/simulator-companion
A lightweight HTTP server designed to manage Anvil instances for Steer Protocol simulations. This companion service facilitates the creation, management, and cleanup of EVM environments for testing and simulation purposes.
Prerequisites
- Node.js >= 14.0.0
- Anvil installed and available in your PATH
Features
- HTTP server for managing Anvil instances
- RESTful API endpoints for simulation control
- Cross-origin resource sharing (CORS) support
- Easy integration with Steer Protocol simulation tools
Installation
npm install @steerprotocol/simulator-companion
Usage
Start the server:
npm start
This will launch the HTTP server on the default port.
Environment Variables
PORT
- Server port (default: 3000)HOST
- Server host (default: localhost)
API Endpoints
Documentation for available endpoints coming soon.
Dependencies
- Express.js - Web server framework
- CORS - Cross-origin resource sharing middleware
Development
To start the server in development mode:
npm start
Publishing
This package is published to npm under the @steerprotocol organization. To publish a new version:
- Update version:
npm version patch|minor|major
- Publish:
npm publish
Note: You need to be a member of the @steerprotocol organization on npm to publish.
License
ISC
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Related
- Steer Protocol
- Anvil - Ethereum node implementation for testing