0.6.0 • Published 2 years ago

tezos-builder-suite v0.6.0

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

A library to make use of Beacon SDK from your Node.js script

tezos-builder-suite is a package that exposes to your application an easy interface to let user interact with Tezos Smart Contracts with Taquito and the Beacon SDK through the infrastructure of a small Apollo GraphQL server and a React.js browser client.

All you need to do is just launch the tool providing contract(s) code, contract(s) compiled Michelson and the Tezos endpoint to connect to.

Installation

yarn add tezos-builder-suite

or

npm i --save tezos-builder-suite

Usage

In a JavaScript project, you can use:

const { launchDeployer, NetworkType } = require('tezos-builder-suite');

const endpoint = {
  url: "https://mainnet-tezos.giganode.io/",
  scope: "mainnet",
  protocolVersion: NetworkType.MAINNET,
};

const contracts = [
  {
    name: "MyContract.ligo", // File name
    code: '...', // Contract source code
    michelson: '...', // Compiled contract JSON-Michelson code
  },
];

launchDeployer({ 
  endpoint,
  contracts
}, { openBrowser: true });

or, if like us you prefer to write in TypeScript, you can go with:

import { launchDeployer, Contract, Endpoint, NetworkType } from 'tezos-builder-suite';

const endpoint: Endpoint = {
  url: "https://mainnet-tezos.giganode.io/",
  scope: "mainnet",
  protocolVersion: NetworkType.MAINNET,
};

const contracts: Contract[] = [
  {
    name: "MyContract.ligo", // File name
    code: '...', // Contract source code
    michelson: '...', // Compiled contract JSON-Michelson code
  },
];

launchDeployer({ 
  endpoint,
  contracts
}, { openBrowser: true });

Contributing

We'd definitely love to have your contributions to this package.

If you want to write some code, we'll be more than happy to review and discuss every PR. Please refer to our Contributing guide to discover how to work on this repository and how to subit your PRs.

If you like this project, please consider donating to help it evolve along with Tezos ecosystem and protocol updates. As you can imagine, this requires a lot of time and effort, and any donation will support us. Reach us from any support channel to find how to donate in your preferred way.

Let's get in touch

You can request support, give feedback, suggest features and donate to this project by contacting us in any of the following channels:

If you need help with code we'd suggest going for the Discord channel as it's easier to exchange code there.

0.5.0

2 years ago

0.6.0

2 years ago

0.3.0

2 years ago

0.4.0

2 years ago

0.2.1

3 years ago

0.1.2

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago