1.2.4 • Published 1 year ago

@anyvm/moveup-sdk v1.2.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

SDK for Moveup Node API

Quickstart

The public SDK downloaded from npmjs is compatible with the Moveup devnet. To start building, run below command in your project directory:

pnpm add @anyvm/moveup-sdk

Usage

For Javascript or Typescript usage, check out the ./examples folder with ready-made package.json files to get you going quickly!

If you are using the types in a commonjs module, like in a Node app, you just have to enable esModuleInterop and allowSyntheticDefaultImports in your tsconfig for types compatibility:

{
  ...
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "esModuleInterop": true
    ...
  }
}

Requirements

pnpm install

Working with local node

To develop in a local environment, you need to use the SDK from the main branch.

NOTE SDK from the main branch might not be compatible with the devnet.

Run a local node (run from the root of the repo):

./moveup node run-local-testnet --with-faucet

Run the SDK tests and make sure they pass. Go to the SDK directory, and setup an env to configure the URLs:

rm .env
echo 'MOVEUP_NODE_URL="http://127.0.0.1:8080/v1"' >> .env
echo 'MOVEUP_FAUCET_URL="http://127.0.0.1:8081"' >> .env

Run the tests:

pnpm test

If you see strange behavior regarding HTTP clients, try running the tests with --detectOpenHandles.

1.2.0

1 year ago

1.1.8

2 years ago

1.1.6

2 years ago

1.2.4

1 year ago

1.1.4

2 years ago

1.2.2

1 year ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago

1.0.1

2 years ago