@specron/spec
TypeScript icon, indicating that this package has built-in type declarations

0.17.6 • Public • Published
import { Spec, Contract } from '@specron/core';

interface Data {
  id?: number;
  name?: string;
  User?: Contract;
}

const spec = new Spec<Data>();

spec.before(async (ctx) => {
  ctx.set('id', 100);
  ctx.set('web3', context.web3);
  ctx.set('User', await context.require({ src: './src/contracts/User' }));
});

export default spec;

Readme

Keywords

none

Package Sidebar

Install

npm i @specron/spec

Weekly Downloads

7

Version

0.17.6

License

MIT

Unpacked Size

119 kB

Total Files

91

Last publish

Collaborators

  • xpepermint