1.1.2 • Published 5 years ago

tezos-sacher v1.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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);
})();
1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago