0.4.4 • Published 2 years ago

@tezwell/michelson-sdk v0.4.4

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

Michelson SDK

CI Coverage Status

Michelson SDK is a framework for generating Michelson values and types from Javascript.

Documentation

Getting Started

Install the package

npm install @tezwell/michelson-sdk

Usage

Compile a value and its type

import { List, Nat } from '@tezwell/michelson-sdk';

const literal = List([Nat(1), Nat(2)]);

// Micheline
console.log(literal.toMicheline());         // { 1 ; 2 }
// JSON
console.log(literal.toJSON());              // [ { int: '1' }, { int: '2' } ]

Compile a type

import { TList, TNat } from '@tezwell/michelson-sdk';

const list_type = TList(TNat());

// Micheline
console.log(list_type.toMicheline());    // (list nat)

// JSON
console.log(list_type.toJSON());         // { prim: 'list', args: [ { prim: 'nat' } ] }

Contributing

About

Project was supported by Tezos Foundation.

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago