Code Monkey home page Code Monkey logo

hp-devkit's Introduction

HotPocket developer kit

This is the source repository of developer kit for HotPocket smart contract development. This toolkit makes use of Docker and NodeJS to provide a cross-platform HotPocket development tool for developers. Using the HotPocket developer kit, developers can spin-up local HotPocket clusters on their development machines and test HotPocket smart contracts.

We use Docker containers to run HotPocket and smart contracts in a Linux environment. We also use Docker containers and NodeJS for tooling so developers can use the tools on any platform as long as they install Docker and NodeJS.

image

Public documentation

https://github.com/EvernodeXRPL/evernode-sdk/blob/main/hpdevkit/index.md

Prerequisites

Docker build

Docker image containing cluster management shell scripts.

cd docker
docker build -t evernode/hpdevkit .
docker push evernode/hpdevkit

Run

docker run -it --rm --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock evernode/hpdevkit cluster create 2

hpdevkit npm build

hpdevkit is a cross-platform CLI tool distributed via NPM.

# local build
cd npm
npm install
npm run build

# publish to npm
npm login
npm run publish

NPM package

https://www.npmjs.com/package/hpdevkit

hp-devkit's People

Contributors

ravinsp avatar chalith avatar kithminisg avatar udith-gayan avatar du1ana avatar kasunkavinda avatar

Stargazers

Wo Jake avatar

Watchers

 avatar  avatar  avatar  avatar Wo Jake avatar

hp-devkit's Issues

hpdevkit doesn't setup images correctly on Apple M-series silicon

You get the following error when running hpkit upgrade

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
hpdevkit should probably allow passing in --platform as an optional flag.

Just to test, I edited the index.js method runOnNewContainer to add the flag. The error goes away with hpdevkit upgrade but npm start still doesn't work. I suspect that the run flag isn't making its way down to the cluster containers appropriately, but I got stuck trying to figure out how the cluster images get started.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.