8000 GitHub - candostyavuz/magma: automating spec creation for lava hackathon
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

candostyavuz/magma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MAGMA: A CLI Tool For Automating Spec Creation

Introducing Magma - the simple and robust command-line tool for generating and evaluating Lava specifications. Onboard new chains with ease, for both EVM and Cosmos SDK chains.

Installation

  1. Copy the repo
  2. Export GO path into working directory:
export GOPATH=$(go env GOPATH) 
export GOBIN=$GOPATH/bin 
export PATH="/opt/homebrew/opt/libpq/bin:$GOPATH:$GOBIN:$PATH" 
export DOCKER_DEFAULT_PLATFORM=linux/amd64
  1. Install dependencies:
go install

Usage

For EVM Chains:

Run CLI command with sample input.yaml file:

magma gen-evm-spec input.yaml --chain-name <CHAIN_NAME> --chain-idx <CHAIN_IDX>

For Cosmos Chains:

Run CLI command with a valid Chain node endpoint. The program will automatically: - Fetch supported API methods - Handle spec inheritence (Base Chain imports) - Detect & discard ignored methods

magma gen-cosmos-spec grpc.osmosis.zone:9090 --chain-name Osmosis --chain-idx COS3

Generated spec will be written into output.json file (default)

About

automating spec creation for lava hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0