tezos-sacher
v1.1.2
Published
Deploy, load and run smart contracts in Tezos 🥮
Downloads
8
Readme
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);
})();