0.2.0 • Published 3 years ago

@getlit/contracts v0.2.0

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

What

The @getlit/contracts script fetches contract data from the https://lit-general-worker.getlit.dev/contract-addresses API and generates contract files, including JSON, JS, and TypeScript files. It also produces typechain types for the contracts.

See ./lit-contracts

Quick Start

npx @getlit/contracts

Usage

To run the script:

npx @getlit/contracts [options]

Options

  • --update: Flag to indicate if existing contracts should be updated with newer versions.
  • --outdir: Specify the output directory for generated contract files. Default is 'lit-contracts'.
  • --network: Specify the network ('cayenne' or 'serrano') to determine the API endpoint. Default is 'cayenne'.

Demo

Init

npx @getlit/sdk

Update

npx @getlit/sdk --update

0.2.0

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago