massbit-sol

Crates.iomassbit-sol
lib.rsmassbit-sol
version0.1.3
sourcesrc
created_at2021-11-16 08:46:00.229015
updated_at2021-12-03 04:27:34.732319
descriptionCLI for Massbit Solana Indexer
homepagehttps://www.massbit.io/
repositoryhttps://github.com/massbitprotocol/massbitprotocol
max_upload_size
id482568
size128,074
(anhhuy0501)

documentation

README

RUN chain-reader and index-manager indexer

tmux new -d -s services "make services-dev-up"
tmux new -d -s chain-reader scripts/run-chain-reader.sh
tmux new -d -s indexer-api scripts/run-indexer-api.sh

Install massbit-sol

cargo install massbit-sol

Run CLI for gencode

cargo run --bin massbit-sol  -- gencode -s user-example/solana/instructions/serum/instruction.json -o code-compiler/generated/serum-index -c user-example/solana/instructions/serum/config.json

or

massbit-sol gencode -s user-example/solana/instructions/serum/instruction.json -o code-compiler/generated/serum-index -c user-example/solana/instructions/serum/config.json

Build indexer

cd serum-index
cargo build --release

Deploy indexer

cd ../../../
cargo run --bin massbit-sol  -- deploy -u http://127.0.0.1:3031/indexers/deploy -d ~/Massbit/massbitprotocol/code-compiler/generated/serum-index

or

cd ../../../
massbit-sol deploy -u http://127.0.0.1:3031/indexers/deploy -d ~/Massbit/massbitprotocol/code-compiler/generated/serum-index

Publish new version of massbit-sol to crate.io

(for Massbit developer only)

cd massbit-sol-cli
cargo publish
Commit count: 486

cargo fmt