Skip to content

End-to-end testing for the INTMAX network using TypeScript and Rust, covering integration, performance, and reliability checks to ensure smooth interaction between dApps and the network.

License

Notifications You must be signed in to change notification settings

InternetMaximalism/intmax2-e2e

intmax2-e2e

End-to-end testing for the INTMAX network using TypeScript and Rust, covering integration, performance, and reliability checks to ensure smooth interaction between dApps and the network, including wallet operations, token transfers, balance queries, and cross-chain interactions.

Setup

Before running any service, make sure to:

# Install dependencies
yarn

# Copy environment variables
cp .env.example .env

# Build shared packages
yarn build:shared

Development

Start the processor or job service in development mode:

# activity
yarn workspace activity dev

# deposit
yarn workspace deposit dev

# withdraw
yarn workspace withdraw dev

# transfer
yarn workspace transfer dev

Testing

The project uses Vitest for testing. Run tests with the following commands:

# Run all tests
yarn test

# Run tests in watch mode
yarn test --watch

# Run tests with coverage report
yarn coverage

Deployment

Deployments are automated via Cloud Build when changes are pushed or merged into specific branches.

Branch Environment
dev Development
stage Staging(Testnet)
main Production(Mainnet)

Docker

Build and run the project in a Docker container:

docker build -f docker/Dockerfile -t intmax2-e2e .
docker run --rm -p 3000:3000 --env-file .env intmax2-e2e workspace activity start

Config

See the documentation for details on available environment variables and how to configure endpoints. This configuration allows you to integrate INTMAX2 blockchain data into your applications.

About

End-to-end testing for the INTMAX network using TypeScript and Rust, covering integration, performance, and reliability checks to ensure smooth interaction between dApps and the network.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published