Skip to content

edgeandnode/amp

Repository files navigation

Amp

The tool for building and managing blockchain datasets.

Installation

The easiest way to install Amp is using ampup, the official version manager and installer:

curl --proto '=https' --tlsv1.2 -sSf https://ampup.sh/install | sh

This will install ampup and the latest version of ampd. You may need to restart your terminal or run source ~/.zshenv (or your shell's equivalent) to update your PATH.

Once installed, you can manage ampd versions:

# Install or update to the latest version
ampup install

# Switch between installed versions
ampup use

For more details and advanced options, see ampup --help.

Installation via Nix

This will be supported once the source repository has been released

For Nix users, ampd is available as a flake:

# Run directly without installing
nix run github:edgeandnode/amp

# Install to your profile
nix profile install github:edgeandnode/amp

# Try it out temporarily
nix shell github:edgeandnode/amp -c ampd --version

You can also add it to your NixOS or home-manager configuration:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    amp = {
      url = "github:edgeandnode/amp";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { nixpkgs, amp, ... }: {
    # NixOS configuration
    nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
      # ...
      environment.systemPackages = [
        amp.packages.${system}.ampd
      ];
    };

    # Or home-manager configuration
    home.packages = [
      amp.packages.${system}.ampd
    ];
  };
}

Note: Nix handles version management, so ampup is not needed for Nix users.

Building from Source (Manual)

This will be supported once the source repository has been released

If you prefer to build manually without using ampup:

cargo build --release -p ampd

The binary will be available at target/release/ampd.

About

The tool for building and managing blockchain datasets

Resources

License

Stars

Watchers

Forks

Packages