0.0.1-prealpha.85 • Published 2 years ago

@web3api/schema-bind v0.0.1-prealpha.85

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Web3API Binding

Generates Web3API schema bindings for supported guest languages.

Details

Web3API uses MessagePack as a common data interchange format between languages. This allows Web3API WASM modules, authored in different languages, to be run within a single host language (JS, Rust, Python, Go, C#, C++).

MessagePack encoded data is sent between module boundaries. Decoding of the message will happen in the destination environment, using generated binding code, created by this package.

Supported Schema Types

GraphQL Schema TypeMessagePack TypeDescription
UIntuint 3232-bit unsigned integer.
UInt8uint 88-bit unsigned integer.
UInt16uint 1616-bit unsigned integer.
UInt32uint 3232-bit unsigned integer.
Intint 3232-bit signed integer.
Int8int 88-bit signed integer.
Int16int 1616-bit signed integer.
Int32int 3232-bit signed integer.
Stringfixstr or str 8/16/32UTF-8 string.
Booleanbooltrue or false stored as 1 byte.
Bytesbin 8/16/32array of 8-bit unsigned integer.
BigIntfixstr or str 8/16/32UTF-8 string.
BigNumberfixstr or str 8/16/32UTF-8 string.
JSONfixstr or str 8/16/32UTF-8 string.
Typefixarray or array 16/32Array of elements.
MapMsgpack extention typeMap of key-value pairs.
type CustomObject {  prop: Type}fixmap or map 16/32Structured object.

Usage

TODO

0.0.1-prealpha.9

3 years ago

0.0.1-prealpha.8

3 years ago

0.0.1-prealpha.7

3 years ago

0.0.1-prealpha.6

3 years ago

0.0.1-prealpha.5

3 years ago

0.0.1-prealpha.4

3 years ago

0.0.1-prealpha.2

3 years ago

0.0.1-prealpha.1

3 years ago