tezos-sacher
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Tezos Sacher

How to install

$ npm i -S tezos-sacher

How to cook an awesome Sacher in tezos?

import Sacher from 'tezos-sacher'
import path from "path"
 
const asyncBootstrap = (async () => {
    const filePath = path.resolve('./contracts/test1.liq');
    const sk = 'edsk...';
 
    const c1 = await Sacher.deploy(filePath, { sk }, '0p');
    console.log(c1.contractAddress);
 
    const o1 = await c1.run('addNAndM', '(10p, 15p)');
    console.log(o1);
 
    const c2 = await Sacher.load(filePath, c1.contractAddress, { sk });
    console.log(c2.contractAddress);
 
    const o2 = await c2.run('addN', '10p');
    console.log(o2);
 
    const o3 = await c2.run('add1');
    console.log(o3);
    
    const result = await c2.getStorage();
    console.log(result);
})();

Readme

Keywords

none

Package Sidebar

Install

npm i tezos-sacher

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

22.7 kB

Total Files

9

Last publish

Collaborators

  • menxit