1.1.3 • Published 4 months ago

@blockless/sdk v1.1.3

Weekly downloads
-
License
APACHE-2.0
Repository
-
Last release
4 months ago

blockless-sdk-assembly-script

npm.io

This sdk is configured to work with assembly-script.

It currently has built in support for

  • json
  • http
  • ipfs

Install this SDK

This module can be installed into any existing project. New projects should use @blockless/app to start a fresh WASM module.

$ yarn add @blockless/sdk
# or using npm
$ npm i @blockless/sdk

Example of using this SDK.

// The entry file of your WebAssembly.
import "wasi";

import { Console } from "as-wasi/assembly";
import { http } from "@blockless/sdk";

const client = new http.Client();
const data = client.get("https://httpbin.org/json");

console.log(data.toString())
}

How to build

Use asc to build the typescript source into a deployable WASM file.

$ asc examples/index.ts --target release

Shortcuts for a few examples are available in the package.json of this module.

$ yarn build:example:debug
1.1.3

4 months ago

1.1.2

10 months ago

1.1.1

11 months ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0-preview

2 years ago