Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename to Temper #21

Merged
merged 3 commits into from
Oct 5, 2023
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Contributing to transaction-simulator
## Contributing to Temper

We welcome all contributions! We just ask a few small things.

Expand Down
44 changes: 22 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[package]
name = "transaction-simulator"
name = "enso-temper"
version = "0.1.0"
edition = "2021"
authors = ["Enso Finance"]
license = "MIT"
description = "Temper is an Ethereum Transaction Simulator"
homepage = "https://github.com/EnsoFinance/temper"
repository = "https://github.com/EnsoFinance/temper"

[dependencies]
# http
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN cargo build --release
FROM centos:8

# Copy the binary from the build stage to the current directory in the new stage
COPY --from=build /app/target/release/transaction-simulator /transaction-simulator
COPY --from=build /app/target/release/temper/temper
EXPOSE 80
CMD ["./transaction-simulator"]
CMD ["./temper"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Enso Transaction 🧐 Simulator 🧐
# Temper

A simple API which simulates a given transaction request.
**Temper is an Ethereum Transaction Simulator. It provides a super simple HTTP API which simulates a given transaction request against a local EVM.**

[![test](https://github.com/EnsoFinance/transaction-simulator/actions/workflows/test.yaml/badge.svg)](https://github.com/EnsoFinance/transaction-simulator/actions/workflows/test.yaml)
[![test](https://github.com/EnsoFinance/temper/actions/workflows/test.yaml/badge.svg)](https://github.com/EnsoFinance/temper/actions/workflows/test.yaml)

![cover](cover.jpg)

Expand Down
Binary file modified cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{env, sync::Arc};

use dashmap::DashMap;

use transaction_simulator::{
use enso_temper::{
config::config, errors::handle_rejection, simulate_routes, SharedSimulationState,
};
use warp::Filter;
Expand Down
4 changes: 2 additions & 2 deletions tests/api.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::{fs::File, sync::Arc};

use dashmap::DashMap;
use ethers::types::U256;
use transaction_simulator::{
use enso_temper::{
config::config,
errors::{handle_rejection, ErrorMessage},
simulate_routes,
Expand All @@ -12,6 +11,7 @@ use transaction_simulator::{
},
SharedSimulationState,
};
use ethers::types::U256;
use warp::Filter;

fn filter() -> impl Filter<Extract = (impl warp::Reply,), Error = std::convert::Infallible> + Clone
Expand Down
Loading