A library providing helpers for various StarkNet fees related tasks.

Overview

🐺 How Much ? 🦀



GitHub Workflow Status Project license Pull Requests welcome

Table of Contents

About

A library providing helpers for various StarkNet fees related tasks. It can be used as a library or as a CLI.

Getting Started

Prerequisites

Installation

cargo install howmuch-rs

Usage

How much ?

Usage: howmuch-rs <COMMAND>

Commands:
  fees  Fees related subcommands
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information

Estimate fees on network

RUST_LOG=debug howmuch-rs fees estimate-on-network \
--tx-hash=0x073251e7ff3843c4954aa2e7f38d8c29034e34a1ddbaeb1e62605ec10ca22367 \
--source-block-number=21410 \
--destination-block-number=15925

Authors & contributors

For a full list of all authors and contributors, see the contributors page.

Security

StarkNet-HowMuch-rs follows good practices of security, but 100% security cannot be assured. StarkNet-HowMuch-rs is provided "as is" without any warranty. Use at your own risk.

License

This project is licensed under the MIT license.

See LICENSE for more information.

You might also like...
Horus is an open source tool for running forensic and administrative tasks at the kernel level using eBPF, a low-overhead in-kernel virtual machine, and the Rust programming language.
Horus is an open source tool for running forensic and administrative tasks at the kernel level using eBPF, a low-overhead in-kernel virtual machine, and the Rust programming language.

Horus Horus is an open-source tool for running forensic and administrative tasks at the kernel level using eBPF, a low-overhead in-kernel virtual mach

A program that provides LLMs with the ability to complete complex tasks using plugins.

SmartGPT SmartGPT is an experimental program meant to provide LLMs (particularly GPT-3.5 and GPT-4) with the ability to complete complex tasks without

Stall tracking for Python's GIL and Trio tasks

Perpetuo perpetuo, verb: To cause to continue uninterruptedly, to proceed with continually Perpetuo is a stall tracker for Python. Specifically, it ca

A quick-and-dirty attempt to get scoped tasks in Rust.

scoped_tasks_prototype A quick-and-dirty attempt to get scoped tasks in Rust. This library tries to provide an interface similar to scoped threads, ac

Crates.io library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
Crates.io library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.

Crates.io library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.

Curated list of awesome projects and resources related to Rust and computer security

Awesome Rust Security Curated list of awesome projects and resources related to Rust and computer security Table of Contents Tools Web and Cloud Secur

Calculation of Wigner symbols and related constants

Calculation of Wigner symbols and related constants This crate computes Wigner 3j coefficients and Clebsch-Gordan coefficients in pure Rust. The calcu

A server software designed for fetching Minecraft and Minecraft-related metadata

Minecraft Metadata Server A server software designed for fetching Minecraft and Minecraft-related metadata (such as Forge, Fabric, Quilt and Liteloade

Low overhead Rust implementation of time-related concepts

It's Rust time! Low overhead implementation of time-related concepts. Who is time for? For applications where simplicity and low-overhead are more imp

Comments
  • feat: Add `summary` subcommand

    feat: Add `summary` subcommand

    This PR adds a special summary subcommand that will print out a summary of the different Cairo resources used (builtins, steps).

    The user needs to provide one of : tx_hash OR transaction_file. The program will then use this input in order to load a transaction receipt and output a table with the summary of the different resources used, their weights, and the limiting factor (the max of resource[i] * weight[i]).

    The user can override the default weights by using the --steps_weight // --pedersen_weight // --range_check_weight ... options. The user can also override the transaction receipt's resources by following the same logic, this time without the suffix: --steps // --pedersen // --range_check ...

    It would be a nice to storage writes in the future (but it's a bit more complicated).

    opened by pscott 0
  • Add dollar output

    Add dollar output

    Adds the --usd true|false option, which allows the user to get an USD output of his fee estimation.

    the output now looks like this:

    > howmuch-rs fees estimate-on-network --tx-hash=0x073251e7ff3843c4954aa2e7f38d8c29034e34a1ddbaeb1e62605ec10ca22367 \
      --source-block-number=21410 \
      --destination-block-number=15925 \
      --usd true`
    0.000485046227677767 ETH ($0.6158 USD)
    

    Closes #2

    opened by pscott 2
  • feat: Dollars cost estimate

    feat: Dollars cost estimate

    Description

    Estimate the dollars cost of the transaction for estimate-on-network command.

    It should be optional.

    I suggest to add a --dollars-estimate flag to this command, defaulted to false.

    We should get the price of $ETH from a 3rd party oracle.

    enhancement good first issue 
    opened by abdelhamidbakhta 0
Owner
Abdel @ StarkWare
StarkNet Ecosystem Lead . Ξthereum Core Developer . ΞIP-1559 Champion . Bitcoin
Abdel @ StarkWare
Reference implementation of a decentralized exchange for custom instruments, risk, and fees

Dexterity What is Dexterity At a high level, Dexterity is a smart contract (or collection of smart contracts) that allow for the creation of a decentr

Solana Foundation 43 Dec 15, 2022
Rust library that provides helpers for testing resilience of I/O operations.

partial-io Helpers for testing I/O behavior with partial, interrupted and blocking reads and writes. This library provides: PartialRead and PartialWri

null 31 Oct 26, 2022
Blazing fast tool to benchmark Starknet sequencers 🦀

Gomu Gomu no Gatling Blazing fast tool to benchmark Starknet sequencers ?? . Installation From source git clone https://github.com/keep-starknet-stran

Keep StarkNet Strange 7 Jul 7, 2023
A modern high-performance open source file analysis library for automating localization tasks

?? Filecount Filecount is a modern high-performance open source file analysis library for automating localization tasks. It enables you to add file an

Babblebase 4 Nov 11, 2022
argmax is a library that allows Rust applications to avoid Argument list too long errors (E2BIG) by providing a std::process::Command wrapper with a

argmax argmax is a library that allows Rust applications to avoid Argument list too long errors (E2BIG) by providing a std::process::Command wrapper w

David Peter 22 Nov 20, 2022
Rust library crate providing utility functions for diff and patch of slices

This crate provides the Change enum as an abstraction for diff::Result, lcs_diff::DiffResult, and wu_diff::DiffResult; the diff_changes(), diff_diff()

qtfkwk 5 Oct 19, 2022
Pure rust library for reading / writing DNG files providing access to the raw data in a zero-copy friendly way.

DNG-rs   A pure rust library for reading / writing DNG files providing access to the raw data in a zero-copy friendly way. Also containing code for re

apertus° - open source cinema 4 Dec 1, 2022
Specification for a decomp settings file & library for providing settings to tools

Decomp Settings File There are a lot of decompilation tools. Common metadata like the location of the .map file and target file are often needed by th

Ethan Roseman 3 Aug 19, 2024
An feature packed Google Tasks CLI written purely in Rust

rChore A feature packed unofficial Google Tasks CLI to boost your producitvity, written purely in Rust. ?? What is rChore? rChore is an unofficial Goo

Hemanth Krishna 41 Dec 24, 2022
Create tasks and save notes offline from your terminal

Create tasks and save notes offline from your terminal

null 9 Dec 18, 2022