0.5.1-beta.1 • Published 2 years ago

@supercolony/typechain-compiler v0.5.1-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Typechain-Compiler


Utility package for compiling smart contracts, and generating TypeScript definitions & runtime code for them.

Usage

In your project install this package:

npm i -D @supercolony/typechain-compiler

Now you can use it to compile smart contracts, and generate TS definitions & runtime code for them. To use typechain-compiler you need to create a config file, and pass it to the compiler.

Config file

Config file should be in .json format, and should contain the following fields:

export interface Config {
	projectFiles: string[];
	skipLinting : boolean;
	artifactsPath : string;
	typechainGeneratedPath : string;
	isWorkspace ?: boolean;
	workspacePath ?: string;
}

Compiler

To compile your project, and generate TS definitions & runtime code for it, run the following command:

npx @supercolony/typechain-compiler --config path/to/config.json

Also you can provide additional arguments to the compiler:

Options:
      --version            Show version number                         [boolean]
  -c, --config             Config file path
                                  [string] [required] [default: "./config.json"]
  -r, --release            Compile with release
                                           [boolean] [required] [default: false]
      --noCompile, --nc    Compile         [boolean] [required] [default: false]
      --noTypechain, --nt  Compile typechain code
                                           [boolean] [required] [default: false]
  -h, --help               Show help                                   [boolean]
0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.5.1-beta.1

2 years ago

0.5.0

2 years ago

0.0.17-beta.1

2 years ago

0.0.16-beta.1

2 years ago

0.0.16-beta.10

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.0.16-beta.7

2 years ago

0.1.7

2 years ago

0.0.16-beta.6

2 years ago

0.0.16-beta.9

2 years ago

0.1.9

2 years ago

0.0.16-beta.8

2 years ago

0.1.4

2 years ago

0.0.16-beta.3

2 years ago

0.1.3

2 years ago

0.0.16-beta.2

2 years ago

0.1.6

2 years ago

0.0.16-beta.5

2 years ago

0.1.5

2 years ago

0.0.16-beta.4

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago