Skip to content

A Rust-based CustomVM for the Avalanche blockchain network

License

Notifications You must be signed in to change notification settings

integrate-your-mind/landslide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

A rust-based Custom VM for Avalanche Subnets

Curious about how to run Rust-based smart contracts, or just custom VMs for Avalanche blockchain? You're in the right place.

Usage

Build

cargo build

Build and run

In the landslide git root directory:

./scripts/build.sh

The script will provide instructions on how to run landslide in avalanche.

Update protobuf definitions from upstream

./scripts/update-proto.sh

Test with ava-sim

  1. Export path to landslide genesis data file, in the environment variable LANDSLIDE_GENESIS_PATH
  2. Export path to landslide executable in the environment variable LANDSLIDE_BIN_PATH
  3. Clone https://github.com/ava-labs/ava-sim and go in the directory.
  4. In ava-sim root, run:
./scripts/run.sh $LANDSLIDE_BIN_PATH "$LANDSLIDE_GENESIS_PATH"

Interact with it

Once the VM is launched, all Avalanche's TimestampVM instructions work completely drop-in: https://docs.avax.network/build/tutorials/platform/subnets/create-a-virtual-machine-vm

You might also want to read how to create a custom blockchain: https://docs.avax.network/build/tutorials/platform/subnets/create-custom-blockchain

About

A Rust-based CustomVM for the Avalanche blockchain network

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 93.7%
  • Shell 6.3%