locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
24 lines (21 loc) • 552 B
text/typescript
async function main() {
const signer = (await locklift.keystore.getSigner("0"))!;
const { contract: sample, tx } = await locklift.factory.deployContract({
contract: "Sample",
publicKey: signer.publicKey,
initParams: {
_nonce: locklift.utils.getRandomNonce(),
},
constructorParams: {
_state: 0,
},
value: locklift.utils.toNano(3),
});
console.log(`Sample deployed at: ${sample.address.toString()}`);
}
main()
.then(() => process.exit(0))
.catch(e => {
console.log(e);
process.exit(1);
});