Skip to content

edgeandnode/cost-model-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cost Model Comparison

Simple command line utility for fetching cost models & comparing fees

Building

cargo build --release

Executable is placed in ./target/release/cost-models

Usage

Examples use QmeBPZyEeaHyZAiFS2Q7cT3CESS49hhgGuT3E9S8RYoHNm.

  • Fetch cost models

    cost-models fetch \
      --deployment QmeBPZyEeaHyZAiFS2Q7cT3CESS49hhgGuT3E9S8RYoHNm \
      --network-subgraph https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum \
      | tee cost-models-QmeBPZyEeaHyZAiFS2Q7cT3CESS49hhgGuT3E9S8RYoHNm.json
  • Execute cost models

    cost-models fees \
      --cost-models "$(cat cost-models-QmeBPZyEeaHyZAiFS2Q7cT3CESS49hhgGuT3E9S8RYoHNm.json)" \
      --query '{ _meta { block { number } } }'

    output as CSV:

    cost-models fees \
      --cost-models "$(cat cost-models-QmeBPZyEeaHyZAiFS2Q7cT3CESS49hhgGuT3E9S8RYoHNm.json)" \
      --query '{ _meta { block { number } } }' \
      | jq -r 'to_entries | .[] | [.key, .value] | @csv'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages